Guest User

Untitled

a guest
Apr 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. documentclass[leqno,8pt,fleqn,table]{beamer}
  2. usepackage{tikz}
  3. usetikzlibrary{matrix,shadings}
  4.  
  5. defr{0.1}
  6.  
  7. tikzset{
  8. table/.style={
  9. matrix of nodes,
  10. row sep=-pgflinewidth,
  11. column sep=-pgflinewidth,
  12. nodes={
  13. rectangle,
  14. draw=black,
  15. align=center,
  16. },
  17. %baseline={([yshift=-0.5ex]current bounding box.center)},
  18. minimum height=1.5em,
  19. text depth=0.5em,
  20. text height=1em,
  21. text centered,
  22. nodes in empty cells,
  23. %%
  24. row 1/.style={
  25. nodes={
  26. fill=black,
  27. text=white,
  28. %font=bfseries
  29. }
  30. },
  31. rows/.style={nodes={fill=gray!10}},
  32. columns/.style={nodes={text width = 10em}},
  33. %myrowstyle/.style={
  34. %row #1/.style={nodes={fill=gray!10}}
  35. %},
  36. }
  37. }
  38.  
  39. begin{document}
  40. begin{frame}
  41. begin{center}
  42. begin{tiny}
  43. begin{tikzpicture}
  44. matrix[table, rows={2,...,3}{fill=grey!10}, columns={1,...,5}{text width = 10em}, ampersand replacement=&] (first)
  45. {
  46. card # & date & 1 & 2 & 3 \
  47. ghul & 01.01.2016 & & & \
  48. };
  49.  
  50. fill[left color=green,right color=red] (first-2-3) circle (r);
  51. fill[red] (first-2-4) circle (r);
  52. fill[red] (first-2-5) circle (r);
  53.  
  54. end{tikzpicture}
  55. end{tiny}
  56. %vspace{4mm}
  57. end{center}
  58. end{frame}
  59. end{document}
Add Comment
Please, Sign In to add comment