Facebook
From Buff Macaque, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 303
  1. \documentclass{article}
  2. \usepackage{multirow}
  3. \usepackage[table]{xcolor}
  4. \begin{document}
  5. \begin{table}[]
  6. \begin{tabular}{|r|l|c|}
  7. \hline
  8. id & produkt & Czy jest \\ \hline
  9. 1 & chleb & Tak \\ \hline
  10. 2 & sowa & Nie \\ \hline
  11. 3 & kawa & Tak \\ \hline
  12. 4 & mleko & Tak \\ \hline
  13. 5 & pies & Nie \\ \hline
  14. \end{tabular}
  15. \end{table}
  16.  
  17. \begin{center}
  18. \begin{tabular}{ |c|c|c|c| }
  19. \hline
  20. Lp. & produkt & cena & czy jest \\
  21. \hline
  22. jedzenie & chleb & 20zl & Nie \\
  23. \hline
  24. napoje & cola & 30zl & Tak\\
  25.  & cola & 30zl & Nie \\
  26.  & cola & 30zl & Tak\\
  27. \hline
  28. nabial & maslo & x & x \\
  29.  & maslo & x & x \\
  30.  & maslo & x & x \\
  31. \hline
  32. \multicolumn{2}{| c |}{polaczone kolumny} & kolumna3 & kolumna4\\
  33. \hline
  34. \end{tabular}
  35. \end{center}
  36.  
  37. \begin{table}[]
  38. \begin{tabular}{|r|l|c|}
  39. \hline
  40. \rowcolor{blue!25} id & produkt & Czy jest \\ \hline
  41. 1 & chleb & Tak \\ \hline
  42. \rowcolor{blue!25} 2 & \cellcolor{green!25} sowa & Nie \\ \hline
  43. 3 & kawa & Tak \\ \hline
  44. \rowcolor{blue!25} 4 & mleko & Tak \\ \hline
  45. 5 & pies & Nie \\ \hline
  46. \end{tabular}
  47. \end{table}
  48. \end{document}
  49.  
  50.