简历要点在两行之间错误对齐

简历要点在两行之间错误对齐

我正在尝试创建一份简历,但当我使用带有副标题的 itemize 时,项目符号会出现在两行之间,我希望它水平放置在顶行旁边。tex 文件是

\documentclass[letterpaper,10pt]{article}
\newlength{\outerbordwidth}
\pagestyle{empty}
\raggedbottom
\raggedright
\usepackage[svgnames]{xcolor}
\usepackage{framed}
\usepackage{hyperref}
\usepackage{tocloft}
\usepackage{datetime}
\usepackage{lipsum}
\usepackage{turnthepage}
\usepackage{array}



%-----------------------------------------------------------
%Edit these values as you see fit

\setlength{\outerbordwidth}{1pt}  % Width of border outside of title bars
\definecolor{shadecolor}{gray}{0.95}  % Outer background color of title bars (0 = black, 1 = white)
\definecolor{shadecolorB}{gray}{0.95}  % Inner background color of title bars


%-----------------------------------------------------------
%Margin setup

\setlength{\evensidemargin}{-0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\oddsidemargin}{-0in}
\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}
\setlength{\tabcolsep}{0in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7in}
\setlength{\topmargin}{-0.3in}
\setlength{\topskip}{0in}
\setlength{\voffset}{0.1in}


%-----------------------------------------------------------
%Custom commands
\renewcommand{\turnthepage}{\itshape [Please turn over]}
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{\vspace{8pt}
    \parbox{\textwidth}{\setlength{\FrameSep}{\outerbordwidth}
        \begin{shaded}
            \setlength{\fboxsep}{0pt}\framebox[\textwidth][l]{\setlength{\fboxsep}{4pt}\fcolorbox{shadecolorB}{shadecolorB}{\textbf{\sffamily{\mbox{~}\makebox[6.762in][l]{\large #1} \vphantom{p\^{E}}}}}}
        \end{shaded}
    }\vspace{-5pt}
}
\newcommand{\ressubheading}[4]{
    \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
        \textbf{#1} & #2 \\
        \textit{#3} & \textit{#4} \\
    \end{tabular*}\vspace{-6pt}}

\def\hyph{-\penalty0\hskip0pt\relax}
%-----------------------------------------------------------

\begin{document}

    \begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
        \textbf{\Large Steve Waugh} \\
        Ph.D. Student, University of Adelaide & [email protected] / (999) 534-9194\\
    \end{tabular*}
    \\
    


    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \resheading{Work Experience}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \begin{itemize} 
        
        \item \ressubheading{Graduate Research Assistant}{}{SY Simulation Center(in collaboration with OperaHouse),Perth}
        {May 2015 -- Present}

        
        \begin{itemize}
            \resitem{ E.. }
        \end{itemize}
        
        \begin{itemize}
            \resitem{ .. }
        \end{itemize}   
        
        \begin{itemize}
            \resitem{ .. }
        \end{itemize}   
        
        \begin{itemize}
            \resitem{ .. }
        \end{itemize} 
        
        \begin{itemize}
            \resitem{ ..}
        \end{itemize} 
        
        \item \ressubheading{Junior Research Fellow}{}{Melbourne Institute of Engineering Science and Technology}{May 1912 -- July 1914}    
        \begin{itemize}
            \resitem{AB.. }
        \end{itemize}   
        \item \ressubheading{Summer Research Fellow}{}{Sydney Institute of Science, Sydney}
        {May 1913 -- July 1913}
        
    \end{itemize}

\end{document}

不正确的对齐方式如下: 在此处输入图片描述

我希望将要点放在粗线旁边。如果有人能帮我解决就太好了。我不想完全改成另一种格式,我更希望在这种特定的简历格式中解决这个问题。

答案1

我通过两步解决了这个问题:

  1. 将 \item 移至 ressubheading 的定义。并创建 2 个表格(而不是 1 个)。

        \newcommand{\ressubheading}[4]{
            \item 
            \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
                \textbf{#1} & #2 \\
            \end{tabular*}
            \begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
                \textit{#3} & \textit{#4} \\
            \end{tabular*}
            \vspace{-6pt}
        }
    
  2. 在使用 \ressubheading 之前删除 \item。

        \ressubheading{Graduate Research Assistant}{}{SY Simulation Center(in collaboration with OperaHouse), Perth}
        {May 2015 -- Present}
    

不确定这是否是正确的方法,但它会实现您想要的效果。

相关内容