Open xexeo opened 4 years ago
Well it breaks when the \MakeUppercase from the header kicks in. The easiest is probably to generate variants of the commands, which allows to use uppercase arguments:
\documentclass{book}
\usepackage{hologo}
\ExplSyntaxOn
\newcommand\hologoEntry[3]{\tl_set_eq:cc { HoLogo@\str_uppercase:n{#1}}{HoLogo@#1}}
\hologoList
\ExplSyntaxOff
\begin{document}
\section{O Ecossistema \hologo{biber}}
\end{document}
Another option is to declare robust commands \DeclareRobustCommand\biberlogo{\hologo{biber}}
One can also use the robust variant and add it to the no-case-change list:
\documentclass{book}
\usepackage{hologo}
\AddToNoCaseChangeList{\hologoRobust}
\begin{document}
\section{O Ecossistema \hologoRobust{biber}}
\end{document}
When I use \hologo in a \section{} command, in some ocasions it generates an error.
Is is not a consistente error, if you insert a \chapter{...} the error disappears, but some other text make the error appear again. I have a larger file where if I remove a verbatim text, the error disappears. Also, for bigger files, the error is reported in a line elsewhere in the file (where there is no hologo command).
Here is a MWE:
Here is the error:
Same error, with LuaLaTeX