mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
fix the problem with endfloat
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4131 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c83e476276
commit
fab4e282c5
@ -1,3 +1,8 @@
|
||||
2002-05-05 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* insetfloat.C (latex): More sensible latex output
|
||||
(fix the problem with endfloat).
|
||||
|
||||
2002-05-02 José Matos <jamatos@fep.up.pt>
|
||||
|
||||
* insetgraphics.C (validate): acess params as everyone else.
|
||||
|
@ -239,16 +239,21 @@ int InsetFloat::latex(Buffer const * buf,
|
||||
placement = buf_placement;
|
||||
}
|
||||
|
||||
os << "\\begin{" << tmptype << "}";
|
||||
// The \n is used to force \begin{<floatname>} to appear in a new line.
|
||||
// The % is needed to prevent two consecutive \n chars in the case
|
||||
// when the current output line is empty.
|
||||
os << "%\n\\begin{" << tmptype << "}";
|
||||
// We only output placement if different from the def_placement.
|
||||
if (!placement.empty()) {
|
||||
os << "[" << placement << "]";
|
||||
}
|
||||
|
||||
os << "%\n";
|
||||
os << "\n";
|
||||
|
||||
int const i = inset.latex(buf, os, fragile, fp);
|
||||
os << "\\end{" << tmptype << "}%\n";
|
||||
|
||||
// The \n is used to force \end{<floatname>} to appear in a new line.
|
||||
// In this case, we do not case if the current output line is empty.
|
||||
os << "\n\\end{" << tmptype << "}\n";
|
||||
|
||||
return i + 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user