Re: [NTG-context] Macro to write the euro symbol

2018-04-08 Thread Otared Kavian
Hi Fabrice,

I don't know about the \symbol[EUR], but you can use directly the € symbol as 
in:

\unexpanded\def\euros#1{#1\,€}
\starttext

\euros{100}
  
\stoptext 

Best regards: OK



> On 7 Apr 2018, at 23:56, Fabrice Couvreur  wrote:
> 
> Hello,
> This macro does not work anymore and I do not understand why.
> Thank you
> 
> \unexpanded\def\euros#1{#1\,\symbol[EUR]}
> 
> \starttext
> 
> \euros{100}
>   
> \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
> ___

___
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] Macro to write the euro symbol

2018-04-08 Thread Fabrice Couvreur
Hello Otared,
Thank you for your answer even though I knew we could do like that. In fact
I wanted to understand why a macro that works very well for several years
no works.
Fabrice

2018-04-08 9:09 GMT+02:00 Otared Kavian :

> Hi Fabrice,
>
> I don't know about the \symbol[EUR], but you can use directly the € symbol
> as in:
>
> \unexpanded\def\euros#1{#1\,€}
> \starttext
>
> \euros{100}
>
> \stoptext
>
> Best regards: OK
>
>
>
> On 7 Apr 2018, at 23:56, Fabrice Couvreur 
> wrote:
>
> Hello,
> This macro does not work anymore and I do not understand why.
> Thank you
>
> \unexpanded\def\euros#1{#1\,\symbol[EUR]}
>
> \starttext
>
> \euros{100}
>
> \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
> 
> ___
>
>
>
> 
> ___
> 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
___

[NTG-context] Text overflowing on a figure included in a float

2018-04-08 Thread Fabrice Couvreur
Hello,
Sorry if the example is not minimal but otherwise it would be difficult to
explain the problem. The text overflows on the figure and I do not know how
to correct this.
Thank you
Fabrice


\usemodule[pgfplots]

\pgfplotsset{compat=newest}

\starttext
\placefigure[right,none]{}{
\hbox{\framed{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare
function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x
-5;}]
\startaxis[
 restrict x to domain=-20:20, xmax=20, xmin=-20,
 restrict y to domain=-25:30, ymax=30, ymin=-25,
 x=0.1cm,
 y=0.1cm,
 axis x line = middle,
 axis y line = middle,
 axis line style =  thick,
 major grid style=gray,
 minor grid style=gray,
 tickwidth=0.1cm,
 xtick align=outside,
 ytick align=outside,
 grid=both,
 xtick={-15,-10,...,15},
 ytick={-20,-15,...,25},
 xticklabels={\empty,\empty,\empty,\empty,5,\empty,\empty,\empty},
 
yticklabels={\empty,\empty,\empty,\empty,\empty,5,\empty,\empty,\empty,\empty,\empty,\empty},
 extra x ticks={-20,20},
 extra x tick label={\null},
 extra y ticks={-25,30},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 every tick/.style={
black,
thick,
  },
 y tick label style={
   /pgf/number format/1000 sep={}
   },
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
at={(ticklabel* cs:1.01)},
anchor=west,
},
every axis y label/.style={
at={(ticklabel* cs:1.01)},
anchor=south,
},
 samples=2000,
 >=stealth,
]

\addplot [smooth,domain=-20:20,thick,darkblue] {f(x)} ;
\addplot [smooth,domain=-20:20,thick,darkred] {g(x)} ;
\addplot [smooth,domain=-20:20,thick,yellow] {h(x)} ;

\draw[thick,darkgreen](5,-25)--(5,30) ;

\node[below left=2pt] at (-0.1,-0.1,0) {\math{0}} ;

