我怎样才能删除单词 First 和 Second 后面的两个句点\cvitem
?
\documentclass[12pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{classic}
\moderncvcolor{green}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.80]{geometry}
% personal data
\name{YOLO}{UOLO}
\title{curriculum vitae}
\address{YOLO}
\phone[mobile]{000-0-000-000}
\email{[email protected]}
\begin{document}
%----- resume -------------------------------------------
\makecvtitle
\section{Professional Experience}
\cvitem{Something}{Something else}
\section{Customer Service}
\cventry{1958--1960}{First}{}{}{}{
\begin{itemize}
\item item
\end{itemize}}{}{}
\cventry{1945--1958}{Second}{}{}{}{
\begin{itemize}
\item item
\end{itemize}}{}{}
\end{document}
答案1
标点符号由\cventry
中定义的命令提供moderncvbodyi.sty
。您可以重新定义 ,\cventry
只需从定义中删除句号即可
\renewcommand*{\cventry}[7][.25em]{%
\cvitem[#1]{#2}{%
{\bfseries#3}%
\ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
\strut% %Fullstop removed
\ifx&%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
\documentclass[12pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{classic}
\moderncvcolor{green}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.80]{geometry}
\renewcommand*{\cventry}[7][.25em]{%
\cvitem[#1]{#2}{%
{\bfseries#3}%
\ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
\strut%
\ifx&%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
% personal data
\name{YOLO}{UOLO}
\title{curriculum vitae}
\address{YOLO}
\phone[mobile]{000-0-000-000}
\email{[email protected]}
\begin{document}
%----- resume -------------------------------------------
\makecvtitle
\section{Professional Experience}
\cvitem{Something}{Something else}
\section{Customer Service}
\cventry{1958--1960}{First}{}{}{}{
\begin{itemize}
\item item
\end{itemize}}{}{}
\cventry{1945--1958}{Second}{}{}{}{
\begin{itemize}
\item item
\end{itemize}}{}{}
\end{document}