summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-09-09 13:43:55 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-09-09 13:43:55 (GMT)
commite4e787013da916e7331797233c1bec05c14b1f76 (patch)
tree145c4c47312e94921350f78dad318333913db263 /src/latexgen.cpp
parent1fb3a77524a31472d1ecb9bafb3491ddbbd096e3 (diff)
downloadDoxygen-e4e787013da916e7331797233c1bec05c14b1f76.zip
Doxygen-e4e787013da916e7331797233c1bec05c14b1f76.tar.gz
Doxygen-e4e787013da916e7331797233c1bec05c14b1f76.tar.bz2
Release-1.2.10-20010909
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 7e072ac..7bdfbdf 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -1529,9 +1529,14 @@ void LatexGenerator::endMemberList()
void LatexGenerator::startImage(const char *name,const char *size,bool hasCaption)
{
if (hasCaption)
- t << "\\begin{figure}[H]" << endl;
+ {
+ t << "\\begin{figure}[h]" << endl;
+ t << "\\begin{center}" << endl;
+ }
else
+ {
t << "\\mbox{";
+ }
QCString gfxName = name;
if (gfxName.right(4)==".eps") gfxName.left(gfxName.length()-4);
// "\\epsfig{file=" << name;
@@ -1539,9 +1544,13 @@ void LatexGenerator::startImage(const char *name,const char *size,bool hasCaptio
if (size) t << "[" << size << "]";
t << "{" << gfxName << "}";
if (hasCaption)
+ {
t << "\\caption{";
+ }
else
+ {
t << "}" << endl;
+ }
}
void LatexGenerator::endImage(bool hasCaption)
@@ -1549,6 +1558,7 @@ void LatexGenerator::endImage(bool hasCaption)
if (hasCaption)
{
t << "}" << endl;
+ t << "\\end{center}" << endl;
t << "\\end{figure}" << endl;
}
}