\stopaxis
\stoptikzpicture}}}
  \startitemize[n]
  \item On considère les droites \math{{\cal D}\,\colon x=5} et \math{{\cal
D'}\,\colon y=3x+7}.

\startitemize[a]
\item Que vaut l'abscisse du point d'intersection de \math{{\cal D}} et
\math{{\cal D'}} ?
\item Calculer alors son ordonnée.
\item Interpréter graphiquement le résultat sur le graphique.
\stopitemize
  \item On considère les droites \math{\Delta \,\colon y=-4x+1} et
\math{\Delta '\,\colon y=2x-5}.

\startitemize[a]
\item Résoudre l'équation \math{-4x+1=2x-5}.
\item Donner une interprétation graphique de la solution obtenue.
\item Donner les coordonnées du point d'intersection de \math{\Delta}
et \math{\Delta '}.
\item Interpréter graphiquement le résultat sur le graphique.
\stopitemize
  \stopitemize
\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
___

Re: [NTG-context] Macro to write the euro symbol

2018-04-08 Thread Hans Hagen

On 4/8/2018 9:09 AM, Otared Kavian wrote:

Hi Fabrice,

I don't know about the \symbol[EUR], but you can use directly the € 
symbol as in:


\unexpanded\def\euros#1{#1\,€}
\starttext

\euros{100}
\stoptext

most fonts nowadays have a properly matched euro

\usesymbols[mvs] % has your EUR

\starttext

\unexpanded\def\euros#1{#1\,€}

\euros{100}

\unexpanded\def\euros#1{#1\,\symbol[europe][EUR]}

\euros{100}

\stoptext

We don't load these symbol sets by default. Soon the tex gyre fonts will 
contain many more symbols which means that we will also get away from 
some currently traditional symbols taken from math fonts.


Hans

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

Re: [NTG-context] Text overflowing on a figure included in a float

2018-04-08 Thread Hans Hagen

On 4/8/2018 11:08 AM, Fabrice Couvreur wrote:

Hello,
Sorry if the example is not minimal but otherwise it would be difficult 
to explain the problem. The text overflows on the figure and I do not 
know how to correct this.


By choosing the right language:

\mainlanguage[fr]

or increasing the tolerance:

% \setuptolerance[stretch,verytolerant]



Thank you
Fabrice


\usemodule[pgfplots]

\pgfplotsset{compat=newest}

\starttext
\placefigure[right,none]{}{
\hbox{\framed{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare 
function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x -5;}]

\startaxis[
  restrict x to domain=-20:20, xmax=20, xmin=-20,
  restrict y to domain=-25:30, ymax=30, ymin=-25,
  x=0.1cm,
  y=0.1cm,
  axis x line = middle,
  axis y line = middle,
  axis line style =  thick,
  major grid style=gray,
  minor grid style=gray,
  tickwidth=0.1cm,
  xtick align=outside,
  ytick align=outside,
  grid=both,
  xtick={-15,-10,...,15},
  ytick={-20,-15,...,25},
  xticklabels={\empty,\empty,\empty,\empty,5,\empty,\empty,\empty},
  
yticklabels={\empty,\empty,\empty,\empty,\empty,5,\empty,\empty,\empty,\empty,\empty,\empty},
  extra x ticks={-20,20},
  extra x tick label={\null},
  extra y ticks={-25,30},
  extra y tick label={\null},
  extra tick style={tick style={draw=none}},
  every tick/.style={
     black,
     thick,
   },
  y tick label style={
    /pgf/number format/1000 sep={}
    },
  xlabel=$x$,ylabel=$y$,
  every axis x label/.style={
     at={(ticklabel* cs:1.01)},
     anchor=west,
},
every axis y label/.style={
     at={(ticklabel* cs:1.01)},
     anchor=south,
},
  samples=2000,
  >=stealth,
]

\addplot [smooth,domain=-20:20,thick,darkblue] {f(x)} ;
\addplot [smooth,domain=-20:20,thick,darkred] {g(x)} ;
\addplot [smooth,domain=-20:20,thick,yellow] {h(x)} ;

\draw[thick,darkgreen](5,-25)--(5,30) ;

\node[below left=2pt] at (-0.1,-0.1,0) {\math{0}} ;

\stopaxis
\stoptikzpicture}}}
   \startitemize[n]
   \item On considère les droites \math{{\cal D}\,\colon x=5} et 
\math{{\cal D'}\,\colon y=3x+7}.


     \startitemize[a]
     \item Que vaut l'abscisse du point d'intersection de \math{{\cal 
D}} et \math{{\cal D'}} ?

     \item Calculer alors son ordonnée.
     \item Interpréter graphiquement le résultat sur le graphique.
     \stopitemize
   \item On considère les droites \math{\Delta \,\colon y=-4x+1} et 
\math{\Delta '\,\colon y=2x-5}.


     \startitemize[a]
     \item Résoudre l'équation \math{-4x+1=2x-5}.
     \item Donner une interprétation graphique de la solution obtenue.
     \item Donner les coordonnées du point d'intersection de 
\math{\Delta} et \math{\Delta '}.

     \item Interpréter graphiquement le résultat sur le graphique.
     \stopitemize
   \stopitemize
\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
___




--

-
  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] how to change the colour of the footnote marker

2018-04-08 Thread Robert Zydenbos
Today I wanted to print an entire document not in standard black, but in 
blue. I added (Mk II) –


\setupcolors [state=start]
\define\kleur{blue} % so I can change the colour uniformly everywhere 
through this variable

\startcolor [\kleur]
\setupnote[footnote][before={\color[\kleur]}]
\setupfooter [color=\kleur]

– and everything becomes blue, but NOT the footnote number before the 
footnote itself at the bottom of the page (the marker in the main text 
is coloured the way I want).


Can anyone tell me how to change the colour of the footnote number in 
the note?


Robert

___
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] double followtokens?

2018-04-08 Thread Hans Hagen

On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:

On 04/07/2018 11:25 PM, Hans Hagen wrote:

On 4/7/2018 11:04 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

\useMPlibrary[txt]

\starttext

\startuseMPgraphic{followtokens}
 path RotPath ; RotPath := reverse halfcircle ;
 % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ;
\stopuseMPgraphic

\followtokens{Just follow the tokens}
\stoptext

How can I get both paths (in diverse directions)?

I would like to repeat the same text twice, separating both sentences
with a character.

I have to ask this, beause MetaPost is all Greek to me.

i have no clue what you mean but this will change the direction


Many thanks for your reply, Hans.

I attach an image of what I mean.

I want a full circle in two halves with the same duplicated sentence.
The first one written clockwise and the second one written
counterclockwise (as in the commented path above).

I hope it is clearer now.


path p ; p := reverse halfcircle scaled 5cm ;
path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

\followtokens{~this way~}
\followtokens{\reversedtext{~this way~}}

we will have this in metafun:

followtext("this way",p) ;

so that one can do it all in mp ... a nice gimmick for the ctx meeting

Hans


-
  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] Build for Alpine Linux

2018-04-08 Thread Brian Hunt
Hello everyone,

Per this question on tex.StackOverflow, I am having trouble getting ConTeXt
(LuaTeX specifically) to run on Alpine Linux:

https://tex.stackexchange.com/questions/425463

Specifically, the build from ConTeXt standalone has a LuaTeX that seems not
to run against the musl libc6 library.  Here are symptoms:

/context/bin # ldd luatex
/lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
Error loading shared library ld-linux-x86-64.so.2:
No such file or directory (needed by luatex)
Error relocating luatex: __rawmemchr: symbol not found
Error relocating luatex: __isnan: symbol not found


Has anyone run ConTeXt on Alpine?

Many thanks.
Brian
-- 

*from the personal account of:*

*Brian M Hunt *
Direct: +1-289-684-4677
LinkedIn: https://linkedin.com/in/brianmhunt

*This e-mail may contain information that is private, privileged,
confidential and/or exempt from disclosure. Except as per this notice no
waiver of any kind is intended by sending this e-mail, and this email is
intended only for the named recipient(s) or the subscribers of a forwarding
service the email is sent directly to and to which service you are an
authorized recipient. Use, dissemination or copying without authorization
is prohibited. Please notify the sender and destroy all copies of this
e-mail if you have received this email in error.*
___
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] how to change the colour of the footnote marker

2018-04-08 Thread Tomas Hala
Hi Robert,

I don't understand if you need solution for MkII, or
if you tried something from MkII. 

For MkIV you can use this:

\def\mycmd#1{\startcolor[\kleur]#1\stopcolor}
\setupnotation[footnote][numbercommand=\mycmd]

(But I don't know whether it will work witk MkII.)

The best,

Tomáš

Sun, Apr 08, 2018 ve 01:02:45PM +0200 Robert Zydenbos napsal(a):
# Today I wanted to print an entire document not in standard black,
# but in blue. I added (Mk II) –
# 
# \setupcolors [state=start]
# \define\kleur{blue} % so I can change the colour uniformly
# everywhere through this variable
# \startcolor [\kleur]
# \setupnote[footnote][before={\color[\kleur]}]
# \setupfooter [color=\kleur]
# 
# – and everything becomes blue, but NOT the footnote number before
# the footnote itself at the bottom of the page (the marker in the
# main text is coloured the way I want).
# 
# Can anyone tell me how to change the colour of the footnote number
# in the note?
# 
# Robert
# 
# 
___
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] how to change the colour of the footnote marker

2018-04-08 Thread Wolfgang Schuster

\definecolor[kleur][blue]

\setupcolors[state=start,textcolor=kleur]

\setupnotedefinition[footnote][color=kleur]
\setupnote  [footnote][rulecolor=kleur]

\starttext

\input knuth
\footnote{\input ward }

\stoptext

Wolfgang


Robert Zydenbos 
8. April 2018 um 13:02
Today I wanted to print an entire document not in standard black, but 
in blue. I added (Mk II) –


\setupcolors [state=start]
\define\kleur{blue} % so I can change the colour uniformly everywhere 
through this variable

\startcolor [\kleur]
\setupnote[footnote][before={\color[\kleur]}]
\setupfooter [color=\kleur]

– and everything becomes blue, but NOT the footnote number before the 
footnote itself at the bottom of the page (the marker in the main text 
is coloured the way I want).


Can anyone tell me how to change the colour of the footnote number in 
the note?


Robert

___ 

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] double followtokens?

2018-04-08 Thread Pablo Rodriguez
On 04/08/2018 04:41 PM, Hans Hagen wrote:
> On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:
>> [...]
>> I want a full circle in two halves with the same duplicated sentence.
>> The first one written clockwise and the second one written
>> counterclockwise (as in the commented path above).
>>
>> I hope it is clearer now.
> 
>  path p ; p := reverse halfcircle scaled 5cm ;
>  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>  \followtokens{~this way~}
>  \followtokens{\reversedtext{~this way~}}

Many thanks for the reply, Hans.

I don’t know what I’m missing here, but I cannot get your code working.
Here you have the full sample:

  \useMPlibrary[txt]

  \starttext
  \startuseMPgraphic{followtokens}
 path p ; p := reverse halfcircle scaled 5cm ;
 path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

 path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
  \stopuseMPgraphic

  \followtokens{~this way~}
  \followtokens{\reversedtext{~this way~}}
  \stoptext

\reversedtext is undefined (I’m using beta from 2018.04.04 00:51).

But even commenting that second command, \followtokens seems to require
that path is named RotPath to be used the text. I get the standard line.

What am I doing wrong here?

> we will have this in metafun:
> 
>  followtext("this way",p) ;
> 
> so that one can do it all in mp ... a nice gimmick for the ctx meeting

This will be incredibly handy.

Many thanks for your help,

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

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Mojca Miklavec
Dear Brian,

On 8 April 2018 at 16:56, Brian Hunt wrote:
> Hello everyone,
>
> Per this question on tex.StackOverflow, I am having trouble getting ConTeXt
> (LuaTeX specifically) to run on Alpine Linux:
>
> https://tex.stackexchange.com/questions/425463
>
> Specifically, the build from ConTeXt standalone has a LuaTeX that seems not
> to run against the musl libc6 library.

We have a "nearly working" one. At least all the binaries should be
there, see for example:
http://distribution.contextgarden.net/setup/linuxmusl-64/

There are two to three remaining problems:

1.) I disabled automatic musl recognition (short after enabling it)
after this bug report:
https://mailman.ntg.nl/pipermail/ntg-context/2018/091094.html
I need to finish "parsing"
https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html
and a few other posts in that thread and maybe make some additional
testing. There was some "oh no, it has to be the other way around"
discussion where I no longer followed and I need some more time to
read everything more carefully (no time for that right now).

2.) Most likely a patch in mtxrun is still needed (but I admit that I
didn't check) for proper platform recognition. The fact that we are
struggling in shell doesn't really help doing this part either :)

3.) Ideally we need to set up some automated LuaTeX builds to be able
to get the latest LuaTeX binaries in the future.

> Has anyone run ConTeXt on Alpine?

At the moment it should work if you install TeX Live 2018 pretest with
the ConTeXt scheme or if you fiddle a bit with the installation (you
need to hardcode the platform name in first-setup.sh and then still
some minor things might still go wrong, not sure). But in fact very
little is required to fix the remaining issues.

Can you please remind us to pick this up again in a couple of days?

In the meantime, if you are willing to do some more extensive testing
of patches (see full thread linked above) on both musl & non-musl
linuxes, in various shells etc., as well as perhaps come up with a
patch for mtxrun, that might help.

Mojca
___
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] Build for Alpine Linux

2018-04-08 Thread Arthur Reutenauer
On Sun, Apr 08, 2018 at 10:50:16PM +0200, Mojca Miklavec wrote:
> I need to finish "parsing"
> https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html

  I was wondering if anyone had paid attention to that :-)  I realise
the explanation is a bit long, but there were many details and I thought
it was interesting to document the situation.  In summary:

  1. The flow of the current test is corect, making the GNU libc the default
  2. The string ^musl should be escaped, for example with single quotes
  3. grep -q has a confusing behaviour and should be replaced by grep >/dev/null
  4. (Not in the long explanation) grep -E is recommended when using regexps

That is to say:

if command -v ldd >/dev/null && ldd --version 2>&1 | grep -E '^musl' 
>/dev/null
then
libc=musl
else
libc=glic
end

  Best,

Arthur
___
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] double followtokens?

