Re: [NTG-context] Palatino patch for the current ConTeXt version

2013-12-21 Thread Jan Tosovsky
On 2013-11-17 Jan Tosovsky wrote:
 I am trying to fix a Palatino small caps issue using the procedure
 explained here:
 http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV
 
 That fix seems to be obsolete nowadays and returning errors.
 

thanks a lot to all who participated on this issue, especially to Khaled for
fixing the internal font processing. Now Palatino font doesn't need to be
patched on client side which simplifies the font setup significantly.

I've updated that Wiki page accordingly. Feel free to correct me.

Jan

___
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] Request for metapost

2013-12-21 Thread DesdeChaves
I know that metapost can send the variables version, number, string,
point, quad, boolean and path to Context.
triplet variable can't pass. It will be very usefull if metapost can send
a array to context.

\startMPcode

numeric x[];
for i = 1 upto 10: x[i]:=random; endfor

passvariable(array,x);
passvariable(version,1.0) ;
passvariable(number,x[1]) ;
passvariable(string,whatever) ;
passvariable(point,(1,2)) ;
passvariable(triplet,(1,2,3)) ;
passvariable(quad,(1,2,3,4)) ;
passvariable(boolean,false) ;
passvariable(path,fullcircle scaled 1cm) ;


\stopMPcode

\ctxluacode{inspect(metapost.variables)}

\ctxcommand{mprunvar(array)}


Thanks in advance

Jorge
___
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] What is the error of that header lines?

2013-12-21 Thread Xan
Hi,

Can someone help me? I'm a little bit crazy. I have this example (sorry, I 
tried to achieve more minimal version):

%% Carregam símbols
\usesymbols[eur]

%% Capçaleres i peus
\setupheadertexts[{\sc\rm Funcions (T2)}]
\setupheadertexts[{\rm \sc CEPA Sud}][{\rm \sc ESPA 4. Quad. 1}]
\setupfootertexts[{\rm \sc Pàgina \pagenumber\space de \lastpage\space - 13 de 
desembre de 2013}]

\usemodule[tikz]

% BUGGY things
\definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451]
\setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}]
\setupheader[text][style={\ss},color={headingcolor},after={\hrule}]
% end of buggy things

\starttext

\startitemize[n]

\item \input tufte.tex

\input tufte.tex

\input tufte.tex
\input tufte.tex

\item Cada matí, en Tomeu camina des de ca seva fins a la parada de l'autobús 
més pròxima (vegeu la figura~\in[fig:Tomeu-modificat]).
El gràfic següent mostra aquest recorregut en un dia concret:


\placefigure[here]
[fig:Tomeu-modificat]
{Recorregut del dia 13 de desembre de 2013}
{
\bTABLE[frame=off,align=middle,width=fit]
   \bTR[frame=off]
 \bTD \bgroup \framed[frame=off]{\starttikzpicture[scale=0.6]
\draw[very thin,help lines, color=gray] (-0.1,-0.1) grid (12.2,10);
\draw[-] (-0.2,0) -- (12.2,0);
\draw (6, -1) node[anchor=north] {$\text{Temps transcorregut (segons)}$};
\draw[-] (0,-0.2) -- (0,10.2) node[above] {$\text{Distància a casa 
(metres)}$};

\foreach \x/\xtext in {1/10, 2/20, 3/30, 4/40, 5/50, 6/60, 7/70, 8/80, 9/90, 
10/100, 11/110, 12/120}
{
\draw (\x, -0.1 cm) -- (\x, 0.1 cm);
\draw (\x, 0 cm) node[anchor=north] {\small  $\xtext$};
}

\foreach \x/\xtext in {1/20, 2/40, 3/60, 4/80, 5/100, 6/120, 7/140, 8/160, 
9/180, 10/200}
{
\draw (-0.1 cm, \x) -- (0.1 cm, \x);
\draw (0, \x) node[anchor=east] {\small $\xtext$};
}


\draw[color=blue, ultra thick] (0,0) -- (5,3) -- (7,1) -- (10,9) -- (12.2,9);

\stoptikzpicture} \egroup \eTD
   \eTR
\eTABLE}



