# Table width exceeds \textwidth, align to margin

I have a wide table which exceeds the \textwidth. I want to let the left side of table align the left margin. How should I do?

MWE

\documentclass[12pt,a4paper, twoside]{book}
\usepackage[a4paper,
textwidth=120mm, lmargin=25mm, marginparwidth=5mm, marginpar=55mm]{geometry}
\usepackage[font=footnotesize, labelfont=bf]{caption}
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}

\begin{document}
some text here ............

We choose 6-hourly MRI-CGCM3, MPI-ESM-LR, GFDL CM3 models for this studies. However, it remains a restriction, that is, the lack of lots of variables. The Vitart algorithm (Knutson 2007) requires environmental variables such as vorticity at 850 hPa, temperature, geopotential, wind speeds on various pressure levels, and sea level pressure. But the CMIP models doesn't provide geopotential data and wind speed at sea level, we are going to skip the thickness criteria in the algorithm (in Sec. A.2.2) and replace surface wind by 850-hPa wind.   \\

\footnotesize \captionof{table}{CMIP5 models we used to analysis in our study. (Taylor et al. 2012, Camargo 2013)}
\begin{tabular}{ccccc}
\hline \hline
Acronym & Model name  & Number {\footnote{The model number here follows which described in Camargo 2013.}} & Modeling center & Resolution  \\
\hline
GFDL CM3 & \tabincell{c}{Geophysical Fluid Dynamics Laboratory \\ Climate Model, version 3}  & M5 & \tabincell{c}{NOAA/Geophysical Fluid \\ Dynamics Laboratory} & $2.5^{\circ} \times 2.0^{\circ}$  \\[0.5cm]
MPI-ESM-LR & \tabincell{c}{Max Planck Institute Earth \\ System Model, low resolution} & M12 & \tabincell{c}{Max Planck Institute \\ for Meteorology } & $1.9^{\circ } \times 1.9^{\circ }$ \\[0.5cm]
MRI-CGCM3 & \tabincell{c}{Meteorological Research Institute \\ Coupled Atmospheric-Ocean General \\ Circulation Model, version 3} & M13 & Meteorological Research Institute & $1.1^{\circ }\times 1.2^{\circ }$ \\[0.5cm]
\hline
\end{tabular} \\[0.2cm]
\end{document}


Thanks!

• You should consider building a sideways table if you really need marginparwidth=55mm. B.t.w., the margin key for geometry does not exist. – Bernard Sep 27 '16 at 16:55

In case, that you persist with table extension to outside margin ... than package changepage and its macro adjustwidth* is your frend. Partly considering improvements of your table design given in Mico answer, using siunitx packages for units, the table is:

\documentclass[12pt,twoside]{book}
\usepackage[a4paper,
lmargin=25mm,
textwidth=120mm,
marginparsep=5mm, marginparwidth=55mm% <-- changed
]
{geometry}
\usepackage[font=footnotesize, labelfont=bf]{caption}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}

\usepackage{showframe}% <-- for showing page layout
\renewcommand*\ShowFrameColor{\color{red}}

\usepackage{lipsum}% <-- for dummy text

\begin{document}
\lipsum[1]

\lipsum[2]
\begin{table}[htb]
%    \footnotesize
\caption{CMIP5 models we used to analysis in our study.
(Taylor et al. 2012, Camargo 2013)}
\begin{tabularx}{\linewidth}{r
>{\setlength\hsize{1.2\hsize}}Lc
>{\setlength\hsize{0.8\hsize}}Lc}
\toprule
Acronym     &   Model name
&   Number\footnote{The model number here follows
which described in Camargo 2013.}
&   Modeling center
&   Resolution      \\
\midrule
GFDL CM3    &   Geophysical Fluid Dynamics Laboratory
Climate Model, version 3
&   M5  &   NOAA/Geophysical Fluid
Dynamics Laboratory
&   $\SI{2.5}{\degree}\times\SI{2.0}{\degree}$
\\
MPI-ESM-LR  &   Max Planck Institute Earth
System Model, low resolution
&   M12 &   Max Planck Institute
for Meteorology
&   $\SI{1.9}{\degree}\times\SI{1.9}{\degree}$
\\
MRI-CGCM3   &   Meteorological Research Institute
Coupled Atmospheric-Ocean General
Circulation Model, version 3
&   M13 &   Meteorological Research Institute
&   $\SI{2.0}{\degree}\times\SI{2.0}{\degree}$
\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}


The above code should be self-explanatory :-). Beside mentioned I correct geometry settings and use the same font size in the table and in the main text. Package showframe and its frame color setting should be in real document deleted.

• Thanks for providing such clear answer also fix something I have done wrong :-) – Wayne Tsai Sep 28 '16 at 1:20
• which left margin? defined by adjustwidth? in later case you need add singlelinecheck=off into caption package options. – Zarko Sep 28 '16 at 2:39

I would not let the tabular material protrude into the margin. Since line breaks are unavoidable anyway for the material in columns 2 and 4, it's best to let LaTeX find suitable line breaks on its own. Use a tabularx environment and use a ragged-right version of the X column type.

\documentclass[12pt,twoside]{book}
\usepackage[a4paper, textwidth=120mm, lmargin=25mm,
marginparwidth=5mm, marginpar=55mm]{geometry}
\usepackage[labelfont=bf]{caption}
\usepackage{tabularx,booktabs,ragged2e}
\newcolumntype{L}{>{\RaggedRight\arraybackslash}X} % ragged-right version of "X" column type
\usepackage[english]{babel}
\begin{document}
\null

We choose 6-hourly MRI-CGCM3, MPI-ESM-LR, GFDL CM3 models for this studies. However, it remains a restriction, that is, the lack of lots of variables. The Vitart algorithm (Knutson 2007) requires environmental variables such as vorticity at 850 hPa, temperature, geopotential, wind speeds on various pressure levels, and sea level pressure. But the CMIP models doesn't provide geopotential data and wind speed at sea level, we are going to skip the thickness criteria in the algorithm (in Sec. A.2.2) and replace surface wind by 850-hPa wind.

\begingroup % Keep the following parameter changes local to current group
\setlength\tabcolsep{3pt} % default value: 6pt
\captionsetup{size=footnotesize}
\footnotesize

\captionof{table}{CMIP5 models we used to analysis in our study.
(Taylor et al.\ 2012, Camargo 2013)}

\noindent
\begin{tabularx}{\textwidth}{@{}lLlLr@{}}
\toprule
Acronym & Model name  & Number\footnote{The model number here follows
which described in Camargo 2013.} & Modeling center & Resolution  \\
\midrule
GFDL CM3 & Geophysical Fluid Dynamics Laboratory Climate Model, version 3
& M5 & NOAA\slash Geophysical Fluid Dynamics Laboratory
& $2.5^{\circ}{\times}2.0^{\circ}$  \\
MPI-ESM-LR & Max Planck Institute Earth System Model, low resolution &
M12 & Max Planck Institute for Meteorology
& $1.9^{\circ } {\times} 1.9^{\circ }$ \\
& $1.1^{\circ }{\times} 1.2^{\circ }$ \\