1

I'm writing my document and I want to include a list of acronyms using acro package. When I try to compile it with XeTeX an error emerges: Command \sectionformat undefined.

Here is minimal example to reproduce the error:

\documentclass[12pt, a4paper, final]{extarticle}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
\newfontfamily\cyrillicfont{Times New Roman}


\usepackage{polyglossia}
\setdefaultlanguage{russian}
\usepackage{csquotes}
\usepackage{hyperref}

\usepackage{acro}

\begin{document}
    Just some text
\end{document}

I'm using MacTeX 2019.

  • 1
    Probably unrelated to the problem, but hyperref should usually be the last package in your preamble. There are only very few exceptions. – leandriis Oct 20 at 9:20
  • The MWE can further be reduced to \documentclass{extarticle} \usepackage{polyglossia} \setdefaultlanguage{russian} \usepackage{acro} \begin{document} Just some text \end{document}showing that acro and russian seem to interfere. – leandriis Oct 20 at 9:23
  • Although being about a different document class, the following question might be related: XeLaTeX: scrartcl + \setmainlanguage{russian} = “LaTeX Error: \chapterformat undefined.” – leandriis Oct 20 at 9:25
  • acro loads the package scrlfile which makes gloss-russian.ldf believe a KOMA-Script class is used. \noextras@russian then does \renewcommand{\sectionformat}{...} which throws the error. IMHO this is a bug in gloss-russian.ldf: it should not test with for a KOMA-Script class \ifdef{\KOMAScript} but with \ifdef{\KOMAClassName} – clemens Oct 20 at 9:52
  • I reported the issue here: github.com/reutenauer/polyglossia/issues/325 – clemens Oct 20 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.