我使用指定页边距的样式文件。我无法理解样式文件,但我猜它通过使用诸如 \vspace、\vskip、\vfil 之类的命令来指定底部边距。
当我用 pdflatex 编译 tex 文档时,边距,尤其是底部的边距会发生变化。当我先将文档编译为 ps 然后再编译为 pdf 时,边距很好。
你有什么想法,可能是什么原因?
样式文件的内容可以从http://tinypaste.com/c53d1访问
我使用指定页边距的样式文件。我无法理解样式文件,但我猜它通过使用诸如 \vspace、\vskip、\vfil 之类的命令来指定底部边距。
当我用 pdflatex 编译 tex 文档时,边距,尤其是底部的边距会发生变化。当我先将文档编译为 ps 然后再编译为 pdf 时,边距很好。
你有什么想法,可能是什么原因?
样式文件的内容可以从http://tinypaste.com/c53d1访问
可能是因为某些东西默认为“Letter”的页面大小,而另一个路径默认为“A4”的页面大小(反之亦然)。您可能会查看\documentclass
文档中的指令是否允许您指定页面大小。如果您使用的是 ps2pdf,您可能还必须指定输出页面大小。此外,在使用 dvips 时不要忘记指定目标设备 ( -P
IIRC),以便它在 PDF 中正确呈现计算机现代字体。
My teacher uses this structure:
% Nadefinujeme stranu A5
%
\setlength{\paperwidth}{148mm}
\setlength{\paperheight}{210mm}
% Pro PDFTeX potrebujeme navic definovat \pdfpagewidth
% a \pdfpageheight. Standardni TeX ale tyto registry nezna,
% nemuzeme do nich tedy hned prirazovat. Proto se nejprve
% trikem zeptame, jestli se preklada pomoci PDFTeXu
\ifx\pdfoutput\undefined
\else% Zda se, ze \pdfoutput je definovany, tj. pouziva se PDFTeX
\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
\fi
%
In the comments there are:
A5 page definition:
For PDFTeX we also need to define \pdfpaperwidth
and \pdfpaerheight
. But standard TeX doesn't know those registers so we cannot assign them. Thats why we use a trick to ask whther PDFTeX is used.
It seems \pdfoutput
is defined so PDFTeX is used.
I hope it should help you with solving the problem.
尝试通过运行设置页面大小texconfig
。这对我来说听起来像是一个字母<->
a4 转换问题。(这在过去曾多次惹恼我!)
我猜它通过使用诸如\vspace、\vskip、\vfil 之类的命令来指定底部边距。
不,这是指定页面设计的部分:
\oddsidemargin9.6mm \evensidemargin9.6mm \topmargin-7.mm \headheight20pt \textwidth155mm \textheight242mm \parindent1cm
我认为您的问题是当您在 LaTeX 和 pdfLaTeX 之间切换时,a4 和 letter 之间的页面大小切换,尽管这可能看起来很奇怪。您应该会发现在 fbe_tez 之前加载几何包会有所帮助。例如,
\usepackage{geometry,fbe_tex}
几何设置物理纸张大小,这是一个相对现代的(参见设置页面布局的样式)功能。