diff options
author | albert-github <albert.tests@gmail.com> | 2020-06-13 12:54:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-13 12:54:25 (GMT) |
commit | e7637f9dd977e9821394e7bed4dec02aec41ab9e (patch) | |
tree | ec82dd17918d8b27cba803c62e7eaed6f836127d /src/latexgen.cpp | |
parent | 4aabbf52e57692ebea122f50c8e8a75832db7f86 (diff) | |
download | Doxygen-e7637f9dd977e9821394e7bed4dec02aec41ab9e.zip Doxygen-e7637f9dd977e9821394e7bed4dec02aec41ab9e.tar.gz Doxygen-e7637f9dd977e9821394e7bed4dec02aec41ab9e.tar.bz2 |
Number of translatable terms (like Chapter) are in English instead of Greek (#7841)
* Number of translatable terms (like Chapter) are in English instead of Greek
When running tests in Greek OUTPUT_LANGUAGE mode for LaTeX a number of terms like Chapter were still in English instead of Greek.
Some used references:
https://tex.stackexchange.com/questions/548584/ascii-text-set-in-greek-script-when-using-usepackagegreekbabel
https://tex.stackexchange.com/questions/548761/missing-characters-in-output-due-to-renewcommand-familydefault-sfdefault
https://tex.stackexchange.com/questions/58624/variables-for-hiding-or-showing-text-in-latex
* Number of translatable terms (like Chapter) are in English instead of Greek
- adding the possibilities for mono spaced font (for code parts)
- creating a more flexible way to change fonts for different languages
See also discussion at https://tex.stackexchange.com/questions/548901/missing-characters-in-greek-output-due-to-ttfamily
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index f3cce3e..cb42863 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -560,11 +560,13 @@ static void writeDefaultHeaderPart1(FTextStream &t) { t << "\\usepackage[" << fontenc << "]{fontenc}\n"; } - t << "\\usepackage[scaled=.90]{helvet}\n" - "\\usepackage{courier}\n" - "\\usepackage{amssymb}\n" + QCString font = theTranslator->latexFont(); + if (!font.isEmpty()) + { + t << font; + } + t << "\\usepackage{amssymb}\n" "\\usepackage{sectsty}\n" - "\\renewcommand{\\familydefault}{\\sfdefault}\n" "\\allsectionsfont{%\n" " \\fontseries{bc}\\selectfont%\n" " \\color{darkgray}%\n" |