From 61da85eb4b748205be3a53c99ea80bb29ee038b9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 3 Jan 2007 10:39:35 +0000 Subject: [PATCH] * bufferparams.C (writeLaTeX): * lyx_sty.C: use \setlength{\foo}{bar}, not \setlength\foo{bar} (bug 2843) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16477 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 6 ++++++ src/bufferparams.C | 12 ++++++------ src/lyx_sty.C | 4 ++-- status.14x | 5 ++++- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3f02aa7a9c..14fe63d213 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2006-12-29 Jean-Marc Lasgouttes + + * bufferparams.C (writeLaTeX): + * lyx_sty.C: use \setlength{\foo}{bar}, not \setlength\foo{bar} + (bug 2843) + 2006-12-29 Jean-Marc Lasgouttes * cursor.C (popRight): place cursor at the right spot: diff --git a/src/bufferparams.C b/src/bufferparams.C index 54c4d1dac3..40454a9881 100644 --- a/src/bufferparams.C +++ b/src/bufferparams.C @@ -934,26 +934,26 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features, if (paragraph_separation) { switch (getDefSkip().kind()) { case VSpace::SMALLSKIP: - os << "\\setlength\\parskip{\\smallskipamount}\n"; + os << "\\setlength{\\parskip}{\\smallskipamount}\n"; break; case VSpace::MEDSKIP: - os << "\\setlength\\parskip{\\medskipamount}\n"; + os << "\\setlength{\\parskip}{\\medskipamount}\n"; break; case VSpace::BIGSKIP: - os << "\\setlength\\parskip{\\bigskipamount}\n"; + os << "\\setlength{\\parskip}{\\bigskipamount}\n"; break; case VSpace::LENGTH: - os << "\\setlength\\parskip{" + os << "\\setlength{\\parskip}{" << getDefSkip().length().asLatexString() << "}\n"; break; default: // should never happen // Then delete it. - os << "\\setlength\\parskip{\\medskipamount}\n"; + os << "\\setlength{\\parskip}{\\medskipamount}\n"; break; } texrow.newline(); - os << "\\setlength\\parindent{0pt}\n"; + os << "\\setlength{\\parindent}{0pt}\n"; texrow.newline(); } diff --git a/src/lyx_sty.C b/src/lyx_sty.C index 3bd1179874..abcae2fbad 100644 --- a/src/lyx_sty.C +++ b/src/lyx_sty.C @@ -75,7 +75,7 @@ string const paragraphleftindent_def = "\\newenvironment{LyXParagraphLeftIndent}[1]%\n" "{\n" " \\begin{list}{}{%\n" - " \\setlength\\topsep{0pt}%\n" + " \\setlength{\\topsep}{0pt}%\n" " \\addtolength{\\leftmargin}{#1}\n" // ho hum, yet more things commented out with no hint as to why they // weren't just removed @@ -83,7 +83,7 @@ string const paragraphleftindent_def = // "%% \\setlength{\\textwidth}{#2\\textwidth}\n" // "%% \\setlength\\listparindent\\parindent%\n" // "%% \\setlength\\itemindent\\parindent%\n" - " \\setlength\\parsep{0pt plus 1pt}%\n" + " \\setlength{\\parsep}{0pt plus 1pt}%\n" " }\n" " \\item[]\n" "}\n" diff --git a/status.14x b/status.14x index 5c01c8bbdc..8999808aef 100644 --- a/status.14x +++ b/status.14x @@ -84,7 +84,10 @@ What's new - Re-enable Address paragraph style in AMS article classes (bug 2890). -- write \begin and \end alignment tags on their own lines (bug 3010). +- Write \begin and \end alignment tags on their own lines (bug 3010). + +- Fix output of \setlength commands, in order to please latex2html + (bug 2843). - Import \guilsinglright correctly from .tex files.