ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Could you look at this?
Date: Mon, 07 Aug 2017 20:17:21 +0200	[thread overview]
Message-ID: <5988AEB1.1030702@gmail.com> (raw)
In-Reply-To: <op.y4lsxp00ejo439@desktop-mt1m160>


[-- Attachment #1.1: Type: text/plain, Size: 1908 bytes --]


> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid@colostate.edu>
> 7. August 2017 um 15:54
> Hi Hans,
>
> https://mailman.ntg.nl/pipermail/ntg-context/2017/089431.html
>
> For the current writing project: It seems I've gotten about as far as 
> I'm going to get on the list with this. Could you kindly take a look 
> at the two automation challenges at the end of the message when you 
> get a chance?
>
> Eventually we want to also get, e.g.
>
> 1.01
> 2.01
>
> etc. but the full decimal version is a start. Here is a link to the 
> book that illustrates the layout:
>
> https://www.dropbox.com/s/q7znlu0y362abno/Mure-Introduction-to-Hegel-OCR.pdf?dl=0 
>
>
> Thanks in advance for your help.

\defineexpandable[1]\PreviousNumber
   {\number\numexpr#1-1\relax}

\defineconversion[PreviousNumber][\PreviousNumber]

\defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber]
\defineseparatorset [ParagraphNumber][.,]

\definecounter[ParagraphNumber][numberconversionset=ParagraphNumber,numberseparatorset=ParagraphNumber]

\define\ParagraphNumber
   {\incrementcounter[ParagraphNumber]%
    \incrementcounter[ParagraphNumber][2]%
    \incrementcounter[ParagraphNumber][3]%
    \convertedcounter[ParagraphNumber][numbersegments=1]\quad}

\define\subParagraphNumber
   {\incrementcounter[ParagraphNumber][2]%
    \incrementcounter[ParagraphNumber][3]%
    \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


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3338 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
___________________________________________________________________________________

  reply	other threads:[~2017-08-07 18:17 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 [this message]
2017-08-07 19:57   ` Wolfgang Schuster
2017-08-07 22:32     ` Idris Samawi Hamid ادريس سماوي حامد
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=5988AEB1.1030702@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).