[Tex/LaTex] Adjust margins for long table on a landscape page

landscapelongtablemargins

My minimum working example:

\documentclass{article}

\usepackage{longtable}
\usepackage{lscape}
\usepackage{array}

\begin{document}

\begin{landscape}

\section{My First Section}

\begin{longtable}{|>{\raggedright}m{2in} |>{}m{3.5in} | >{}m{0.8in}| >{}m{0.3in} |>{}m{0.7in} |} \hline
    \textbf{Author(s)} & \textbf{Title} & \textbf{Type} & \textbf{Year} & \textbf{Cited-by} \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
\end{longtable}

\end{landscape}

\end{document}

The result is:

enter image description here

Now I would like to increase the margins, such that more rows will fit on the page. Normally I would use:

\begingroup
\setlength{\LTleft}{-20cm plus -1fill}
\setlength{\LTright}{\LTleft}
\begin{longtable}
...
\end{longtable}
\endgroup

But with landscape orientation this does not give the desired result.

Best Answer

REVISED answer:

Here, I use the geometry package to temporarily reset the page dimensions and then reset them back after the table. In this way, the longtable should still be able to break across pages, unlike my original solution below.

\documentclass{article}
\usepackage[pass]{geometry}

\usepackage{longtable}
\usepackage{lscape}
\usepackage{array}

\begin{document}
Where are the old margins
\newgeometry{margin=4cm}
\begin{landscape}
\section{My First Section}

\begin{longtable}{|>{\raggedright}m{2in} |>{}m{3.5in} | >{}m{0.8in}| >{}m{0.3in} |>{}m{0.7in} |} \hline
    \textbf{Author(s)} & \textbf{Title} & \textbf{Type} & \textbf{Year} & \textbf{Cited-by} \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
\end{longtable}

\end{landscape}
\restoregeometry
Where are the new margins?
\end{document}

enter image description here


ORIGINAL answer:

Here, I tried to expand leftward and rightward symmetrically, and not move the page number.

Of course, I should point out that it is a bit incongruous to both use longtable and then try to squeeze it onto one page. The solution here effectively will nullify the multipage nature of longtable.

\documentclass{article}

\usepackage{longtable}
\usepackage{lscape}
\usepackage{array}

\begin{document}

\setbox0=\vbox{\section{My First Section}

\begin{longtable}{|>{\raggedright}m{2in} |>{}m{3.5in} | >{}m{0.8in}| >{}m{0.3in} |>{}m{0.7in} |} \hline
    \textbf{Author(s)} & \textbf{Title} & \textbf{Type} & \textbf{Year} & \textbf{Cited-by} \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
    F.M.~Cardullo, A.V.~Ercole, J.A.~Houck, L.C.~Kelly &
    {A}lgorithm for {S}imulating {A}tmospheric {T}urbulence and {A}eroelastic {E}ffects on {S}imulator {M}otion {S}ystems &
    techreport &
    2012 & 
    0 \\ \hline
\end{longtable}}
\begin{landscape}
\makebox[4.2in]{\smash{\raisebox{-12.9cm}{\smash{\box0}}}}
\end{landscape}
\end{document}

enter image description here

Related Question