I need to fill the appendix of my work (I am using scrbook
) with a lot (more than 100) of large tables. This is the end of a long work by a group of people. The tables were done in Microsoft Word in a A4 landscape format, and I need to import them without re-writing the all thing. As a first thing I converted them using the write2latex extension of Libreoffice. An excerpt of the output is shown below (there is only one table, here, of will not be not in a landscape format and the only solution I found is to rotate them of 90°. Therefore, I inserted a minipage
environment to rotate each table, hoping that it will suffice to fit them into the page.
Can you think of any better solution?
\documentclass[a4paper,landscape]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage{color}
\usepackage{array}
\usepackage{supertabular}
\usepackage{hhline}
\usepackage{hyperref}
\usepackage{graphicx}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}
% Text styles
\newcommand\textstyleEmphasis[1]{\textit{#1}}
\makeatletter
\newcommand\arraybslash{\let\\\@arraycr}
\makeatother
% Page layout (geometry)
\setlength\voffset{-1in}
\setlength\hoffset{-1in}
\setlength\topmargin{2cm}
\setlength\oddsidemargin{2cm}
\setlength\textheight{17.001cm}
\setlength\textwidth{25.7cm}
\setlength\footskip{0.0cm}
\setlength\headheight{0cm}
\setlength\headsep{0cm}
% Footnote rule
\setlength{\skip\footins}{0.119cm}
\renewcommand\footnoterule{\vspace*{-0.018cm}\setlength\leftskip{0pt}\setlength\rightskip{0pt plus 1fil}\noindent\textcolor{black}{\rule{0.25\columnwidth}{0.018cm}}\vspace*{0.101cm}}
% Pages styles
\makeatletter
\newcommand\ps@Standard{
\renewcommand\@oddhead{}
\renewcommand\@evenhead{}
\renewcommand\@oddfoot{}
\renewcommand\@evenfoot{}
\renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
\title{}
\author{}
\date{2022-01-01}
\begin{document}
\clearpage\setcounter{page}{1}\pagestyle{Standard}
\bigskip
\begin{flushleft}
\tablefirsthead{}
\tablehead{}
\tabletail{}
\tablelasttail{}
\begin{supertabular}{|m{4.007cm}|m{6.7130003cm}|m{7.0880003cm}m{7.09cm}|}
\hline
\multicolumn{4}{|m{25.498001cm}|}{\textbf{Studio:} Zhang Y\textit{ et al. }Laparoscopic versus open incisional and
ventral hernia repair: a systematic review and meta-analysis. World Journal of Surgery 2014}\\\hline
\textbf{Disegno dello studio}
\textbf{Livello di evidenza} &
\textbf{Dettagli dello studio/limitazione} &
\multicolumn{1}{m{7.0880003cm}|}{\textbf{Caratteristiche dei pazienti}} &
\textbf{Interventi}\\\hline
~
\textbf{Disegno dello studio:} Systematic Review e Meta-analisi di RCTs
~
\textbf{Certezza delle prove:}
Moderata
~
&
\textbf{Paesi}: Non applicabile
\textbf{Centri:} Non applicabile
\textbf{Setting}: Ernie ventrali primitive o incisionali
\textbf{Finanziamenti}: Nessuno
\textbf{Tassi di dropout}: Non applicabile
\textbf{Limitazioni:}
{}- Eterogeneità clinica dovuta a definizioni differenti e tecniche operatorie differenti
\textbf{Critical appraisal: }AMSTAR II &
\multicolumn{1}{m{7.0880003cm}|}{Pazienti con ernia ventrale primitiva o ernia ventrale incisionale
~
\textbf{Ricerca bibliografica: }\ {}-- Luglio 2013
~
\textbf{Criteri di inclusione: }Studi prospettici randomizzati comparanti la tecnica laparoscopica con quella open
~
\textbf{Criteri di esclusione:} Studi non-randomizzati, studi focalizzati su altri tipi di ernia, duplicati} &
Tecnica di riparazione laparoscopica vs. a cielo aperto\\\hline
\textbf{Note}: &
\multicolumn{3}{m{21.291cm}|}{\textbf{Studi inclusi:} Carbajo 1999, Moreno-Egea 2002, Misra 2006, Barbaros 2007, Olmi
2007, Navarra 2007, Pring 2008, Asencio 2009, Itani 2010, Eker 2013, Rogmark 2014}\\\hline
\textbf{Outcomes} &
{}- Recidiva erniaria
{}- Infezione di ferita
{}- Lesioni intestinali
{}- Sieroma post-operatorio
{}- Ematoma post-operatorio
{}- Occlusione intestinale
{}- Sanguinamento
{}- Reintervento
~
&
\multicolumn{2}{m{14.378cm}|}{\textbf{Risultati: }11 studi randomizzati con arruolamento totale di 1003 pazienti (501
nel gruppo laparoscopico e 502 nel gruppo open
{}- \textbf{Recidiva erniaria:} RR = 1.21, 95\% CI 0.77-1.91 (P= 0.41)
{}- \textbf{Infezioni dei ferita:} RR = 0.19, 95\% CI 0.11-0.32 (P{\textless} 0.00001)
{}- \textbf{Lesioni intestinali:} RR = 3.68, 95\% CI 1.58-0.67 (P= 0.003)
{}- \textbf{Sieroma post-operatorio: }RR = 0.99, 95\% CI 0.46-0.10 (P= 0.97)
{}- \textbf{Ematoma post-operatorio:} RR = 0.94, 95\% CI 0.53-0.65 (P= 0.82)
{}- \textbf{Occlusione intestinale:} RR = 1.58, 95\% CI 0.55-0.58 (P= 0.40)
{}- \textbf{Sanguinamento:} RR = 1.88, 95\% CI 0.41-0.71 (P= 0.42)
{}- \textbf{Reintervento:} RR = 0.42, 95\% CI 0.16-0.09 (P= 0.07)}\\\hline
\end{supertabular}
\end{flushleft}
\bigskip
\end{document}
Best Answer
One more solution with
tabularray
package with combination of theenumitem
andetoolbox
package.Edit: For percentage of value is used
siunitx
package (instead of95%
is used\qty{95}{\%}
which gives typographically nicer result). Also are changed(P= 0.97)
and similar expressions to(P = 0.97)
or for example to \mbox{(P = 0.09)} etc.Addendum: Solution with classic tables' packages:
As you can observe, in table design need more manual tweaks as in the first MWE. Result is similar as before:
However, this with some additional effort can be done with ˙tabular*
or even
tabular` too, however, determination of columns and multi-columns widths at them is a bit more challenging.Off-topic I guess that your document is in portrait orientation (as they are usually are). In this case only the tables due to their width) to be in the
landscape
orientation. This can be done by use of thesidewaystable
environment defined in therotating
package (for one page long tables) or by use oflandscape
environment defined bylscape
orpdflscape
packages. Which is more appropriate depends from your document structure.