* 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
This commit is contained in:
Jean-Marc Lasgouttes 2007-01-03 10:39:35 +00:00
parent 911df6bc1c
commit 61da85eb4b
4 changed files with 18 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2006-12-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* bufferparams.C (writeLaTeX):
* lyx_sty.C: use \setlength{\foo}{bar}, not \setlength\foo{bar}
(bug 2843)
2006-12-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* cursor.C (popRight): place cursor at the right spot:

View File

@ -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();
}

View File

@ -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"

View File

@ -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.