我想删除 \cventry 后面的点。我在 cls 文件中找到了该部分,但如果我将其复制到我的序言中并删除点,它仍然不起作用。只有我暂时删除 cls 文件中的点,它才会起作用。我认为这是 renewecommand 的一些东西——但我无法应用它来获得结果……
我其实不明白为什么 \cventry 各部分之间的点和逗号是预先格式化的。保持样式灵活不是更好吗?
\documentclass[style=casual,]{komacv}
\renewcommand*\urlbordercolor{red}
\hypersetup{pdfcreator=Someone else}
\providecommand*{\cventry}[7][\@afterelementsvspace]{%
\cvitem[#1]{#2}{%
{\bfseries#3}%
\ifstrempty{#4}{}{, {\itshape#4}}%
\ifstrempty{#5}{}{, #5}%
\ifstrempty{#6}{}{, #6}%
.% That is the dot I want to get rid of.
\ifx&%
\else{%
\newline{}\begin{minipage}[t]{\linewidth}%
\small#7%
\end{minipage}%
}%
\fi%
}%
}
\begin{document}
\raggedbottom
\maketitle
\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}
\cventry{1838--1844}{Lowood School}{}{Lowood}{grades 3--8}{A charitable institution under the guidance of Mr.~Brocklehurst.}
\end{document}
通过页码,我还在 komacv_casual.sty 文件中找到了条目。但我无法在序言中撤消它。相关代码是:
\makebox[0pt][r]{\pagemark/\totalpagemark}
答案1
那应该可以实现你想要的效果:更新ov 的定义cventry
以及pagestyle的定义:
\documentclass[style=casual,]{komacv}
\renewcommand*\urlbordercolor{red}
\hypersetup{pdfcreator=Someone else}
\makeatletter
\renewcommand*{\cventry}[7][\@afterelementsvspace]{%
\cvitem[#1]{#2}{%
{\bfseries#3}%
\ifstrempty{#4}{}{, {\itshape#4}}%
\ifstrempty{#5}{}{, #5}%
\ifstrempty{#6}{}{, #6}%
% That is the dot I want to get rid of.
\ifx&%
\else{%
\newline{}\begin{minipage}[t]{\linewidth}%
\small#7%
\end{minipage}%
}%
\fi%
}%
}
\defpagestyle{footer}
{{}{}{}}% head definition (empty)
{% foot definition
{}{}% definition for twoside layout
{% definition for oneside layout
\hspace*{\fill}%
\parbox{\@footerwidth}{%
\centering%
\color{@addresscolor}\usekomafont{addressfont}%
\ifdefempty{\addressstreet}{}{%
\addtofooter[]{\@addresssymbol\addressstreet}%
\ifdefempty{\addresscity}{}{%
\addtofooter[~--~]{\addresscity}}}%
\ifdefempty{\mobile}{}{%
\addtofooter{\@mobilesymbol\mobile}}%
\ifdefempty{\phonenr}{}{%
\addtofooter{\@phonesymbol\phonenr}}
\ifdefempty{\faxnr}{}{%
\addtofooter{\@faxsymbol\faxnr}}%
\ifdefempty{\email}{}{%
\addtofooter{\@emailsymbol\emaillink{\email}}}
\ifdefempty{\homepage}{}{%
\addtofooter{\@homepagesymbol\httplink{\homepage}}}%
\ifdefempty{\extrainfo}{}{%
\addtofooter{\extrainfo}}\@flushf%
}% Ende parbox
% \hspace*{\fill}%
% \makebox[0pt][r]{\pagemark/\totalpagemark}
}% end definition onesided layout
}% end footer definition
\makeatother
\begin{document}
\pagestyle{empty}
\raggedbottom
\maketitle
\section{Education}
\cventry{1835--1838}{Homeschooling}{}{Gateshead}{grades 1--3}{Teacher: Mr.~NN, under supervision of my aunt Ms. Reed.}
\cventry{1838--1844}{Lowood School}{}{Lowood}{grades 3--8}{A charitable institution under the guidance of Mr.~Brocklehurst.}
\end{document}