
我在 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
by的重新定義。儘管如此,在使用 KOMA-Script 類別時,恢復原始內容就足夠了:currcita
cv
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}