1

Do you know how can I set the following tables in LaTeX? (Just the first two lines are enough)

enter image description here

enter image description here

2
  • 1
    Can you give us a MWE to start with? Jun 13 '16 at 15:35
  • You already accept one answer to your original question. If you now faced with new problem, than will be better to ask new question than edit old one. In it you can make link to this question and also clearly emphasize what is your new problem.
    – Zarko
    Jun 14 '16 at 21:54
2

I would suggest multicolumn and cline.

\begin{tabular}{ccccc}
 &  & \multicolumn{2}{c}{well} & \tabularnewline
\cline{3-4} 
 &  & 1 & 2 & 3\tabularnewline
\hline 
some  & a & b & c & d\tabularnewline
\hline 
stuff & e & f & g & h\tabularnewline
\hline 
in & i & j & k & l\tabularnewline
\hline 
a & m & n & o & p\tabularnewline
\end{tabular}

enter image description here

2
  • I don't really see the reason for using \multirow here. Jun 14 '16 at 6:04
  • you're right, I fixed it
    – Elad Den
    Jun 14 '16 at 6:12
4

Below existing links will help your request:

Table formatting

https://tex.stackexchange.com/search?q=table+formatting

1

I used the same code. But I changed the following lines and compiled.

\begin{tabularx}{\textwidth}{lrcp{2.8cm}p{2.5cm}}
\toprule
&  \multicolumn{2}{l}{Proportions (\% )} & \multicolumn{2}{l}{ }\\
& \multicolumn{2}{l}{if not indicated otherwise}&\multicolumn{2}{l}{ OR (95\% Cl)for group differences}\\
\cmidrule{2-5}  
& Type 1 &  &  & \\ 
Outcome variable&diabetes &Control&Crude&Adjusted \tabularnewline
\midrule

I got the following

enter image description here

1
  • the text goes out of the table on the right
    – Luigi
    Jun 15 '16 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.