From ca51332c4143364f3dc3d7782855a6c9aa33a21e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 4 Mar 2002 16:18:11 +0000 Subject: [PATCH] honor float placement for algorithm git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3660 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/paragraph.C | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b6132ecc27..98a751d139 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-04 Jean-Marc Lasgouttes + + * src/paragraph.C (TeXFootnote): honor float placement for + algorithms too. + 2002-03-01 Jean-Marc Lasgouttes * config/lyxinclude.m4 (LYX_PROG_CXX): use -dumpversion to get gcc diff --git a/src/paragraph.C b/src/paragraph.C index 03d9a4c87e..cd567b3c87 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -3606,7 +3606,12 @@ LyXParagraph * LyXParagraph::TeXFootnote(Buffer const * buf, } break; case LyXParagraph::ALGORITHM: - os << "\\begin{algorithm}\n"; + os << "\\begin{algorithm}"; + if (!bparams.float_placement.empty()) { + os << '[' << bparams.float_placement << "]\n"; + } else { + os << '\n'; + } break; } texrow.newline();