Выровнять заголовок библиографии в среде currvita

Выровнять заголовок библиографии в среде currvita

Я использую currvita в scrartcl и хотел бы добавить раздел публикации следующим образом:

МВЭ:

\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. Это из-за переопределения by 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:

дополнительная библиография=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

Связанный контент