1

我试图在乳胶上写一份简历。格式如下图所示预期结果 ,我尝试使用以下代码执行此操作:

\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}

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

谁能帮助我如何获得预期的结果并将中间列与项目符号完美对齐?

4

2 回答 2

1

A sketch using packages tabularx and booktabs:

\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx,booktabs}
\usepackage[margin=25mm]{geometry}

\begin{document}

\noindent
\begin{tabularx}{\textwidth}{lX}
\toprule
\multicolumn{2}{l}{\textbf{EXTRA CURRICULAR ACTIVITIES}}\\
\midrule
Sep 2020 — Present & \textbf{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}\\
\bottomrule
\end{tabularx}

\end{document}

screenshot of output

于 2021-11-24T17:20:26.000 回答
0

使用几何包编写简历会很简单。以下代码将有所帮助:

\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}`

在此处输入图像描述

于 2021-11-12T15:25:45.270 回答