From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101098 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: space sectioning control Date: Mon, 25 Jun 2018 15:20:43 +0200 Message-ID: <5B30EC2B.5090706@gmail.com> References: <5B30D4DB.7060906@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8288856403132769047==" X-Trace: blaine.gmane.org 1529932744 7662 195.159.176.226 (25 Jun 2018 13:19:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2018 13:19:04 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 25 15:19:00 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXROV-0001qc-8j for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2018 15:18:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5738F3A172; Mon, 25 Jun 2018 15:21:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EzmokNjub0xk; Mon, 25 Jun 2018 15:20:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8EDBA3A1B1; Mon, 25 Jun 2018 15:20:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 324203A17A for ; Mon, 25 Jun 2018 15:20:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JTUMBPy25QIz for ; Mon, 25 Jun 2018 15:20:57 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 446923A16A for ; Mon, 25 Jun 2018 15:20:47 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id u18-v6so5507842wmc.1 for ; Mon, 25 Jun 2018 06:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=fe88QZ5buPCeCEH9gODcLh04fAGeXvzTIbGd5SuDtp4=; b=cyj7S8+mOletH4gtohogrHSkhliQpM/YxuEtB75wqTxzKdXe5DcZzQrXuMRgq+jeri Z199KERraziXNCLJ7ncx4ICTIpah0L9NK8pf4mQIJZSOrV26nUqfb6528M1EUSxVLd6/ 4LVzFEL5/4+oufEEcFtroME875Uiifu61g2ANj7NUJu5J8CC9RDb/uX8Q3Y4bIh737Jm VkicuE8uY43jqeEVEa/o1bFJDgmsugUHVMt5HcWdn+kM+mUYaRYJBjD4eYg+UyeTXA8l 52yTv9VmvdZViEWPph8ZaO3t1kVr8vS0bbsNZX8wqDLSMJiaxmw6RluCzo7e8HPmttJo jldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=fe88QZ5buPCeCEH9gODcLh04fAGeXvzTIbGd5SuDtp4=; b=sR8vtj2JnPEt2YpcJ4thf12VUyjCFDYPMeLiSrMSLgYZ2HuuRjYwMYi9xXkX9hlhBJ tVu7kIIZHYB6JJmU0OzVVic96D9wNQiuzjI2f8Z4NyxcW0FqSy7rvQsl0xr6uCaBsB9z sL62UCpb7VtJaZx0tzkqqVFhZ1LUF61jAelUZH48w7EWRLcxq9SfeEfjnnlJqQB0mw0/ SsKnP+0B3nIaUu5jfl5GsD5/bQKxgEpxZKsNwXCGpqhWgQwvhz7LdZqG/DkQ77RxOftB X8qg7NEIMY9AlIh6Hh1cm06+LYPdq8AHyhgRWjvk4csaIejW+4kWKc0MNZT4QByErml/ AUTA== X-Gm-Message-State: APt69E1EF1b9/7zNtqqPEElUyrjDTIbvuCoVxt1sOQS4dPM0d7WG9xoN Q2ZtaJVxybVfQV5ldIEC5GXSs9mf X-Google-Smtp-Source: ADUXVKJdGzACQITZ8YyIWYsvNtTxe0Y0OtUras3F1t2RA7vTsbB6YAFd6zQf3hac5cjYJWP0+gNTpw== X-Received: by 2002:a1c:3693:: with SMTP id y19-v6mr961735wmh.71.1529932846657; Mon, 25 Jun 2018 06:20:46 -0700 (PDT) Original-Received: from [192.168.1.12] (x5ce30e85.dyn.telefonica.de. [92.227.14.133]) by smtp.gmail.com with ESMTPSA id x16-v6sm3094479wro.13.2018.06.25.06.20.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 06:20:46 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:101098 Archived-At: This is a multi-part message in MIME format. --===============8288856403132769047== Content-Type: multipart/alternative; boundary="------------020902080904050603000404" This is a multi-part message in MIME format. --------------020902080904050603000404 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 ادريس سماوي حامد > 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 > 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 ادريس سماوي حامد > 25. Juni 2018 um 14:58 > On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster > 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 ادريس سماوي حامد >>> 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. > --------------020902080904050603000404 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
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
___________________________________________________________________________________
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


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.


--------------020902080904050603000404-- --===============8288856403132769047== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8288856403132769047==--