Am Samstag, 09.08.03 um 21:14 Uhr schrieb Juergen Spitzmueller:
Katrin Pietzsch wrote:in one chapter I only want to use the itemize-environment in combination with some explanatory tables and figures. By default this environtment offsets everything from the left pagemargin. How can I prevent this, 'cause I want the labels to be aligned with figures and tabels that start at the left page margin?
You have to redefine the itemize environment (or define a new myitemize if you
still need the default one). Something like this (this does only use the
level1 items):
\renewenvironment{itemize}{% \begin{list}{\labelitemi}{% \settowidth{\labelwidth}{\labelitemi}% \setlength{\leftmargin}{\labelwidth}% \addtolength{\leftmargin}{\labelsep}% }% }{\end{list}}
Sorry to bother you again. I tried this, but lyx wasn't happy with it and produced a whole lot of errors, mainly complaining
"Illegal unit measure (pt inserted) \begin{itemize} ...."
"Missing number, treated as zero \begin{itemize} ...."
and
"Undefined control sequence \begin{itemize} ..."
I'm not very familiar with defining new environments, commands etc. and error messages. I suppose, I didn't adjust it to my document properly, but I don't know how to figure out, what i need to do. One idea was to use
\begin{itemize}{\labelitemi}.... ... }{\end{itemize}}
in the above suggestion ('cause i want to use the itemize-environment not the list). I did this and got the following error:
"TeX capacity exceeded, sorry [grouping levels = 255]. \begin{itemize}
If you really absolutely need mor capacity, you can ask the wizard to enlarge me."
That sounds even worse :(. What do I have to consider when defining a new environment? Do I have to specify a certain lenth somewhere?
Thanks for your help, Katrin