从参考书目部分更改/删除预定义标题

从参考书目部分更改/删除预定义标题

我正在为我的简历使用 scrartcl 文档类型,我想将我的出版物添加为参考书目部分。但是,我已经从简历模板中为该部分设置了标题,当我添加以下代码时,会出现一个名为“出版物”的额外标题,并且字体与简历中已有的字体完全不同

\begingroup
\bibliographystyle{plain}
\begin{thebibliography}
\footnotesize{
\bibitem \newblock bla bla bla
\bibitem \newblock bla bla bla
}
\end{thebibliography}
\endgroup

已经尝试过类似的命令

\renewcommand{\bibtitle}{}
\renewcommand{\bibheadtitle}{}

\renewcommand{\refname}{} 
\renewcommand\refname{}

但它们都无法修改至少标题,尽管我不需要标题,因为我有简历模板中定制的标题。有什么想法或建议吗?

\documentclass{scrartcl}
\renewcommand*\refname{}
\reversemarginpar
\newcommand{\MarginText}[1]{\marginpar{\raggedleft\itshape\small#1}} 
\usepackage[nochapters]{classicthesis} 
\usepackage[LabelsAligned]{currvita}
\usepackage{anyfontsize}
\renewcommand{\cvheadingfont}{\LARGE\color{Cyan}} 
\usepackage[numbers]{natbib}
\usepackage[english]{babel}
\AtBeginDocument{\renewcommand*\refname{}}
\renewcommand*\refname{}
\usepackage{hyperref}
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} 
\newlength{\datebox}\settowidth{\datebox}{January Jul2011}
\newcommand{\NewEntry}[3]{\noindent\hangindent=2em\hangafter=0 \parbox{\datebox}{\small \textit{#1}}\hspace{0.5em} #2 #3 
\vspace{0.5em}}

\newcommand{\Description}[1]{\hangindent=2em\hangafter=0\noindent\footnotesize{#1}\par\normalsize\vspace{1em}} 
\date{}

\begin{document}


\begin{cv}{\spacedallcaps{Bla}}\vspace{1.5em} % Your name

\noindent\spacedlowsmallcaps{Personal Information}\vspace{0.5em} % Personal information heading

%------------------------------
%   PUBLICATIONS
%----------------------------------------------------------------------------------------

\noindent\spacedlowsmallcaps{Publications}\vspace{1em}


\makeatletter
\renewcommand*\bib@heading{}

\begingroup
\bibliographystyle{plain}
\begin{thebibliography}{2}
\footnotesize{
\begin{footnotesize}
\bibitem{a}
Bla bla


\bibitem{b}
Bla bla

\end{footnotesize}
}
\end{thebibliography}


\endgroup
\makeatother

\end{cv}

\end{document}

答案1

加载natbib无关紧要,因为currvita会改变代码thebibliography

也重置\refname\bib@heading不执行任何操作。

诀窍是修补cv示例,以便thebibliography环境不会打印标题。

我重新排列了文档序言:首先是软件包,然后是设置。我还添加了更好的方法来设置参考书目\footnotesize

\documentclass{scrartcl}

\usepackage[english]{babel}

\usepackage[nochapters]{classicthesis} 

\usepackage[LabelsAligned]{currvita}
\usepackage{anyfontsize}
\usepackage{etoolbox}
\usepackage{hyperref}

\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} 

\reversemarginpar

\patchcmd{\cv}{\noindent\cvlistheadingfont\cvbibname\par\nopagebreak}{}{}{}
\BeforeBeginEnvironment{thebibliography}{\begingroup\footnotesize}
\AfterEndEnvironment{thebibliography}{\endgroup}

\renewcommand{\cvheadingfont}{\LARGE\color{Cyan}} 
\newcommand{\MarginText}[1]{\marginpar{\raggedleft\itshape\small#1}} 
\newlength{\datebox}
\settowidth{\datebox}{January Jul2011}
\newcommand{\NewEntry}[3]{%
  \noindent\hangindent=2em\hangafter=0 
  \parbox{\datebox}{\small \textit{#1}}\hspace{0.5em} #2 #3 \vspace{0.5em}%
}

\newcommand{\Description}[1]{%
  \hangindent=2em\hangafter=0
  \noindent\footnotesize{#1}\par\normalsize\vspace{1em}%
} 

\date{}

\begin{document}


\begin{cv}{\spacedallcaps{Bla}}\vspace{1.5em} % Your name

\noindent\spacedlowsmallcaps{Personal Information}\vspace{0.5em} % Personal information heading

%------------------------------
%   PUBLICATIONS
%----------------------------------------------------------------------------------------

\noindent\spacedlowsmallcaps{Publications}\vspace{1em}


\begin{thebibliography}{2}

\bibitem{fta}
Bla bla

\bibitem{grey}
Bla bla

\end{thebibliography}

\end{cv}

\end{document}

在此处输入图片描述

答案2

如果您想要做的只是更改natbib参考书目标题,可以这样做:

\renewcommand{\bibsection}{\section{Whatever You Prefer}}

相关内容