Re: [NTG-context] TEST criticus apparatus with line numbering in footnotes

2022-01-08 Thread Jean-Pierre Delange via ntg-context
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
"Few discoveries are more irritating than those which expose the pedigree of 
ideas" - Lord Acton
___
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
___


Re: [NTG-context] TEST criticus apparatus

2022-01-06 Thread Jean-Pierre Delange via ntg-context
Thank you Pablo : it works fine on MACOS either !

> Le 6 janv. 2022 à 17:56, Pablo Rodriguez via ntg-context  
> a écrit :
> 
> 

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


Re: [NTG-context] TEST criticus apparatus

2022-01-06 Thread Pablo Rodriguez via ntg-context
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
 % Le script suivant nécessite différents tests avec une manipulation des paramètres, afin de préciser ce qui convient le mieux à votre travail d'édition. Ce script offre le schéma de plusieurs possibilités d'affichage des notes en bas de page avec diverses possibilités simultanées. On peut affiner encore,en ajoutant d'autres commandes stipulant les marges, les en-têtes, le numéro des pages, etc.
 \mainlanguage[la] % Définition du latin comme langue principale du document.
 \setupbodyfontenvironment[default][em=italic]
 \setuplayout[header=2cm, footer=2cm] % Paramétrage de la page;
 \setuplinenumbering[step=2] % La sortie PDF comportera une numérotation de 5 en 5; on peut régler sur 1 (ou 10).
 \setupnotations[alternative=serried] % On définit le caractère séquentiel des notes.
 \definelinenote[aNote] % Plusieurs manières d'afficher les notes ici, notamment en une ou en plusieurs colonnes (n=2, ou n=3).
 \definelinenote[bNote][n=2]
 \definelinenote[cNote][n=3]
 \definelinenote[dNote][paragraph=yes] % Les notes se suivent sur la même ligne.
 \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).
{\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}.
\stoplanguage

 \startlinenumbering
 \dorecurse{6}% À utiliser seulement pour répéter le paragraphe suivant, ici 8 fois.
{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
___
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
___


[NTG-context] TEST criticus apparatus

2022-01-06 Thread Jean-Pierre Delange via ntg-context
I’ve tested the attached file on MacOS (High Sierra) . See the result in PDF : 
the numbering of notes appears as « ? ». The same file works fineunder Linux.

ConTeXt_Test_FooteNote-ComplexMedieval.pdf
Description: Adobe PDF document




ConTeXt_Test_FooteNote-ComplexMedieval.log
Description: Binary data


ConTeXt_Test_FooteNote-ComplexMedieval.pdf
Description: Adobe PDF document


ConTeXt_Test_FooteNote-ComplexMedieval.tex
Description: Binary data
___
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
___


Re: [NTG-context] Test suite fonts/features-005.tex failing for me

2021-10-08 Thread Hans Hagen via ntg-context

On 10/3/2021 1:41 AM, Bruce Horrocks via ntg-context wrote:

In the test suite, the file fonts/features-005.tex is failing for me on latest 
lmtx. All three items appear the same each time i.e. no small caps and no 
old-style digits on the second and third.



Can anyone else reproduce this, please?

shoul dbe:

What \recursedepth\recurselevel\space
\feature[+]{smallcaps}
What \recursedepth\recurselevel\space
\feature[+]{oldstyle}
What \recursedepth\recurselevel\space



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] Test suite fonts/features-005.tex failing for me

2021-10-02 Thread Bruce Horrocks via ntg-context
In the test suite, the file fonts/features-005.tex is failing for me on latest 
lmtx. All three items appear the same each time i.e. no small caps and no 
old-style digits on the second and third.



Can anyone else reproduce this, please?
—
Bruce Horrocks
Hampshire, UK

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


Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context

Fabrice,

there is difference between putting something on the first page 
regardless of the number of pages in your document or do something when 
your document contains only a single or more pages.



When you have a header or title which is always placed on the first page 
(but not on the following pages) you have to options.


    1. Check the current page when to header is placed which can be 
done with \doif{\pagenumber}{1}{...}


    2. Disable the header on the first page (\setupheader[state=high]) 
and place your own title as a regular element in the running text.



A case where you have to number the number of total pages is when you 
try to show the page counter in the form "Page x of y" for 2 or more 
pages. In this case you have to check against the value for the total 
number of pages which can be done with 
\doifnot{\totalnumberofpages}{1}{...}.



Below are two examples which show how the header/title placement works.

 start example 1
\startsetups [header]
    \startframed [width=max,height=max]
    First page header
    \stopframed
\stopsetups

\startsetups [footer]
    Page \userpagenumber\ of \lastuserpagenumber
\stopsetups

\setupheadertexts
  [\doif{\pagenumber}{1}{\directsetup{header}}]

\setupfootertexts
  [\doifnot{\totalnumberofpages}{1}{\directsetup{footer}}]

\starttext
\dorecurse{12}{\samplefile{lorem}\par}
\stoptext
 stop example 1

 start example 2
\startsetups [header]
    \setupheader[state=high]
    \startframed [width=max,height=3cm]
    First page header
    \stopframed
    \blank
\stopsetups

