我想删除学历部分中学位后面的逗号。我该怎么做?
\section{Education}
\cventry{Jan 2013--Dec 2018}{Bachelor's of Science in Information Systems}{University of Nowhere County}{Nowhere, NW}{\textit{}}{}
\cventry{Jun 2018--Sept 2018}{Business Analyst Nanodegree}{Udacity}{}{\textit{}}{}
完整代码如下:
\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle[center]{banking}
\moderncvcolor{black}
\usepackage[utf8]{inputenc}
\usepackage[document]{ragged2e}
\usepackage[%
scale=0.75,
% top=2cm, bottom=2cm,
showframe % <=========================================================
]{geometry}
\linespread{1.1}
\name{John}{Doe}
\address{1111 Nowhere Street, Apt 111}{Nowhere, NW}{11111}
\phone[mobile]{(100)-111-1111}
\email{[email protected]}
\social[linkedin][www.linkedin.com/in/john-doe/]{john-doe}
\social[github][github.com/johndoe]{john-doe}
\title{Business Analysis | Data Analysis | Project Management | Information Systems} %
\makeatletter
\patchcmd{\makehead}%
{\ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\}%
{\ifthenelse{\equal{\@title}{}}{}{\\}}%
{}%
{}
\patchcmd{\makehead}%
{\\[2.5em]}%
{\\[1em]}%
{}%
{}
\patchcmd{\makeletterhead}%
{\par}%
{%
\par%
\textbf{\@title}\\[2em]%
}%
{}%
{}
\patchcmd{\makecvhead}%
{\par}%
{%
\par%
{\centering\textbf{\@title}\\[2em]}%
}%
{}%
{}
\makeatother
\raggedbottom %
\begin{document}
\makecvtitle
\section{Summary}
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\end{itemize}
\section{Technical Proficiency}
Advanced Microsoft Office Suite (Word, Excel, PowerPoint), Visio, Project 2016, Alteryx, Tableau (Dashboards, Stories), Python, Java, R, SQL, PL/SQL, PostgreSQL, Mode, JIRA, SmartSheet, VirtualBox, Eclipse, WordPress, Adobe Photoshop
\section{Areas of Expertise}
Business Analytics, Business Intelligence, Relationship Building, Predictive Modeling, Regression Analysis, Process Improvement, Project Management, Data Quality Management, User Acceptance Testing, Data Analysis, Visual Modeling
\section{Professional Experience}
\cventry{Mar 2019--Present}{Research Assistant}{University of Nowhere County}{Nowhere}{}{Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\newline{}%
Key Contributions:%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\section{Academic Projects}
\cventry{Sept 2018--Dec 2018}{Nowhere Group Relocation}{Project Management}{}{}%
{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}%
}
\cventry{Jun 2018--Sept 2018}{Visualizing Movie Data}{Data Visualization}{}{}%
{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}%
}
\cventry{Jun 2018--Sept 2018}{Predicting Impact of New Menu}{A/B Testing}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jun 2018--Sept 2018}{Forecasting Video Game Sales}{Time-Series Forecasting}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jan 2018--May 2018}{UMBeats DJ Club}{System Analysis and Design}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jan 2018--May 2018}{Hotel Management System}{Database Application Management}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\section{Education}
\cventry{Jan 2013--Dec 2018}{Bachelor's of Science in Information Systems}{University of Nowhere County}{Nowhere, NW}{\textit{}}{}
\cventry{Jun 2018--Sept 2018}{Business Analyst Nanodegree}{Udacity}{}{\textit{}}{}
\end{document}
答案1
\textit{}
嗯,在你显示的代码中,命令的第 5 个括号中有一个空\cventry
。该命令被类解释moderncv
为非空因此你会得到一个多余的逗号。
要删除这两个文件,请删除它们\textit{}
:
\section{Education}
\cventry{Jan 2013--Dec 2018}{Bachelor's of Science in Information Systems}{University of Nowhere County}{Nowhere, NW}{}{} % <===================================================
\cventry{Jun 2018--Sept 2018}{Business Analyst Nanodegree}{Udacity}{}{}{} % <==================
完整代码
\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle[center]{banking}
\moderncvcolor{black}
\usepackage[utf8]{inputenc}
\usepackage[document]{ragged2e}
\usepackage[%
scale=0.75,
% top=2cm, bottom=2cm,
showframe % <=========================================================
]{geometry}
\linespread{1.1}
\name{John}{Doe}
\address{1111 Nowhere Street, Apt 111}{Nowhere, NW}{11111}
\phone[mobile]{(100)-111-1111}
\email{[email protected]}
\social[linkedin][www.linkedin.com/in/john-doe/]{john-doe}
\social[github][github.com/johndoe]{john-doe}
\title{Business Analysis | Data Analysis | Project Management | Information Systems} %
\makeatletter
\patchcmd{\makehead}%
{\ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\}%
{\ifthenelse{\equal{\@title}{}}{}{\\}}%
{}%
{}
\patchcmd{\makehead}%
{\\[2.5em]}%
{\\[1em]}%
{}%
{}
\patchcmd{\makeletterhead}%
{\par}%
{%
\par%
\textbf{\@title}\\[2em]%
}%
{}%
{}
\patchcmd{\makecvhead}%
{\par}%
{%
\par%
{\centering\textbf{\@title}\\[2em]}%
}%
{}%
{}
\makeatother
\raggedbottom %
\begin{document}
\makecvtitle
\section{Summary}
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\item It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
\end{itemize}
\section{Technical Proficiency}
Advanced Microsoft Office Suite (Word, Excel, PowerPoint), Visio, Project 2016, Alteryx, Tableau (Dashboards, Stories), Python, Java, R, SQL, PL/SQL, PostgreSQL, Mode, JIRA, SmartSheet, VirtualBox, Eclipse, WordPress, Adobe Photoshop
\section{Areas of Expertise}
Business Analytics, Business Intelligence, Relationship Building, Predictive Modeling, Regression Analysis, Process Improvement, Project Management, Data Quality Management, User Acceptance Testing, Data Analysis, Visual Modeling
\section{Professional Experience}
\cventry{Mar 2019--Present}{Research Assistant}{University of Nowhere County}{Nowhere}{}{Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\newline{}%
Key Contributions:%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\section{Academic Projects}
\cventry{Sept 2018--Dec 2018}{Nowhere Group Relocation}{Project Management}{}{}%
{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}%
}
\cventry{Jun 2018--Sept 2018}{Visualizing Movie Data}{Data Visualization}{}{}%
{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}%
}
\cventry{Jun 2018--Sept 2018}{Predicting Impact of New Menu}{A/B Testing}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jun 2018--Sept 2018}{Forecasting Video Game Sales}{Time-Series Forecasting}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jan 2018--May 2018}{UMBeats DJ Club}{System Analysis and Design}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\cventry{Jan 2018--May 2018}{Hotel Management System}{Database Application Management}{}{}{%\newline{}%
\begin{itemize}%[label=\textcolor{black}{\textbullet}]
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{itemize}}
\section{Education}
\cventry{Jan 2013--Dec 2018}{Bachelor's of Science in Information Systems}{University of Nowhere County}{Nowhere, NW}{}{} % <===================================================
\cventry{Jun 2018--Sept 2018}{Business Analyst Nanodegree}{Udacity}{}{}{} % <==================
\end{document}
然后给你: