我在 scrartcl 中使用 currvita,我想放入如下发布部分:
梅威瑟:
\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}
给予 我正在尝试弄清楚如何将参考书目部分的标题“出版物”左对齐,但由于 scrartcl、currvita 和在线参考书目相关信息的组合,我真的不知道从哪里开始查找。
答案1
如果你不介意使用比布拉特克斯代替比博特,问题就自动解决了:
\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}
\defbibheading
可以使用和自定义标题\setkomafont
。
答案2
结果与 KOMA-Script 无关。这是因为在环境中重新定义了thebibliography
。currcita
尽管如此cv
,在使用 KOMA-Script 类时,恢复原始 就足够了thebibliography
:
\usepackage{xpatch}
\xpretocmd{\cv}{%
\let\origthebibliography\thebibliography
\let\endorigthebibliography\endthebibliography
}{}{}
\xapptocmd{\cv}{%
\let\thebibliography\origthebibliography
\let\endthebibliography\endorigthebibliography
}{}{}
现在,您可以thebibliography
按照 KOMA-Script 手册中的说明进行配置,例如使用选项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}
或附加bibliography=leveldown
:
甚至使用\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}