Re: Indented paragraph in description list.
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 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
Re: Indented paragraph in description list.
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? 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 Or is this just absurd? -- Rudi Gaelzer Department of Physics Institute of Physics and Mathematics Federal University of Pelotas BRAZIL Registered linux user # 153741
Re: Indented paragraph in description list.
Rudi Gaelzer wrote: Returning to this thread: http://marc.info/?l=lyx-users&m=116026623917165&w=2 which concerns the creation of a multi-paragraph description list, the recipe works, but the new paragraph is not indented inside the description. Now, in LaTeX2e, you can set the length of \listparindent to 1\parindent, or something else, but you have to set it inside the list_decl field of the list environment. Is there no way I can set a paragraph indentation inside a list in LyX? I even tried to issue the command \setlength{\listpartindent}{1\parindent} or \setlength{\listpartindent}{0.5cm} on the preamble, but it was solemnly ignored by LyX... Thanks. Inelegant but seems to work: * Add to the preamble \newlength{\lpinx} \setlength{\lpinx}{1\parindent} \newcommand{\lpin}{\hspace*{\lpinx}} (change names and length to taste). * At the start of the indented items, add \lpin (including the trailing space, of course) in ERT. 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.) /Paul
Re: Indented paragraph in description list.
On 8/29/07, Rudi Gaelzer <[EMAIL PROTECTED]> wrote: > Returning to this thread: > http://marc.info/?l=lyx-users&m=116026623917165&w=2 > which concerns the creation of a multi-paragraph description list, the recipe > works, but the new paragraph is not indented inside the description. > It seems to me you are working too hard. Just use the LyX tools. If you type a standard paragraph after a description, and then increase the depth of that environment, the you DO get the kind of multiparagraph environment you are looking for. That is, you get TERM Sentence Indented paragraph Indented paragrraph NEWTERM Some sentence Intented paragraph. If you don't want blank space ahead of each new paragraph, use a control-return instead of a return between each. Lyx document attached. -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas descriptions.lyx Description: application/lyx
Indented paragraph in description list.
Returning to this thread: http://marc.info/?l=lyx-users&m=116026623917165&w=2 which concerns the creation of a multi-paragraph description list, the recipe works, but the new paragraph is not indented inside the description. Now, in LaTeX2e, you can set the length of \listparindent to 1\parindent, or something else, but you have to set it inside the list_decl field of the list environment. Is there no way I can set a paragraph indentation inside a list in LyX? I even tried to issue the command \setlength{\listpartindent}{1\parindent} or \setlength{\listpartindent}{0.5cm} on the preamble, but it was solemnly ignored by LyX... Thanks. -- Rudi Gaelzer Department of Physics Institute of Physics and Mathematics Federal University of Pelotas BRAZIL Registered linux user # 153741