Dear list, I have the following sample: \setupinteraction[state=start, color=, style=, contrastcolor=] \enabledirectives[references.border] \startsetups[placelist:section] \startalign[center] \setupinterlinespace[line=2.8ex] \placelist[section] [alternative=d, pagenumber=no, headnumber=no, style=\itx, criterium=local] \par \stopalign \stopsetups \setuplist[chapter][after=\directsetup{placelist:section}] \starttext \placelist[chapter] \dorecurse{4}{\chapter{Chapter} \dorecurse{20}{\section{Section from This Chapter}}} \stoptext I would like to avoid line breaks in section items. Which would be the right way of doing it? This would be similar (I think) to know how to get the "{this is a expression}" with no line break inside (and not using "~"). Many thanks for your help, Pablo -- http://www.ousia.tk
Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez
I would like to avoid line breaks in section items. Which would be the right way of doing it?
This would be similar (I think) to know how to get the "{this is a expression}" with no line break inside (and not using "~").
Usually you can use \hbox{this doesn’t break}. Try something like \def\MySection#1{\hbox{#1} \setuphead[section][command=\MySection] Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote:
Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez:
I would like to avoid line breaks in section items. Which would be the right way of doing it?
This would be similar (I think) to know how to get the "{this is a expression}" with no line break inside (and not using "~").
Usually you can use \hbox{this doesn’t break}.
Try something like
\def\MySection#1{\hbox{#1}} \setuphead[section][command=\MySection]
Hraban, I’m afraid I wasn’t clear. This is required for: \placelist[section][alternative=d]. I’m afraid it doesn’t work there. Any other option to get it? Many thanks for your help, Pablo -- http://www.ousia.tk
Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez
On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote:
Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez:
I would like to avoid line breaks in section items. Which would be the right way of doing it?
This would be similar (I think) to know how to get the "{this is a expression}" with no line break inside (and not using "~").
Usually you can use \hbox{this doesn’t break}.
Try something like
\def\MySection#1{\hbox{#1}} \setuphead[section][textcommand=\MySection]
Hraban,
I’m afraid I wasn’t clear. This is required for:
\placelist[section][alternative=d].
I’m afraid it doesn’t work there.
Did you try \setuplist[textcommand ? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
On 03/06/2017 09:45 PM, Henning Hraban Ramm wrote:
Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez:
[...] I’m afraid I wasn’t clear. This is required for:
\placelist[section][alternative=d].
I’m afraid it doesn’t work there.
Did you try \setuplist[textcommand ?
Hraban, I tired it, but I had to do something wrong, because it didn’t work and now it works fine. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Henning Hraban Ramm
-
Pablo Rodriguez