# [texhax] LaTeX list environments

Yuri Robbers yuri.robbers at gmail.com
Sat Sep 30 13:16:04 CEST 2006

Hi Joan,

It should be possible to construct something like this yourself, based on
the paralist package on CTAN://macros/latex/contrib/paralist. More
specifically, one would need to redefine some part of the inparaenum
environment or the definitions it uses by fitting the actual text of each
item inside an \hbox or something like that.

CAVEAT 1: This will only work properly when _none_ of the items exceeds the
available \linewidth!

CAVEAT 2: Do this in a (stripped down) copy of paralist.sty that you rename
to something else for compatibility reasons!

CAVEAT 3: In most cases the spacing will look horrid, setting your list
\reaggedright is probably the least ugly way to go!

CAVEAT 4: I haven't actually got the time to try this right now. It _will_
require some TeX hacking, and it _may_ actually work, but may just as easily
not work!

Perhaps this helps?

Good luck,
Yuri.

On 9/30/06, Joan Boorstein <jboor at math.umb.edu> wrote:
>
> I would like a LaTeX list environment which sets its items as follows --
>
> 1) the first item would start on its own line
> 2) each subsequent item would be placed on the same line as the previous
> item, if it would fit on the line.
> 3) if the subsequent item does not fit, a new line would start.
>
> Thus I envision the following --
>
>     This is the paragraph before the start of my new list.
>        a) this is the first item on the list    b) second item
>        c) this is the third item and starts on a new line because it would
> not fit on the previous line -- it is so long that it takes more than one
> line -- whether it would be indented should be an option left to the user
>        d) the fourth item    e) fifth   f) sixth    g) the seventh
>        h) as with most lists, the type of label should be up to the user
>        i) another item      j) the last item
>
> I haven't thought about how the list items that fit on a single line
> should be spaced ...
>
> Is there such a beast available?  I've looked in The LaTeX Companion and
> did not find what I was looking for.  Searching CTAN (by topic) only shows
> what is described in the LaTeX Companion.
>
> Thanks for any pointers --
> Joan Boorstein
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/