\startsetups [footer]
    Page \userpagenumber\ of \lastuserpagenumber
\stopsetups

\setuppagenumbering
  [location=none]

\setupfootertexts
  [\doifnot{\totalnumberofpages}{1}{\directsetup{footer}}]

\starttext

\setup[header]

\dorecurse{12}{\samplefile{lorem}\par}

\stoptext
 stop example 2

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context



Fabrice Couvreur schrieb am 27.08.2021 um 10:04:

Hi Wolfgang,
This may not be nicest but seems to work
Fabrice

%%

\definelayout
[1]
  [header=10mm]

\setuplayout
  [header=0pt,
 height=middle]

\setuppagenumbering
[alternative=doublesided,location=]

\setupbackgrounds
[header]
  [text]
  [frame=off,bottomframe=on,
 framecolor=lightgray,rulethickness=1pt]

\startsetups[header]
\doifelse{\totalnumberofpages}{1}
    {\setuplayout[1]}
{\setuplayout[reset]}
\stopsetups


\starttext
\input knuth
%\dorecurse{10}{\input knuth\par}
\stoptext


I have no idea what you try to achieve but the check for the number of 
pages in your document is never used. The layout on the first page is 
different from the following pages but this is just how \definelayout 
work when you use a number as first argument.



What you have to understand is that a setups-environment is just a macro 
definition where you provide the names as argument to the start command. 
This means


    \startsetups [header]
    ...
    \stopsetups

works the same way as

    \def\internalname_header
      {...}

but you have to use

    \setups [header]

rather than

    \internalname_header

to get the content of the environment.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06:

Hi,