2018-04-08 Thread Hans Hagen

On 4/8/2018 8:10 PM, Pablo Rodriguez wrote:

On 04/08/2018 04:41 PM, Hans Hagen wrote:

On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:

[...]
I want a full circle in two halves with the same duplicated sentence.
The first one written clockwise and the second one written
counterclockwise (as in the commented path above).

I hope it is clearer now.


  path p ; p := reverse halfcircle scaled 5cm ;
  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

  \followtokens{~this way~}
  \followtokens{\reversedtext{~this way~}}


Many thanks for the reply, Hans.

I don’t know what I’m missing here, but I cannot get your code working.
Here you have the full sample:

   \useMPlibrary[txt]

   \starttext
   \startuseMPgraphic{followtokens}
  path p ; p := reverse halfcircle scaled 5cm ;
  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

  path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
   \stopuseMPgraphic

   \followtokens{~this way~}
   \followtokens{\reversedtext{~this way~}}
   \stoptext

\reversedtext is undefined (I’m using beta from 2018.04.04 00:51).


of course it it ... it's basically the lua snippet i sent a few mails ago


But even commenting that second command, \followtokens seems to require
that path is named RotPath to be used the text. I get the standard line.


sure, that's how it works (at least with that module ... that trickery 
dates from mkii)



What am I doing wrong here?


