Skip to content

Commit

Permalink
Error generating PDF for test 59 in spanish
Browse files Browse the repository at this point in the history
When running the tests with `OUTPUT_LANGUAGE=Spanish` we get for the PDF output with test 59 the error like:
```
! Argument of \language@active@arg> has an extra }.
<inserted text>
                \par
l.5 \chapter{Referencia \texorpdfstring{$<$}{<} }
```
Based on https://tex.stackexchange.com/a/715658/44119 the current fix is made.
  • Loading branch information
albert-github committed Apr 15, 2024
1 parent 2ddee73 commit 2bd0513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translator_es.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class TranslatorSpanish : public TranslatorAdapter_1_9_6
*/
QCString latexLanguageSupportCommand() override
{
return "\\usepackage[spanish]{babel}";
return "\\usepackage[spanish, es-noshorthands, shorthands=off]{babel}";
}

QCString trISOLang() override
Expand Down

0 comments on commit 2bd0513

Please sign in to comment.