-
Notifications
You must be signed in to change notification settings - Fork 34
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
Not writing manytime the language switching in the auxiliary files if not required. #108
Comments
Oups, sorry, message was send before I write it ! So my problem start here maieul/ledmac#887. Having a talk with @u-fischer on SE, she pointed the fact that
write three times \german in the auxiliaris files, while it should be easy to remember the actual language, and so not writing anything if not required. https://chat.stackexchange.com/transcript/message/56242919#56242919 |
I was working on a ‘single’ mode for monolingual documents (there are even some parts already written in the current |
it is not really about monolingual documents. If there more languages it can happen nevertheless that some code reselects the already active language:
One could avoid that the language is selected needlessly by using iflang:
But the question is if this is really a user task. Wouldn't it make sense if babel does this? |
Indeed, but when considering floats and the like things are not so simple. And this is not the only issue related to a huge quantity of \documentclass{article}
\usepackage[english, german]{babel}
\usepackage{iflang}
\begin{document}
\makeatletter
\protected@write\@auxout{}{\string\@gobble{1 \languagename}}%
\selectlanguage{english}
\begin{figure}
\protected@write\@auxout{}{\string\@gobble{F1 \languagename}}%
% \IfLanguageName{english}{}{\selectlanguage{english}}
\selectlanguage{english}
\protected@write\@auxout{}{\string\@gobble{F2 \languagename}}%
\end{figure}
blah
\selectlanguage{english}
\protected@write\@auxout{}{\string\@gobble{2 \languagename}}%
\end{document} Admittedly, the result with |
well it is not supposed to be same, after all the first should executed the command less often ;-) But which problem do you see? At a first glance it looked ok to me. |
@u-fischer Look at the |
As the example in #108 (comment) shows, the asynchronous nature of TeX makes impossible to fix this issue in a general way (in the However, in monolingual documents there is a simple solution (≥3.64): \babeladjust { select.write = omit } With this setting, no |
No description provided.
The text was updated successfully, but these errors were encountered: