如何使用以下论文样式文件?

如何使用以下论文样式文件?

以下代码是论文样式文件中CV的一部分。

\def\vitae{\chapter*{CURRICULUM VITAE}\thispagestyle{plain}\pagestyle{plain}%
\vspace{1cm}
\fontsize{11}{12pt}\selectfont\begin{tabular}{@{}ccl}
    \hbox to 2cm{Name}&:& \@ename \\[5pt]
    \hbox to 2cm{Date of Birth}&:& \@ebirthday\\[5pt]
    \hbox to 2cm{Place of Birth}&:& \@ebirthplace\\[5pt]
    \hbox to 2cm{Address}&:& \@eaddr\\
  \end{tabular}}
\newlength{\temp@len}
\def\education#1{\vspace{1cm}
  \begin{center}\fontsize{14}{20pt}\selectfont EDUCATION
  \end{center}\vspace{.2cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=.5cm
  \advance\temp@len by.5cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
\def\endeducation{\end{list}}

\def\experience#1{\vspace{0.5cm}
  \begin{center}\fontsize{14}{20pt}\selectfont EXPERIENCES
  \end{center}\vspace{.2cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=.5cm
  \advance\temp@len by.5cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
\def\endexperience{\end{list}}

\def\project#1{\vspace{0.5cm}
  \begin{center}\fontsize{14}{20pt}\selectfont PROJECTS
  \end{center}\vspace{.2cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=.5cm
  \advance\temp@len by.5cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
\def\endproject{\end{list}}

 \def\activityv#1{\vspace{0.0cm}
  \vspace{0cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=0.2cm
  \advance\temp@len by.2cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
 \def\endactivityv{\end{list}}

 \def\activityj#1{\vspace{0cm}
  \vspace{0cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=0.2cm
  \advance\temp@len by.1cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
 \def\endactivityj{\end{list}}

 \def\activityc#1{\vspace{0cm}
  \vspace{0cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=0.2cm
  \advance\temp@len by0.1cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
 \def\endactivityc{\end{list}}

但是,我不知道如何创建 \education、\experience 等部分。请告诉我如何在这些部分中创建列表。谢谢。

答案1

我想,你会像这样使用它:

\begin{education}{longest}
  \item[b] c
  \item[longest] d
\end{education}

教育

虽然您未共享的代码可能会影响外观等。我只是将其中一个片段粘贴在标准序言中:

\documentclass{article}
\makeatletter
\newlength{\temp@len}
\def\education#1{\vspace{1cm}
  \begin{center}\fontsize{14}{20pt}\selectfont EDUCATION
  \end{center}\vspace{.2cm}\settowidth{\temp@len}{#1}
  \begin{list}{}{\labelwidth=\temp@len\labelsep=.5cm
  \advance\temp@len by.5cm\leftmargin=\temp@len
  \def\makelabel##1{##1\hss}}}
\def\endeducation{\end{list}}
\makeatother
\begin{document}
\begin{education}{longest}
  \item[b] c
  \item[longest] d
\end{education}
\end{document}

相关内容