第二列的文本未在应有的位置开始

第二列的文本未在应有的位置开始

问题

\documentclass[margin]{res}[12pt]
\usepackage{nth}
\usepackage[T1]{fontenc}

\setlength{\textwidth}{5.1in}


\makeatletter
\let\origsection\section
\renewcommand\section{\@ifstar{\starsection}{\nostarsection}}

\newcommand\nostarsection[1]
{\sectionprelude\origsection{#1}\sectionpostlude}

\newcommand\starsection[1]
{\sectionprelude\origsection*{#1}\sectionpostlude}

\newcommand\sectionprelude{%
  \vspace{1em}
}

\newcommand\sectionpostlude{%
  \vspace{1em}
}
\makeatother


\begin{document}

%----------------------------------------------------------------------------------------


\Huge
\moveleft.5\hoffset\centerline{CURRICULUM VITAE}
\Large
\moveleft.5\hoffset\centerline{aaaaaaaaaaaaaaaaaaaaaaaaaaa} 
\moveleft.5\hoffset\centerline{\nth{1} dadad, dadwraf,
afafaf} 

%----------------------------------------------------------------------------------------
\large
\begin{resume}

\Large
\section{University:} \large
B.Sc of Pure Mathematics \\
University of something

\end{resume}
\end{document}

答案1

我会坚持使用课程指定的字体大小,但如果您必须使用\Large常规\large文档内容,您就必须做一些准备工作:

在此处输入图片描述

\documentclass[margin]{res}% http://ctan.org/pkg/res
\usepackage{nth,changepage}
\newcommand{\Lstrut}{{\Large\strut}}
\let\oldsection\section
\renewcommand{\section}[1]{\oldsection{\Large#1:}\Lstrut\ignorespaces}
\begin{document}

%----------------------------------------------------------------------------------------

\begin{adjustwidth}{-\hoffset}{0pt}
\begin{center}
  \Huge CURRICULUM VITAE

  \bigskip

  \Large aaaaaaaaaaaaaaaaaaaaaaaaaaa

  \nth{1} dadad, dadwraf, afafaf
\end{center}
\end{adjustwidth}
%----------------------------------------------------------------------------------------
\begin{resume}
\large
\section{University}
B.Sc of Pure Mathematics \\
University of something
\end{resume}
\end{document}

还请考虑moderncv用于设置简历的类。

相关内容