Jean-Marc Lasgouttes wrote:
> Juergen> I guess we could just use \def instead of \renewcommand in
> Juergen> this case, or some [EMAIL PROTECTED] check.
>
> Yes. A slightly less trivial fix (for 1.5) would be to have a variable
> ItemDepth in layout files that tells how many levels of bullets can be
> configured. This would allow to customize the GUI accordingly.

Agreed. Meanwhile, would the attached trivial fix be acceptable for 1.4?

Jürgen
Index: src/bufferparams.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/bufferparams.C,v
retrieving revision 1.102
diff -p -u -r1.102 bufferparams.C
--- src/bufferparams.C	25 Oct 2005 15:21:47 -0000	1.102
+++ src/bufferparams.C	23 Jan 2006 08:02:00 -0000
@@ -1005,7 +1005,7 @@ bool BufferParams::writeLaTeX(ostream & 
 		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 & 
 				bullets_def += 'v';
 				break;
 			}
-			bullets_def += "}{" +
+			bullets_def += '{' +
 				user_defined_bullet(i).getText()
 				+ "}\n";
 		}

Reply via email to