尝试将以下简历模板压缩成单页时遇到问题?

尝试将以下简历模板压缩成单页时遇到问题?

我在用cv 模板如下所示:

在此处输入图片描述

如何将所有简历压缩为两列格式,以便将所有部分放在一页中?我尝试:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% Awesome CV LaTeX Template
%
% This template has been downloaded from:
% https://github.com/posquit0/Awesome-CV
%
% Author:
% Claud D. Park <[email protected]>
% http://www.posquit0.com
%
% Template license:
% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     Configuration
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Themes: Awesome-CV
\documentclass[11pt, a4paper]{awesome-cv}

%%% Override a directory location for fonts(default: 'fonts/')
\fontdir[fonts/]

%%% Configure a directory location for sections
\newcommand*{\sectiondir}{resume/}

%%% Override color
% Awesome Colors: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange
%                 awesome-nephritis, awesome-concrete, awesome-darknight
%% Color for highlight
% Define your custom color if you don't like awesome colors
\colorlet{awesome}{awesome-red}
%\definecolor{awesome}{HTML}{CA63A8}
%% Colors for text
%\definecolor{darktext}{HTML}{414141}
%\definecolor{text}{HTML}{414141}
%\definecolor{graytext}{HTML}{414141}
%\definecolor{lighttext}{HTML}{414141}

%%% Override a separator for social informations in header(default: ' | ')
%\headersocialsep[\quad\textbar\quad]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     3rd party packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Needed to divide into several files
\usepackage{import}
\usepackage{multicol}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials
\name{Claud D.}{Park}
\address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 22738, Rep. of KOREA}
\mobile{(+82) 10-9030-1843} 
%%% Social
\email{[email protected]}
\homepage{www.posquit0.com}
\github{posquit0}
\linkedin{posquit0}
%%% Optionals
\position{Software Engineer{\enskip\cdotp\enskip}Security Expert}
\quote{``Make the change that you want to see in the world."}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     Content
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Make a footer for CV with three arguments(<left>, <center>, <right>)
\makecvfooter
  {\today}
  {Claud D. Park~~~·~~~Résumé}
  {\thepage}

\begin{document}
%%% Make a header for CV with personal data
\makecvheader
\begin{multicols}[2]
%%% Import contents
\import{\sectiondir}{education.tex}
\import{\sectiondir}{experience.tex}
\import{\sectiondir}{extracurricular.tex}
\import{\sectiondir}{honors.tex}
\import{\sectiondir}{presentation.tex}
\import{\sectiondir}{writing.tex}
\import{\sectiondir}{committees.tex}
\end{multicols}
\end{document}

但是,我得到了这个输出:

在此处输入图片描述

或者,我尝试了\begin{multicols*},但是没有用。有没有什么办法可以让文本不溢出下一列部分?

答案1

以下是一个建议:

\documentclass[11pt, a4paper]{awesome-cv}
\colorlet{awesome}{awesome-red}
\usepackage{import}
\usepackage{multicol}


\renewcommand*{\cventry}[5]{%
  \vspace{-2.0mm}
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}} L{\columnwidth - 4.5cm} R{4.5cm}}
    \ifempty{#2#3}
      {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#1} & \entrydatestyle{#4} \\}
    \multicolumn{2}{L{\columnwidth}}{\descriptionstyle{#5}}
  \end{tabular*}%
}

\renewenvironment{cvhonors}{%
  \vspace{\acvSectionContentTopSkip}
  \vspace{-2mm}
  \begin{center}
    \setlength\tabcolsep{0pt}
    \setlength{\extrarowheight}{0pt}
    \begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}} C{1.5cm} L{\columnwidth - 4.0cm} R{2.5cm}}
}{%
    \end{tabular*}
  \end{center}
}


\begin{document}

\begin{multicols}{2}

\cvsection{Education}
\begin{cventries}
  \cventry
    {B.S. in Computer Science and Engineering}
    {POSTECH(Pohang University of Science and Technology)}
    {Pohang, S.Korea}
    {Mar. 2010 - Aug. 2017}
    {
      \begin{cvitems}
        \item {Got a Chun Shin-Il Scholarship which is given to promising students in CSE Dept.}
      \end{cvitems}
    }
\end{cventries}

\cvsection{Honors \& Awards}

\cvsubsection{International}
\begin{cvhonors}
  \cvhonor
    {Finalist}
    {DEFCON 25th CTF Hacking Competition World Final}
    {Las Vegas, U.S.A}
    {2017}
  \cvhonor
    {Finalist}
    {DEFCON 22nd CTF Hacking Competition World Final}
    {Las Vegas, U.S.A}
    {2014}
\end{cvhonors}


\end{multicols}
\end{document}

在此处输入图片描述

\cventry您所展示的图像中的文本溢出是由于中的命令定义方式造成的awesome-cv.cls。如果将原始定义与上述 MWE 中的重新定义进行比较,您会发现唯一的区别是原始定义使用\textwidth而重新定义使用\columnwidth

还请注意,它是\begin{multicols}{2}而不是\begin{multicols}[2]您示例中的。

最后,请注意,上面的 MWE 应该会让您了解如何修改代码。我无法针对您在示例中显示的所有条目进行广泛的测试。

相关内容