Skip to content

Commit

Permalink
Bug 782082 - Czech/Slovak language documentation with tables from LaT…
Browse files Browse the repository at this point in the history
…eX to PDF is not possible

Added commands as indicated to overrule \cline and \cmidrule due to problems with `-`
  • Loading branch information
albert-github committed May 31, 2018
1 parent 63696c0 commit 509cf2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/translator_cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ class TranslatorCzech : public Translator
virtual QCString latexLanguageSupportCommand()
{
return "\\usepackage[T2A]{fontenc}\n"
"\\usepackage[czech]{babel}\n";
"\\usepackage[czech]{babel}\n"
"\\usepackage{regexpatch}\n"
"\\makeatletter\n"
"% Change the `-` delimiter to an active character\n"
"\\xpatchparametertext\\@@@cmidrule{-}{\\cA-}{}{}\n"
"\\xpatchparametertext\\@cline{-}{\\cA-}{}{}\n"
"\\makeatother\n";
}

// --- Language translation methods -------------------
Expand Down
10 changes: 8 additions & 2 deletions src/translator_sk.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ class TranslatorSlovak : public Translator
{ return "slovak"; }

virtual QCString latexLanguageSupportCommand()
{ return "\\usepackage[slovak]{babel}\n"; }

{ return "\\usepackage[slovak]{babel}\n"
"\\usepackage{regexpatch}\n"
"\\makeatletter\n"
"% Change the `-` delimiter to an active character\n"
"\\xpatchparametertext\\@@@cmidrule{-}{\\cA-}{}{}\n"
"\\xpatchparametertext\\@cline{-}{\\cA-}{}{}\n"
"\\makeatother\n";
}
// --- Language translation methods -------------------

/*! used in the compound documentation before a list of related functions. */
Expand Down

0 comments on commit 509cf2d

Please sign in to comment.