将项目符号以表格形式放置

将项目符号以表格形式放置

我想让项目以表格形式显示,但是,当我尝试将这些项目放在表格中时,出现错误...代码如下:

\documentclass[11pt,a4paper,sans]{moderncv} 
\moderncvstyle{casual} 
\moderncvcolor{blue}

\usepackage{lipsum} 
\usepackage[scale=0.75]{geometry}

\firstname{John} 
\familyname{Smith}


\title{Curriculum Vitae}
\address{Street}{City, St. 1111}
\mobile{(000) 000 0000}
\email{[email protected]}

\begin{document}

\makecvtitle


\section{Coursework}


\cventry{2012--Present}{1\textsuperscript{st} Year Analyst}{\textsc{Lehman Brothers}}   {Los Angeles}{}{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.
\newline{}\newline{}
Detailed achievements:
\begin{itemize}
\item class 1 
\item class 2 
\item class 3 
\item class 4 
\end{itemize}}

\end{document}

我怎样才能让项目显示为:

o class 1     o class 2
o class 3     o class 4

答案1

首先,您需要选择一个项目符号,或者搜索 moderncv 的源代码以找出他们对 \item 使用的项目符号。\myitem 很接近,但不完全相同。

\documentclass[11pt,a4paper,sans]{moderncv} 
\moderncvstyle{casual} 
\moderncvcolor{blue}

\usepackage{lipsum} 
\usepackage[scale=0.75]{geometry}

\firstname{John} 
\familyname{Smith}


\title{Curriculum Vitae}
\address{Street}{City, St. 1111}
\mobile{(000) 000 0000}
\email{[email protected]}

\newcommand{\myitem}{{\large\color{blue}$\circ$}\hspace{5pt}}%just a bullet

\begin{document}

\makecvtitle


\section{Coursework}


\cventry{2012--Present}{1\textsuperscript{st} Year Analyst}{\textsc{Lehman Brothers}}   {Los Angeles}{}{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.
\newline{}\newline{}
Detailed achievements:
\newline
\begin{tabular}{l@{\hspace{20pt}}l}
\myitem class 1 & \myitem class 2\\
\myitem class 3 & \myitem class 4
\end{tabular} 
}

\end{document}

第一的

或者,您可以做这样的事情。

\begin{minipage}{.2\textwidth}
\begin{itemize}
\item class 1
\item class 3
\end{itemize}
\end{minipage}
%
\begin{minipage}{.2\textwidth}
\begin{itemize}
\item class 2
\item class 4
\end{itemize}
\end{minipage}

第二

也可以实现 Tikz 矩阵。常规的 & 符号使用似乎与 moderncv 类不兼容。

\begin{tikzpicture}
\matrix[anchor=west,column sep = 20pt,ampersand replacement = \&]
 {
  \node{\myitem class 1}; \& \node{\myitem class 2}; \\
  \node{\myitem class 3}; \& \node{\myitem class 4}; \\
 };
\end{tikzpicture}

您还需要:

\usepackage{tikz}
\usetikzlibrary{matrix}

第三

相关内容