Thank you very much Pablo ! 
I've tested on my Windows/Linux/Mac OS X installation and it's working fine. 
I've tried to change different parameters and your code is always working 
perfectly.
I'll make a SVG print in order to screen it on 
https://fr.wikibooks.org/wiki/ConTeXt.

One more time : thank you Pablo !
JP



----- Mail original -----
De: "Pablo Rodriguez" <oi...@gmx.es>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Samedi 14 Mai 2016 19:16:45
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/13/2016 04:25 PM, Jean-Pierre Delange wrote:
> 
> I am currently writing in French some ConTeXt documentation. That's
> why I'm looking for some help about coding footnotes within a 'critical
> apparatus' work, like the sample given here below (which is given by
> Maieul Rouquette through its release of reledmac's LaTeX macro). Let me
> know, please, some documentation resources on this topic.
> 
> My question is as follow : how can ConTeXt produce the same printing
> as the one given by LaTeX ? I am not looking for a very translation in
> ConTeXt of this file given in LaTeX ! A similar sample (where different
> levels of notes are managed as in this LaTeX file) will be perfect.

Hi Jean-Pierre,

here you have a basic sample:

    \mainlanguage[la]
    \setuplayout[header=0cm, footer=0cm]
    \setuplinenumbering[step=5]
    \setupnotations[alternative=serried]
    \definelinenote[aNote]
    \definelinenote[bNote][n=2]
    \definelinenote[cNote][n=3]
    \definelinenote[dNote][paragraph=yes]
    \def\ANote#1#2{#1\aNote{#1] #2}}
    \def\BNote#1#2{#1\bNote{#1] #2}}
    \def\CNote#1#2{#1\cNote{#1] #2}}
    \def\DNote#1#2{#1\dNote{#1] #2}}
    \setupbodyfont[palatino, 7.8pt]
    \starttext
    \start\en
    \startlinenumbering
    \dorecurse{9}% only to repeat the following paragraph
    {Cum defensionum \CNote{laboribus}{first note} senatoriisque
    muneribus aut omnino aut magna ex parte essem aliquando liberatus,
    rettuli me, Brute, te hortante maxime ad ea studia, quae retenta
    animo, remissa temporibus, longo intervallo intermissa revocavi, et
    cum omnium artium, quae ad rectam vivendi viam pertinerent,
    \ANote{ratio}{second note} et disciplina studio sapientiae, quae
    philosophia dicitur, contineretur, hoc mihi Latinis litteris
    \DNote{inlustrandum}{third note} putavi, non quia
    \BNote{philosophia}{fourth note} Graecis et litteris et doctoribus
    percipi non posset, sed meum semper iudicium fuit omnia nostros aut
    invenisse per se sapientius quam Graecos aut accepta ab illis
    fecisse meliora, quae quidem digna statuissent, in quibus
    elaborarent.\par}
    \stoplinenumbering
    \stoptext

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to