调整横向页面上长表的边距

调整横向页面上长表的边距

我的最低工作示例:

\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}

结果是:

在此处输入图片描述

现在我想增加边距,以便页面上可以容纳更多行。通常我会使用:

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

但在横向模式下,这并不能产生预期的效果。

答案1

修改后的答案:

这里我使用geometry包临时重置页面尺寸,然后在表格之后重新设置。这样,应该longtable仍然可以跨页分页,这与我下面的原始解决方案不同。

\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}

在此处输入图片描述


原始答案:

这里我尝试左右对称扩展,并且不移动页码。

当然,我应该指出,既使用又试图将其压缩到一页上有点不协调longtable。这里的解决方案实际上将抵消多页特性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}

在此处输入图片描述

答案2

LaTeX 有点抱怨,但是:

\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}

相关内容