我想在简历末尾添加我在课堂上写的签名res
(可选择margin
)。我该怎么做?
这是我的最小工作示例:
\documentclass[margin, 10pt]{res}
\usepackage{helvet}
\setlength{\textwidth}{5.1in}
\begin{document}
\moveleft.5\hoffset\centerline{\large\bf John Smith} % Your name at the top
\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
\moveleft.5\hoffset\centerline{123 Broadway}
\moveleft.5\hoffset\centerline{City, State 12345}
\moveleft.5\hoffset\centerline{(000) 111-1111 or (111) 111-1112}
\begin{resume}
\section{EDUCATION}
{\sl Bachelor of Science,} Interdisciplinary Science \\
Rensselaer Polytechnic Institute, Troy, NY, expected December 1990 \\
Concentration: Computer Science \\
Minor: Management
\end{resume}
\end{document}
我的问题是,当我尝试嵌入我的签名时\end{resume}
,它并不完全在左侧。
答案1
此类margin
的选项具有将左边距移动对应于 的量的效果\sectionwidth
。您需要一种方法来提供左边距中的文本(如部分标题)或遍布整个页面的文本。以下是实现此目的的一些代码:
\documentclass[margin, 10pt]{res}
\usepackage{helvet}
\setlength{\textwidth}{5.1in}
\newcommand{\lmargintext}[1]{\hbox to 0pt{\hss \vtop{\hsize=\sectionwidth #1}}}
\newlength{\bodywidth}
\setlength{\bodywidth}{\textwidth}
\newenvironment{fullwidthtext}{\hbox to \textwidth\bgroup\hss
\vtop\bgroup\hsize=\sectionwidth\advance\hsize by \bodywidth}{\egroup\egroup}
\begin{document}
\moveleft.5\hoffset\centerline{\large\bf John Smith} % Your name at the top
\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
\moveleft.5\hoffset\centerline{123 Broadway}
\moveleft.5\hoffset\centerline{City, State 12345}
\moveleft.5\hoffset\centerline{(000) 111-1111 or (111) 111-1112}
\begin{resume}
\section{EDUCATION}
\textsl{Bachelor of Science,} Interdisciplinary Science \\
Rensselaer Polytechnic Institute, Troy, NY, expected December 1990 \\
Concentration: Computer Science \\
Minor: Management
\lmargintext{My Name}
\medbreak
\begin{fullwidthtext}
Writing text accross the whole page is done as
follows. There may be several sentences containing plenty of text.
And new paragraphs with long text.
\end{fullwidthtext}
\end{resume}
\end{document}
上述命令模仿了类构建节标题的方式。类的源代码指出,此类命令仍有待定义。
上面定义的环境fullwidthtext
将其参数打包到一个框中,因此不会跨页。这可能正是您签名所需要的。但是,允许分页的另一种基于列表的定义是:
\newenvironment{fullwidthtext}{\list{}{\leftmargin-\sectionwidth\itemindent0pt}\item[]}{\endlist}
答案2
你必须向左移动\hoffset
\documentclass[margin, 10pt]{res}
\usepackage{helvet}
\setlength{\textwidth}{5.1in}
\begin{document}
\moveleft.5\hoffset\centerline{\large\bf John Smith} % Your name at the top
\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip
\moveleft.5\hoffset\centerline{123 Broadway}
\moveleft.5\hoffset\centerline{City, State 12345}
\moveleft.5\hoffset\centerline{(000) 111-1111 or (111) 111-1112}
\begin{resume}
\section{EDUCATION}
{\sl Bachelor of Science,} Interdisciplinary Science \\
Rensselaer Polytechnic Institute, Troy, NY, expected December 1990 \\
Concentration: Computer Science \\
Minor: Management
\end{resume}
\hspace{-\hoffset}Signature
\end{document}