如何禁用 rSubsection 中的列表?

如何禁用 rSubsection 中的列表?

我正在制作简历,我想使用srSubsection环境。问题是当前的类文件只允许输入列表。我不知道如何修改它以允许包含文本或表格。这是子部分的代码。你能帮我修改一下吗?

多谢。

 \newenvironment{rSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
 {\bf #1} \hfill {#2} % Bold company name and date on the right
 \ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
  \\
  {\em #3} \hfill {\em #4} % Italic job title and location
  }\smallskip
  \begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
   \itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
  }{
  \end{list}
  \vspace{0.5em} % Some space after the list of bullet points
}

答案1

您想要的就是这样的东西吗?我只是使用您给出的定义,并在 中添加一个表格\item。(我还从您的定义中删除了一个空格。

如果你不喜欢领先的项目符号,你可以调用该项目作为\item[]

已编辑以显示现有列表环境中的各种可能性。在作业 1 中,我展示了如何添加表格和多个详细信息项目。在作业 2 和作业 3 中,没有提供详细信息,只有摘要。作业 3 末尾附带了一个,\item[]我使用它来提供作业 4-6 的更简洁的摘要。

\documentclass{article}
\usepackage{ifthen}
\newenvironment{rSubsection}[4]{% 4 input arguments - company name, year(s) employed, job title and location
 {\bf #1} \hfill {#2} % Bold company name and date on the right
 \ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
  \\
  {\em #3} \hfill {\em #4} % Italic job title and location
  }\smallskip
  \begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
   \itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
  }{
  \end{list}
  \vspace{0.5em} % Some space after the list of bullet points
}
\begin{document}
\noindent%
\begin{rSubsection}{Company Name, LTD}{2000-2004}{Mechanical Engineer}{Anytown, USA}
\item my blah blah blah experience goes here

\hfil\begin{tabular}{|c|c|c|}
\hline
A & B & C\\
\hline
\end{tabular}\hfil

\item I also did this...
\end{rSubsection}

\noindent%
\begin{rSubsection}{McDonalds}{1999-2000}{Cook}{Anytown, USA}
\item[]\vspace{-1.5\baselineskip}
\end{rSubsection}

\noindent%
\begin{rSubsection}{Self employed}{1997-1999}{babysitter}{Smalltown, USA}
\item[] Prior to 1999 I did the following odd jobs after school

\hfil\begin{tabular}{|c|c|}
\hline
lawn cutter & 1994 \\
\hline
rocket scientist & 1995 \\
\hline
atomic physicist & 1995 \\
\hline
\end{tabular}\hfil
\end{rSubsection}
\end{document}

在此处输入图片描述

相关内容