多页表格的格式或多或少可以接受,但最后一页会恢复为默认边距。
(小问题:我认为我无法使用 \textheight 使表格填满页面的高度是一个新手错误。)
代码示例从 15 页缩短为,但仍然太长:
\documentclass[letterpaper,10pt,notitlepage]{report}
%%\usepackage{fullpage}
\usepackage[utf8x]{inputenc}
\usepackage{longtable}
\begin{document}
\title{\textit{mnp} Model}
\author{ Gregg Hauser}
\maketitle
\begin{abstract}
\end{abstract}
\begingroup
% lousy job of formatting the page - heading and page number are way left of center ...
\setlength{\hoffset}{-1.25in}
\setlength{\voffset}{-.5in}
\setlength{\topmargin}{0pt}
\setlength{\textheight}{9in}
%
%chapter Unsolved Problems in Physics
\textit{mnp} Model and the Unsolved Problems in Physics\\
http:\slash \slash en.wikipedia.org\slash wiki\slash List\_of\_unsolved\_problems\_in\_physics\\
\\
\begingroup
\newskip\LTpre \LTpre=0pt
\newskip\LTpost \LTpost=0pt
\begin{longtable}{ p{1in} p{.7in} p{3.5in} p{1.5in} }
%%\hline
% use & to separate \\ \hline to end
Category\slash Issue & Date & Comments & Confidence \\ \hline
\endfirsthead
\multicolumn{4}{c}%
{\tablename\\
hetable\ -- \textit{Continued from previous page}} \\ %% \hline
Category\slash Issue & Date & Comments & Confidence \\ \hline
\endhead
\\
\multicolumn{4}{l}{\textbf{Quantum gravity, cosmology, general relativity}} \\ %% \hline
\raggedright Vacuum catastrophe & 2011-11-05 & 10\^14 GV\slash m3 as vacuum energy density (higher than other numbers?) -
does that suggest that a figment has a known size? In the \textit{mnp} Model a cubic meter of space could be empty
or could have an integer number of figments. Gravity (m-figments) would still work through such a region
(no gravitational effects in truly empty regions, though). Particles might “stop” but would be bringing in figments,
so will not stay in place. In “our neighborhood”, if each
(calculated) 1x10\^-9erg per cm\^3 or 10\^-16J or 6.2415x10\^2eV per cm\^3 or 6.2415x10\^11eV\slash m\^3 & low \tabularnewline %% \hline
Quantum Gravity & 2011-11-05 & The nature of the \textit{mnp} Model.
The model suggests that objects appear lighter to heavier than terrestrial gravity would suggest as follows:
black holes appear lighter (and lighter yet from other galaxies),
terrestrial objects appear “normal” at intermediate distances but lighter at inter galactic distances,
emissive objects like the sun appear heavier than terrestrial objects at all distances,
but may appear “lighter” as the distance increases,
and massively emissive objects such as super novas appear much more massive than they (were).
Gravity is propagated at the speed of light (and less). & high \\ %% \hline
Black Holes & 2011-11-05 & The “thermal” radiation emitted by black holes is m-figments,
which are emitted (and need to be emitted so that black holes participate in gravitation).
“Information” in the number of m, n, and p figments remains. Structures remain,
though the \textit{mnp} Model sees more rearrangements of structure than particle physics does.
Neutrinos may pass through black holes, though greater contents may reduce the odds of transit.
The neutrinos emerging would be mediators of (long distance) gravity as well. & high \\ %% \hline
\raggedright Quasiparticles and Phonons & 2011-10-29 & Looking at the Wikipedia phonon article,
the suggestion that Fourier analysis proves quantum effects strikes the author as a tautology.
A finite Fourier transform on a finite field will only yield wavelengths as integral multiples
(or rational fractions at best) which when inverted will leave continuities out of the picture.
Fourier analysis is very useful for calculation and maybe for understanding "points of view" and possibly for finding valleys or peaks in potential.
The author is not comfortable with discrete analysis creating quasi particles that then interact with electrons.
Maybe better left unsaid in professional company. & medium low
\tabularnewline %% \hline
\end{longtable}
\endgroup
unreviewed 2012-08-12
\endgroup
\end{document}
答案1
边距
您已将边距变化置于 内begingroup
,因此当组结束时它也会终止。
如果您的目的begin{group}
是更改文档部分内容的边距,CTAN 上有几个更好的选项。请参阅此我怎样才能更改部分文本的边距?询问几个不同的可能性。
如果您需要在整个文档中使用非常小的边距,我建议您typearea
使用非常大的 DIV 因子加载包:
\usepackage[DIV=20]{typearea}
使类型块足够宽以适应您的表格。_您可以通过将该部分放在 -environment 中来缩小文档开头的边距addmargin
。
由于页面之间没有分隔行,所以页面没有填满longtable
。有些单元格包含大量文本,这些文本将被推到下一页。要么减少文本,要么手动拆分表格。
LT左
如果只将表格向左移动,而不改变整个文档的边距,您可以尝试使用这些命令,这些命令是我通过参考找到的Ulrike Fisher 在 comp.text.tex 上的回答, 看如何在 classicthesis 中更改横向长表的边距,更新了海科·奥伯迪克的建议(参考下面的评论):
\setlength{\LTleft}{0pt plus 1fill minus 1fill}%
\setlength{\LTright}{\LTleft}
此代码将表格置于边距的中心。
新MWE
我已经从你的代码中创建了一个新的 MWE。我添加了一些额外的包,网址为了获得更好的链接,书签以获得更好的表格规则,包括更好的行间距。另外,我建议您@{}
在列定义的开始和结束处使用以摆脱overhang
:
\documentclass[letterpaper,10pt,notitlepage]{report}
\usepackage[utf8x]{inputenc}
\usepackage{longtable}
\usepackage[DIV=9]{typearea}
\usepackage{scrextend,booktabs}
\usepackage{blindtext,url}
\begin{document}
\title{\textit{mnp} Model}
\author{Gregg Hauser}
\maketitle
\begin{abstract}
\blindtext
\end{abstract}
%chapter Unsolved Problems in Physics
\noindent\textit{mnp} Model and the Unsolved Problems in Physics\\
\url{http:\\en.wikipedia.org\wiki\List_of_unsolved_problems_in_physics}
\setlength{\LTleft}{0pt plus 1fill minus 1fill}%
\setlength{\LTright}{\LTleft}
\begin{longtable}{@{} p{1in} p{.7in} p{3.5in} p{1.5in}@{}}
\toprule
% use & to separate \\ \hline to end
Category\slash Issue & Date & Comments & Confidence \\ \midrule
\endfirsthead
\multicolumn{4}{@{}c}%
{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\ \midrule
Category\slash Issue & Date & Comments & Confidence \\ \midrule
\endhead
\multicolumn{4}{@{}l}{\textbf{Quantum gravity, cosmology, general relativity}} \\\midrule
\raggedright Vacuum catastrophe & 2011-11-05 & 10\^14 GV\slash m3 as vacuum energy density (higher than other numbers?) -
does that suggest that a figment has a known size? In the \textit{mnp} Model a cubic meter of space could be empty
or could have an integer number of figments. Gravity (m-figments) would still work through such a region
(no gravitational effects in truly empty regions, though). Particles might “stop” but would be bringing in figments,
so will not stay in place. In “our neighborhood”, if each
(calculated) 1x10\^-9erg per cm\^3 or 10\^-16J or 6.2415x10\^2eV per cm\^3 or 6.2415x10\^11eV\slash m\^3 & low \tabularnewline \midrule
Quantum Gravity & 2011-11-05 & The nature of the \textit{mnp} Model.
The model suggests that objects appear lighter to heavier than terrestrial gravity would suggest as follows:
black holes appear lighter (and lighter yet from other galaxies),
terrestrial objects appear “normal” at intermediate distances but lighter at inter galactic distances,
emissive objects like the sun appear heavier than terrestrial objects at all distances,
but may appear “lighter” as the distance increases,
and massively emissive objects such as super novas appear much more massive than they (were).
Gravity is propagated at the speed of light (and less). & high \\ \midrule
Black Holes & 2011-11-05 & The “thermal” radiation emitted by black holes is m-figments,
which are emitted (and need to be emitted so that black holes participate in gravitation).
“Information” in the number of m, n, and p figments remains. Structures remain,
though the \textit{mnp} Model sees more rearrangements of structure than particle physics does.
Neutrinos may pass through black holes, though greater contents may reduce the odds of transit.
The neutrinos emerging would be mediators of (long distance) gravity as well. & high \\ \midrule
\raggedright Quasiparticles and Phonons & 2011-10-29 & Looking at the Wikipedia phonon article,
the suggestion that Fourier analysis proves quantum effects strikes the author as a tautology.
A finite Fourier transform on a finite field will only yield wavelengths as integral multiples
(or rational fractions at best) which when inverted will leave continuities out of the picture.
Fourier analysis is very useful for calculation and maybe for understanding "points of view" and possibly for finding valleys or peaks in potential.
The author is not comfortable with discrete analysis creating quasi particles that then interact with electrons.
Maybe better left unsaid in professional company. & medium low
\tabularnewline \midrule
\end{longtable}
unreviewed 2012-08-12
\Blindtext
\end{document}