
私は scrartcl で currvita を使用しており、次のような出版物セクションを追加したいと考えています。
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}
与える
参考文献セクションのタイトル「Publications」を左揃えにする方法を考えていますが、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
でが再定義されているためです。ただし、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 スクリプトのマニュアルに記載されているように、たとえばオプションを使用して設定できます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}