From 6bb4ea8c10fb7d5fe305101030f1bc438fc9142d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 29 Jun 2001 14:01:29 +0000 Subject: [PATCH] fix [foot|margin]note spacing in LaTeX git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2161 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 ++ src/insets/ChangeLog | 3 +++ src/insets/insetfoot.C | 4 ++-- src/insets/insetmarginal.C | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f4f8c70a7f..36994efcef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2001-06-29 Jean-Marc Lasgouttes + * lyxrc.C (read): change debugging channel for RC_BIND to lyxrc. + * lyxfunc.C (Dispatch): * Spacing.C (set): * BufferView_pimpl.C (Dispatch): use .c_str() on istringstream diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index b9074b1433..059abe5840 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,5 +1,8 @@ 2001-06-29 Jean-Marc Lasgouttes + * insetmarginal.C (latex): + * insetfoot.C (latex): fix spacing of notes in LaTeX + * insettext.C (localDispatch): use .c_str() on istringstream constructor argument. diff --git a/src/insets/insetfoot.C b/src/insets/insetfoot.C index 358c3ef9e1..b3b39f9171 100644 --- a/src/insets/insetfoot.C +++ b/src/insets/insetfoot.C @@ -51,10 +51,10 @@ string const InsetFoot::editMessage() const int InsetFoot::latex(Buffer const * buf, std::ostream & os, bool fragile, bool fp) const { - os << "\\footnote{%\n"; + os << "%\n\\footnote{"; int const i = inset.latex(buf, os, fragile, fp); - os << "}\n"; + os << "%\n}"; return i + 2; } diff --git a/src/insets/insetmarginal.C b/src/insets/insetmarginal.C index 0ab7524a9a..a92dd47018 100644 --- a/src/insets/insetmarginal.C +++ b/src/insets/insetmarginal.C @@ -51,10 +51,10 @@ string const InsetMarginal::editMessage() const int InsetMarginal::latex(Buffer const * buf, std::ostream & os, bool fragile, bool fp) const { - os << "\\marginpar{%\n"; + os << "%\n\\marginpar{"; int const i = inset.latex(buf, os, fragile, fp); - os << "}%\n"; + os << "%\n}"; return i + 2; } -- 2.39.2