
Actualmente estoy redactando mi CV y quiero incluir una Bibliografía. El siguiente es mi encabezado:
\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}
Ahora quiero incluir una bibliografía, pero tengo los siguientes problemas:
La bibliografía en sí tiene sangría de casi la mitad de la página. ¿Cómo forzar a Latex a comenzar en un margen izquierdo "normal"?
Los números de las diferentes fuentes no aparecen en la bibliografía, aunque en el CV aparecen los números si los \cito{}, y si quieres buscar la fuente, tienes que contar hasta el final. ¿Qué hacer para que los números aparezcan también en la bibliografía? Quizás falta algo en mi encabezado.\
Gracias.
Respuesta1
Por defecto moderncv
no muestra etiquetas en la bibliografía; para mostrarlos, agregue las siguientes líneas al preámbulo:
\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\makeatother
El otro problema requiere una redefinición del thebibliography
entorno ( filecontents*
no es esencial en la solución; es sólo para obtener un ejemplo completo):
\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}