4

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.

0

2 Answers 2

2

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

3
  • 1
    Surely it can not be?, a whole document without loading a package with the letters stack somewhere in its name:-) Apr 16, 2014 at 14:34
  • @DavidCarlisle LOL! Perhaps I should add it to the preamble for old time's sake Apr 16, 2014 at 14:35
  • @DavidCarlisle Of course, you rightly jest about my ignorance when it comes to LaTeX. As they say, "if your only tool is a hammer, then eventually every problem begins looking like a nail." You can substitute "stackengine" and "stack" as appropriate. Apr 17, 2014 at 9:58
3

LaTeX complains a bit but:

\documentclass{article}

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

\begin{document}

{\addtolength\textwidth{5cm}
\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}
9
  • Am I misreading it, or did your page number shift and you violated the right margin, while leaving the left intact? Apr 16, 2014 at 13:45
  • 1
    @StevenB.Segletes No I did all those things:-) Apr 16, 2014 at 13:49
  • @StevenB.Segletes "violated" makes it sound bad but it is not so different from \enlargethispage which always steals space from the bottom, never the top. Apr 16, 2014 at 13:51
  • Perhaps "asymmetrically enhanced the margin" would sound cushier. Please accept my apologies :^) Apr 16, 2014 at 14:08
  • 2
    @Pietair try with \addtolength\textwidth{5cm}\addtolength\oddsidemargin{-2.5cm} Apr 16, 2014 at 14:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .