Latex中的Marginsize恢复显示尺寸

时间:2014-09-01 17:34:59

标签: latex margins

我使用Latex编写简历,但是简历doc类型的默认边距太宽。解决此问题的最佳方法是使用anysize包然后设置边距大小,但这样做会导致" =。5 = .75"在pdf中显示我的标题之前。这是标题代码

% LaTeX resume using res.cls
\documentclass[margin]{res}
% \usepackage[margin=0.75in,bottom=.5in,top=.5in]{geometry}
\usepackage[none]{hyphenat}%%%%
\usepackage{anysize}
\setlength{\textwidth}{5.8in} % set width of text portion

\begin{document}

\marginsize{.5}{.5}{.75}{.75}

% Center the name over the entire width of resume:
\centerline{\large\bf John Doe}

1 个答案:

答案 0 :(得分:3)

您需要使用某种度量单位指定长度。例如:

\marginsize{.5in}{.5in}{.75in}{.75in}

但是,正如anysize README

中所述
  

此套餐已过时。使用包typearea来定义您的   边距排版正确。使用包geometryvmargin   其他一切。

我的建议是坚持geometry包来设置您的文档布局。另外,不要使用resume来设置简历。有moderncv作为替代,或者你可以在默认的article类中做得很好。