summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-08-13 17:49:57 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-08-13 17:49:57 (GMT)
commit8726fc640f878611e395b1d821661cff56a49e13 (patch)
tree69018221b85af2e6f7d24d25d207dd6fdc8795ad /src/latexgen.cpp
parentef99315d71b4b8e2c027033665bcc1244f43ca15 (diff)
downloadDoxygen-8726fc640f878611e395b1d821661cff56a49e13.zip
Doxygen-8726fc640f878611e395b1d821661cff56a49e13.tar.gz
Doxygen-8726fc640f878611e395b1d821661cff56a49e13.tar.bz2
Release-1.2.1
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 757359b..28c7915 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -28,6 +28,7 @@
#include "language.h"
#include "version.h"
#include "dot.h"
+#include "page.h"
static QCString filterTitle(const char *s)
{
@@ -204,6 +205,7 @@ static void writeDefaultHeaderPart1(QTextStream &t)
"\\usepackage{fancyhdr}\n"
"\\usepackage{graphicx}\n"
"\\usepackage{float}\n"
+ "\\usepackage{alltt}\n"
"\\usepackage{doxygen}\n";
if (Config::pdfHyperFlag)
{
@@ -703,24 +705,24 @@ void LatexGenerator::endIndexSection(IndexSections is)
case isExampleDocumentation:
{
t << "}\n";
- PageInfo *pi=exampleList.first();
+ PageSDictIterator pdi(*exampleSDict);
+ PageInfo *pi=pdi.toFirst();
if (pi)
{
t << "\\input{" << convertFileName(pi->name) << "-example}\n";
- pi=exampleList.next();
}
- while (pi)
+ for (++pdi;(pi=pdi.current());++pdi)
{
if (Config::compactLatexFlag) t << "\\input" ; else t << "\\include";
t << "{" << convertFileName(pi->name) << "-example}\n";
- pi=exampleList.next();
}
}
break;
case isPageDocumentation:
{
t << "}\n";
- PageInfo *pi=pageList.first();
+ PageSDictIterator pdi(*pageSDict);
+ PageInfo *pi=pdi.toFirst();
if (pi)
{
QCString pageName;
@@ -729,9 +731,8 @@ void LatexGenerator::endIndexSection(IndexSections is)
else
pageName=pi->name.lower();
t << "\\input{" << pageName << "}\n";
- pi=pageList.next();
}
- while (pi)
+ for (++pdi;(pi=pdi.current());++pdi)
{
if (Config::compactLatexFlag) t << "\\input" ; else t << "\\include";
QCString pageName;
@@ -740,7 +741,6 @@ void LatexGenerator::endIndexSection(IndexSections is)
else
pageName=pi->name.lower();
t << "{" << pageName << "}\n";
- pi=pageList.next();
}
}
break;
@@ -1071,14 +1071,14 @@ void LatexGenerator::addToIndex(const char *s1,const char *s2)
void LatexGenerator::writeSection(const char *lab,const char *title,bool sub)
{
- t << "\\";
- if (sub) t << "subsection{"; else t << "section{";
- docify(title);
- t << "}\\label{" << lab << "}" << endl;
if (Config::pdfHyperFlag)
{
t << "\\hypertarget{" << lab << "}{}";
}
+ t << "\\";
+ if (sub) t << "subsection{"; else t << "section{";
+ docify(title);
+ t << "}\\label{" << lab << "}" << endl;
}
void LatexGenerator::writeSectionRef(const char *,const char *lab,