创建一个类来改变 TeX 文件的边距,但失败了

创建一个类来改变 TeX 文件的边距,但失败了

我目前正在尝试开发自己的简历,但是我无法制作一个可以做任何有意义的事情的 .cls 文件。到目前为止,我只是试图更改边距。

Tex 文件

\documentclass[12pt,a4paper]{resume}
%\documentclass[12pt,a4paper]{article}

\usepackage{fontspec}
\pagestyle{empty}

\begin{document}

\section{Education}
\subsection{School}

This is a test to see what the line lentgh is and for what no   t.   I should probably us Next level street art PBR elit consectetur. Sint lomo semiotics Pitchfork, cardigan id crucifix freegan letterpress listicle you probably haven't heard of them pour-over wayfarers Vice cray. Photo booth hella cred trust fund ex, normcore Banksy yr. Literally master cleanse keffiyeh tousled, lumbersexual organic selfies hoodie bitters biodiesel deserunt. Gluten-free skateboard freegan, DIY artisan laborum culpa esse. Put a bird on it cornhole aute Blue Bottle irure laboris, whatever chia. Polaroid consequat Portland blog bicycle rights, leggings cillum meditation cliche.

\end{document}

resume.cls 文件

\RequirePackage[left=0.5 in,right=0.5 in,top=4in,bottom=1in]{geometry}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2015/02/08 Class for scientist's resumes in indisty]
\LoadClass{article}

现在使用我的 resume.cls 文件,我希望边距根据几何值变薄或变厚,但是当我更改它们时,文本的长度似乎没有任何变化。请赐教!

答案1

你的顺序错了:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2015/02/08 Class for scientist's resumes in industy]
\LoadClass{article}
\RequirePackage[left=0.5 in,right=0.5 in,top=4in,bottom=1in]{geometry}

相关内容