Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{fullpage}
  3. usepackage{pgf-pie}
  4. usepackage{tabularx}
  5.  
  6. usetikzlibrary{decorations.text}
  7. usepackage{ifthen}
  8.  
  9.  
  10. begin{document}
  11.  
  12.  
  13.  
  14. begin{table}[ht]
  15. %caption{Multi-column and multi-row table}
  16. begin{center}
  17. begin{tabular}{|p{1.5cm}|>{centering}p{2.5cm}|>{centering}p{1.5cm}|>{raggedleft}p{3cm}|} %{|c|c|c|c|}
  18. hline
  19. Protocol1 & protocol2 & protocol3 tabularnewline
  20. hline
  21. multicolumn{1}{|c|}{Speed varies between 5 and 35}
  22. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  23. begin{scope}[scale=.4,xshift=.5cm]
  24. pie[explode=0.2]{8.3/B1, 33.3/B2, 58.3/B3}
  25. end{scope}
  26. end{tikzpicture}}
  27. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  28. begin{scope}[scale=.4,xshift=.5cm]
  29. pie[explode=0.2]{33.3/B1, 33.3/B2,33.3/B3}
  30. end{scope}
  31. end{tikzpicture}}
  32. %multirow{1}{*}{Multi-col-row}}&X\
  33. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  34. begin{scope}[scale=.4,xshift=.5cm]
  35. pie[explode=0.2]{20.2/B1, 35.5/B2, 44.2/B3}
  36. end{scope}
  37. end{tikzpicture}} \
  38. hline
  39. multicolumn{1}{|c|}{Speed varies between 5 and 45}
  40. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  41. begin{scope}[scale=.4,xshift=.5cm]
  42. pie[explode=0.2]{6.6/B1, 33.3/B2, 60/B3}
  43. end{scope}
  44. end{tikzpicture}}
  45. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  46. begin{scope}[scale=.4,xshift=.5cm]
  47. pie[explode=0.2]{33.3/B1, 33.3/B2,33.3/B3}
  48. end{scope}
  49. end{tikzpicture}}
  50. %multirow{1}{*}{Multi-col-row}}&X\
  51. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  52. begin{scope}[scale=.4,xshift=.5cm]
  53. pie[explode=0.2]{19.8/B1, 35.6/B2, 44.4/B3}
  54. end{scope}
  55. end{tikzpicture}} \
  56. hline
  57. multicolumn{1}{|c|}{Speed varies between 5 and 65}
  58. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  59. begin{scope}[scale=.4,xshift=.5cm]
  60. pie[explode=0.2]{4.7/B1, 33.3/B2, 61.9/B3}
  61. end{scope}
  62. end{tikzpicture}}
  63. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  64. begin{scope}[scale=.4,xshift=.5cm]
  65. pie[explode=0.2]{33.3/B1, 33.3/B2,33.3/B3}
  66. end{scope}
  67. end{tikzpicture}}
  68. %multirow{1}{*}{Multi-col-row}}&X\
  69. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  70. begin{scope}[scale=.4,xshift=.5cm]
  71. pie[explode=0.2]{19.3/B1, 35.8/B2, 44.7/B3}
  72. end{scope}
  73. end{tikzpicture}} \
  74. hline
  75. multicolumn{1}{|c|}{Speed varies between 5 and 85}
  76. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  77. begin{scope}[scale=.4,xshift=.5cm]
  78. pie[explode=0.2]{3.7/B1, 33.3/B2, 62.9/B3}
  79. end{scope}
  80. end{tikzpicture}}
  81. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  82. begin{scope}[scale=.4,xshift=.5cm]
  83. pie[explode=0.2]{33.3/B1, 33.3/B2,33.3/B3}
  84. end{scope}
  85. end{tikzpicture}}
  86. %multirow{1}{*}{Multi-col-row}}&X\
  87. multicolumn{1}{|c|}{begin{tikzpicture}[font=scriptsize]
  88. begin{scope}[scale=.4,xshift=.5cm]
  89. pie[explode=0.2]{19/B1, 36.9/B2, 44.9/B3}
  90. end{scope}
  91. end{tikzpicture}} \
  92. hline
  93.  
  94. end{tabular}
  95. end{center}
  96. label{tab:multicol}
  97. end{table}
  98.  
  99.  
  100.  
  101. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement