從參考書目部分更改/刪除預定義標題

從參考書目部分更改/刪除預定義標題

我的簡歷使用 scrartcl 文件類型,我想將我的出版物添加為參考書目部分。但是,我已經有了簡歷範本中該部分的標題,當我包含以下程式碼時,會出現一個名為“Publications”的額外標題,並且其字體與我在簡歷中已有的字體完全不同

\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}}

相關內容