在 Latex 中为简历添加缩进

在 Latex 中为简历添加缩进

我刚开始学习使用 Latex 制作简历。我遇到的问题是,我希望将“论文”和“导师”与学位“工程硕士”对齐。我还希望将论文标题的长行换行,使其与标题的开头对齐。

我尝试使用“表格”来实现这一点,但仍然无法理解。下面是示例。

[编辑]

一个不相关的问题。我是否应该将硕士论文作为出版清单中的一项?或者我可以按照我现在的方式做?哪种方式对你来说更像教授?

[编辑结束]

\documentclass[a4paper, oneside, final]{scrartcl}
\usepackage{geometry}
\usepackage{titlesec}
\usepackage{fullpage}
\usepackage{tabularx} % table for contact information
\usepackage[hidelinks]{hyperref} % email

%------------The below is for set font for web link----------------%
\usepackage{url}      % webpage
%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}
%------------The below is for set font for web link----------------%

% For the roman numerals
\makeatletter
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother

\geometry{letterpaper,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in,headheight=0in,headsep=0in,footskip=.3in}

% Gives the nice lettering for the section headings
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{}[\titlerule]

% Puts the name up top
\newcommand{\bigname}[1]{
    \begin{center}\LARGE\scshape#1\end{center}
}


\begin{document}
\begin{center} % Centering for some reason makes the line under my name in the right spot

\bigname{My Name}
\vspace{-8pt} \rule{\textwidth}{1.5pt} % second one is width of line

\section{Education}
\begin{flushleft}
\hspace{20pt} \textbf{Ph.D. in Statistics}, University of AAA \hfill May 2017 (Expected) \\
\hspace{20pt} Dissertation: TBD \\
\hspace{20pt} Advisor: Professor XXX

\bigskip
\hspace{20pt} \textbf{M.S. in Engineering}, University of AAA \hfill December 2012 \\
\begin{tabular}{ll}
Thesis: & \textit{This is really a long time and I wish to indent it in the next line, making it aligned with "This". I also wish to make "Thesis" aligned with "M.S. in Engineering"}\\
Advisor: & Professor XXX. (I also wish to indent "Advisor" to make it aligned with "M.S. ..." \\
\end{tabular}
\end{flushleft}
\end{center}
\end{document}

这是 pdf 输出的屏幕截图。如能提供任何帮助,我们将不胜感激。

在此处输入图片描述

答案1

使用

\hspace{20pt}\begin{tabular}{@{}lp{.8\linewidth}}

开始一个新段落并在表格前插入相同的水平空间。同时将l第二列的对齐方式更改为p{}并根据需要调整宽度。

代码片段

\begin{flushleft}
\hspace{20pt} \textbf{Ph.D. in Statistics}, University of AAA \hfill May 2017 (Expected) \\
\hspace{20pt}Dissertation: TBD \\  % <----- remove blank space before D
\hspace{20pt}Advisor: Professor XXX % <----- remove blank space before A

\bigskip
\hspace{20pt}\textbf{M.S. in Engineering}, University of AAA \hfill December 2012 

\hspace{20pt}\begin{tabular}{@{}lp{.8\linewidth}}
Thesis: & \textit{This is really a long time and I wish to indent it in the next line, making it aligned with "This". I also wish to make "Thesis" aligned with "M.S. in Engineering"}\\
Advisor: & Professor XXX. (I also wish to indent "Advisor" to make it aligned with "M.S. ..." \\
\end{tabular}
\end{flushleft}

在此处输入图片描述

相关内容