Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
numapde-public
numapde-latex
Commits
1b69d34c
Commit
1b69d34c
authored
Nov 17, 2021
by
Roland Herzog
Browse files
Improve a comment
parent
8de74bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
numapde-translations.sty
View file @
1b69d34c
...
...
@@ -17,11 +17,10 @@
% \lang{A} defaults to English.
\NewDocumentCommand
{
\lang
}{
O
{
en
}
m
}{
\expandafter\csname
lang#1
\endcsname
{
#2
}}
% According to
% https://tex.stackexchange.com/questions/516547/
% the translations package surrounds its output by \unexpanded, which stops
% The translations package surrounds its output by \unexpanded, which stops
% hyperref processing. Therefore, \GetTranslation gives incorrectly encoded
% unicode characters, e.g., inside \pdftitle.
% unicode characters, e.g., inside \pdftitle. The implementation of a
% work-around uses ideas from https://tex.stackexchange.com/questions/516547/.
\newcommand
{
\GetTranslationPDF
}
[1]
{
%
\csname
@trnslt@word@
\detokenize
{
#1
}
@
\@
trnslt@language
{
\@
trnslt@current@language
}
\endcsname
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment