summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-08-13 17:49:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-08-13 17:49:57 (GMT)
commit5ce25000172e185e0ca5b9f20538f80cbbfe0b0e (patch)
tree69018221b85af2e6f7d24d25d207dd6fdc8795ad /src/latexgen.cpp
parentc4ef46195917656ebebed63e3fab5c135d9905a2 (diff)
downloadDoxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.zip
Doxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.tar.gz
Doxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.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,