* 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/trunk@16478 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-01-03 10:40:12 +00:00
parent 6fcb3fe6a2
commit b7f2544bc3
2 changed files with 8 additions and 8 deletions

View File

@ -998,26 +998,26 @@ bool BufferParams::writeLaTeX(odocstream & 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}{"
<< from_utf8(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

@ -78,7 +78,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
@ -86,7 +86,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"