From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114084 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Pierre Delange via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: TEST criticus apparatus with line numbering in footnotes Date: Sat, 8 Jan 2022 13:33:41 +0100 Message-ID: References: <1f46c416-131f-a1a1-c552-738e612d72c1@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6690718896883911486==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Cc: Jean-Pierre Delange To: Pablo Rodriguez via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 08 13:34:21 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6AvN-0002a6-1r for gctc-ntg-context-518@m.gmane-mx.org; Sat, 08 Jan 2022 13:34:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8B4CE2893E3; Sat, 8 Jan 2022 13:33:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xVlKpWHJWJui; Sat, 8 Jan 2022 13:33:46 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0750A28688E; Sat, 8 Jan 2022 13:33:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 002C928688E for ; Sat, 8 Jan 2022 13:33:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LY6Xvoxw1tpr for ; Sat, 8 Jan 2022 13:33:42 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.27.42.4; helo=smtp4-g21.free.fr; envelope-from=adeimantos@free.fr; receiver= Original-Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7570C2867A8 for ; Sat, 8 Jan 2022 13:33:42 +0100 (CET) Original-Received: from [IPV6:2a01:e0a:247:5030:cafe:2375:4390:d549] (unknown [IPv6:2a01:e0a:247:5030:cafe:2375:4390:d549]) (Authenticated sender: adeimantos@free.fr) by smtp4-g21.free.fr (Postfix) with ESMTPSA id 00E0A19F5AD for ; Sat, 8 Jan 2022 13:33:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1641645222; bh=UzAPZJrjagQ8uVX1tDmn6iGTM9C1O1HalztoeGnh10E=; h=Date:Subject:To:References:From:In-Reply-To:From; b=AwhPCIpMmm04O/KzSjM6FHgsePwXFXbNDC5IQNDH9o6Ue5hi1/giYk3VtzTHiYZWE l0vKN7akx6UafOlpOXwhJe4Jd/kUfIxBKqOvwmobuvZB0NUwKpsLplJ5Tu4rp9H8gA +NRQKsLB8RLdktrmpNLruaDDek43NKwJXq4m/4FbDqmLZujIm31PO61BIW5JnJ3HG2 yBJdfaJGMcyPRDBsZiGAnQY6hp+mF8LLGKOvzY31uo/N1WBaMsqRr0aD89ndft4o6X 2UrQ9j/CQ+cYZMgYNuR6KXJETOaFy3utNxxTdmRneBq8FdwdMrfJSVIgeL1E7Eeemu Xg/E6rrti8dow== Content-Language: fr-FR In-Reply-To: <1f46c416-131f-a1a1-c552-738e612d72c1@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114084 Archived-At: This is a multi-part message in MIME format. --===============6690718896883911486== Content-Type: multipart/alternative; boundary="------------PSqKFNgTvZgGTxDfkS2xG60Y" Content-Language: fr-FR This is a multi-part message in MIME format. --------------PSqKFNgTvZgGTxDfkS2xG60Y Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit The numbering of lines works fine on MacOS High Sierra and on Linux x64: under linux x64 my CTX version is current version: 2020.01.30 and for MacOS : 2021.12.30. Now, I have to play in order to get a two columns of different texts with a critical apparatus in footnotes.... on the basis of this code (I've enriched the didascalies for people who are fresh beginners): \mainlanguage[la] % Définition du latin comme langue principale du document/Latin as main language. \setupbodyfontenvironment[default][em=italic] \setuplayout[header=2cm, footer=2cm] % Paramétrage de la page; \setuplinenumbering[step=5] % La sortie PDF comportera une numérotation des lignes de 5 en 5; on peut régler de 1 à 10/Ruling linenumbering from 1 to 10. \setupnotations[alternative=serried] % On définit le caractère séquentiel des notes/ Definethe sequential mode of the notes. \definelinenote[aNote] % Plusieurs manières d'afficher les notes ici, notamment en une ou en plusieurs colonnes (n=2, ou n=3)/Several ways to display the notes here, especially in one or more columns (n ​​= 2, or n = 3) \definelinenote[bNote][n=2] \definelinenote[cNote][n=3] \definelinenote[dNote][paragraph=yes] % Les notes se suivent sur la même ligne/this option allow notes following on the same line . \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 \startlanguage[fr] % On indique à ConTeXt que l'on veut ici du texte en français (ou 'en' pour l'anglais)/We tell ConTeXt that we want text here in French (or 'en' for English/It is not the same as the \fallback command. {\em Définir un apparat critique et le mettre en page avec un traitement de texte courant est un véritable casse-tête. \type{LaTeX} et \type{ConTeXt} offrent des outils d'automatisation encore assez mal connus dans la communauté des éditeurs, notamment dans l'édition savante, pour la collation et la comparaison de textes médiévaux}.\par \stoplanguage \startlinenumbering \dorecurse{6}% À utiliser seulement pour répéter le paragraphe suivant, ici 6 fois/use thiscommand only to repeat the next paragraph, here 6 times. {Cum defensionum \CNote{laboribus}{première 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}{seconde note} et disciplina studio sapientiae, quae philosophia dicitur, contineretur, hoc mihi Latinis litteris \DNote{inlustrandum}{troisième note} putavi, non quia \BNote{philosophia}{quatrième 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 Le 06/01/2022 à 17:56, Pablo Rodriguez via ntg-context a écrit : > On 1/6/22 2:09 PM, Jean-Pierre Delange via ntg-context wrote: >> I’ve tested the attached file on MacOS (High Sierra) . See the >> result in PDF : the numbering of notes appears as « ? ». > Jean-Pierre, > > your code contains "\start\fr" with no matching "\stop". > > I wonder whether "\startlanguage[fr] ... \stoplanguage" would be more > readable. > >> The same file works fine under Linux. > Line numbering couldn’t be solved by ConTeXt (I’m on Linux 64bit). > > I hope it helps, > > Pablo > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- Jean-Pierre Delange Agrégé de philosophie Ancients&Moderns "Few discoveries are more irritating than those which expose the pedigree of ideas" - Lord Acton --------------PSqKFNgTvZgGTxDfkS2xG60Y Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

The numbering of lines works fine on MacOS High Sierra and on Linux x64: under linux x64 my CTX version is current version: 2020.01.30 and for MacOS : 2021.12.30.

Now, I have to play in order to get a two columns of different texts with a critical apparatus in footnotes.... on the basis of this code (I've enriched the didascalies for people who are fresh beginners):


\mainlanguage[la] % Définition du latin comme langue principale du document/Latin as main language.

\setupbodyfontenvironment[default][em=italic]

\setuplayout[header=2cm, footer=2cm] % Paramétrage de la page;

\setuplinenumbering[step=5] % La sortie PDF comportera une numérotation des lignes de 5 en 5; on peut régler de 1 à 10/Ruling linenumbering from 1 to 10.

\setupnotations[alternative=serried] % On définit le caractère séquentiel des notes/ Define the sequential mode of the notes.

\definelinenote[aNote] % Plusieurs manières d'afficher les notes ici, notamment en une ou en plusieurs colonnes (n=2, ou n=3)/Several ways to display the notes here, especially in one or more columns (n ​​= 2, or n = 3)

\definelinenote[bNote][n=2]

\definelinenote[cNote][n=3]

\definelinenote[dNote][paragraph=yes] % Les notes se suivent sur la même ligne/this option allow notes following on the same line .

\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

\startlanguage[fr] % On indique à ConTeXt que l'on veut ici du texte en français (ou 'en' pour l'anglais)/We tell ConTeXt that we want text here in French (or 'en' for English/It is not the same as the \fallback command.

{\em Définir un apparat critique et le mettre en page avec un traitement de texte courant est un véritable casse-tête. \type{LaTeX} et \type{ConTeXt} offrent des outils d'automatisation encore assez mal connus dans la communauté des éditeurs, notamment dans l'édition savante, pour la collation et la comparaison de textes médiévaux}.\par

\stoplanguage

\startlinenumbering

\dorecurse{6}% À utiliser seulement pour répéter le paragraphe suivant, ici 6 fois/use this command only to repeat the next paragraph, here 6 times.

{Cum defensionum \CNote{laboribus}{première 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}{seconde note} et disciplina studio sapientiae, quae

philosophia dicitur, contineretur, hoc mihi Latinis litteris

\DNote{inlustrandum}{troisième note} putavi, non quia

\BNote{philosophia}{quatrième 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

Le 06/01/2022 à 17:56, Pablo Rodriguez via ntg-context a écrit :
On 1/6/22 2:09 PM, Jean-Pierre Delange via ntg-context wrote:
I’ve tested the attached file on MacOS (High Sierra) . See the
result in PDF : the numbering of notes appears as « ? ».
Jean-Pierre,

your code contains "\start\fr" with no matching "\stop".

I wonder whether "\startlanguage[fr] ... \stoplanguage" would be more
readable.

The same file works fine under Linux.
Line numbering couldn’t be solved by ConTeXt (I’m on Linux 64bit).

I hope it helps,

Pablo

___________________________________________________________________________________
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
___________________________________________________________________________________
-- 
Jean-Pierre Delange
Agrégé de philosophie
Ancients&Moderns
"Few discoveries are more irritating than those which expose the pedigree of ideas" - Lord Acton
--------------PSqKFNgTvZgGTxDfkS2xG60Y-- --===============6690718896883911486== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6690718896883911486==--