mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
define \labelitemi with \def. Fixes LaTeX error if the class has not defined them yet (bug 2053).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
22cdac5d5d
commit
58408d2362
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* bufferparams.C (writeLaTeX): define \labelitemi with \def. Fixes LaTeX
|
||||||
|
error if the class has not defined them yet (bug 2053).
|
||||||
|
|
||||||
2006-03-10 Martin Vermeer <martin.vermeer@hut.fi>
|
2006-03-10 Martin Vermeer <martin.vermeer@hut.fi>
|
||||||
|
|
||||||
* BufferView.[Ch]:
|
* BufferView.[Ch]:
|
||||||
|
@ -1005,7 +1005,7 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features,
|
|||||||
if (user_defined_bullet(i) != ITEMIZE_DEFAULTS[i]) {
|
if (user_defined_bullet(i) != ITEMIZE_DEFAULTS[i]) {
|
||||||
if (bullets_def.empty())
|
if (bullets_def.empty())
|
||||||
bullets_def="\\AtBeginDocument{\n";
|
bullets_def="\\AtBeginDocument{\n";
|
||||||
bullets_def += " \\renewcommand{\\labelitemi";
|
bullets_def += " \\def\\labelitemi";
|
||||||
switch (i) {
|
switch (i) {
|
||||||
// `i' is one less than the item to modify
|
// `i' is one less than the item to modify
|
||||||
case 0:
|
case 0:
|
||||||
@ -1020,7 +1020,7 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features,
|
|||||||
bullets_def += 'v';
|
bullets_def += 'v';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bullets_def += "}{" +
|
bullets_def += '{' +
|
||||||
user_defined_bullet(i).getText()
|
user_defined_bullet(i).getText()
|
||||||
+ "}\n";
|
+ "}\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user