Hi Idriss, Pablo, Wolfgang and Hans,

It has been a long time since I have read the Wittgenstein "Tractacus-Logico-Philosophicus". I remember, when I was 20, that I was very puzzled by this assertion : "Wovon man nicht klar sagen, muss man schweigen".

I guess Wittgenstein didn't think about coding numbered paragraphs !

JP


Le 08/08/2017 à 00:26, Idris Samawi Hamid ادريس سماوي حامد a écrit :
Hi Wolfgang,

On Mon, 07 Aug 2017 12:17:21 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote:


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@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

Many thanks, Wolfgang, you are a true wizard. Wittgenstein and Mure would be proud.

With much appreciation
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
___________________________________________________________________________________

Reply via email to