Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyglossia and nomencl package conflict #280

Closed
madarexxx opened this issue Sep 1, 2019 · 3 comments
Closed

Polyglossia and nomencl package conflict #280

madarexxx opened this issue Sep 1, 2019 · 3 comments

Comments

@madarexxx
Copy link

Polyglossia is really nice and comfortable package, highly appreciated in Russian LaTeX community.

After updating TeXlive to 2019 I've got severe compile errors on my documents that were written with TeXlive 2018. After some hours of debugging complex documents and getting very useful advice from Russian Linux forum I've been able to locate the error and write MWE.

% !BIB TS-program = biber
% !TeX TS-program = xelatex
\documentclass{article}
\usepackage{nomencl}

%\usepackage[russian,english]{babel}%Comment entire Polyglossia section and uncomment this line and MWE builds without errors

\usepackage{polyglossia}
\setmainlanguage[]{russian}%set language to english and there is no build error
\setmainfont{Times New Roman}
\setromanfont{Times New Roman} 
\setsansfont{Arial}
\newfontfamily{\cyrillicfont}{Times New Roman} 
\newfontfamily{\cyrillicfontrm}{Times New Roman}
\newfontfamily{\cyrillicfontsf}{Arial}

\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX, Mapping=tex-text} 
\begin{document}
Hello world! 
\end{document}

Error code:

Command \sectionformat undefined. \select@language {french}
Command \subsectionformat undefined. \select@language {french}
Command \subsubsectionformat undefined. \select@language {french}
Command \paragraphformat undefined. \select@language {french}
Command \subparagraphformat undefined. \select@language {french}
Command \sectionformat undefined. \begin{document}
Command \subsectionformat undefined. \begin{document}
Command \subsubsectionformat undefined. \begin{document}
Command \paragraphformat undefined. \begin{document}
Command \subparagraphformat undefined. \begin{document}

I have found out that Polyglossia works well with older nomencl version [2018/12/29 v5.0 Nomenclature package]. I am writing here because changing Polyglossia's language settings breaks nomencl.

Please correct me if I am wrong.

Thanks in advance, and good luck in supporting such great and huge project!

@jspitz jspitz closed this as completed in ec1d434 Sep 2, 2019
@jspitz
Copy link
Collaborator

jspitz commented Sep 2, 2019

Thanks for the report. Fixed.

A workaround is probably putting the following before polyglossia is loaded

\providecommand*{\sectionformat}{}%
\providecommand*{\subsectionformat}{}%
\providecommand*{\subsubsectionformat}{}%
\providecommand*{\paragraphformat}{}%
\providecommand*{\subparagraphformat}{}%

@madarexxx
Copy link
Author

@jspitz

Thanks for the report. Fixed.

Is there any information, when CTAN version will receive this fix?

p.s. Thank you for ultra-fast fix :)

@jspitz
Copy link
Collaborator

jspitz commented Sep 2, 2019

No, but Arthur plans to release a new version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants