From 58408d23621d77c0c3acc4b36ab8dc608717f08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 10 Mar 2006 16:25:20 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 5 +++++ src/bufferparams.C | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5b32b815d8..0ab399626e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-03-10 Jürgen Spitzmüller + + * 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 * BufferView.[Ch]: diff --git a/src/bufferparams.C b/src/bufferparams.C index 41abadeb94..8c4bed9e43 100644 --- a/src/bufferparams.C +++ b/src/bufferparams.C @@ -1005,7 +1005,7 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features, if (user_defined_bullet(i) != ITEMIZE_DEFAULTS[i]) { if (bullets_def.empty()) bullets_def="\\AtBeginDocument{\n"; - bullets_def += " \\renewcommand{\\labelitemi"; + bullets_def += " \\def\\labelitemi"; switch (i) { // `i' is one less than the item to modify case 0: @@ -1020,7 +1020,7 @@ bool BufferParams::writeLaTeX(ostream & os, LaTeXFeatures & features, bullets_def += 'v'; break; } - bullets_def += "}{" + + bullets_def += '{' + user_defined_bullet(i).getText() + "}\n"; }