460 t <<
"\\batchmode\n";
465 documentClass =
"article";
467 documentClass =
"book";
468 t <<
"\\documentclass[twoside]{" << documentClass <<
"}\n" 472 t <<
"% Packages required by doxygen\n" 473 "\\usepackage{fixltx2e}\n" 474 "\\usepackage{calc}\n" 475 "\\usepackage{doxygen}\n" 476 "\\usepackage[export]{adjustbox} % also loads graphicx\n";
478 for (
uint i=0; i<extraLatexStyle.
count(); ++i)
493 t <<
"\\usepackage{" << fi.fileName().utf8() <<
"}\n";
498 t <<
"\\usepackage{graphicx}\n" 499 "\\usepackage[utf8]{inputenc}\n" 500 "\\usepackage{makeidx}\n" 501 "\\usepackage{multicol}\n" 502 "\\usepackage{multirow}\n" 503 "\\PassOptionsToPackage{warn}{textcomp}\n" 504 "\\usepackage{textcomp}\n" 505 "\\usepackage[nointegrals]{wasysym}\n" 506 "\\usepackage[table]{xcolor}\n" 511 if (!languageSupport.
isEmpty())
513 t <<
"% NLS support packages\n" 519 t <<
"% Font selection\n" 520 "\\usepackage[T1]{fontenc}\n" 521 "\\usepackage[scaled=.90]{helvet}\n" 522 "\\usepackage{courier}\n" 523 "\\usepackage{amssymb}\n" 524 "\\usepackage{sectsty}\n" 525 "\\renewcommand{\\familydefault}{\\sfdefault}\n" 526 "\\allsectionsfont{%\n" 527 " \\fontseries{bc}\\selectfont%\n" 528 " \\color{darkgray}%\n" 530 "\\renewcommand{\\DoxyLabelFont}{%\n" 531 " \\fontseries{bc}\\selectfont%\n" 532 " \\color{darkgray}%\n" 534 "\\newcommand{\\+}{\\discretionary{\\mbox{\\scriptsize$\\hookleftarrow$}}{}{}}\n" 540 t <<
"% Page & text layout\n" 541 "\\usepackage{geometry}\n" 543 " " << paperName <<
"paper,%\n" 551 t <<
"\\tolerance=750\n" 554 "\\setlength{\\emergencystretch}{15pt}\n" 555 "\\setlength{\\parindent}{0cm}\n" 556 "\\setlength{\\parskip}{3ex plus 2ex minus 2ex}\n";
558 t <<
"\\makeatletter\n" 559 "\\renewcommand{\\paragraph}{%\n" 560 " \\@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%\n" 561 " \\normalfont\\normalsize\\bfseries\\SS@parafont%\n" 564 "\\renewcommand{\\subparagraph}{%\n" 565 " \\@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%\n" 566 " \\normalfont\\normalsize\\bfseries\\SS@subparafont%\n" 586 t <<
"% Headers & footers\n" 587 "\\usepackage{fancyhdr}\n" 588 "\\pagestyle{fancyplain}\n" 589 "\\fancyhead[LE]{\\fancyplain{}{\\bfseries\\thepage}}\n" 590 "\\fancyhead[CE]{\\fancyplain{}{}}\n" 591 "\\fancyhead[RE]{\\fancyplain{}{\\bfseries\\leftmark}}\n" 592 "\\fancyhead[LO]{\\fancyplain{}{\\bfseries\\rightmark}}\n" 593 "\\fancyhead[CO]{\\fancyplain{}{}}\n" 594 "\\fancyhead[RO]{\\fancyplain{}{\\bfseries\\thepage}}\n" 595 "\\fancyfoot[LE]{\\fancyplain{}{}}\n" 596 "\\fancyfoot[CE]{\\fancyplain{}{}}\n" 597 "\\fancyfoot[RE]{\\fancyplain{}{\\bfseries\\scriptsize " << genString <<
" Doxygen }}\n" 598 "\\fancyfoot[LO]{\\fancyplain{}{\\bfseries\\scriptsize " << genString <<
" Doxygen }}\n" 599 "\\fancyfoot[CO]{\\fancyplain{}{}}\n" 600 "\\fancyfoot[RO]{\\fancyplain{}{}}\n" 601 "\\renewcommand{\\footrulewidth}{0.4pt}\n";
604 t <<
"\\renewcommand{\\chaptermark}[1]{%\n" 605 " \\markboth{#1}{}%\n" 608 t <<
"\\renewcommand{\\sectionmark}[1]{%\n" 609 " \\markright{\\thesection\\ #1}%\n" 614 t <<
"% Indices & bibliography\n" 615 "\\usepackage{natbib}\n" 616 "\\usepackage[titles]{tocloft}\n" 617 "\\setcounter{tocdepth}{3}\n" 618 "\\setcounter{secnumdepth}{5}\n" 624 if (!extraPackages.
isEmpty()) {
625 t <<
"% Packages requested by user\n";
626 const char *pkgName=extraPackages.
first();
629 if ((pkgName[0] ==
'[') || (pkgName[0] ==
'{'))
630 t <<
"\\usepackage" << pkgName <<
"\n";
632 t <<
"\\usepackage{" << pkgName <<
"}\n";
633 pkgName=extraPackages.
next();
642 t <<
"% Hyperlinks (required, but should be loaded last)\n" 643 "\\usepackage{ifpdf}\n" 645 " \\usepackage[pdftex,pagebackref=true]{hyperref}\n" 647 " \\usepackage[ps2pdf,pagebackref=true]{hyperref}\n" 650 " colorlinks=true,%\n" 651 " linkcolor=blue,%\n" 652 " citecolor=blue,%\n" 659 t <<
"% Custom commands\n" 660 "\\newcommand{\\clearemptydoublepage}{%\n" 661 " \\newpage{\\pagestyle{empty}\\cleardoublepage}%\n" 666 t <<
"\\usepackage{caption}\n" 667 <<
"\\captionsetup{labelsep=space,justification=centering,font={bf},singlelinecheck=off,skip=4pt,position=top}\n\n";
670 t <<
"%===== C O N T E N T S =====\n" 672 "\\begin{document}\n";
674 t <<
"\\selectlanguage{greek}\n";
678 t <<
"% Titlepage & ToC\n";
680 if (pdfHyperlinks && usePDFLatex)
684 t <<
"\\hypersetup{pageanchor=false,\n" 686 <<
" bookmarksnumbered=true,\n" 687 <<
" pdfencoding=unicode\n" 690 t <<
"\\pagenumbering{roman}\n" 691 "\\begin{titlepage}\n"
virtual QCString latexLanguageSupportCommand()=0
#define Config_getList(val)
Simplified and optimized version of QTextStream.
#define Config_getEnum(val)
virtual QCString trGeneratedBy()=0
QCString stripExtensionGeneral(const char *fName, const char *ext)
QCString dateToString(bool includeTime)
#define Config_getString(val)
#define Config_getBool(val)
void filterLatexString(FTextStream &t, const char *str, bool insideTabbing, bool insidePre, bool insideItem, bool keepSpaces)
virtual QCString trGeneratedAt(const char *date, const char *projName)=0
virtual QCString idLanguage()=0
static const char * latexStyleExtension
Translator * theTranslator
bool checkExtension(const char *fName, const char *ext)
The QFileInfo class provides system-independent file information.