Discussion:
Custom labels for itemize environment
stefano franchi
2013-11-06 02:25:41 UTC
Permalink
Dear all:

I have a standard enumerated list such as
1. text
2. text
3. text
etc.

And I want to have a second list that revises some of the items:

1. text
2'. Revised text
3. Text
etc.

I have learnt I can obtain this effect in Latex by switching from an
enumerated to itemized list and using the optional argument to \item,
thereby writing something like this (for the second list)

\item [1.] test
\item[2'.] Revised text
\item [3.] text

In Lyx, I can obtain the LaTeX code above by inserting the optional
arguments (the [1.], [2'], etc.) in ERT just before the itemized text.

My questions are:

1. is the LaTeX code the best way to achieve the desired effect or is there
some package that allows manipulation of labels in itemized and, even
better, enumerated list? A quick search did not turn out anything, but the
LaTeX universe is large

2. Is there a better way to produce the LaTeX code above in LyX? (I would
be the first to admit that it looks like an ugly hack).

Cheers,

Stefano
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA

***@tamu.edu
http://stefano.cleinias.org
Jürgen Spitzmüller
2013-11-06 07:22:05 UTC
Permalink
2013/11/6 stefano franchi
Post by stefano franchi
1. is the LaTeX code the best way to achieve the desired effect or is
there some package that allows manipulation of labels in itemized and, even
better, enumerated list? A quick search did not turn out anything, but the
LaTeX universe is large
2. Is there a better way to produce the LaTeX code above in LyX? (I would
be the first to admit that it looks like an ugly hack).
In LyX 2.1, you can use Insert > Custom Item. In LyX 2.0, LaTeX code is
probably the best approach (there are packages for customizing the labels
of whole lists, such as the enumerate package, but this is not what you
want).

Jürgen
stefano franchi
2013-11-06 15:00:20 UTC
Permalink
Post by Jürgen Spitzmüller
2013/11/6 stefano franchi
Post by stefano franchi
1. is the LaTeX code the best way to achieve the desired effect or is
there some package that allows manipulation of labels in itemized and, even
better, enumerated list? A quick search did not turn out anything, but the
LaTeX universe is large
2. Is there a better way to produce the LaTeX code above in LyX? (I would
be the first to admit that it looks like an ugly hack).
In LyX 2.1, you can use Insert > Custom Item. In LyX 2.0, LaTeX code is
probably the best approach (there are packages for customizing the labels
of whole lists, such as the enumerate package, but this is not what you
want).
Thanks JÃŒrgen.

I am still on 2.0.6 for production purposes so it looks like I'll have to
live with the LateX code.

BTW: I was asked to submit a draft of the text raggedright and a simple
reformatting of the whole body text though LyX Edit>>Paragraph settings
(which resulted in every paragraph being wrapped in the flushleft
environment) broke the code. The pdf output nows shows un unformatted
(monospaced) [2'.] label for the item's label (including the square
brackets).
Not a big deal in thi sparticular case (it was just a one-off draft the
editor wanted to see for some particular reason), bot good to know for the
future.


Cheers,

Stefano
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA

***@tamu.edu
http://stefano.cleinias.org
Richard Heck
2013-11-08 22:33:26 UTC
Permalink
Post by Jürgen Spitzmüller
2013/11/6 stefano franchi
1. is the LaTeX code the best way to achieve the desired
effect or is there some package that allows manipulation of
labels in itemized and, even better, enumerated list? A quick
search did not turn out anything, but the LaTeX universe is large
2. Is there a better way to produce the LaTeX code above in
LyX? (I would be the first to admit that it looks like an ugly
hack).
In LyX 2.1, you can use Insert > Custom Item. In LyX 2.0, LaTeX
code is probably the best approach (there are packages for
customizing the labels of whole lists, such as the enumerate
package, but this is not what you want).
Thanks Jürgen.
I am still on 2.0.6 for production purposes so it looks like I'll have
to live with the LateX code.
BTW: I was asked to submit a draft of the text raggedright and a
simple reformatting of the whole body text though LyX Edit>>Paragraph
settings (which resulted in every paragraph being wrapped in the
flushleft environment) broke the code. The pdf output nows shows un
unformatted (monospaced) [2'.] label for the item's label (including
the square brackets).
Not a big deal in thi sparticular case (it was just a one-off draft
the editor wanted to see for some particular reason), bot good to know
for the future.
The easiest way to get this is just to put:
\raggedright
in ERT at the beginning. Works for me, anyway.

rh

Continue reading on narkive:
Loading...