probably using a mechanism in away that is a bit ovet the top

(so you can wait till the embedded variant shows up)


we will have this in metafun:

  followtext("this way",p) ;

so that one can do it all in mp ... a nice gimmick for the ctx meeting


This will be incredibly handy.


i wonder, not many users run into this feature (kind of coincidence that 
we have two reports this month) .. it's mostly that i was curious if it 
could be integrated that i looked into it



Many thanks for your help,

Pablo




--

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

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Henri Menke
On Sun, 2018-04-08 at 22:50 +0200, Mojca Miklavec wrote:
> Dear Brian,
> 
> On 8 April 2018 at 16:56, Brian Hunt wrote:
> > 
> > Hello everyone,
> > 
> > Per this question on tex.StackOverflow, I am having trouble getting ConTeXt
> > (LuaTeX specifically) to run on Alpine Linux:
> > 
> > https://tex.stackexchange.com/questions/425463
> > 
> > Specifically, the build from ConTeXt standalone has a LuaTeX that seems not
> > to run against the musl libc6 library.
> We have a "nearly working" one. At least all the binaries should be
> there, see for example:
> http://distribution.contextgarden.net/setup/linuxmusl-64/
> 
> There are two to three remaining problems:
> 
> 1.) I disabled automatic musl recognition (short after enabling it)
> after this bug report:
> https://mailman.ntg.nl/pipermail/ntg-context/2018/091094.html
> I need to finish "parsing"
> https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html
> and a few other posts in that thread and maybe make some additional
> testing. There was some "oh no, it has to be the other way around"
> discussion where I no longer followed and I need some more time to
> read everything more carefully (no time for that right now).

