使用长表覆盖边距

使用长表覆盖边距

我正在尝试创建一个大表,它既宽又有很多行。我已经让长表工作并将其拆分,并设法将其变为横向。但是,由于页面底部的空白大小,表格仍然太宽,无法适合横向页面。我想覆盖表格中的正常边距下降,以便它占据更多的页面。我尝试使用几何图形,但它似乎不适用于长表。

有什么方法可以做到这一点吗?我的论文中可能会有很多这样的表格,所以我需要一个合理有效的解决方案。

\documentclass[a4paper,12pt,oneside]{article}
\usepackage{longtable}
\usepackage{geometry}
\usepackage{lipsum,pdflscape}
\usepackage{booktabs}



\begin{document}

\lipsum[1-4]



\newgeometry{ left=1cm,right=1cm,top=0.5cm, bottom=0.5cm}
\begin{landscape}
\thispagestyle{empty}

\tiny
\begin{table}
\caption{\lipsum[11]}
% Table generated by Excel2LaTeX from sheet 'without formulas'
\begin{longtable}{llllclcccc}
\toprule
           &   GenBank  &            &            &            &            &            &            &            &            \\

           &  accession &            &            &            &    Fluoro        &            & Allelic size  &            &            \\

     Locus &     number & Repeat motif & Primer sequence (5' - 3') &  Multiplex & label &        N$_{A}$ & range (bp) &    H$_{o}$/H$_{e}$ &          N \\
\midrule
 Locusname &  GH1114444 & (TG)2TTTG(TG)12TTTG & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &      6-FAM &          2 &    123-125 & 0.454/0.466 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\
           \\

 Locusname &  GH1114444 & (AC)19AG(AC)3 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &      6-FAM &          3 &    267-270 & 0.491/0.458 &        271 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\
           \\

 Locusname &  GH1114444 & (AC)6AA(AC)2(AAC)2AC(A)6 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        VIC &          5 &    273-298 & 0.612/0.598 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)10 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &      6-FAM &          3 &    124-129 & 0.39/0.367 &        272 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)12 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        PET &          3 &    271-276 & 0.655/0.642 &        264 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (TG)13(TATG)4 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        VIC &          2 &    364-368 & 0.155/0.143 &        252 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (TG)22 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &      6-FAM &          7 &    134-158 & 0.824/0.805 &        272 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (TC)5…(TC)2TT(TC)3…(TC)6AA(AC)12 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        PET &          2 &    285-287 & 0.500/0.496 &        266 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (AC)7ATACACAG(TC)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        VIC &          3 &    139-146 & 0.517/0.496 &        263 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (AC)15 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        VIC &          3 &    167-175 & 0.376/0.399 &        271 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (TG)13 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        NED &          3 &    194-198 & 0.631/0.618 &        255 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & GTTG(GTTT)2(GTT)12(T)2 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &      6-FAM &          4 &    186-198 & 0.663/0.633 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &      (GT)8 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &      6-FAM &          3 &    164-167 & 0.121/0.115 &        272 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &      (AG)7 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        NED &          2 &    175-177 & 0.213/0.231 &        267 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    (GGGA)6 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        VIC &          5 &    152-176 & 0.781/0.758 &        270 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    (GACA)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        PET &          2 &    124-132 & 0.261/0.227 &        268 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    (AAAC)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &      6-FAM &          2 &    198-209 & 0.495/0.471 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    (TTTA)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        PET &          2 &    175-178 & 0.576/0.500 &        269 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (CCT)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        NED &          2 &    151-154 & 0.246/0.227 &        268 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GAG)6 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &      6-FAM &          2 &    166-168 & 0.084/0.080 &        274 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (GT)8GA(GT)11AA(GT)5AT(GT)2 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        PET &          4 &    111-130 & 0.524/0.502 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)10 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        PET &          2 &    180-184 & 0.007/0.007 &        273 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (CT)5TT(CT)12–16 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        VIC &          3 &    197-201 & 0.600/0.628 &        270 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)12 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &      6-FAM &          2 &    200-205 & 0.489/0.497 &        272 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (AGGG)9 (ATGG)12 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        PET &          4 &    418-439 & 0.786/0.730 &        257 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)19 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        NED &          6 &    144/164 & 0.831/0.789 &        248 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    (AGC)16 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        NED &          3 &    223-232 & 0.310/0.300 &        261 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (AC)15 G (CA)10 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        NED &          4 &    125-133 & 0.813/0.740 &        252 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &    G(AG)13 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &      6-FAM &          2 &    260-262 & 0.393/0.398 &        270 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 & (TC)4T(CTTT)5 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        VIC &          2 &    192-196 & 0.517/0.498 &        271 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (CA)16 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &        PET &          3 &    202-206 & 0.580/0.538 &        269 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (TG)13 & F: TTTTTTTTTTAAAAAAAAAAAAA &          1 &       FAMa &          7 &    329-346 & 0.869/0.838 &        259 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (GT)15 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        NED &          5 &    281-287 & 0.480/0.549 &        221 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (CA)17 & F: TTTTTTTTTTAAAAAAAAAAAAA &          2 &        PET &          7 &    173-205 & 0.785/0.735 &        260 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\

 Locusname &  GH1114444 &     (AC)11 & F: TTTTTTTTTTAAAAAAAAAAAAA &          3 &        NED &          3 &    194-198 & 0.621/0.577 &        243 \\

           &            &            & R: GGGGGGGGGGGGGGGGGGGGGG &            &            &            &            &            &            \\
\bottomrule
\end{longtable}
\end{table}
\end{landscape}
\restoregeometry

\lipsum[1]
\end{document}



\end{document}

答案1

以下是如何执行此操作的示例。正如 Marco 已经评论的那样,通常最好提供一个例子。这样您将获得最能解决您问题的答案。

\documentclass{article}
\usepackage{longtable}
\usepackage{lipsum,pdflscape}

\usepackage{geometry}
\geometry{left=5cm,right=5cm}%fairly narrow for demonstration

\begin{document}

\lipsum[1-4]

\newgeometry{left=1cm,right=1cm,top=0.5cm,bottom=0.5cm}
\begin{landscape}
\thispagestyle{empty}
\begin{longtable}{p{\linewidth}}
\lipsum[1]
\end{longtable}
\end{landscape}
\restoregeometry%get the old one pack
\lipsum[1]
\end{document}

它使用几何包为景观部分提供新的几何图形。如果之后继续使用普通文本,则应恢复旧几何图形

在此处输入图片描述

相关内容