ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placelist and horizontal expansion?
@ 1999-10-27  7:55 Gilbert van den Dobbelsteen
  1999-10-27 13:12 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Gilbert van den Dobbelsteen @ 1999-10-27  7:55 UTC (permalink / raw)


Hi there,

I needed to generate a list in horizontal mode. I am not sure f this is
correct but the correct result (for me) was obtained by (sorry for the
Dutch commands):

\def\MyCommand#1#2#3{#2}

\vbox{\hsize=10cm%
\plaatslijst
  [hoofdstuk]
  [variant=geen,
   voor=\leavevmode,
   na=\penalty-1,
   commando=\MyCommand]}

If I leave out the penalty-1 the list will only be horizontal, and will
not wrap at the width of the \vbox.

So Hans, if this is entirely incorrect, give me a hint.

Gilbert.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \placelist and horizontal expansion?
  1999-10-27  7:55 \placelist and horizontal expansion? Gilbert van den Dobbelsteen
@ 1999-10-27 13:12 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-10-27 13:12 UTC (permalink / raw)


Gilbert van den Dobbelsteen wrote:
> 
> Hi there,
> 
> I needed to generate a list in horizontal mode. I am not sure f this is
> correct but the correct result (for me) was obtained by (sorry for the
> Dutch commands):
> 
> \def\MyCommand#1#2#3{#2}
> 
> \vbox{\hsize=10cm%
> \plaatslijst
>   [hoofdstuk]
>   [variant=geen,
>    voor=\leavevmode,
>    na=\penalty-1,
>    commando=\MyCommand]}
> 
> If I leave out the penalty-1 the list will only be horizontal, and will
> not wrap at the width of the \vbox.
> 
> So Hans, if this is entirely incorrect, give me a hint.

I suppose \allowbreak also works. Did you try a \space? voor=\noindent
is probably better. 

BTW, there is also (at least in the latest version)
alternative=horizontal. And, why not say:

\def\MyCommand#1#2#3{#2\space} 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-10-27 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-27  7:55 \placelist and horizontal expansion? Gilbert van den Dobbelsteen
1999-10-27 13:12 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).