From: "Idris Samawi Hamid ادريس سماوي حامد" <Idris.Hamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Could you look at this?
Date: Mon, 07 Aug 2017 16:32:38 -0600 [thread overview]
Message-ID: <op.y4mgwocqejo439@desktop-mt1m160> (raw)
In-Reply-To: <5988C644.5030404@gmail.com>
On Mon, 07 Aug 2017 13:57:56 -0600, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
> Simpler version:
>
> \defineseparatorset [ParagraphNumber][.,]
>
> \definecounter[ParagraphNumber][numberseparatorset=ParagraphNumber,criterium=all]
>
> \define\ParagraphNumber
> {\incrementcounter[ParagraphNumber]%
> \convertedcounter[ParagraphNumber][numbersegments=1]\quad}
>
> \define\subParagraphNumber
> {\incrementcounter[ParagraphNumber][2]%
> \convertedcounter[ParagraphNumber][numbersegments=1:2]\quad}
>
> \define\subsubParagraphNumber
> {\incrementcounter[ParagraphNumber][3]%
> \convertedcounter[ParagraphNumber][numbersegments=1:3]\quad}
>
> \setupwhitespace[line]
>
> \starttext
>
> \ParagraphNumber\input ward
>
> \subsubParagraphNumber\input ward
>
> \subParagraphNumber\input ward
>
> \subsubParagraphNumber\input ward
>
> \subsubParagraphNumber\input ward
>
> \subParagraphNumber\input ward
>
> \subsubParagraphNumber\input ward
>
> \ParagraphNumber\input ward
>
> \stoptext
Thank you again, Wolfgang. After playing with this, figured out how to do
the full decimal version; just toggle
% \defineseparatorset [ParagraphNumber][.,] % no second decimal for
susubparagraphs
\defineseparatorset [ParagraphNumber][.,.] % second decimal for
susubparagraphs
Pablo, could you wikify this? The following page is now obsolete:
http://wiki.contextgarden.net/Paragraph_Enumeration
Thanks in advance.
Again, many thanks to Pablo and Wolfgang.
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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-08-07 22:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 13:54 Idris Samawi Hamid ادريس سماوي حامد
2017-08-07 18:17 ` Wolfgang Schuster
2017-08-07 19:57 ` Wolfgang Schuster
2017-08-07 22:32 ` Idris Samawi Hamid ادريس سماوي حامد [this message]
2017-08-08 7:29 ` Hans Hagen
2017-08-08 14:04 ` Idris Samawi Hamid ادريس سماوي حامد
2017-08-08 14:13 ` Idris Samawi Hamid ادريس سماوي حامد
2017-08-09 4:14 ` Idris Samawi Hamid ادريس سماوي حامد
2017-08-09 5:32 ` Idris Samawi Hamid ادريس سماوي حامد
2017-08-07 22:26 ` Idris Samawi Hamid ادريس سماوي حامد
2017-08-08 7:34 ` Jean-Pierre Delange
2017-08-08 14:04 ` Idris Samawi Hamid ادريس سماوي حامد
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.y4mgwocqejo439@desktop-mt1m160 \
--to=idris.hamid@colostate.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).