How to code tables with multi-line cells

前端 未结 4 1645
萌比男神i
萌比男神i 2021-01-30 10:25

I am trying to write a short paper with LaTeX and need to add a table with 3 columns.

+-------------+-----------------+--------------------------------------+
|          


        
4条回答
  •  囚心锁ツ
    2021-01-30 10:47

    Here is an answer with no fancy coding. Write your rows in separate lines. Omit the \hline for all but the last row(line) Its quick and dirty but, hey, it works and gives me exactly what I want, for simple tables anyway. I was making advertising to go on automobile windscreens. I have 3 centered rows in each cell

    iTutor Grahamstown
    Mathematics Tutor
    0793296211
    

    I wanted this repetitively in my table. I just left out the \hline for the first two rows. The multiple \hlines and '|' are to make cutting up the printout easier.

    \begin{tabular}{||c||c||c||c||}
    \hline\hline
    
    iTutor Grahamstown &iTutor Grahamstown&iTutor Grahamstown &iTutor Grahamstown \\ %No \hline
    
    Mathematics Tutor & Mathematics Tutor & Mathematics Tutor&Mathematics Tutor \\  %No \hline
    
    0793296211 & 0793296211 & 0793296211 & 0793296211\\ \hline\hline\hline %\hline now
    
    
    \end{tabular}  
    

    I hope that this helps.

提交回复
热议问题