Skip to content

Commit

Permalink
Simplify polyglossia language loading
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Apr 29, 2022
1 parent b0a5b59 commit 053b87d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .devcontainer/image/acp.cls
Original file line number Diff line number Diff line change
Expand Up @@ -937,23 +937,7 @@
% secondary language. This is very convenient if for example a thesis is in English,
% but certain parts have to be in German, e.g. for legal reasons. A simple switch
% \begin{german} ... \end{german} would then achieve that.
%
% Note that we can also do \setotherlanguages{english, german, ...}, for a
% one-stop-shop, but that would also mean loading the main language as an "other"
% language, which has "trouble" written all over it. Therefore, choose this weak/
% somewhat manual approach.
\iflanguageloaded{english}{%
\setotherlanguage{german}%
}{%
% Nested ifs are ugly, but case-switch is not available and
% flat, subsequent ifs could load the first language both as a main and
% as an "other" language
\iflanguageloaded{german}{%
\setotherlanguage{english}%
}{%
% False: do nothing
}
}%
\setotherlanguages{german,english}

% Proper quotation support, mainly through \enquote
\RequirePackage[
Expand Down

0 comments on commit 053b87d

Please sign in to comment.