Curvita 環境内での参考文献の見出しを揃える

Curvita 環境内での参考文献の見出しを揃える

私は 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 クラスを使用する場合は、元の を復元するだけで十分です。currcitacvthebibliography

\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}

\cvheadingfont 付き

関連情報