Skip to main content
Corrected tabular line breaks
Source Link
Werner
  • 625k
  • 145
  • 1.5k
  • 2.4k

I use the following table:

\documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, headsepline, ]{scrreprt} \usepackage{booktabs} \begin{document} \begin{table}[H]\hspace*{-1cm} \centering \begin{tabular}{lcclll} \toprule Company& \multicolumn{2}{c}{exceedances (empirical)}&exeedances (expected)&no. of obs.\ \\ \cmidrule(r){2-3}\ \\ &standard normal&standardized Student's-t&&\ t&&\\ \midrule Company1&1&5&9&13\ Company1&1&5&9&13\\ Company2&2&6&10&14\ Company2&2&6&10&14\\ Company3&3&11&15\ Company3&3&11&15\\ Company4&4&8&12&16\ Company4&4&8&12&16\\ \bottomrule \multicolumn{4}{l}{\begin{footnotesize}an additional hint about a detail\end{footnotesize}} \end{tabular} \caption{Here is the caption.} \label{labelhere} \end{table} \end{document} 

Which gives

tableexample I

I have two problems:

  1. The space after the \cmidrule(r){2-3} is too big, how can I change this?
  2. The table looks not that good, how can I improve it in general?

I use the following table:

\documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, headsepline, ]{scrreprt} \usepackage{booktabs} \begin{document} \begin{table}[H]\hspace*{-1cm} \centering \begin{tabular}{lcclll} \toprule Company& \multicolumn{2}{c}{exceedances (empirical)}&exeedances (expected)&no. of obs.\ \cmidrule(r){2-3}\ &standard normal&standardized Student's-t&&\ \midrule Company1&1&5&9&13\  Company2&2&6&10&14\  Company3&3&11&15\  Company4&4&8&12&16\  \bottomrule \multicolumn{4}{l}{\begin{footnotesize}an additional hint about a detail\end{footnotesize}} \end{tabular} \caption{Here is the caption.} \label{labelhere} \end{table} \end{document} 

Which gives

tableexample I have two problems:

  1. The space after the \cmidrule(r){2-3} is too big, how can I change this?
  2. The table looks not that good, how can I improve it in general?

I use the following table:

\documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, headsepline, ]{scrreprt} \usepackage{booktabs} \begin{document} \begin{table}[H]\hspace*{-1cm} \centering \begin{tabular}{lcclll} \toprule Company& \multicolumn{2}{c}{exceedances (empirical)}&exeedances (expected)&no. of obs.\\ \cmidrule(r){2-3}\\ &standard normal&standardized Student's-t&&\\ \midrule Company1&1&5&9&13\\ Company2&2&6&10&14\\ Company3&3&11&15\\ Company4&4&8&12&16\\ \bottomrule \multicolumn{4}{l}{\begin{footnotesize}an additional hint about a detail\end{footnotesize}} \end{tabular} \caption{Here is the caption.} \label{labelhere} \end{table} \end{document} 

Which gives

tableexample

I have two problems:

  1. The space after the \cmidrule(r){2-3} is too big, how can I change this?
  2. The table looks not that good, how can I improve it in general?
Source Link
Stat Tistician
  • 401
  • 1
  • 6
  • 17

Table formatting

I use the following table:

\documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, headsepline, ]{scrreprt} \usepackage{booktabs} \begin{document} \begin{table}[H]\hspace*{-1cm} \centering \begin{tabular}{lcclll} \toprule Company& \multicolumn{2}{c}{exceedances (empirical)}&exeedances (expected)&no. of obs.\ \cmidrule(r){2-3}\ &standard normal&standardized Student's-t&&\ \midrule Company1&1&5&9&13\ Company2&2&6&10&14\ Company3&3&11&15\ Company4&4&8&12&16\ \bottomrule \multicolumn{4}{l}{\begin{footnotesize}an additional hint about a detail\end{footnotesize}} \end{tabular} \caption{Here is the caption.} \label{labelhere} \end{table} \end{document} 

Which gives

tableexample I have two problems:

  1. The space after the \cmidrule(r){2-3} is too big, how can I change this?
  2. The table looks not that good, how can I improve it in general?