Answers for "make tables in latex"

12

latex tabular

begin{tabular}{ l | c | r }
  hline			
  1 & 2 & 3 \
  4 & 5 & 6 \
  7 & 8 & 9 \
  hline  
end{tabular}
Posted by: Guest on May-16-2020
0

insert table latex

begin{center}
begin{tabular}{ |c|c|c| } 
 hline
 cell1 & cell2 & cell3 \ 
 cell4 & cell5 & cell6 \ 
 cell7 & cell8 & cell9 \ 
 hline
end{tabular}
end{center}
Posted by: Guest on November-21-2020
5

table in latex

begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|p{3cm}|  }
 hline
 multicolumn{4}{|c|}{Country List} \
 hline
 Country Name     or Area Name& ISO ALPHA 2 Code &ISO ALPHA 3 Code&ISO numeric Code\
 hline
 Afghanistan   & AF    &AFG&   004\
 Aland Islands&   AX  & ALA   &248\
 Albania &AL & ALB&  008\
 Algeria    &DZ & DZA&  012\
 American Samoa&   AS  & ASM&016\
 Andorra& AD  & AND   &020\
 Angola& AO  & AGO&024\
 hline
end{tabular}
Posted by: Guest on March-23-2020
0

insert table latex

%...

begin{sidewaystable}[h!] % <--
  begin{center}
  caption{Landscape table.}
  label{tab:table1}
  begin{tabular}{l|S|r}
  	toprule
  	textbf{Value 1} & textbf{Value 2} & textbf{Value 3}\
  	$alpha$ & $beta$ & $gamma$ \
    midrule
    1 & 1110.1 & a\
    2 & 10.1 & b\
    3 & 23.113231 & c\
    bottomrule
  end{tabular}
  end{center}
end{sidewaystable}

%...
Posted by: Guest on November-21-2020
-2

making simple table in latex

begin{tabularx}{0.8textwidth} { 
  | >{raggedrightarraybackslash}X 
  | >{centeringarraybackslash}X 
  | >{raggedleftarraybackslash}X | }
 hline
 item 11 & item 12 & item 13 \
 hline
 item 21  & item 22  & item 23  \
hline
end{tabularx}
Posted by: Guest on January-13-2021

Browse Popular Code Answers by Language