
Estoy usando currvita en scrartcl y me gustaría poner una sección de publicación así:
MWE:
\documentclass[a4paper,oneside,12pt]{scrartcl}
\usepackage[english]{babel}
\usepackage[]{currvita}
\begin{document}
\center
\begin{cv}{Name}
\begin{thebibliography}{}
\bibitem{} Interesting publication
\end{thebibliography}
\end{cv}
\end{document}
Da
Estoy tratando de descubrir cómo alinear a la izquierda el título 'Publicaciones' de la sección de bibliografía, pero debido a la combinación de scrartcl, currvita e información relacionada con la bibliografía en línea, no estoy muy seguro de por dónde empezar a buscar.
Respuesta1
Si no te importa usarbiblatexen lugar debibtex, el problema se resuelve automáticamente:
\documentclass[a4paper,oneside,12pt]{scrartcl}
\usepackage[english]{babel}
\usepackage[]{currvita}
\usepackage{filecontents}
\begin{filecontents}{reference.bib}
@article{Orwell,
author = "George Orwell and Aldous Huxley and William Shakespeare and Oscar Wilde",
title = "1984",
year = "1948",
journal = "Books about big brothers",
volume = "5",
number = "42",
pages = "100--111"
}
\end{filecontents}
\usepackage[backend=biber, style=numeric]{biblatex}
\addbibresource{reference.bib}
\setkomafont{subsection}{\small\rmfamily}
\defbibheading{main}{\subsection*{Publications}}
\begin{document}
\nocite{Orwell}
\center
\begin{cv}{Name}
\printbibliography[heading=main]
\end{cv}
\end{document}
El encabezado se puede personalizar con \defbibheading
y \setkomafont
.
Respuesta2
El resultado es independiente del KOMA-Script. Es por la redefinición de thebibliography
por currcita
dentro del cv
medio ambiente. Sin embargo, utilizando una clase KOMA-Script bastaría con restaurar el original thebibliography
:
\usepackage{xpatch}
\xpretocmd{\cv}{%
\let\origthebibliography\thebibliography
\let\endorigthebibliography\endthebibliography
}{}{}
\xapptocmd{\cv}{%
\let\thebibliography\origthebibliography
\let\endthebibliography\endorigthebibliography
}{}{}
Ahora puede configurar thebibliography
como se describe en el manual de KOMA-Script, por ejemplo, usando la opción headings=small
:
\documentclass[a4paper,oneside,12pt]{scrartcl}
\usepackage[english]{babel}
\usepackage[]{currvita}
\usepackage{xpatch}
\xpretocmd{\cv}{%
\let\origthebibliography\thebibliography
\let\endorigthebibliography\endthebibliography
\KOMAoptions{headings=small}%
}{}{}
\xapptocmd{\cv}{%
\let\thebibliography\origthebibliography
\let\endthebibliography\endorigthebibliography
}{}{}
\begin{document}
\center
\begin{cv}{Name}
\begin{origthebibliography}{}
\bibitem{} Interesting publication
\end{origthebibliography}
\end{cv}
\end{document}
o adicional bibliography=leveldown
:
o incluso usando \RedeclareSectionCommand
:
\documentclass[a4paper,oneside,12pt,bibliography=leveldown]{scrartcl}
\usepackage[english]{babel}
\usepackage[]{currvita}
\usepackage{xpatch}
\xpretocmd{\cv}{%
\let\origthebibliography\thebibliography
\let\endorigthebibliography\endthebibliography
\RedeclareSectionCommand[beforeskip=1sp,afterskip=1sp,font=\cvheadingfont]{subsection}%
}{}{}
\xapptocmd{\cv}{%
\let\thebibliography\origthebibliography
\let\endthebibliography\endorigthebibliography
}{}{}
\begin{document}
\center
\begin{cv}{Name}
\begin{origthebibliography}{}
\bibitem{} Interesting publication
\end{origthebibliography}
\end{cv}
\end{document}