From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98696 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: methods for numbered paragraphs Date: Sun, 06 Aug 2017 11:09:16 +0200 Message-ID: <5986DCBC.60208@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1716850744040789791==" X-Trace: blaine.gmane.org 1502010588 15786 195.159.176.226 (6 Aug 2017 09:09:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2017 09:09:48 +0000 (UTC) User-Agent: Postbox 5.0.16 (Macintosh/20170718) Cc: =?UTF-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrdin?= =?UTF-8?B?2YXYrw==?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 06 11:09:43 2017 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 1deHZ9-0003pf-I2 for gctc-ntg-context-518@m.gmane.org; Sun, 06 Aug 2017 11:09:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 940FE104E14; Sun, 6 Aug 2017 11:09:32 +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 T-WEPOatN-0m; Sun, 6 Aug 2017 11:09:31 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CC223104DB5; Sun, 6 Aug 2017 11:09:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 102A5104DB5 for ; Sun, 6 Aug 2017 11:09:30 +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 ruMf3FfF-Khy for ; Sun, 6 Aug 2017 11:09:29 +0200 (CEST) Original-Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) (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 6CE74104D2D for ; Sun, 6 Aug 2017 11:09:19 +0200 (CEST) Original-Received: by mail-wr0-f169.google.com with SMTP id 33so29694621wrz.4 for ; Sun, 06 Aug 2017 02:09:19 -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:cc:subject :references:in-reply-to; bh=jysQU1P6WExGGJ82SF8+Dd2R+frlW4EBcucW3ywfQ+4=; b=dkAZ3V0B1DjZf5viRc/NZa67T4JuckfvjvTtAbPEUiezdWUsdBJFCMRtEinFG3HVj0 CDivyImzmOQqW9k7o0MK7Xmc5u0a6LlfB9BgGO+3HB8BRgqvSmC7rgD7yMm7vafB4UK3 /v6yMQCI8C6c0TqqKZ3l94sOzl1xloso5X9FWGtSaOXZW1K3gfHJ+796iQ8czzizoejz zaScDEueKo8k9Vpif7QKuKrZTovqQ44tjnmQA+p7w+M7eoaw6pZh5RasYsnywo9Xug7L Ou/xgp610O6R9/PatVcG6Ct+zGrg3QteJ0rmdJaSPcN1doenI2zGiyatA7ZOPpOutVkQ 7j8Q== 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 :cc:subject:references:in-reply-to; bh=jysQU1P6WExGGJ82SF8+Dd2R+frlW4EBcucW3ywfQ+4=; b=qqbsqGhncqAGf6+frPIoLvE93oGoOgy3uRE7vXqy8zY8/ePhYim73MYTumUjhALKiE HgM7zcgkc/dS/jWUH/SFEVGKkWTqTuGpLf7LBQABYJZK3Qe9+DL/pAaOcezs9iJorhSx cYTmJZJqgHkDcbumdM9KjTvF+w55Q9DzqREfruls0gOw1z6C5uFcDXwyvVwxDEDFMP7Q xCIyhtwkLK46Z4uaOM+OEuWGL+ofLCmRae0oa3qcmsTt1op1LHrHfT7IOEJW2J4g0kFm IyM4ItdrFwZPJYylRpzysixoqP39st4zw1kWyx37OfUJ71ySlwawZNhOC9+zQIApwx45 WJXA== X-Gm-Message-State: AIVw113o6bV3cY4itpsOhNlxjgfdwvKXFDbCbNY61gBKxjGJzX3qs4zR QVKjvos6e9+wHNVxyvc= X-Received: by 10.223.139.147 with SMTP id o19mr5309821wra.207.1502010558631; Sun, 06 Aug 2017 02:09:18 -0700 (PDT) Original-Received: from [192.168.1.5] (x4e328fc0.dyn.telefonica.de. [78.50.143.192]) by smtp.gmail.com with ESMTPSA id l81sm3104450wmf.26.2017.08.06.02.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Aug 2017 02:09:17 -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:98696 Archived-At: This is a multi-part message in MIME format. --===============1716850744040789791== Content-Type: multipart/alternative; boundary="------------080202060709020201020400" This is a multi-part message in MIME format. --------------080202060709020201020400 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Idris Samawi Hamid ادريس سماوي حامد > 4. August 2017 um 06:36 > Dear syndicate, > > Not sure if there is a canonical way to do numbered paragraphs. In the > following, I use subsections to mimic numbered paragraphs: > > =======section-intext.tex======= > \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] > > \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] > > \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em] > > > \starttext > \startsection[title=Section 1] > \startsubsection > \input ward > \stopsubsection > > \startsubsection[title=Paragraph 2] > \input ward > \stopsubsection > > \startsubsection > \startparagraph > \input ward > \stopparagraph > \stopsubsection > \stopsection > \stoptext > ============== > > See attached output. > > In paragraphs 1 and 2, there is too much distance between the subsection > number (subsection number + title in paragraph 2) and between the text. > The distance parameter is not appropriate here, it is the distance > *after* > the section head that needs adjustment (even if the text portion of the > head (i.e., the section title) is empty). > > Question 1: How do we fix the post-head distance? > > Paragraph three shows that one apparently cannot mix this sectioning > approach with the \start-stopparagraph mechanism. > > Question 2: Is there a way to mix \start-stopparagraph with the above > subsection approach to par numbering? > > I suppose that as long as I maintain exactly one paragraph per > subsection, > then structured output (xml etc.) should look ok. > > Question 3: Is there a wiser way to handle this kind of par numbering in > mkiv? \setupwhitespace[big] \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}] \setupparagraphintro[each][\ParagraphNumber] \starttext \section{Section} \input ward \input ward \input ward \stoptext Wolfgang --------------080202060709020201020400 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Dear syndicate,

Not sure if there is a canonical way to do numbered paragraphs. In the
following, I use subsections to mimic numbered paragraphs:

=======section-intext.tex=======
\setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue]
\setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em]
\setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em]

\starttext
\startsection[title=Section 1]
\startsubsection
\input ward
\stopsubsection

\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection

\startsubsection
\startparagraph
\input ward
\stopparagraph
\stopsubsection
\stopsection
\stoptext
==============

See attached output.

In paragraphs 1 and 2, there is too much distance between the subsection
number (subsection number + title in paragraph 2) and between the text.
The distance parameter is not appropriate here, it is the distance *after*
the section head that needs adjustment (even if the text portion of the
head (i.e., the section title) is empty).

Question 1: How do we fix the post-head distance?

Paragraph three shows that one apparently cannot mix this sectioning
approach with the \start-stopparagraph mechanism.

Question 2: Is there a way to mix \start-stopparagraph with the above
subsection approach to par numbering?

I suppose that as long as I maintain exactly one paragraph per subsection,
then structured output  (xml etc.) should look ok.

Question 3: Is there a wiser way to handle this kind of par numbering in
mkiv?

\setupwhitespace[big]

\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]

\setupparagraphintro[each][\ParagraphNumber]

\starttext

\section{Section}

\input ward

\input ward

\input ward

\stoptext

Wolfgang
--------------080202060709020201020400-- --===============1716850744040789791== 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 --===============1716850744040789791==--