diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-08-04 20:55:47 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-08-04 20:55:47 (GMT) |
commit | 2e2f09d60ce079a1fe283e47bcf023de01f051c5 (patch) | |
tree | 8e54169bc0b7214246ec4c1dfe3f58228ef12928 /src/latexgen.cpp | |
parent | adac91e9a353095c3bae4b580d27b7cfd8617493 (diff) | |
download | Doxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.zip Doxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.tar.gz Doxygen-2e2f09d60ce079a1fe283e47bcf023de01f051c5.tar.bz2 |
Release-1.2.17-20020804
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index fa6a104..45e26e7 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -1199,7 +1199,7 @@ void LatexGenerator::addIndexItem(const char *s1,const char *s2) } -void LatexGenerator::startSection(const char *lab,const char *,bool sub) +void LatexGenerator::startSection(const char *lab,const char *,SectionInfo::SectionType type) { if (Config_getBool("PDF_HYPERLINKS")) { @@ -1208,15 +1208,29 @@ void LatexGenerator::startSection(const char *lab,const char *,bool sub) t << "\\"; if (Config_getBool("COMPACT_LATEX")) { - if (sub) t << "subsubsection{"; else t << "subsection{"; + switch(type) + { + case SectionInfo::Page: t << "subsection"; break; + case SectionInfo::Section: t << "subsubsection"; break; + case SectionInfo::Subsection: t << "paragraph"; break; + default: ASSERT(0); break; + } + t << "{"; } else { - if (sub) t << "subsection{"; else t << "section{"; + switch(type) + { + case SectionInfo::Page: t << "section"; break; + case SectionInfo::Section: t << "subsection"; break; + case SectionInfo::Subsection: t << "subsubsection"; break; + default: ASSERT(0); break; + } + t << "{"; } } -void LatexGenerator::endSection(const char *lab,bool) +void LatexGenerator::endSection(const char *lab,SectionInfo::SectionType) { t << "}\\label{" << lab << "}" << endl; } @@ -1259,7 +1273,7 @@ void LatexGenerator::writeSectionRef(const char *ref,const char *, void LatexGenerator::writeSectionRefItem(const char *,const char *lab, const char *title) { - t << "\\contentsline{section}{"; + t << "\\item \\contentsline{section}{"; docify(title); t << "}{\\ref{" << lab << "}}{}" << endl; } @@ -1942,3 +1956,17 @@ void LatexGenerator::endParamList() t << "\\end{Desc}" << endl; } +void LatexGenerator::startSectionRefList() +{ + t << "\\footnotesize" << endl; + t << "\\begin{multicols}{2}" << endl; + t << "\\begin{CompactList}" << endl; +} + +void LatexGenerator::endSectionRefList() +{ + t << "\\end{CompactList}" << endl; + t << "\\end{multicols}" << endl; + t << "\\normalsize" << endl; +} + |