This only blows up on Zsh.  I will contact the "config.guess" maintainer (from
where I stole that snippet).

> 
> 2.) Most likely a patch in mtxrun is still needed (but I admit that I
> didn't check) for proper platform recognition. The fact that we are
> struggling in shell doesn't really help doing this part either :)
> 
> 3.) Ideally we need to set up some automated LuaTeX builds to be able
> to get the latest LuaTeX binaries in the future.
> 
> > 
> > Has anyone run ConTeXt on Alpine?
> At the moment it should work if you install TeX Live 2018 pretest with
> the ConTeXt scheme or if you fiddle a bit with the installation (you
> need to hardcode the platform name in first-setup.sh and then still
> some minor things might still go wrong, not sure). But in fact very
> little is required to fix the remaining issues.
> 
> Can you please remind us to pick this up again in a couple of days?
> 
> In the meantime, if you are willing to do some more extensive testing
> of patches (see full thread linked above) on both musl & non-musl
> linuxes, in various shells etc., as well as perhaps come up with a
> patch for mtxrun, that might help.
> 
> Mojca
___
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] Build for Alpine Linux

2018-04-08 Thread Arthur Reutenauer
On Mon, Apr 09, 2018 at 09:26:35AM +1200, Henri Menke wrote:
> This only blows up on Zsh.  I will contact the "config.guess" maintainer (from
> where I stole that snippet).

  The unescaped caret is only a problem on zsh with EXTENDED_GLOB
