
我目前正在寫我的履歷,我想包括參考書目。以下是我的標題:
\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath, amssymb}
\usepackage{enumerate}
\usepackage{dsfont}
\usepackage{multibib,chapterbib, babelbib}
\moderncvtheme[red]{classic}
\usepackage[left=25mm,right=25mm, top=30mm, bottom=30mm]{geometry}
\renewcommand{\baselinestretch}{1.25}
\AtBeginDocument{\recomputelengths}
所以現在我想包括參考書目,但我有以下問題:
參考書目本身縮排了近一半的頁面。如何強制 Latex 從「正常」左邊距開始?
不同來源的數字沒有顯示在參考書目中,即使在簡歷中,如果我引用它們,數字也會出現,如果您想查找來源,則必須逐一計數。如何讓數字也出現在參考書目中?也許我的標題缺少某些內容。
謝謝。
答案1
預設moderncv
不在參考書目中顯示標籤;要顯示它們,請將以下行新增至序言:
\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\makeatother
另一個問題需要重新定義環境thebibliography
(filecontents*
這在解決方案中不是必需的;這只是為了獲得完整的範例):
\begin{filecontents*}{xxyyy.bib}
@book{testa,
author = "The AuthorA",
title = "The TitleA",
year = "2012",
publisher = "The PublisherA"
}
@book{testb,
author = "The AuthorB",
title = "The TitleB",
year = "2012",
publisher = "The PublisherB"
}
\end{filecontents*}
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[red]{classic}
\usepackage[ngerman]{babel}
\usepackage{multibib,chapterbib, babelbib}
\firstname{John}
\familyname{Doe}
\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\renewenvironment{thebibliography}[1]%
{%
\setlength\hintscolumnwidth{0pt}
\setlength\separatorcolumnwidth{0pt}
\bibliographyhead{\refname}%
% \small%
\begin{list}{\bibliographyitemlabel}%
{%
\setlength{\separatorcolumnwidth}{0.025\textwidth}
\setlength{\topsep}{0pt}%
\settowidth\labelwidth{\@biblabel{#1}}
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code%
\usecounter{enumiv}%
\let\p@enumiv\@empty%
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
}%
{%
\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\end{list}%
}
\makeatother
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\nocite{*}
\bibliographystyle{plain}
\bibliography{xxyyy}
\end{document}