diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-01-05 10:26:10 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-01-05 10:26:10 (GMT) |
commit | 9d4d8095cd70a06a3536eea20c32ca7bbddd9f3a (patch) | |
tree | ee15d10d932fa1d21de3ebfcb445e2bd81b9f00b /src/latexgen.h | |
parent | ad53b7bebd3042598e5a11b1f3ef29468815138b (diff) | |
download | Doxygen-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.h | 22 |
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 << "&"; } |