ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Law/Jurisdiction typesetting
@ 2007-07-05 15:41 Steffen Wolfrum
  2007-07-06 16:23 ` Steffen Wolfrum
  0 siblings, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2007-07-05 15:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Law/Jurisdiction typesetting
  2007-07-05 15:41 Law/Jurisdiction typesetting Steffen Wolfrum
@ 2007-07-06 16:23 ` Steffen Wolfrum
  2007-07-07 18:03   ` runner (was: Law/Jurisdiction typesetting) Steffen Wolfrum
  0 siblings, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2007-07-06 16:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* runner (was: Law/Jurisdiction typesetting)
  2007-07-06 16:23 ` Steffen Wolfrum
@ 2007-07-07 18:03   ` Steffen Wolfrum
  2007-07-07 19:53     ` Aditya Mahajan
  2007-07-08 10:30     ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Steffen Wolfrum @ 2007-07-07 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

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.pdf , 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runner (was: Law/Jurisdiction typesetting)
  2007-07-07 18:03   ` runner (was: Law/Jurisdiction typesetting) Steffen Wolfrum
@ 2007-07-07 19:53     ` Aditya Mahajan
  2007-07-08 10:30     ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2007-07-07 19:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.pdf , 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runner (was: Law/Jurisdiction typesetting)
  2007-07-07 18:03   ` runner (was: Law/Jurisdiction typesetting) Steffen Wolfrum
  2007-07-07 19:53     ` Aditya Mahajan
@ 2007-07-08 10:30     ` Wolfgang Schuster
  2007-07-08 19:46       ` Steffen Wolfrum
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-08 10:30 UTC (permalink / raw)
  To: ntg-context

On Sat, 7 Jul 2007 20:03:30 +0200
Steffen Wolfrum <context@st.estfiles.de> 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.pdf , 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runner (was: Law/Jurisdiction typesetting)
  2007-07-08 10:30     ` Wolfgang Schuster
@ 2007-07-08 19:46       ` Steffen Wolfrum
  2007-07-09  6:04         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2007-07-08 19:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <context@st.estfiles.de> 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.pdf 
>> , 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runner (was: Law/Jurisdiction typesetting)
  2007-07-08 19:46       ` Steffen Wolfrum
@ 2007-07-09  6:04         ` Wolfgang Schuster
  2007-07-09 11:20           ` Steffen Wolfrum
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-09  6:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2007/7/8, Steffen Wolfrum <context@st.estfiles.de>:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: runner (was: Law/Jurisdiction typesetting)
  2007-07-09  6:04         ` Wolfgang Schuster
@ 2007-07-09 11:20           ` Steffen Wolfrum
  0 siblings, 0 replies; 8+ messages in thread
From: Steffen Wolfrum @ 2007-07-09 11:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

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 <context@st.estfiles.de>:
>> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-09 11:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05 15:41 Law/Jurisdiction typesetting Steffen Wolfrum
2007-07-06 16:23 ` Steffen Wolfrum
2007-07-07 18:03   ` runner (was: Law/Jurisdiction typesetting) Steffen Wolfrum
2007-07-07 19:53     ` Aditya Mahajan
2007-07-08 10:30     ` Wolfgang Schuster
2007-07-08 19:46       ` Steffen Wolfrum
2007-07-09  6:04         ` Wolfgang Schuster
2007-07-09 11:20           ` Steffen Wolfrum

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).