\startitemize[a,packed]
\item Quines variables es representen en el gràfic?
\item A quina distància (de ca seva) està la parada del bus?
\item Quina escala s'utilitza per a cada variable?
\item A quin tram del gràfic va més ràpid? A quin tram va més lent?
\item Quina velocitat duu a cada tram?
\item Emparella aquest gràfic amb la història que correspongui:

\startitemize[A]
\item \startframedtext En Tomeu camina lentament. Després d'una estona, se 
n'adona que li han caigut els guants i torna enrera per a agafar-los. En aquest 
punt, veu arribar l'autobús i corre ràpidament fins a la parada. \stopframedtext
\stopitemize

\stopitemize


\item Elegiu una de les opcions següents:

Ramírez

Botella





\stopitemize
\stoptext


When I compile it, I have extra blue lines after the picture, but if I remove 
this lines:

\definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451]
\setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}]
\setupheader[text][style={\ss},color={headingcolor},after={\hrule}]


Then, all is ok.

What is the error?

Thanks a lot,
Xan.
___
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] Rebuilding the font cache: segmentation fault 11

2013-12-21 Thread Willi Egger
Hello all,

did anyone else experience this:

fonts   | names | globbing path '/Users/willi/Library/Fonts/**.ttf'
fonts   | names | globbing path '/Library/Fonts/**.ttf'Segmentation 
fault: 11

I struggle with this issue since I stepped over to a new Mac book Air. Is there 
something tricky in the Library/Fonts directory? May be a subfolder could cause 
this?

Kind regards

Will___
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] Rebuilding the font cache: segmentation fault 11

2013-12-21 Thread Hans Hagen

On 12/21/2013 11:02 PM, Willi Egger wrote:

Hello all,

did anyone else experience this:

fonts   | names | globbing path '/Users/willi/Library/Fonts/**.ttf'
fonts   | names | globbing path
'/Library/Fonts/**.ttf'Segmentation fault: 11

I struggle with this issue since I stepped over to a new Mac book Air.
Is there something tricky in the Library/Fonts directory? May be a
subfolder could cause this?


there are bugged fonts ... some more bugs will be catched in the next 
version of luatex, due in a few days


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
___


Re: [NTG-context] doublestroke

2013-12-21 Thread Elspeth McGullicuddy
Still trying to have different blackboard symbols than those default with
modern, but also to learn more about fonts, I've found these two examples
that I've been trying to adapt to math (
http://tex.stackexchange.com/questions/124824/context-unicode-fallback-font),
one involving \definefontfallback, the other one using \setmainfontfallback
with some range.

It is very interesting because in both cases I completely fail to obtain
the result I want.
In the first case I do have the symbols from termes, but only some N
instead of \char0x2115.
In the second case (simplefonts), all symbols follow the required fallback,
but the math characters.



\definefontfallback
  [termes_fallback]
  [termes] [0x-0x] %%[force=no]

\Umathquad\displaystyle=1em
\Umathaxis\textstyle=.8ex

\starttypescript [myModern]
\definetypeface [myModern] [rm] [serif] [modern] [default]
\definetypeface [myModern] [ss] [sans]  [modern]  [default]
[rscale=0.887]
\definetypeface [myModern] [tt] [mono]  [modern][default]
[rscale=1.163]
\definetypeface [myModern] [mm] [math]  [termes_fallback] [default]
[rscale=1.050]
\stoptypescript

\usetypescript[myModern]
\setupbodyfont[myModern,12pt]

\starttext

The default one doesn't even seem to have $ℕ \char2115 \Umathchar 0
0 2115\alpha$\char2115,  α (alpha).


