我怎样才能在乳胶中正确对齐地书写?

我怎样才能在乳胶中正确对齐地书写?

我尝试在 Latex 上写简历。格式如下图所示预期结果 我尝试使用以下代码来实现这一点:

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}

\hline
\begin{paragraph}{\textbf{EXTRA CURRICULAR ACTIVITIES}} 
\mbox{}

{Sep 2020 — Present} \hfill{\bf Project Manager, X Consultancy} \hfill 
{Groningen} \\ 
{\mbox{}} \hfill {Have gone through certain projects. Lorem ipsum, or 
lipsum as it is 
sometimes known, is dummy text used in laying out print, graphic or web 
designs. The passage 
is attributed to an unknown} \hfill {}

\end{paragraph}
\end{document}

我得到了以下结果。我的结果

有人能帮助我如何才能获得预期的结果并使中间列与项目符号完美对齐吗?

答案1

如果您真的想从 开始创建自己的 cv 样式article,我建议使用该geometry包并创建一个大的左边距,然后使用打印到该边距的宏。

以下内容可以帮助您入门:

\documentclass{article}

\newlength\leftcolwidth
\setlength\leftcolwidth{3cm}
\newlength\leftcolsep
\setlength\leftcolsep{5mm}

\usepackage
  [left=\dimexpr\leftcolwidth+\leftcolsep+3.5cm\relax,right=3.5cm]
  {geometry}

\makeatletter
\newcommand*\pagerule
  {%
    \par
    \smallskip
    \noindent
    \kern-\leftcolwidth
    \kern-\leftcolsep
    \rule{\dimexpr\textwidth+\leftcolwidth+\leftcolsep}{.4pt}%
    \par
    \smallskip
    \@doendpe % suppress indent of the next line if no blank line is following
  }

\newcommand*\entry[3]
  {%
    \par
    \noindent
    \llap{\makebox[\leftcolwidth][l]{#1}\kern\leftcolsep}%
    \textbf{#2}%
    \hfill
    \makebox{#3}%
    \par
    \medskip % vertical space below the entries
    \@afterindentfalse % don't indent the first paragraph
    \@afterheading     % don't allow page breaks
  }

% change the formatting of paragraph
\renewcommand\paragraph
  {%a
    \@startsection
      {paragraph}{4}%
      {-\dimexpr\leftcolwidth+\leftcolsep\relax}% move it into the margin
      {3.25ex \@plus 1ex \@minus .2ex}% vertical space before the heading
      {1em}% add a bit of vertical space after the heading
      {\normalfont\normalsize\bfseries}% set the wanted font
  }
\makeatother

\begin{document}

\pagerule

\paragraph{EXTRA CURRICULAR ACTIVITIES} 
\entry{Sep 2020 -- Present}{Project Manager, X Consultancy}{Groningen}
\begin{itemize}
  \item
    Have gone through certain projects. Lorem ipsum, or lipsum as it is
    sometimes known, is dummy text used in laying out print, graphic or web
    designs. The passage is attributed to an unknown
\end{itemize}
\end{document}

在此处输入图片描述

相关内容