diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-01-05 10:26:10 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-01-05 10:26:10 (GMT) |
commit | a66e1ada3c7467e267ff39262178fa4577f0b6ab (patch) | |
tree | ee15d10d932fa1d21de3ebfcb445e2bd81b9f00b /src/latexgen.h | |
parent | ff11b7d98ad7d24770afd151aa6b439adc7506d2 (diff) | |
download | Doxygen-a66e1ada3c7467e267ff39262178fa4577f0b6ab.zip Doxygen-a66e1ada3c7467e267ff39262178fa4577f0b6ab.tar.gz Doxygen-a66e1ada3c7467e267ff39262178fa4577f0b6ab.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 << "&"; } |