\usemodule[simplefonts]
\setmainfontfallback[termes][range={0x-0x}, force=yes,
  rscale=auto]

The default one doesn't even seem to have
$\Umathchar002115\utfchar{2115}$ (white circle) or α (alpha).

\stoptext



Some help with those examples would be very helpful.

Regards,
Chris





On Thu, Dec 19, 2013 at 4:50 PM, Elspeth McGullicuddy 
elspethmcgullicu...@gmail.com wrote:

 Hi,
 I'm writing math and I'm using modern, and I would like to use
 doublestroke.
 There is an example here,
 http://www.ntg.nl/pipermail/ntg-context/2008/037124.html, but I think
 it's not likely to work since families aren't used anymore.
 I really can't think how it should be done, and all I've found would be
 through some substitution mechanism as described in fonts-mkiv.pdf.
 I could use an example of replacing a vector of a font, by another font.
 There might be things too with simplefonts and fallback mechanism, but
 I haven't seen examples with math.
 Regards,
 Chris


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

2013-12-21 Thread Elspeth McGullicuddy
Every single bits of the first part is wrong, I didn't noticed it because
it just does nothing.
The example of the link though works, of course (the one with
\definefontfallback).
But to do it with math... I've tried so many possibilities none of which
worked...
Regards,
Chris


On Sun, Dec 22, 2013 at 2:47 AM, Elspeth McGullicuddy 
elspethmcgullicu...@gmail.com wrote:

 Still trying to have different blackboard symbols than those default with
 modern, but also to learn more about fonts, I've found these two examples
 that I've been trying to adapt to math (
 http://tex.stackexchange.com/questions/124824/context-unicode-fallback-font),
 one involving \definefontfallback, the other one using \setmainfontfallback
 with some range.

 It is very interesting because in both cases I completely fail to obtain
 the result I want.
 In the first case I do have the symbols from termes, but only some N
 instead of \char0x2115.
 In the second case (simplefonts), all symbols follow the required
 fallback, but the math characters.



 \definefontfallback
   [termes_fallback]
   [termes] [0x-0x] %%[force=no]

 \Umathquad\displaystyle=1em
 \Umathaxis\textstyle=.8ex

 \starttypescript [myModern]
 \definetypeface [myModern] [rm] [serif] [modern] [default]
 \definetypeface [myModern] [ss] [sans]  [modern]  [default]
 [rscale=0.887]
 \definetypeface [myModern] [tt] [mono]  [modern][default]
 [rscale=1.163]
 \definetypeface [myModern] [mm] [math]  [termes_fallback]
 [default] [rscale=1.050]
 \stoptypescript

 \usetypescript[myModern]
 \setupbodyfont[myModern,12pt]

 \starttext

 The default one doesn't even seem to have $ℕ \char2115 \Umathchar 0
 0 2115\alpha$\char2115,  α (alpha).


 \usemodule[simplefonts]
 \setmainfontfallback[termes][range={0x-0x}, force=yes,
   rscale=auto]

 The default one doesn't even seem to have
 $\Umathchar002115\utfchar{2115}$ (white circle) or α (alpha).

 \stoptext



 Some help with those examples would be very helpful.

 Regards,
 Chris





 On Thu, Dec 19, 2013 at 4:50 PM, Elspeth McGullicuddy 
 elspethmcgullicu...@gmail.com wrote:

 Hi,
 I'm writing math and I'm using modern, and I would like to use
 doublestroke.
 There is an example here,
 http://www.ntg.nl/pipermail/ntg-context/2008/037124.html, but I think
 it's not likely to work since families aren't used anymore.
 I really can't think how it should be done, and all I've found would be
 through some substitution mechanism as described in fonts-mkiv.pdf.
 I could use an example of replacing a vector of a font, by another font.
 There might be things too with simplefonts and fallback mechanism,
 but I haven't seen examples with math.
 Regards,
 Chris



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