Hi, using ConTeXt more and more for typesetting books from the field of law/jurisdiction I came across some specifics that I just don't know how to do in our beloved application: 1) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in the table of contents in such way: you have the content's entry (eg the section heading), then the dots, then the corresponding paragraph number, then the corresponding page number. 2) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in a separate "paragraph register" in such way: you have the index entry (a law's number), space, then you have the corresponding paragraph number (the text paragraph where the index was used). [But of course there is also a "regular register" afterwards, containing alphabetical listed keyword index entries pointing to page numbers.] So, how can that be done?? Yours, Steffen
Intensive googling brought me these solutions for paragraph enumeration: 1) % Enumerate paragraphs \newcounter\ParNum \def\GuyPar{\doglobal\increment\ParNum\inleft{\ParNum}} \setupbodyfont[ber,10pt] \setupwhitespace[big] \starttext \section[sec-language]{How this Book Teaches You The Language} \GuyPar Java is an object oriented programming language. When you use an object oriented programming language, your program consists of class definitions. \stoptext 2) \starttext \showframe \setupcolors[state=start] \setupparagraphnumbering[state=start,style=italic,distance=0pt] %\startlinenumbering \section{bloo} \input knuth \section{blah} \input knuth \par \setupparagraphnumbering[state=stop] \input tufte \par \blank \dorecurse{2}{\input tufte \par} \blank \par \setupparagraphnumbering[state=start,color=red] \dorecurse{4}{\input tufte \par} \stoptext Does anybody now have an idea how to re-use these paragraph numbers (in one of these examples) for linking in a TOC and/or a seperate index register (as described below)? Steffen On Thu, 5 Jul 2007 17:41:43 +0200, Steffen Wolfrum wrote:
Hi,
using ConTeXt more and more for typesetting books from the field of law/jurisdiction I came across some specifics that I just don't know how to do in our beloved application:
1) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in the table of contents in such way: you have the content's entry (eg the section heading), then the dots, then the corresponding paragraph number, then the corresponding page number.
2) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in a separate "paragraph register" in such way: you have the index entry (a law's number), space, then you have the corresponding paragraph number (the text paragraph where the index was used). [But of course there is also a "regular register" afterwards, containing alphabetical listed keyword index entries pointing to page numbers.]
So, how can that be done??
Yours,
Steffen ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi, now I found something (for LaTeX) that looks like exactly what I mean: a "runner" see http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc/doc/jmgerdoc.p... , page 20: "\rn[ (Marke) ] { (erstes Wort) } rn steht für Randnummer oder für runner, der englischen Bezeichnung für Randziffern." Does someone know how to do this in ConTeXt? Steffen
On Thu, 5 Jul 2007 17:41:43 +0200, Steffen Wolfrum wrote:
Hi,
using ConTeXt more and more for typesetting books from the field of law/jurisdiction I came across some specifics that I just don't know how to do in our beloved application:
1) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in the table of contents in such way: you have the content's entry (eg the section heading), then the dots, then the corresponding paragraph number, then the corresponding page number.
2) Paragraphs (not all) are labeled with numbers in the margin. These "paragraph numbers" are used in a separate "paragraph register" in such way: you have the index entry (a law's number), space, then you have the corresponding paragraph number (the text paragraph where the index was used). [But of course there is also a "regular register" afterwards, containing alphabetical listed keyword index entries pointing to page numbers.]
So, how can that be done??
Yours,
Steffen ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sat, 7 Jul 2007, Steffen Wolfrum wrote:
Hi,
now I found something (for LaTeX) that looks like exactly what I mean:
a "runner"
see http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc/doc/jmgerdoc.p... , page 20: "\rn[ (Marke) ] { (erstes Wort) } rn steht für Randnummer oder für runner, der englischen Bezeichnung für Randziffern."
Does someone know how to do this in ConTeXt?
Isn't this same as a section with just the number and the section number in the margin? Or did I completely misunderstand it? Aditya
On Sat, 7 Jul 2007 20:03:30 +0200
Steffen Wolfrum
Hi,
now I found something (for LaTeX) that looks like exactly what I mean:
a "runner"
see http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc/doc/jmgerdoc.p... , page 20: "\rn[ (Marke) ] { (erstes Wort) } rn steht für Randnummer oder für runner, der englischen Bezeichnung für Randziffern."
Does someone know how to do this in ConTeXt? Steffen
\unprotect \newcounter\rn!counter \def\rn{\dosingleempty\dorn} \def\dorn[#1]#2% {\doglobal\increment\rn!counter \iffirstargument \reference[#1]{\rn!counter} \fi \dontleavehmode\llap{\rn!counter\quad}} \protect \starttext Wolfgang \rn text text \rn[rn:one] text text see \in{runner}[rn:one] \unknown \rn text text \stoptext
Thank you Wolfgang. This was the easy part ... ... but do you also know how to implement in ConTeXt the real usage of runner – what I have described when starting this thread? [Is it understandable what I am looking for? Otherwise I can contact you privately in German.] Steffen On Sun, 8 Jul 2007 12:30:12 +0200, Wolfgang Schuster wrote:
On Sat, 7 Jul 2007 20:03:30 +0200 Steffen Wolfrum
wrote: Hi,
now I found something (for LaTeX) that looks like exactly what I mean:
a "runner"
see http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc/doc/jmgerdoc.p... , page 20: "\rn[ (Marke) ] { (erstes Wort) } rn steht für Randnummer oder für runner, der englischen Bezeichnung für Randziffern."
Does someone know how to do this in ConTeXt? Steffen
\unprotect
\newcounter\rn!counter
\def\rn{\dosingleempty\dorn}
\def\dorn[#1]#2% {\doglobal\increment\rn!counter \iffirstargument \reference[#1]{\rn!counter} \fi \dontleavehmode\llap{\rn!counter\quad}}
\protect
\starttext
Wolfgang
\rn text text
\rn[rn:one] text text
see \in{runner}[rn:one] \unknown
\rn text text
\stoptext ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
2007/7/8, Steffen Wolfrum
Thank you Wolfgang.
This was the easy part ... ... but do you also know how to implement in ConTeXt the real usage of runner – what I have described when starting this thread?
[Is it understandable what I am looking for? Otherwise I can contact you privately in German.]
Steffen
Hi Steffen, no problem to do this via private mail. My solution did also not work with enabled indenting. You can try: \setupindenting[big,yes] \starttext \rn text text \input knuth \stoptext Wolfgang
The big thing is still missing: How to set "runners", that can be listed in the TOC – in a separate column next to the pagenumbers? Steffen On Mon, 9 Jul 2007 08:04:35 +0200, Wolfgang Schuster wrote:
schuster.wolfgang@googlemail.com
2007/7/8, Steffen Wolfrum
: Thank you Wolfgang.
This was the easy part ... ... but do you also know how to implement in ConTeXt the real usage of runner – what I have described when starting this thread?
[Is it understandable what I am looking for? Otherwise I can contact you privately in German.]
Steffen
Hi Steffen,
no problem to do this via private mail.
My solution did also not work with enabled indenting. You can try:
\setupindenting[big,yes]
\starttext
\rn text text
\input knuth
\stoptext
Wolfgang
participants (3)
-
Aditya Mahajan
-
Steffen Wolfrum
-
Wolfgang Schuster