summaryrefslogtreecommitdiffstats
path: root/src/latexgen.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-01-05 10:26:10 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-01-05 10:26:10 (GMT)
commit9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a (patch)
treeee15d10d932fa1d21de3ebfcb445e2bd81b9f00b /src/latexgen.h
parentad53b7bebd3042598e5a11b1f3ef29468815138b (diff)
downloadDoxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.zip
Doxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.tar.gz
Doxygen-9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a.tar.bz2
Release-1.2.13.1
Diffstat (limited to 'src/latexgen.h')
-rw-r--r--src/latexgen.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/latexgen.h b/src/latexgen.h
index 5d5eab8..ac6a68b 100644
--- a/src/latexgen.h
+++ b/src/latexgen.h
@@ -160,10 +160,26 @@ class LatexGenerator : public OutputGenerator
void endSubscript() { t << "}}$"; }
void startSuperscript() { t << "$^{\\mbox{"; }
void endSuperscript() { t << "}}$"; }
- void startTable(int c) { t << "\\begin{TabularC}{" << c
- << "}\n\\hline\n";
+ void startTable(bool hasCaption,int c)
+ {
+ if (hasCaption) t << "\\begin{table}[h]";
+ t << "\\begin{TabularC}{" << c << "}\n\\hline\n";
}
- void endTable() { t << "\\\\\\hline\n\\end{TabularC}\n"; }
+ void endTable(bool hasCaption)
+ {
+ if (hasCaption)
+ {
+ t << "\\end{table}\n";
+ }
+ else
+ {
+ t << "\\\\\\hline\n\\end{TabularC}\n";
+ }
+ }
+ void startCaption() { t << "\\\\\\hline\n\\end{TabularC}\n"
+ "\\centering\n\\caption{";
+ }
+ void endCaption() { t << "}\n"; }
void nextTableRow() {}
void endTableRow() { t << "\\\\\\hline\n"; }
void nextTableColumn() { t << "&"; }