fix [foot|margin]note spacing in LaTeX

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2161 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-06-29 14:01:29 +00:00
parent ab254289c8
commit 6bb4ea8c10
4 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxrc.C (read): change debugging channel for RC_BIND to lyxrc.
* lyxfunc.C (Dispatch): * lyxfunc.C (Dispatch):
* Spacing.C (set): * Spacing.C (set):
* BufferView_pimpl.C (Dispatch): use .c_str() on istringstream * BufferView_pimpl.C (Dispatch): use .c_str() on istringstream

View File

@ -1,5 +1,8 @@
2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* insetmarginal.C (latex):
* insetfoot.C (latex): fix spacing of notes in LaTeX
* insettext.C (localDispatch): use .c_str() on istringstream * insettext.C (localDispatch): use .c_str() on istringstream
constructor argument. constructor argument.

View File

@ -51,10 +51,10 @@ string const InsetFoot::editMessage() const
int InsetFoot::latex(Buffer const * buf, int InsetFoot::latex(Buffer const * buf,
std::ostream & os, bool fragile, bool fp) const std::ostream & os, bool fragile, bool fp) const
{ {
os << "\\footnote{%\n"; os << "%\n\\footnote{";
int const i = inset.latex(buf, os, fragile, fp); int const i = inset.latex(buf, os, fragile, fp);
os << "}\n"; os << "%\n}";
return i + 2; return i + 2;
} }

View File

@ -51,10 +51,10 @@ string const InsetMarginal::editMessage() const
int InsetMarginal::latex(Buffer const * buf, int InsetMarginal::latex(Buffer const * buf,
std::ostream & os, bool fragile, bool fp) const std::ostream & os, bool fragile, bool fp) const
{ {
os << "\\marginpar{%\n"; os << "%\n\\marginpar{";
int const i = inset.latex(buf, os, fragile, fp); int const i = inset.latex(buf, os, fragile, fp);
os << "}%\n"; os << "%\n}";
return i + 2; return i + 2;
} }