我试图在其中放置一张桌子以更好地利用空间,并避免右侧的所有空白,但我得到了很大的空隙。这给了我一个巨大的空间
\begin{tabular}{m{1cm} m{1cm}|m{1cm}}
\cline{2-3}
\ecvblueitem[5pt]{\begin{myfont}03/18--07/18\end{myfont}}
{\begin{myfont}\textcolor{ecvsectioncolor}{position} $\:$ $\:$
\textcolor{ecvtextcolor}{employer}\end{myfont}}
\ecvitem[5pt]{\begin{myfont}\textcolor{ecvtextcolor}{duties}\end{myfont}}{
\begin{myfont}
\textcolor{ecvtextcolor}{
{
\begin{ecvitemize}
{\item blah blah blah
\item yak yak yak}
\end{ecvitemize}
}
}\end{myfont}
} & & \tabularnewline
\end{tabular}
\end{table}
我希望它像下面这样,但职责在雇主下方左侧。有人能帮忙吗?(抱歉我在这方面很差劲)
答案1
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document
\documentclass{europasscv} % use defaults
\begin{document}
Just one Work Experience section
to show structure in question per the template so fonts are within master not here
\ecvtitle{March 2018 -- July 2018}{Position}
\ecvitem{}{Employer \newline Address (United Kingdom)}
\ecvitem{}{
\begin{ecvitemize}
\item evaluating blah blah blah
\item yak yak yak
\end{ecvitemize}
}
\ecvitem{}{\ecvhighlight{Business or sector}\quad European institution}
\end{document}
答案2
嗯,您给出的代码片段中存在几个问题:
- 在这种情况下切勿使用环境
table
,您真的不希望表格在您的简历周围漂浮...... \begin{table}
你错过了代码中的前导...- 您不能像以前那样混合类
europass-cv
和环境的命令......tabular
为了得到你想要的东西,你有两种可能性,第一种是只使用你使用的类提供的命令来完成,第二种是通过额外加载包tabularx
和使用环境来完成的tabularx
:
% Possibility one % <========================================
\ecvblueitem{03/18--07/18}%
{%
\textcolor{ecvsectioncolor}{position} $\:$ $\:$
\textcolor{ecvtextcolor}{employer}
}
\ecvitem{\textcolor{ecvtextcolor}{duties}}{duties %
\begin{ecvitemize}
{\item blah blah blah
\item yak yak yak}
\end{ecvitemize}
}
% Possibility two % <========================================
%\usepackage{tabularx}
\ecvblueitem{03/18--07/18}%
{%
\begin{tabularx}{\linewidth}[t]{l@{~}l@{~}X}
\textcolor{ecvsectioncolor}{position} & employer & \\
& duties & \textbullet\ blah blah blah \\
& & \textbullet\ yak yak yak
\end{tabularx}
}
请参阅以下完整的 mwe(基于该类的示例 cv(原文如此!)):
% https://tex.stackexchange.com/questions/494707/europasscv-trying-to-create-table
% !TEX encoding = UTF-8
% !TEX program = pdflatex
% !TEX spellcheck = en_GB
\documentclass[english,a4paper]{europasscv}
\usepackage[english]{babel}
\usepackage{tabularx}
\ecvname{Katie Smith}
\ecvaddress{12 Strawberry Hill, Dublin 8 Éire/Ireland}
\ecvmobile{+353 555 123 555}
\ecvtelephone{+353 127 6689}
\ecvworkphone{+353 999 888 777}
\ecvemail{[email protected] [email protected]}
\ecvhomepage{www.myhomepage.com www.another-homepage.com}
% \ecvgithubpage{www.github.com/smith}
% \ecvgitlabpage{www.gitlab.com/smith}
% \ecvlinkedinpage{www.linkedin.com/in/katie-smith}
% \ecvorcid[label, link]{0000-0000-0000-0000}
\ecvim{AOL Messenger}{katie.smith}
\ecvim{Google Talk}{ksmith}
% \ecvgender{Female}
\ecvdateofbirth{1 March 1975}
\ecvnationality{Irish}
% \ecvpicture[width=3.8cm]{picture.jpg}
% \date{}
\begin{document}
\begin{europasscv}
\ecvpersonalinfo
\ecvbigitem{Job applied for}{European project manager}
\ecvsection{Work experience}
\ecvtitle{August 2002 -- Present}{Independent consultant}
\ecvitem{}{National Youth Council of Ireland\newline 3 Montague Street, Dublin 2, D02 V327, Ireland}
\ecvitem{}{Evaluation of European Commission youth training support measures for youth national agencies and young people}
\ecvblueitem{03/18--07/18}%
{%
\textcolor{ecvsectioncolor}{position} $\:$ $\:$
\textcolor{ecvtextcolor}{employer}
}
\ecvitem{\textcolor{ecvtextcolor}{duties}}{duties %
\begin{ecvitemize}
{\item blah blah blah
\item yak yak yak}
\end{ecvitemize}
}
%\usepackage{tabularx}
\ecvblueitem{03/18--07/18}%
{%
\begin{tabularx}{\linewidth}[t]{l@{~}l@{~}X}
\textcolor{ecvsectioncolor}{position} & employer & \\
& duties & \textbullet\ blah blah blah \\
& & \textbullet\ yak yak yak
\end{tabularx}
}
\ecvtitle{March 2002 -- July 2002}{Internship}
\ecvitem{}{European Commission, Youth Unit, DG Education and Culture \newline 200, Rue de la Loi, 1049 Brussels (Belgium)}
\ecvitem{}{
\begin{ecvitemize}
\item evaluating youth training programmes and the partnership between the Council of Europe and European Commission
\item organizing and running a 2 day workshop on non-formal education for Action 5 large scale projects focusing on quality, assessment and recognition
\item contributing to the steering sroup on training and developing action plans on training for the next 3 years. Working on the Users Guide for training and the support measures
\end{ecvitemize}
}
\ecvitem{}{\ecvhighlight{Business or sector}\quad European institution}
\end{europasscv}
\end{document}
及其结果:
我个人不会使用可能性 2,可能性 1 看起来更好,即使它不完全符合你的要求......