activated, but the effect of grep -q is problematic, and not using -E
with a regexp is strange, for code that’s supposed to be highly
portable.

Best,

Arthur
___
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] how to change the colour of the footnote marker

2018-04-08 Thread Robert Zydenbos

Greetings, Tomáš,

On 08.04.2018 17:41, Tomas Hala wrote:


Hi Robert,

I don't understand if you need solution for MkII, or
if you tried something from MkII.

For MkIV you can use this:

defmycmd#1{startcolor[kleur]#1stopcolor}
setupnotation[footnote][numbercommand=mycmd]

(But I don't know whether it will work witk MkII.)


Thank you for the proffered help – but I found a very similar snippet of 
code in a message to this list from 2015 and tried it.


Mk II does not have \setupnotation[footnote] yet, and when I 
'translated' it to \setupfootnotes (which ordinarily ought to work in Mk 
II), it unfortunately did not work. (I need to use Mk II because I need 
the functionality of XeTeX.)


However, Wolfgang gave the solution! I do not know why that is the 
solution :-), but it works.



The best,


Robert

--

Prof. Dr. Robert J. Zydenbos
Institute of Indology and Tibetology
Department of Asian Studies
Ludwig-Maximilians-Universität München (University of Munich – LMU)
Germany

___
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] how to change the colour of the footnote marker

2018-04-08 Thread Robert Zydenbos

Greetings, Wolfgang,

On 08.04.2018 17:46, Wolfgang Schuster wrote:


definecolor[kleur][blue]

setupcolors[state=start,textcolor=kleur]

setupnotedefinition[footnote][color=kleur]
setupnote [footnote][rulecolor=kleur]



…etc…


It works! Thank you for the solution.

One thing that puzzles me, however, is that you (Wolfgang) are able to 
produce solutions using (so it seems) undocumented commands and 
parameters. How did you hit upon the idea to use 'rulecolor' here? I 
rely on the ConTeXt manual (2013 version), and there is nothing there to 
suggest that 'rulecolor' determines the colour of the text of footnotes. 
Neither did the Wiki help me.


Is there some hidden documentation I do not know about?

Robert
___
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] how to change the colour of the footnote marker

2018-04-08 Thread Wolfgang Schuster



Robert Zydenbos 
9. April 2018 um 00:40
Greetings, Wolfgang,

On 08.04.2018 17:46, Wolfgang Schuster wrote:


definecolor[kleur][blue]

setupcolors[state=start,textcolor=kleur]

setupnotedefinition[footnote][color=kleur]
setupnote [footnote][rulecolor=kleur]



…etc…


It works! Thank you for the solution.

