* list items not broken in lines @ 2017-03-06 18:04 Pablo Rodriguez 2017-03-06 20:01 ` Henning Hraban Ramm 0 siblings, 1 reply; 5+ messages in thread From: Pablo Rodriguez @ 2017-03-06 18:04 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list items not broken in lines 2017-03-06 18:04 list items not broken in lines Pablo Rodriguez @ 2017-03-06 20:01 ` Henning Hraban Ramm 2017-03-06 20:23 ` Pablo Rodriguez 0 siblings, 1 reply; 5+ messages in thread From: Henning Hraban Ramm @ 2017-03-06 20:01 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez <oinos@gmx.es>: > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list items not broken in lines 2017-03-06 20:01 ` Henning Hraban Ramm @ 2017-03-06 20:23 ` Pablo Rodriguez 2017-03-06 20:45 ` Henning Hraban Ramm 0 siblings, 1 reply; 5+ messages in thread From: Pablo Rodriguez @ 2017-03-06 20:23 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list items not broken in lines 2017-03-06 20:23 ` Pablo Rodriguez @ 2017-03-06 20:45 ` Henning Hraban Ramm 2017-03-06 21:02 ` Pablo Rodriguez 0 siblings, 1 reply; 5+ messages in thread From: Henning Hraban Ramm @ 2017-03-06 20:45 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez <oinos@gmx.es>: > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list items not broken in lines 2017-03-06 20:45 ` Henning Hraban Ramm @ 2017-03-06 21:02 ` Pablo Rodriguez 0 siblings, 0 replies; 5+ messages in thread From: Pablo Rodriguez @ 2017-03-06 21:02 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-06 21:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-03-06 18:04 list items not broken in lines Pablo Rodriguez 2017-03-06 20:01 ` Henning Hraban Ramm 2017-03-06 20:23 ` Pablo Rodriguez 2017-03-06 20:45 ` Henning Hraban Ramm 2017-03-06 21:02 ` Pablo Rodriguez
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).