Using this (almost what I'm trying to do) without success

[...]

\startsetups[header]
\doifelse{\totalnumberofpages}{1}
{\setupheadertexts[\setups{header}]}
    {}
\stopsetups


This stores the page check in the setups environment  but you never call 
it. The call from within the environment itself can't work because the 
content is never evaluated and even if it would be called you create an 
endless loop.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
Hi,
Using this (but it's not exactly what I want) it works

test-1.tex %%

\setuppagenumbering
  [alternative=doublesided,location=]

\definelayout
  [1]
  [header=10mm]

\setuplayout
  [header=0pt,
   height=middle]

\setupbackgrounds
   [header]
   [text]
   [frame=off,bottomframe=on,
 framecolor=lightgray,rulethickness=1pt]


\starttext
\dorecurse{5}{\samplefile{lorem}}
%\dorecurse{1}{\samplefile{lorem}}
\stoptext

%%ù

Using this (almost what I'm trying to do) without success

test-2.tex %
\setuppagenumbering
  [alternative=doublesided,location=]

\setupbackgrounds
  [header]
  [text]
  [frame=off,bottomframe=on,
   framecolor=lightgray,rulethickness=1pt]

\startsetups[header]
  \doifelse{\totalnumberofpages}{1}
{\setupheadertexts[\setups{header}]}
{}
\stopsetups


\starttext
\dorecurse{5}{\samplefile{lorem}}
%\dorecurse{1}{\samplefile[lorem]r}
\stoptext

%%%

Fabrice


Le jeu. 26 août 2021 à 17:56, Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> a écrit :

> Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34:
> >
> > Hi,
> >
> >> On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context <
> ntg-context@ntg.nl> wrote:
> >>
> >> Hi,
> >> I know I asked the question a few years ago, but I don't remember !
> >> The idea is to test whether the document contains only one page or not.
> >
> > Perhaps not the nicest solution, but this works:
> >
> > \doifvalueelse
> >{\lastpage}
> >{1}
> >{\message{true}}
> >{\message{false}}
>
>
> Same solution but better counter name:
>
> \doifelse{\totalnumberofpages}{1}{...}{...}
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context

Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34:


Hi,


On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context  
wrote:

Hi,
I know I asked the question a few years ago, but I don't remember !
The idea is to test whether the document contains only one page or not.


Perhaps not the nicest solution, but this works:

\doifvalueelse
   {\lastpage}
   {1}
   {\message{true}}
   {\message{false}}



Same solution but better counter name:

\doifelse{\totalnumberofpages}{1}{...}{...}

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Taco Hoekwater via ntg-context

Hi,

> On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi, 
> I know I asked the question a few years ago, but I don't remember ! 
> The idea is to test whether the document contains only one page or not. 

Perhaps not the nicest solution, but this works:

\doifvalueelse
  {\lastpage}
  {1}
  {\message{true}}
  {\message{false}}

> If it contains only one page, the header is enabled. 
> If it contains several pages, the header is enabled only on the first page 
> but not on the others. 
> Thanks
> Fabrice
> ___
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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


[NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
Hi,
I know I asked the question a few years ago, but I don't remember !
The idea is to test whether the document contains only one page or not.
If it contains only one page, the header is enabled.
If it contains several pages, the header is enabled only on the first page
but not on the others.
Thanks
Fabrice
___
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
___


Re: [NTG-context] Test XML node registration

2019-05-17 Thread Hans Hagen

On 5/17/2019 10:28 AM, Hans van der Meer wrote:

Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
\xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if a certain node is in that series of nodes. For 
example doing \doifelse{\xmltag{#1}}... where the true branch is taken 
when \xmltag{#1} is one of those registered in the xmlcommon:setups.


Is that possible? Then what macro has to be called?

there is no such information


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] Test XML node registration

2019-05-17 Thread Hans van der Meer
Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
\xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if a certain node is in that series of nodes. For example 
doing \doifelse{\xmltag{#1}}... where the true branch is taken when \xmltag{#1} 
is one of those registered in the xmlcommon:setups.

Is that possible? Then what macro has to be called?

dr. Hans van der Meer


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


Re: [NTG-context] test-suite wiki page

2019-02-04 Thread Sanjoy Mahajan
On 2019-02-01 17:57, Taco Hoekwater  wrote:

> Yes, foundry.supelec.fr is officially dead now (and that project with
> it)

>> 2. I did find the (a?) test suite on the PRAGMA site at
>>    as a 7zip file.  Is that
>>   the correct location to point people to (apologies for the awful
>>   construction of that sentence)?
>
> Better is to link to the actual file on Pragma’s site.

Thanks -- these points are now reflected in the
 page.

-Sanjoy
___
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
___


Re: [NTG-context] test-suite wiki page

2019-02-01 Thread Taco Hoekwater
Hi,

> Op 1 feb. 2019 om 17:09 heeft Sanjoy Mahajan  het volgende 
> geschreven:
> 
> In another thread, Hans had pointed me to the examples of blocks in the
> test suite.  That leads to my following two questions before I revise
> the associated wiki page:
> 
> 1. The wiki page about the test suite
>    contains dead links 

Yes, foundry.supelec.fr is officially dead now (and that project with it)

> 2. I did find the (a?) test suite on the PRAGMA site at
>    as a 7zip file.  Is that
>   the correct location to point people to (apologies for the awful
>   construction of that sentence)?

Better is to link to the actual file on Pragma’s site. Hans sometimes changes 
the content of the .htm files, but the file itself (in fact most files on 
pragma-ade.com) has had that same location for a very long time now.

Best wishes,
Taco

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


[NTG-context] test-suite wiki page

2019-02-01 Thread Sanjoy Mahajan
In another thread, Hans had pointed me to the examples of blocks in the
test suite.  That leads to my following two questions before I revise
the associated wiki page:

1. The wiki page about the test suite
    contains dead links to
    for the project
   homepage and to  for
   the mailing list.

   Are those now officially dead; or, more directly stated, would there
   be any objections if I clean up that wiki page to remove those dead
   links?

2. I did find the (a?) test suite on the PRAGMA site at
    as a 7zip file.  Is that
   the correct location to point people to (apologies for the awful
   construction of that sentence)?

-Sanjoy
___
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
___


[NTG-context] TEST

2018-11-25 Thread Willi Egger
Hello, sorry for this mail, this is a test for my new provider.

Happy TeXing!

Willi
___
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
___

Re: [NTG-context] test on front/body/backmatter

2017-07-14 Thread Hans Hagen

On 7/14/2017 10:42 AM, Meer, Hans van der wrote:

Is there a test usable in a macro to determine if one is inside frontmatter, 
bodymatter, backmatter?

\starttext

\startfrontmatter

\doifelsemode{*frontpart}{yes}{no}
\doifelsemode{*backpart} {yes}{no}

\stopfrontmatter

\startbackmatter

\doifelsemode{*frontpart}{yes}{no}
\doifelsemode{*backpart} {yes}{no}

\stopbackmatter

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

[NTG-context] test on front/body/backmatter

2017-07-14 Thread Meer, Hans van der
Is there a test usable in a macro to determine if one is inside frontmatter, 
bodymatter, backmatter?

Hans van der Meer




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

Re: [NTG-context] Test Suite Fonts "extensions-001"

2016-04-29 Thread Wolfgang Schuster

Thomas Fehige 
29. April 2016 um 10:38

Below is a minimal not-working example extracted from 
"extensions-001.tex" in the fonts section of the test suite. From what 
I understand of the code, the second line should read "XPrXcXdXPrX" 
instead of "abracadabra". But it doesn't, it is still "abracadabra". 
Compiling the original extensions-001 gives me seven lines of 
"abracadabra". What am I doing wrong? I'm running ConTeXt version 
2015.05.18 12:26 MKIV current fmt: 2016.4.28 from the debian/ubuntu 
texlive packets.



You need a newer context version.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Test Suite Fonts "extensions-001"

2016-04-29 Thread Thomas Fehige
Below is a minimal not-working example extracted from 
"extensions-001.tex" in the fonts section of the test suite. From what I 
understand of the code, the second line should read "XPrXcXdXPrX" 
instead of "abracadabra". But it doesn't, it is still "abracadabra". 
Compiling the original extensions-001 gives me seven lines of 
"abracadabra". What am I doing wrong? I'm running ConTeXt version 
2015.05.18 12:26 MKIV current fmt: 2016.4.28 from the debian/ubuntu 
texlive packets.


\startluacode

fonts.handlers.otf.addfeature {

name = "stest",

type = "substitution",

data = {

a = "X",

b = "P",

}

}

\stopluacode

\definefontfeature[stest][stest=yes]

\starttext

\startTEXpage

\definedfont[file:DejaVuSerif.ttf*default]%

abracadabra\par

{\addff{stest}abracadabra\par}

\stopTEXpage

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] test for new page

2015-04-12 Thread Alan BRASLAU
Can someone indicate how one can easily test for a new page in a list
environment (or, indeed, anywhere else)?

In one implementation of a listing, repeated sequential items or
elements of items are suppressed, but I would like to repeat them when
they occur at the top of a new page. I imagine that there could be an
easy test for a new page or the text line number.

Thanks, in advance, for any hints.

Alan
___
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
___

Re: [NTG-context] test for new page

2015-04-12 Thread Hans Hagen

On 4/12/2015 10:42 AM, Alan BRASLAU wrote:

Can someone indicate how one can easily test for a new page in a list
environment (or, indeed, anywhere else)?

In one implementation of a listing, repeated sequential items or
elements of items are suppressed, but I would like to repeat them when
they occur at the top of a new page. I imagine that there could be an
easy test for a new page or the text line number.


sometimes this info is available in the low level data so it depends 
where you use it for


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___

[NTG-context] Test example for problem

2013-06-13 Thread hwitloc

The context docment below shows two anomalies.
 One is the occurrane of the unknown font latinmodernmath-regular, loading 
aborted and
 two is that the compilation process halts on the first 'D' in the word Dutch, 
and no item bullet is typeset.  The line \setmainfont[ipaexm]  seems to cause 
this irregular result.

 -- Example document --

\usemodule[simplefonts]
\setmainfont[ipaexm]

\definesymbol[5][$\diamond$]

\starttext

  世界、今日は!

\startitemize[5]
   \item  Dutch in English
\stopitemize

\stoptext

 -- end example --

 -- START REPORT --
mtx-context | run 1: luatex 
--fmt=/usr/local/texlive/2012/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en
 
--lua=/usr/local/texlive/2012/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui
 --backend=pdf ./test.tex \stoptext
This is LuaTeX, Version beta-0.70.2-2012062812 (TeX Live 2012)
 \write18 enabled.
(test.tex

ConTeXt  ver: 2012.05.30 11:26 MKIV  fmt: 2013.3.17  int: english/english

system   cont-new.mkiv loaded
(/usr/local/texlive/2012/texmf-dist/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'simplefonts'
(/usr/local/texlive/2012/texmf-dist/tex/context/third/simplefonts/t-simplefonts.mkiv
loading  ConTeXt User Module / Simplefonts
+ 
/usr/local/texlive/2012/texmf-dist/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/usr/local/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mr--3]
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mr--2]
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mr--1]
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mb--3]
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mb--2]
fontsdefining  forced type otf of latinmodernmath-regular not 
found
fontsdefining  font with asked name 'latinmodernmath-regular' is 
not found using lookup 'file'
fontsdefining  unknown font latinmodernmath-regular, loading 
aborted
fontsdefining  unable to define latinmodernmath-regular.otf as 
[simplefonts:1-12pt-mm-mb--1]
fontsmath: unset for global bodyfont simplefonts:1 at 12pt
! Math error: parameter \Umathquad\displaystyle is not set.

system   tex  error on line 11 in file test.tex: Math error: 
parameter \Umathquad\displaystyle is not set ...

 1 \usemodule[simplefonts]
 2 \setmainfont[ipaexm]
 3
 4 \definesymbol[5][$\diamond$]
 5
 6 \starttext
 7
 8   世界、今日は!
 9
10 \startitemize[5]
11  \item  Dutch in English
12 \stopitemize
13
14 \stoptext
15


\47:5 -$\diamond $

\symb_place_indeed ...name \??symbol #1\endcsname
  \relax \endgroup
\symb_place_retry ...name \symb_place_indeed {:#1}
  \else #1\fi
\symb_place_normal_c ...lace_retry \currentsymbol
  \fi
\symb_place_normal_b 

[NTG-context] Test

2013-04-12 Thread Keith J. Schultz
Hi All,

Sorry for the noise. For some reason I am have been recieving
mail from this list.

regards
Keith.

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


Re: [NTG-context] [test suite] Bidi and line numbering

2012-10-23 Thread Marco Pessotto

Hello there.

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/bidi/linenumbers-001.tex

The line numbering positioning is messed up and overlaps the text, or is
on the wrong side. With TL12 the output was good.

Cheers


-- 
Marco

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


Re: [NTG-context] [test suite] Column-related fails to compile

2012-10-23 Thread Marco Pessotto

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/columns/sets-001.tex
fails to compile, but it's not a regression since TL, where it fails too.

Cheers

system   tex  error on line 20 in file sets-001.tex: Missing number, 
treated as zero ...

10 
11 \showframe
12 
13 \starttext
14 
15 \setuppagenumbering[alternative=doublesided]]
16 \definecolumnset[mycolumnset][n=2]
17 
\definecolumnsetarea[einschub][left][x=1,y=1,nx=3,ny=20,background=contrast,state=start,leftoffset=1cm,rightoffset=1cm]
18 
19 \startcolumnset[mycolumnset]
20   \dorecurse{15}{\input tufte\par}
21 \stopcolumnset
22 
23 \stoptext
24 
25 

to be read again 
   \advance 
\docalculatecolumnsetspan ...c!backspace \advance 
  \!!widtha \namedlayoutpara...
\dodoplacecolumntextareas ...lculatecolumnsetspan 
  \!!heighta \columntextarea...
\docommand ...oplacecolumntextareas {#1}{\v!left }
  \else \doglobal \removefro...
\91 #1,-\docommand {#1}
  \syst_helpers_do_process_comma_item 
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance \...
...
l.20 \dorecurse{15}{\input tufte\par}
 
? X



-- 
Marco

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


Re: [NTG-context] [test suite] two linenote related testfiles fail

2012-10-23 Thread Marco Pessotto

FAILING:

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/critical/testlinenotes-007.tex

and 

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/critical/testlinenotes-008.tex

Also, it appears that \linenote was not present in TL12, so I don't have
a reference for all the testlinenotes files.

I'd be glad if someone more introduced to this feature let me know if
the output with the latest beta is fine.

! Missing number, treated as zero.

system   tex  error on line 9 in file testlinenotes-007.tex: Missing 
number, treated as zero ...

 1 \starttext
 2 
 3 \setuppapersize[S6][S6]
 4 
\setuplayout[width=middle,height=middle,margin=1.5cm,footer=0pt,header=1cm]
 5 
 6 \setupcolors[state=start] \setuptyping[option=color]
 7 
 8 \definelinenote[extralinenote][rule=off,frame=on,framecolor=darkgreen]
 9   \setuplinenote [linenote] [rule=off,frame=on,framecolor=darkred,n=2]
10 
11 \showframe
12 
13 \title{Bidi}
14 
15 \subject{Issues:}
16 
17 \startitemize
18 \item Line-numeral ranges need to be configurable: 1--4 and 4--1. It 
should
19 not be harwired, since eg, Persian, may prefer to keep an LR-style range.

to be read again 
   \relax 
\dorecurse #1-\ifcase #1\relax 
\expandafter \gobbletwoarguments \or \expand...
inserted text ...c!levels }\dorecurse \p_levels 
  {\strc_define_commands_not...
\define_notation ...\fi \the \everydefinenotation 
  \let \currentnotation \sav...
inserted text ...noteparent ][\c!type =\v!note ]
  \fi \ctxcommand {definenot...
\define_note ...te }\fi \fi \the \everydefinenote 
  \let \currentnote \saved_d...
...
l.9 \setuplinenote
   [linenote] [rule=off,frame=on,framecolor=darkred,n=2]
? X


-- 
Marco

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


[NTG-context] [test suite] Bibtex-related test fails to compile.

2012-10-22 Thread Marco Pessotto

I've imported most of the testfiles kindly provided by Hans. Now the
test suite has grown to ~900 files. I'm running them in chunks and I'll
keep reporting, even if I don't need the feature. If you prefer me to
post to another list, please let me know.

https://github.com/melmothx/context-unofficial-test-suite/tree/master/src/mkiv/bibtex

collapse-001.tex fails to compile. See below the log.

progressive-005.tex picks a different LM font, but probably because I
don't have the required fonts installed and it's using a different one
as fallback (I don't know which one is supposed to be the good one,
probably noone :-).

The other differences are just due to different distances, so I'm
promoting them to references.

Best wishes

context collapse-001.tex

mtx-context | run 1: luatex 
--fmt=/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
 --jobname=collapse-001 
--lua=/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
 --no-parse-first-line --c:currentrun=1 --c:fulljobname=./collapse-001.tex 
--c:input=./collapse-001.tex --c:kindofrun=1 cont-yes.mkiv
This is LuaTeX, Version beta-0.70.1-2012052416 (rev 4277) 
 \write18 enabled.
(/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2012.10.22 11:01 MKIV  fmt: 2012.10.22  int: english/english

system   cont-new.mkiv loaded
(/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname: collapse-001, input: collapse-001, result: 
collapse-001
fontslatin modern fonts are not preloaded
languageslanguage en is active
(collapse-001.tex{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
publications file collapse-001.bbl not found, waiting for bibtex
! Undefined control sequence.

system   tex  error on line 27 in file collapse-001.tex: Undefined 
control sequence ...

17 \stoppublication
18 
19 \setuppublications[state=start,refcommand=authoryear,authoretallimit=1]
20 
21 \setupcite[author][left=,right=]
22 
23 \starttext
24 
25 [\cite{Me2011}]\par
26 [\cite{Me2011,Me2012}] \par
27   [\cite{Me2013}]\par
28 
29 \stoptext
30 


\handlemultiplebibauthors ...et \currentbibauthor 
  \empty \def \bibprocessaut...
\setcurrentbibauthor ...hors {\commalistsize }{#1}
  \fi 
\dodobibauthoryear ...t }\setcurrentbibauthor {#1}
  \ifnum \scratchcounter =\p...
\91 #1,-\dodobibauthoryear {#1}
  \syst_helpers_do_process_comma_item 
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
  \fi \endgroup 
l.27 [\cite{Me2013}
   ]\par
? 

-- 
Marco

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


[NTG-context] Test suite report

2012-10-21 Thread Marco Pessotto

Hello there.

Aditya added a couple of testfiles. Thanks a lot. I encourage anyone
reporting bugs to send a minimal example to me too, via mail or via pull
requests on github, so people running the tests can catch regressions.

I modified the code, so a unique filename for each test is not required
anymore.

I promoted to references the PDF which have a minimal shifting, because
they generated too much noise, but I left one just as a reminder of the
different distance between columns.

Issue still pending (as far as I know):

https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/base/core-ver/core-ver-003.tex

 Number should continue.There are several long lines. Are the numbers correctly
 managed with long lines?
 \startcode[continue]

But it doesn't continue and it's reset to 1.

Cheers

-- 
Marco

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


Re: [NTG-context] Test suite report

2012-10-21 Thread Hans Hagen

On 21-10-2012 15:24, Marco Pessotto wrote:


Hello there.

Aditya added a couple of testfiles. Thanks a lot. I encourage anyone
reporting bugs to send a minimal example to me too, via mail or via pull
requests on github, so people running the tests can catch regressions.


there is s zip with lots of test files, it might make sense to take some 
from them (not all make sense in a visual compare)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Test suite report

2012-10-21 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 there is s zip with lots of test files, it might make sense to take
 some from them (not all make sense in a visual compare)

There are more then 800 files in
http://www.pragma-ade.com/context/latest/cont-tst.7z

Any clue about which directory can be safely dropped?

-- 
Marco
___
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
___


Re: [NTG-context] Test suite report

2012-10-21 Thread Marco Pessotto

 Any clue about which directory can be safely dropped?

Nevermind, I'm finding the way.

-- 
Marco

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


Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš


On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com wrote:


Hi Peter,

I recommend using the following handy little idiom:
\ctxlua{commands.doifelse(-45  0)}{big}{small} % small

It lets you do all sorts of things that are tricky in TeX:
\ctxlua{ commands.doifelse( string.len( -45 )  5 ) }{long}{short}

Cheers,
Sietse


... Has been wikified -

http://wiki.contextgarden.net/Command/doif...;

Lukas


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


Re: [NTG-context] test for (negative) number

2012-08-21 Thread Wolfgang Schuster

Am 21.08.2012 um 08:32 schrieb Procházka Lukáš l...@pontex.cz:

 
 On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com 
 wrote:
 
 Hi Peter,
 
 I recommend using the following handy little idiom:
 \ctxlua{commands.doifelse(-45  0)}{big}{small} % small
 
 It lets you do all sorts of things that are tricky in TeX:
 \ctxlua{ commands.doifelse( string.len( -45 )  5 ) }{long}{short}
 
 Cheers,
 Sietse
 
 ... Has been wikified -
 
 http://wiki.contextgarden.net/Command/doif…;

For functions in the commands namespace you can write e.g. 
\ctxcommand{doifelse(…)}{…}{…} instead of \ctxlua{commands.doifelse(…)}{…}{…}.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] test for (negative) number

2012-08-21 Thread Peter Rolf
Thanks for all the answers so far. The 'doifelse' should do the trick. I
was hoping for a system macro, but if there is none, I have to program
it myself. :-)

Peter

Am 21.08.2012 08:56, schrieb Wolfgang Schuster:
 
 Am 21.08.2012 um 08:32 schrieb Procházka Lukáš l...@pontex.cz:
 

 On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com 
 wrote:

 Hi Peter,

 I recommend using the following handy little idiom:
 \ctxlua{commands.doifelse(-45  0)}{big}{small} % small

 It lets you do all sorts of things that are tricky in TeX:
 \ctxlua{ commands.doifelse( string.len( -45 )  5 ) }{long}{short}

 Cheers,
 Sietse

 ... Has been wikified -

 http://wiki.contextgarden.net/Command/doif…;
 
 For functions in the commands namespace you can write e.g. 
 \ctxcommand{doifelse(…)}{…}{…} instead of \ctxlua{commands.doifelse(…)}{…}{…}.
 
 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  : 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
___

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš

... I also found another solution reposter before:


\ctxlua{commands.testcase(condition)}
  { If true...}
  {If false}


Note that both blocks (if-true and if-false) are mandatory.

Considering Wolfgang's last answer, it would be better to write:


\ctxcommand{testcase(condition)}
  { If true...}
  {If false}


Lukas



On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com wrote:


Hi Peter,

I recommend using the following handy little idiom:
\ctxlua{commands.doifelse(-45  0)}{big}{small} % small

It lets you do all sorts of things that are tricky in TeX:
\ctxlua{ commands.doifelse( string.len( -45 )  5 ) }{long}{short}

Cheers,
Sietse
___
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
___


Re: [NTG-context] test for (negative) number

2012-08-21 Thread Hans Hagen

On 21-8-2012 17:13, Procházka Lukáš wrote:

 I also found another solution reposter before:


\ctxlua{commands.testcase(condition)}
   { If true...}
   {If false}


yes, but testcase is an unfortunate name and sort of obsolete (so best 
use doifelse)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] test for (negative) number

2012-08-20 Thread Peter Rolf
Hi,

I used '\doifnumberelse' to validate some macro parameters (angle).
Sadly it does not work with negative numbers. Is there a similar macro,
that also supports negative values?

Example:

\doifnumberelse {45}{yes}{no}% yes
\doifnumberelse{-45}{yes}{no}% no


Greetings, Peter
___
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
___


Re: [NTG-context] test for (negative) number

2012-08-20 Thread Sietse Brouwer
Hi Peter,

I recommend using the following handy little idiom:
\ctxlua{commands.doifelse(-45  0)}{big}{small} % small

It lets you do all sorts of things that are tricky in TeX:
\ctxlua{ commands.doifelse( string.len( -45 )  5 ) }{long}{short}

Cheers,
Sietse
___
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
___


[NTG-context] Test for existence of a Ctx buffer by Lua

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to test by Lua whether a Ctx buffer exists?

---
\startbuffer[A]
  Aaa aaa
\stopbuffer

\starttext
  \getbuffer[A]
  Test
  %\getbuffer[NonExisting]
  Vvv
\stoptext
---

To get something like 'context.buffers.A' - no-nil and 
'context.buffers.NonExisting' - nil?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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


Re: [NTG-context] Test for existence of a Ctx buffer by Lua

2011-01-28 Thread Hans Hagen

On 28-1-2011 3:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

how to test by Lua whether a Ctx buffer exists?


\doifelsebuffer


---
\startbuffer[A]
Aaa aaa
\stopbuffer

\starttext
\getbuffer[A]
Test
%\getbuffer[NonExisting]
Vvv
\stoptext
---

To get something like 'context.buffers.A' - no-nil and
'context.buffers.NonExisting' - nil?

Best regards,

Lukas





--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] TEST

2010-09-22 Thread Procházka Lukáš

Please ignore this message - it's just a test due to some problems delivering 
e-mails to this conference.

Lukas


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


[NTG-context] test files for Xindy (was Re: [Context] Xindy)

2008-09-13 Thread Gour
 Arthur == Arthur Reutenauer [EMAIL PROTECTED] writes:

Hello Arthur!

Arthur   At for the original question, it certainly sounds like a good
Arthur idea to me, but it needs investigation.  Gour, can you make a
Arthur small test file with usage instruction?

I've found some old post from Xindy list (Jan 2003) with some
interesting info:

I have completed my project to demonstrate the use of Xindy in
conjunction with Context. The results are available in the following
(identical) collections of files:
http://wexfordpress.com/tex/culleton.zip
http://wexfordpress.com/tex/culleton.tar.gz

I look forward to a more elegant implementation by a more elegant
programmer.  But mine works for now.  :-) Anyone who needs to index a 
non-English document in Context (or pdfetex or whatever) need only
create an alphabet file and proceed onward.


So, if some ConTeXt expert can take a look and improve it, maybe we are
not far from having full Xindy support in ConTeXt.


Sincerely,
Gour

-- 

Gour  | Zagreb, Croatia  | GPG key: D19DB797



pgpGg8ndVIxY4.pgp
Description: PGP signature
___
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
___


[NTG-context] Test message, different mail server.

2007-11-06 Thread John Culleton
My isp doesn't like ntg.nl for some reason. 
-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___
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
___


[NTG-context] Test message---different mail server.

2007-11-06 Thread John Culleton

-- 
John Culleton
Precision Typesetting
Able Indexers and Typesetters
http://wexfordpress.com
___
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
___


[NTG-context] Test whether variable has been set

2007-05-27 Thread Elliot Clifton
Hi,

How can test whether a variable has been set? I couldn't find any
reference to this in the wiki?

TIA,

Elliot
___
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
___


Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
Hi Elliot,

Elliot Clifton schrieb:
 Hi,
 
 How can test whether a variable has been set? I couldn't find any
 reference to this in the wiki?

What do you mean by set?

I use

\doifnothing{\getvariable{foo}{bar}}
  {foo:bar contains nothing.\par}%
\doifsomething{\getvariable{foo}{bar}}
  {foo:bar contains something.\par}%
\doifelsenothing{\getvariable{foo}{bar}}
  {foo:bar contains nothing.\par}
  {foo:bar contains something.\par}%

to test, if a defined(!) variable contains something.

If you want to test if a variable is defined, you can use

\doifnotvariable{foo}{bar}
  {foo:bar is undefined.\par}%
\doifvariable{foo}{bar}
  {foo:bar is defined.\par}%
\doifelsevariable{foo}{bar}
  {foo:bar is defined.\par}
  {foo:bar is undefined.\par}%

Never used these macros, as I always define default values for my variables.


HTH, Peter


 TIA,
 
 Elliot
 ___
 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
___


Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Elliot Clifton
Hi Peter,

Thanks for your reply. I think I may have misunderstood the variable
section on the wiki. I been using \setvariable to both declare and
assign variables from my component files. When I should have been
declaring them in the environment file first, right?
\setvariable[namespace][key=DefaultValue], right? So how do I test for
a (Default)Value?
Sorry, I'm just beginning TeX programming I don't understand how to do this.

Elliot
___
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
___


Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Aditya Mahajan
On Sun, 27 May 2007, Elliot Clifton wrote:

 Hi Peter,

 Thanks for your reply. I think I may have misunderstood the variable
 section on the wiki. I been using \setvariable to both declare and
 assign variables from my component files. When I should have been
 declaring them in the environment file first, right?
 \setvariable[namespace][key=DefaultValue], right? So how do I test for
 a (Default)Value?
 Sorry, I'm just beginning TeX programming I don't understand how to do this.

Elliot,

You can use \doif{\getvalue{set}{var}}{value} for simple string 
comparisons. See http://wiki.contextgarden.net/System_Macros for basic 
flow control features of ConTeXt.

It may also be possble to see if variables have changed using setups 
http://wiki.contextgarden.net/Inside_ConTeXt#Using_setups_for_namespaces 
but I have never personally used that.

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
___


Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Hans Hagen
Aditya Mahajan wrote:
 On Sun, 27 May 2007, Elliot Clifton wrote:

   
 Hi Peter,

 Thanks for your reply. I think I may have misunderstood the variable
 section on the wiki. I been using \setvariable to both declare and
 assign variables from my component files. When I should have been
 declaring them in the environment file first, right?
 \setvariable[namespace][key=DefaultValue], right? So how do I test for
 a (Default)Value?
 Sorry, I'm just beginning TeX programming I don't understand how to do this.
 

 Elliot,

 You can use \doif{\getvalue{set}{var}}{value} for simple string 
 comparisons. See http://wiki.contextgarden.net/System_Macros for basic 
 flow control features of ConTeXt.

 It may also be possble to see if variables have changed using setups 
 http://wiki.contextgarden.net/Inside_ConTeXt#Using_setups_for_namespaces 
 but I have never personally used that.
   
these test if the variable has been set (defined test):

\doifelsevariable#1#2
\doifvariable#1#2
\doifnotvariable#1#2

(is not the same as test for empty)

there is also:

\getvariabledefault#1#2#3

with #3 being a default value for when undefined

Hans


-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
Elliot Clifton schrieb:
 Hi Peter,
 
 Thanks for your reply. I think I may have misunderstood the variable
 section on the wiki. I been using \setvariable to both declare and
 assign variables from my component files. When I should have been
 declaring them in the environment file first, right?

As long as you can garantee, that your variables are declared *before*
they are read, things are ok. But an environment or extra file is IMO
the cleanest way.

Reading an undefined variable results in the \empty token. This can be
problematic, if you expect a number; e.g.
\dimexpr\getvariable{foo}{width}\relax.

Anyway, it's no good idea to use something that is not defined.

So you have to
  - define a variable, before you use it  or
  - use the \doifnotvariable,\doifvariable and \doifelsevariable macros
before you try to read a (maybe undefined) variable.

I can't say much about the second one. Search the ConTeXt sources to get
an idea.

The \doifnothing,\doifsomething and \doifelsenothing macros just test,
if the variable is empty or not.
A variable can be defined with an empty value (\setvariable[foo][bar=]).
I use this for automatic size calculations. If no default value is
given, then the size is calculated in my macro.


 \setvariable[namespace][key=DefaultValue], right? So how do I test for
 a (Default)Value?

\doifsamestring{\getvariable{foo}{bar}} {your_default_value}
  {equal}%
\doifsamestringelse{\getvariable{foo}{bar}} {your_default_value}
  {equal}
  {unequal}%

probably not the fastest variant. If I remember it right, I had some
problems with \doif comparison (catcodes?).

 Sorry, I'm just beginning TeX programming I don't understand how to do this.

No problem. If it's not in the WIKI, this is the place to ask.


Best, Peter

 Elliot
 ___
 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
___


[NTG-context] test

2007-03-25 Thread John R. Culleton

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Test message

2007-03-02 Thread John Culleton
test
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] test

2007-02-13 Thread David Arnold
All,

please ignore this test.


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] test

2007-02-13 Thread Steve Peter

On Feb 13, 2007, at 10:24 PM, David Arnold wrote:

 please ignore this test.

Too late. I've already read it.

Steve
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Test

2007-02-08 Thread David Arnold
All,

Sorry, this is just a test.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Test, Ignore

2007-02-06 Thread John R. Culleton

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] test suite in the garden

2005-07-25 Thread Hans Hagen

Henning Hraban Ramm wrote:


Am 2005-07-25 um 22:04 schrieb Mojca Miklavec:


It is perhaps a lot of work included, but extending the
contextgarden.net in such a way that users could provide test cases
which would be typeset with different ConTeXt versions and PNGs
compared afterwards ... could make it easier to discover any broken
functionality.



Oh, another quest for our magic Patrick! ;-)

Let me extend the suggestion, for we miss a ConTeXt test suite for a  
long time now:


- users send test cases
- test cases get typeset with the actual ConTeXt and converted to PNG  
(like inline samples)

- user votes if it looks right, if not adds comment
- test case gets saved, including PNG, ConTeXt version and vote/comments
- at next update, all test cases get typeset again, and users can  
vote if it looks still ok or at least the same (perhaps it would be  
possible to check automatically if the bitmaps are exactly identical)


This does work only for max. 1 page samples, and I don't know if it's  
within the abilities of our wizard(s)...
And I guess different users have different opinions what looks  
right, but we could check if something changed.


i'd say, go ahead ... you can use the wiki as place to collect those things

Hans 


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context