One thing that puzzles me, however, is that you (Wolfgang) are able to 
produce solutions using (so it seems) undocumented commands and 
parameters. How did you hit upon the idea to use 'rulecolor' here? I 
rely on the ConTeXt manual (2013 version), and there is nothing there 
to suggest that 'rulecolor' determines the colour of the text of 
footnotes. Neither did the Wiki help me.


Is there some hidden documentation I do not know about?
You can look them up in the command reference which exists since a very 
long time (the current version is MkIV/LuaTeX only):


http://pragma-ade.com/show-man-5.htm

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] how to change the colour of the footnote marker

2018-04-08 Thread Wolfgang Schuster



Robert Zydenbos 
9. April 2018 um 00:33
Greetings, Tomáš,

On 08.04.2018 17:41, Tomas Hala wrote:


Hi Robert,

I don't understand if you need solution for MkII, or
if you tried something from MkII.

For MkIV you can use this:

defmycmd#1{startcolor[kleur]#1stopcolor}
setupnotation[footnote][numbercommand=mycmd]

(But I don't know whether it will work witk MkII.)


Thank you for the proffered help – but I found a very similar snippet 
of code in a message to this list from 2015 and tried it.


Mk II does not have \setupnotation[footnote] yet, and when I 
'translated' it to \setupfootnotes (which ordinarily ought to work in 
Mk II), it unfortunately did not work. (I need to use Mk II because I 
need the functionality of XeTeX.)


1. \setupnotation is the new command name for \setupnotedefinition

2. Which language do you use in your document?

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] Build for Alpine Linux

2018-04-08 Thread Henri Menke
On Sun, 2018-04-08 at 22:50 +0200, Mojca Miklavec wrote:
> Dear Brian,
> 
> On 8 April 2018 at 16:56, Brian Hunt wrote:
> > 
> > Hello everyone,
> > 
> > Per this question on tex.StackOverflow, I am having trouble getting ConTeXt
> > (LuaTeX specifically) to run on Alpine Linux:
> > 
> > https://tex.stackexchange.com/questions/425463
> > 
> > Specifically, the build from ConTeXt standalone has a LuaTeX that seems not
> > to run against the musl libc6 library.
> We have a "nearly working" one. At least all the binaries should be
> there, see for example:
> http://distribution.contextgarden.net/setup/linuxmusl-64/
> 
> There are two to three remaining problems:
> 
> 1.) I disabled automatic musl recognition (short after enabling it)
> after this bug report:
> https://mailman.ntg.nl/pipermail/ntg-context/2018/091094.html
> I need to finish "parsing"
> https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html
> and a few other posts in that thread and maybe make some additional
> testing. There was some "oh no, it has to be the other way around"
> discussion where I no longer followed and I need some more time to
> read everything more carefully (no time for that right now).
> 
> 2.) Most likely a patch in mtxrun is still needed (but I admit that I
> didn't check) for proper platform recognition. The fact that we are
> struggling in shell doesn't really help doing this part either :)
> 
> 3.) Ideally we need to set up some automated LuaTeX builds to be able
> to get the latest LuaTeX binaries in the future.

Similar to TeX live I have set up an automated Travis CI build, which can deploy
binaries to GitHub releases.
https://github.com/hmenke/luatex/blob/master/.travis.yml

However, I just forked Adam's mirror and I am not planning to keep mine updated.
It would be nice to have some sort of “official” LuaTeX mirror on GitHub for
that.  Nevertheless, it might be worthwhile to check the '.travis.yml' I posted
above into the LuaTeX SVN.

> 
> > 
> > Has anyone run ConTeXt on Alpine?
> At the moment it should work if you install TeX Live 2018 pretest with
> the ConTeXt scheme or if you fiddle a bit with the installation (you
> need to hardcode the platform name in first-setup.sh and then still
> some minor things might still go wrong, not sure). But in fact very
> little is required to fix the remaining issues.
> 
> Can you please remind us to pick this up again in a couple of days?
> 
> In the meantime, if you are willing to do some more extensive testing
> of patches (see full thread linked above) on both musl & non-musl
> linuxes, in various shells etc., as well as perhaps come up with a
> patch for mtxrun, that might help.
> 
> Mojca
___
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
___