LaTeX forum ⇒ Graphics, Figures & TablesDrawing a large table with vertically oriented text

Information and discussion about graphics, figures & tables in LaTeX documents.
zak100
Posts: 4
Joined: Sat Aug 22, 2020 5:49 pm

Drawing a large table with vertically oriented text

Postby zak100 » Sun Aug 23, 2020 7:01 am

Hi,
The description of my table as far as I understand it is given below:

First row is the combination of two rows: First cell of 1st row is empty, 2nd cell of the 1st row is the combination of 5 columns (text=GrpNumber1), 3rd cell of 1st row column is the combination of 4 columns(text=GrpNumber2), 4th cell of 1st row is the combination of 2 columns(text=GrpNumber3), 5th , 6th and 7th cell of 1st row is the combination of 3 columns with (text=GrpNumber4), (text=GrpNumber5), (text=GrpNumber6) respectively.
2nd row has the same number of columns for each cell, only the 4th cell has the text “Task”
3rd row has the same number of columns for each cell but the text in each cell is vertically oriented from down to up
Remaining rows have text in the first cell while tick mark and cross in the remaining cells and this will continue till 20 rows.
The sample image of the table is given below:

[img]
SampleTable.jpg
SampleTable.jpg (136.69 KiB) Viewed 170 times

[/img]


I have created the following code and I have included solidity-highlight.tex,
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[manuscript,screen]{acmart}
  2. \usepackage{listings}
  3. \input{solidity-highlighting.tex}
  4. \usepackage[colorinlistoftodos]{todonotes}
  5. \AtBeginDocument{%
  6. \providecommand\BibTeX{{%
  7. \normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
  8.  
  9.  
  10. \setcopyright{acmcopyright}
  11. \copyrightyear{2020}
  12. \acmYear{2020}
  13. \acmDOI{10.1145/1122445.1122456}
  14.  
  15.  
  16. \begin{document}
  17.  
  18. \title{A Test of Latex}
  19.  
  20. \author{Khan}
  21. \email{Khan@edu}
  22.  
  23. \affiliation{}
  24. \institution{University}
  25.  
  26. \renewcommand{\shortauthors}{Trovato and Tobin, et al.}
  27.  
  28.  
  29. \begin{abstract}
  30. Testing abstract
  31. \end{abstract}
  32.  
  33.  
  34. \begin{CCSXML}
  35. <ccs2012>
  36. <concept>
  37. <concept_id>10002978.10003022</concept_id>
  38. <concept_desc> and application security</concept_desc>
  39. <concept_significance>500</concept_significance>
  40. </concept>
  41. <concept>
  42. <concept_id>10002944.10011122.10002945</concept_id>
  43. <concept_desc>General and reference~Surveys and overviews</concept_desc>
  44. <concept_significance>500</concept_significance>
  45. </concept>
  46. </ccs2012>
  47. \end{CCSXML}
  48.  
  49. \ccsdesc[500]{Security and privacy~Software and application security}
  50. \ccsdesc[500]{General and reference~Surveys and overviews}
  51.  
  52.  
  53.  
  54. \maketitle
  55.  
  56. \section{Introduction}
  57.  
  58. Hello. \citet{1}, \citet{2}, \citet{3} %\cite{8} \cite{105} \cite{112} %\cite{48} \cite{87}.
  59.  
  60. \begin{lstlisting}[language=Solidity]
  61. contract TestList1{
  62.  
  63. }
  64. \end{lstlisting}
  65.  
  66. \begin{table}[]
  67. \centering
  68. \begin{tabular}{l|ccccc|cccc|cc|ccc|ccc|ccc}
  69. \hline
  70. & \multicolumn{5}{c|}{\bf GrpNumber1} & \multicolumn{4}{c|}{\bf GrpNumber2} & \multicolumn{2}{c|}{\bf GrpNumber3} & \multicolumn{3}{c|}{\bf GrpNumber4} & \multicolumn{3}{c|}{\bf GrpNumber5} & \multicolumn{3}{c}{\bf GrpNumber6} \\
  71. & \multicolumn{5}{c|}{\bf } & \multicolumn{4}{c|}{\bf } & \multicolumn{2}{c|}{\bf Task} & \multicolumn{3}{c|}{\bf } & \multicolumn{3}{c|}{\bf } & \multicolumn{3}{c}{\bf } \\
  72. \hline


I have problem in this following part of the code:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. & \rot{Grp1Member1} & \rot{Grp1Member2} & \rot{Grp1Member3} & \rot{Grp1Member4}
  2. & \multicolumn{1}{c|}{\rot{Grp1Member5}}
  3. & \rot{Grp2Member1}
  4. & \rot{Grp2Member2}
  5. & \rot{Grp2Member3}
  6. & \multicolumn{1}{c|}{\rot{Grp2Member4}}
  7. & \rot{Grp3Member1}
  8. & \multicolumn{1}{c|}{\rot{Grp3Member2}}
  9. & \rot{Grp4Member1}
  10. & \rot{Grp4Member2}
  11. & \multicolumn{1}{c|}{\rot{Grp4Member3}}
  12. & \rot{Grp5Member1}
  13. & \rot{Grp5Member2}
  14. & \multicolumn{1}{c|}{\rot{Grp5Member3}}
  15. & \rot{Grp6Member1}
  16. & \rot{Grp6Member2}
  17. & \multicolumn{1}{c|} {\rot{Grp6Member3}} \\
  18. \hline
  19. \end{tabular}
  20. \caption{Testing Table for Classification.}
  21. \label{tab:classification}
  22. \vspace{-0.1in}
  23. \end{table}
  24. \bibliographystyle{ACM-Reference-Format}
  25. \bibliography{sourcefile-bib}
  26.  
  27.  
  28. \end{document}
  29. \endinput


Somebody please guide me. I also need help to know how to print "tick mark".

Please provide me the whole code.

Zulfi.

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests