如何定制此类项目符号:
代码 :
\documentclass[11pt,a4paper,french]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
% Largeur de la colonne pour les dates
\setlength{\hintscolumnwidth}{2.5cm}
\usepackage{babel}
\firstname{John}
\familyname{Smith}
\title{Graphic Designer}
\makeatletter
\newcommand\personaltitle{
\def\phonesdetails{}
\collectionloop{phones}{ \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
\par\noindent\begin{tabular}{@{}l@{}}
{\LARGE\textbf{\@firstname\ \@lastname}} \\
\@addressstreet \\
\@addresscity \\
Âge:\ \@extrainfo \\
\mobilephonesymbol:\ \collection@phones@item \\
\emailsymbol:\ \emaillink{\@email} \\
\githubsocialsymbol:\ \httplink{\@homepage} \\
\end{tabular}\par%\noindent\rule{\linewidth}{1pt}\par%
}
\begin{document}
\cventry{d}{c}{b}{a}{}{ \begin{itemize}
\item aaa.
\end{itemize}}
\end{document}
多谢 !
答案1
可以改变labelitemi
所有环境的定义itemize
并将它们放置在序言中。
\documentclass[11pt,a4paper,french]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
%\usepackage{label}
\firstname{John}
\familyname{Smith}
\title{Graphic Designer}
\renewcommand{\labelitemi}{\scriptsize\color{blue}{$\circ$}}
\begin{document}
\begin{itemize}
\item first
\item second
\end{itemize}
\end{document}
第二版本
如果需要,babel
可以使用命令在序言中enumitem
定义itemize
符号\setlist
(第 9 页,enumitem
文档)。
\documentclass[11pt,a4paper,french]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
\usepackage{babel}
\usepackage{enumitem}
\firstname{John}
\familyname{Smith}
\title{Graphic Designer}
\setlist [itemize,1]{label=\scriptsize\color{blue}{$\circ$}}
\begin{document}
\begin{itemize}
\item first
\item second
\end{itemize}
Some text
\begin{itemize}
\item Another first item
\item And a second one
\end{itemize}
\end{document}
答案2
答案3
启用法语 Babel 语言后,我得到了 Ugly Dash。为了找回这些漂亮的项目符号,我从 moderncv 复制代码:
\newcommand*{\marvosymbol}[1]{{\fontfamily{mvs}\fontencoding{U}\fontseries{m}\fontshape{n}\selectfont\char#1}}
\usepackage{enumitem}
\setlist[itemize,1]{label={\strut\textcolor{color1}{\marvosymbol{123}}}}
您还可以使用以下方法使用完整的圆圈:
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\large\rmfamily\textbullet}}