我的简历快完成了,但唯一的问题是提供水平线以增加间距和文章的整洁感。
这是我正在寻找的风格-
但如果我使用\hrulefill
它,它不会仅仅从标题底部开始,而需要换行才能产生效果。
其次,有没有办法可以减少两颗\items
子弹之间的间距?
这是代码!我无法使用,\hline
因为我不太熟悉它。\rule
工作原理几乎相似,\hrule
所以问题也一样!除此之外,我希望规则比第一张图片中的标题大一点~
请注意,这\headtitle
是我为了简化工作而使用的自定义命令〜
{\bfseries{FREELANCER CONTRIBUTION}}
\hrulefill
\headtitle{Freelancer Author}{Linux / Online Magazines}{2009-2013}
\begin {itemize}
\item Published more than 30 artciles across various print and online magazines.
\item Worked on popular publications like Linux Journal , Linux Pro Magazine, Linux For You \par(now Open Source for You) and Muktware.
\item Covered major critique on Secure Boot , GPT, Gnome Extensions, Overclocking etc.
\end{itemize}
请帮助:)
问候
答案1
一种可能性是使用环境tabularx
:
\documentclass{article}
\usepackage{geometry}
\usepackage{booktabs,tabularx,ragged2e}
\newcommand\myhead[4]{%
\par\noindent%
\begin{tabularx}{\linewidth}{@{}>{\bfseries\RaggedRight}X>{\bfseries\Centering}X>{\bfseries\RaggedLeft}X@{}}
\multicolumn{3}{@{}l@{}}{\bfseries #1}\tabularnewline\midrule
#2 & #3 & #4 \tabularnewline
\end{tabularx}\par%
}
\newcommand\myheadtitle[1]{%
\par\noindent\textbf{#1}\par\nointerlineskip\noindent\rule[-.2em]{\linewidth}{.4pt}\par%
}
\newcommand\headtitle[3]{\par\noindent\bfseries #1 \hfill #2 \hfill #3\par\normalfont}
\begin{document}
\myheadtitle{FREELANCER CONTRIBUTION}
\headtitle{Freelancer Author}{Linux / Online Magazines}{2009-2013}
\myhead{FREELANCER CONTRIBUTION}{Freelancer Author}{Linux / Online Magazines}{2009-2013}
\end{document}
答案2
这是另一种选择。
- 规则命令是
\rule[location]{width}{thickness}
- 调整两个项目之间的空间。
\setlength\itemsep{-xx dimension}
\headtitle
由于 OP 没有提供,因此被禁用。
代码
\documentclass{article}
\begin{document}
{\bfseries{FREELANCER CONTRIBUTION}}
%\hrulefill
\rule[0pt]{\textwidth}{0.1cm}
%\headtitle % This is removed since it is customized command
{Freelancer Author}{Linux / Online Magazines}{2009-2013}
\begin {itemize}
\setlength\itemsep{-0.4\baselineskip}
\item Published more than 30 artciles across various print and online magazines.
\item Worked on popular publications like Linux Journal , Linux Pro Magazine, Linux For You \par(now Open Source for You) and Muktware.
\item Covered major critique on Secure Boot , GPT, Gnome Extensions, Overclocking etc.
\end{itemize}
\end{document}