Rudi Gaelzer wrote:
On Wednesday 29 August 2007, Paul A. Rubin wrote:
For a more aesthetically pleasing solution, I think you would need
either to redefine the itemize environment or create your own (and then
add you new environment to the layout file).  Specification of a value
for \listparindent has to be done in an argument to the begin command
for the list environment, which is why LaTeX turned its nose up at your
attempts.  (But at least it did so solemnly.)

Thanks for the input, guys.

Paul, if I go and try to do what you're suggesting above, I'd have to edit the stdlists.inc file, right?

That would be the logical place to add a new itemize environment (it would then be available to pretty much all classes), and the only place if you were going to modify the existing itemize environment.

If I look at "Style Description", I notice several options that have the same name as the list parameters like \topsep, \labelsep, etc, though capitalized (TopSep, LabelSep, etc). Am I wrong to think that all I have to do is to include the line:
ListParIndent          <some length>

Or is this just absurd?

Not absurd, but I think also not correct. I'm not sure, but I suspect TopSep etc. tell LyX how to space things in the GUI, and do not directly connect to what LaTeX does with the document.

In stdlists.inc, have a look at the definition of "lyxlist", which is a brand new environment. It consists of a lot of instructions to LyX about the visual display, followed by a preamble entry defining the new environment. You'll want to do something like that: create a new style, including LaTeX code in the preamble that defines a new environment as a list. In the \begin{list}{...} spacing arguments, set a value for \listparindent.

Actually, I think the definition of the LyX-Code style (in lyxmacros.inc) would be a better paradigm, although you'd want to put the new code in stdlists.inc.

/Paul

Reply via email to