* space sectioning control @ 2018-06-25 2:45 Idris Samawi Hamid ادريس سماوي حامد 2018-06-25 11:41 ` Wolfgang Schuster 0 siblings, 1 reply; 6+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 2:45 UTC (permalink / raw) To: ntg-context [-- Attachment #1: Type: text/plain, Size: 1006 bytes --] Dear gang, Here's an interesting one, attached and below: ======= \setuphead[chapter] [alternative=normal] \setuphead[subsection][alternative=text] \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] \starttext \startchapter[title={First},reference={}] \startsubsection%[title={First}] \input ward \stopsubsection \startsubsection%[title={Second}] \input ward \stopsubsection \stopchapter \startchapter[title={Second},reference={}] \startsubsection%[title={}] \input ward \stopsubsection \startsubsection%[title={}] \input ward \stopsubsection \stopchapter \stoptext ======= Our subsections do not have titles. The space between the subsection numeral and the text is too large, even with distance=0em Negative distances don't behave well - toggle lines 4 and 5. What can we do to control the space between numeral and text? Thank you in advance. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 [-- Attachment #2: scratch.tex --] [-- Type: application/x-tex, Size: 682 bytes --] [-- Attachment #3: scratch.pdf --] [-- Type: application/pdf, Size: 12432 bytes --] [-- Attachment #4: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: space sectioning control 2018-06-25 2:45 space sectioning control Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 11:41 ` Wolfgang Schuster 2018-06-25 12:58 ` Idris Samawi Hamid ادريس سماوي حامد 0 siblings, 1 reply; 6+ messages in thread From: Wolfgang Schuster @ 2018-06-25 11:41 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1985 bytes --] To number paragraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \stoptext Wolfgang > Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> > 25. Juni 2018 um 04:45 > Dear gang, > > Here's an interesting one, attached and below: > > ======= > \setuphead[chapter] [alternative=normal] > \setuphead[subsection][alternative=text] > \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] > > \starttext > > \startchapter[title={First},reference={}] > \startsubsection%[title={First}] > \input ward > \stopsubsection > \startsubsection%[title={Second}] > \input ward > \stopsubsection > \stopchapter > > \startchapter[title={Second},reference={}] > \startsubsection%[title={}] > \input ward > \stopsubsection > \startsubsection%[title={}] > \input ward > \stopsubsection > \stopchapter > \stoptext > ======= > > Our subsections do not have titles. The space between the subsection > numeral and the text is too large, even with > > distance=0em > > Negative distances don't behave well - toggle lines 4 and 5. > > What can we do to control the space between numeral and text? Thank > you in advance. > > Best wishes > Idris > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 3637 bytes --] [-- Attachment #2: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: space sectioning control 2018-06-25 11:41 ` Wolfgang Schuster @ 2018-06-25 12:58 ` Idris Samawi Hamid ادريس سماوي حامد 2018-06-25 13:20 ` Wolfgang Schuster 0 siblings, 1 reply; 6+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 12:58 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > To number paragraphs you can create a counter with \definelabel. Yes - and tested some paragraph options yesterday. Many thanks for the sample below. But this particular project is very large with countless cross-references already in place that depend on the subsectioning mechanism. Is there a workaround that will avoid major surgery to the main text? Also, subsubsections and subsubsubsections are still needed, as well as resetting the counters after each chapter etc.. In other words, what's needed is all the features of subsection without the titling. Just as \start|stoptitle \start|stopsubject [etc.] give titling without sectioning numerals, we need something like \start|stoplabeling \start|stopsublabeling to get sectioning numerals without titling. (This is usually not a big deal except in cases like [alternative=text]) (And on a very tight deadline so there is little (= no) time to rebuild structure from scratch. Better to configure subsection to do what's needed, and perhaps use a different method for the next big project.) So is there a way this can be done? Many thanks for your insights and help. Idris > \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ > }] > > \starttext > > \startchapter[title={First},reference={}] > > \Paragraph\input ward > > \Paragraph\input ward > > \stopchapter > > \startchapter[title={Second},reference={}] > > \Paragraph\input ward > > \Paragraph\input ward > > \stopchapter > > \stoptext Can this be made into > Wolfgang > >> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> >> 25. Juni 2018 um 04:45 >> Dear gang, >> >> Here's an interesting one, attached and below: >> >> ======= >> \setuphead[chapter] [alternative=normal] >> \setuphead[subsection][alternative=text] >> \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] >> >> \starttext >> >> \startchapter[title={First},reference={}] >> \startsubsection%[title={First}] >> \input ward >> \stopsubsection >> \startsubsection%[title={Second}] >> \input ward >> \stopsubsection >> \stopchapter >> >> \startchapter[title={Second},reference={}] >> \startsubsection%[title={}] >> \input ward >> \stopsubsection >> \startsubsection%[title={}] >> \input ward >> \stopsubsection >> \stopchapter >> \stoptext >> ======= >> >> Our subsections do not have titles. The space between the subsection >> numeral and the text is too large, even with >> >> distance=0em >> >> Negative distances don't behave well - toggle lines 4 and 5. >> >> What can we do to control the space between numeral and text? Thank >> you in advance. -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: space sectioning control 2018-06-25 12:58 ` Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 13:20 ` Wolfgang Schuster 2018-06-25 13:55 ` Idris Samawi Hamid ادريس سماوي حامد 2018-06-26 15:10 ` Procházka Lukáš Ing. 0 siblings, 2 replies; 6+ messages in thread From: Wolfgang Schuster @ 2018-06-25 13:20 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 5360 bytes --] You have to change the value of textdistance. \setuphead [subsubsection] [alternative=text, distance=0pt, textdistance=.5em] \starttext \startchapter[title={First}] \startsubsubsection \input ward \stopsubsubsection \stopchapter \stoptext Wolfgang > Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> > 25. Juni 2018 um 04:45 > Dear gang, > > Here's an interesting one, attached and below: > > ======= > \setuphead[chapter] [alternative=normal] > \setuphead[subsection][alternative=text] > \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] > > \starttext > > \startchapter[title={First},reference={}] > \startsubsection%[title={First}] > \input ward > \stopsubsection > \startsubsection%[title={Second}] > \input ward > \stopsubsection > \stopchapter > > \startchapter[title={Second},reference={}] > \startsubsection%[title={}] > \input ward > \stopsubsection > \startsubsection%[title={}] > \input ward > \stopsubsection > \stopchapter > \stoptext > ======= > > Our subsections do not have titles. The space between the subsection > numeral and the text is too large, even with > > distance=0em > > Negative distances don't behave well - toggle lines 4 and 5. > > What can we do to control the space between numeral and text? Thank > you in advance. > > Best wishes > Idris > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > Wolfgang Schuster <mailto:schuster.wolfgang@gmail.com> > 25. Juni 2018 um 13:41 > To number paragraphs you can create a counter with \definelabel. > > > \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] > > \starttext > > \startchapter[title={First},reference={}] > > \Paragraph\input ward > > \Paragraph\input ward > > \stopchapter > > \startchapter[title={Second},reference={}] > > \Paragraph\input ward > > \Paragraph\input ward > > \stopchapter > > \stoptext > > > Wolfgang > > > Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> > 25. Juni 2018 um 14:58 > On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster > <schuster.wolfgang@gmail.com> wrote: > >> To number paragraphs you can create a counter with \definelabel. > > Yes - and tested some paragraph options yesterday. Many thanks for the > sample below. > > But this particular project is very large with countless > cross-references already in place that depend on the subsectioning > mechanism. Is there a workaround that will avoid major surgery to the > main text? > > Also, subsubsections and subsubsubsections are still needed, as well > as resetting the counters after each chapter etc.. > > In other words, what's needed is all the features of subsection > without the titling. Just as > > \start|stoptitle \start|stopsubject [etc.] > > give titling without sectioning numerals, we need something like > > \start|stoplabeling \start|stopsublabeling > > to get sectioning numerals without titling. > > (This is usually not a big deal except in cases like [alternative=text]) > > (And on a very tight deadline so there is little (= no) time to > rebuild structure from scratch. Better to configure subsection to do > what's needed, and perhaps use a different method for the next big > project.) > > So is there a way this can be done? Many thanks for your insights and > help. > > Idris > >> \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ >> }] >> >> \starttext >> >> \startchapter[title={First},reference={}] >> >> \Paragraph\input ward >> >> \Paragraph\input ward >> >> \stopchapter >> >> \startchapter[title={Second},reference={}] >> >> \Paragraph\input ward >> >> \Paragraph\input ward >> >> \stopchapter >> >> \stoptext > > Can this be made into > >> Wolfgang >> >>> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> >>> 25. Juni 2018 um 04:45 >>> Dear gang, >>> >>> Here's an interesting one, attached and below: >>> >>> ======= >>> \setuphead[chapter] [alternative=normal] >>> \setuphead[subsection][alternative=text] >>> \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] >>> >>> \starttext >>> >>> \startchapter[title={First},reference={}] >>> \startsubsection%[title={First}] >>> \input ward >>> \stopsubsection >>> \startsubsection%[title={Second}] >>> \input ward >>> \stopsubsection >>> \stopchapter >>> >>> \startchapter[title={Second},reference={}] >>> \startsubsection%[title={}] >>> \input ward >>> \stopsubsection >>> \startsubsection%[title={}] >>> \input ward >>> \stopsubsection >>> \stopchapter >>> \stoptext >>> ======= >>> >>> Our subsections do not have titles. The space between the subsection >>> numeral and the text is too large, even with >>> >>> distance=0em >>> >>> Negative distances don't behave well - toggle lines 4 and 5. >>> >>> What can we do to control the space between numeral and text? Thank >>> you in advance. > [-- Attachment #1.2: Type: text/html, Size: 8927 bytes --] [-- Attachment #2: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: space sectioning control 2018-06-25 13:20 ` Wolfgang Schuster @ 2018-06-25 13:55 ` Idris Samawi Hamid ادريس سماوي حامد 2018-06-26 15:10 ` Procházka Lukáš Ing. 1 sibling, 0 replies; 6+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 13:55 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, 25 Jun 2018 07:20:43 -0600, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > You have to change the value of textdistance. > \setuphead > [subsubsection] > [alternative=text, > distance=0pt, > textdistance=.5em] > \starttext > \startchapter[title={First}] > \startsubsubsection > \input ward > \stopsubsubsection > \stopchapter > \stoptext Beautiful - many thanks. Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: space sectioning control 2018-06-25 13:20 ` Wolfgang Schuster 2018-06-25 13:55 ` Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-26 15:10 ` Procházka Lukáš Ing. 1 sibling, 0 replies; 6+ messages in thread From: Procházka Lukáš Ing. @ 2018-06-26 15:10 UTC (permalink / raw) To: mailing list for ConTeXt users Hello, there was no key "textdistance" described on wiki, so I added the option into key-value list: http://wiki.contextgarden.net/Command/setuphead Lukas On Mon, 25 Jun 2018 15:20:43 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > You have to change the value of textdistance. > > \setuphead > [subsubsection] > [alternative=text, > distance=0pt, > textdistance=.5em] > > \starttext > > \startchapter[title={First}] > > \startsubsubsection > \input ward > \stopsubsubsection > > \stopchapter > > \stoptext > > Wolfgang >> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> >> 25. Juni 2018 um 04:45 >> Dear gang, >> >> Here's an interesting one, attached and below: >> >> ======= >> \setuphead[chapter] [alternative=normal] >> \setuphead[subsection][alternative=text] >> \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] >> >> \starttext >> >> \startchapter[title={First},reference={}] >> \startsubsection%[title={First}] >> \input ward >> \stopsubsection >> \startsubsection%[title={Second}] >> \input ward >> \stopsubsection >> \stopchapter >> >> \startchapter[title={Second},reference={}] >> \startsubsection%[title={}] >> \input ward >> \stopsubsection >> \startsubsection%[title={}] >> \input ward >> \stopsubsection >> \stopchapter >> \stoptext >> ======= >> >> Our subsections do not have titles. The space between the subsection >> numeral and the text is too large, even with >> >> distance=0em >> >> Negative distances don't behave well - toggle lines 4 and 5. >> >> What can we do to control the space between numeral and text? Thank >> you in advance. >> >> Best wishes >> Idris >> ___________________________________________________________________________________ >> 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 >> ___________________________________________________________________________________ >> Wolfgang Schuster <mailto:schuster.wolfgang@gmail.com> >> 25. Juni 2018 um 13:41 >> To number paragraphs you can create a counter with \definelabel. >> >> >> \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] >> >> \starttext >> >> \startchapter[title={First},reference={}] >> >> \Paragraph\input ward >> >> \Paragraph\input ward >> >> \stopchapter >> >> \startchapter[title={Second},reference={}] >> >> \Paragraph\input ward >> >> \Paragraph\input ward >> >> \stopchapter >> >> \stoptext >> >> >> Wolfgang >> >> >> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> >> 25. Juni 2018 um 14:58 >> On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster >> <schuster.wolfgang@gmail.com> wrote: >> >>> To number paragraphs you can create a counter with \definelabel. >> >> Yes - and tested some paragraph options yesterday. Many thanks for the >> sample below. >> >> But this particular project is very large with countless >> cross-references already in place that depend on the subsectioning >> mechanism. Is there a workaround that will avoid major surgery to the >> main text? >> >> Also, subsubsections and subsubsubsections are still needed, as well >> as resetting the counters after each chapter etc.. >> >> In other words, what's needed is all the features of subsection >> without the titling. Just as >> >> \start|stoptitle \start|stopsubject [etc.] >> >> give titling without sectioning numerals, we need something like >> >> \start|stoplabeling \start|stopsublabeling >> >> to get sectioning numerals without titling. >> >> (This is usually not a big deal except in cases like [alternative=text]) >> >> (And on a very tight deadline so there is little (= no) time to >> rebuild structure from scratch. Better to configure subsection to do >> what's needed, and perhaps use a different method for the next big >> project.) >> >> So is there a way this can be done? Many thanks for your insights and >> help. >> >> Idris >> >>> \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ >>> }] >>> >>> \starttext >>> >>> \startchapter[title={First},reference={}] >>> >>> \Paragraph\input ward >>> >>> \Paragraph\input ward >>> >>> \stopchapter >>> >>> \startchapter[title={Second},reference={}] >>> >>> \Paragraph\input ward >>> >>> \Paragraph\input ward >>> >>> \stopchapter >>> >>> \stoptext >> >> Can this be made into >> >>> Wolfgang >>> >>>> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu> >>>> 25. Juni 2018 um 04:45 >>>> Dear gang, >>>> >>>> Here's an interesting one, attached and below: >>>> >>>> ======= >>>> \setuphead[chapter] [alternative=normal] >>>> \setuphead[subsection][alternative=text] >>>> \setuphead[subsection][criterium=local,distance=0em,sectionstopper=.] >>>> >>>> \starttext >>>> >>>> \startchapter[title={First},reference={}] >>>> \startsubsection%[title={First}] >>>> \input ward >>>> \stopsubsection >>>> \startsubsection%[title={Second}] >>>> \input ward >>>> \stopsubsection >>>> \stopchapter >>>> >>>> \startchapter[title={Second},reference={}] >>>> \startsubsection%[title={}] >>>> \input ward >>>> \stopsubsection >>>> \startsubsection%[title={}] >>>> \input ward >>>> \stopsubsection >>>> \stopchapter >>>> \stoptext >>>> ======= >>>> >>>> Our subsections do not have titles. The space between the subsection >>>> numeral and the text is too large, even with >>>> >>>> distance=0em >>>> >>>> Negative distances don't behave well - toggle lines 4 and 5. >>>> >>>> What can we do to control the space between numeral and text? Thank >>>> you in advance. >> > > -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ___________________________________________________________________________________ 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] 6+ messages in thread
end of thread, other threads:[~2018-06-26 15:10 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-06-25 2:45 space sectioning control Idris Samawi Hamid ادريس سماوي حامد 2018-06-25 11:41 ` Wolfgang Schuster 2018-06-25 12:58 ` Idris Samawi Hamid ادريس سماوي حامد 2018-06-25 13:20 ` Wolfgang Schuster 2018-06-25 13:55 ` Idris Samawi Hamid ادريس سماوي حامد 2018-06-26 15:10 ` Procházka Lukáš Ing.
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).