Re: [NTG-context] [font-otn] bug in node mode

2014-03-25 Thread Philipp Gesang
···date: 2014-03-25, Tuesday···from: Hans Hagen···

 On 3/24/2014 8:40 PM, Philipp Gesang wrote:
  Hi Hans,
 
  I’m afraid I have to bother you again with this issue. Consider
  this code:
 
   \font \mainface = file:EBGaramond12-Regular.otf:mode=node
   \mainface foo
   \bye
 
  This breaks with the latest fontloader because in font-otn
 
   local function initialize(sequence,script,language,enabled)
   local features = sequence.features
   if features then
   local order = features.order
   for i=1,#order do --
   ...
 
  the table “features” never has a field “order”; “sequence” has
  one occasionally, though not always.
 
 should be
 
 local function initialize(sequence,script,language,enabled)
  local features = sequence.features
  if features then
  local order = sequence.order
  if order then
  for i=1,#order do
  
  end
  else
  -- can't happen
  end
  end
  return false
 end
 
 went unnoticed as context uses a variant

This time it’s exactly as I patched it =)

Thanks for fixing,
Philipp



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

Re: [NTG-context] Color of the headers of one enumeration

2014-03-25 Thread Xan
 Am 24.03.2014 um 14:39 schrieb Xan dxpublica at telefonica.net:
 
  Hi,
  
  I have this
  \defineenumeration
   [punt]
   
  [alternative=serried,text={\startcolor[darkblue]Punt\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit]
  
  So I get Punt 1. bla,... How can I achieve that Punt 1. were in 
  darkblue? Now I just have Punt“.
 
 
 Use the headcolor key:
 
 \defineenumeration
   [punt]
   [alternative=serried,
text={Punt},
stopper={.},
width=fit,
distance=0.25em,
headstyle=\ss,
headcolor=darkblue]
 
 Wolfgang


Thank you very much,
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
___

Re: [NTG-context] Index notation in math mode

2014-03-25 Thread Fabrice

Hi,
Thank youAditya, it works.
Regards,
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Ubuntu and ligatures: again

2014-03-25 Thread Flavien Lambert
Hi all, I am using Ubuntu Light but it seems that I did not set it up
properly since the double dash -- stays untouched instead of joining inti a
longer one...
Best,
Flavien.


\definefontfamily[mainface][sans][Ubuntu][tf=style:light]
\setupbodyfont[mainface,11pt]
\starttext
-- 
\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] Footnote maker in parentheses

2014-03-25 Thread Stéphane Goujet
Hello,


  I would like that the footnote marker (both in the note
call and the footnote text) appear in parentheses.

  I tried using :

\setupnotation[footnote][titleleft={(},titleright={)}]

because the names title* sounded close to what I was looking for, but
it did not produce any change (neither in the call nor in the foonote
itself).

  Are those the correct parameters to play with ?
  Do they need another parameter/option to be set in order to enable
them ?



Greetings,
  Stéphane.
  
___
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] Footnote maker in parentheses

2014-03-25 Thread Otared Kavian
Hi Stéphane,

Maybe this is what you want 

\define[1]\MyFootnotenoteCommand{\high{(#1)}}

\setupnotation[footnote]
[textcommand=\MyFootnoteCommand
distance=1em,
left={(},
right={)}]
\starttext
This is a note\footnote{I’m a footnote.}.
\stoptext

Best regards: OK

On 25 mars 2014, at 14:02, Stéphane Goujet stephane.gou...@wanadoo.fr wrote:

 Hello,
 
 
  I would like that the footnote marker (both in the note
 call and the footnote text) appear in parentheses.
 
  I tried using :
 
 \setupnotation[footnote][titleleft={(},titleright={)}]
 
 because the names title* sounded close to what I was looking for, but
 it did not produce any change (neither in the call nor in the foonote
 itself).
 
  Are those the correct parameters to play with ?
  Do they need another parameter/option to be set in order to enable
 them ?
 
 
 
 Greetings,
  Stéphane.
 
 ___
 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
___


[NTG-context] Draw eletrical circuits in ConTeXt (Circuitikz or mpcirc.mp)

2014-03-25 Thread DesdeChaves
Dear Sirs

I need to draw some simple eletrical circuits. I try metapost (mpcirc.mp)
and cicruitikz, but i found error messages in both.

Is there a way to draw eletrical circuits in ConTeXt?


Thanks in advance  for your support.

Jorge

ConTeXt  ver: 2014.02.14 17:07 MKIV beta  fmt: 2014.2.15  int:
english/english
# with mpcirc.mp ##

With this code:



\startMPinclusions
input mpcirc;

\stopMPinclusions



\starttext


%\forceMPTEXgraphictrue %%% command don't work

\startMPcode
u:=10bp; % unit of length
prepare(L,C,Vac); % mention your elements
z0=(10u,10u); % lower right node
ht:=6u; % height of circuit
z1=z0+(0,ht); % upper right node
C=.5[z0,z1]; % location of capacitor
L.t=T.r; % use default orientation
C.t=Vac.t=T.u; % components rotated 90 degrees
% set the distance between Voltage and Capacitor
equally_spaced(5u,0) Vac, C;
L=z1-0.5(C-Vac); % location of spool
edraw; % draw components of the circuit
% draw wires connecting components
% the first ones rotated 90 degrees
wire.v(Vac.a,z0);
wire.v(Vac.b,L.a);
wire.v(L.b,z1);
wire(C.a,z0);
wire(C.b,z1);

\stopMPcode

\stoptext


I found this error message:

metapost error:
(mpcirc.mp (ttex.mp) (circlib.mp
 circlib.mp
 circlib.mpx
! ! Unable to make mpx file.
l.39 def Eplus_ = btex
  $+$etex enddef;


 With Circuitikz ###

If i try use Circuitikz with this test code:

\usemodule[circuitikz]

\starttext

A simple example to test the installation.

\startcircuitikz[scale=1.2]
\draw
  (0,2) to[I=1\milli\ampere] (2,2)
to[R, l_=2\kilo\ohm, *-*] (0,0)
to[R, l_=2\kilo\ohm] (2,0)
to[V, v_=2\volt] (2,2)
to[cspst, l=$t_0$] (4,2) -- (4,1.5)
to [generic, i=$i_1$, v=$v_1$] (4,-.5) -- (4,-1.5)
  (0,2) -- (0,-1.5) to[V, v_=4\volt] (2,-1.5)
to [R, l=1\kilo\ohm] (4,-1.5);
\stopcircuitikz

\stoptext

The error message is:

 
(/Applications/Context/tex/texmf-modules/tex/generic/circuitikz/pgfcircquadpoles.sty)
(/Applications/Context/tex/texmf-modules/tex/generic/circuitikz/pgfcirclabel.sty)
(/Applications/Context/tex/texmf-modules/tex/generic/circuitikz/pgfcircvoltage.sty)
(/Applications/Context/tex/texmf-modules/tex/generic/circuitikz/pgfcirccurrent.sty))
! Missing \endcsname inserted.

system   tex  error on line 16 in file
/Applications/Context/tex/texmf-modules/tex/generic/circuitikz/t-circuitikz.tex:
Missing \endcsname inserted ...

 6 \usepgflibrary[decorations.pathmorphing]
 7 \usetikzlibrary[calc]
 8
 9 \unprotect
10
11 \input circuitikz.code.tex
12
13 % defaults
14
15 \setupmodule[current=european, voltage=european,  resistor=american,
 inductor=cute, logic=american, siunitx=true, arrowmos=false]
16 
17 \processaction[\currentmoduleparameter{voltage}]
18[european=\ctikzset{voltage=european},
19 american=\ctikzset{voltage=american}
20]

#
___
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] Ubuntu and ligatures: again

2014-03-25 Thread Wolfgang Schuster

Am 25.03.2014 um 10:43 schrieb Flavien Lambert petit.lep...@gmail.com:

 Hi all, I am using Ubuntu Light but it seems that I did not set it up 
 properly since the double dash -- stays untouched instead of joining inti a 
 longer one…

This was already fixed, please update your installation.

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] Footnote maker in parentheses

2014-03-25 Thread Stéphane Goujet
Le Tue, 25 Mar 2014 13:56:41 +0100,
Otared Kavian ota...@gmail.com a écrit :

 On 25 mars 2014, at 14:02, Stéphane Goujet
 stephane.gou...@wanadoo.fr wrote:
 
   I would like that the footnote marker (both in the note
  call and the footnote text) appear in parentheses.
 Maybe this is what you want 
 
 \define[1]\MyFootnotenoteCommand{\high{(#1)}}
 
 \setupnotation[footnote]
   [textcommand=\MyFootnoteCommand
   distance=1em,
   left={(},
   right={)}]

  Not exactly : /left/ and /right/ indeed produce the expected result in
the footnote text, but /textcommand/ does nothing for the footnote
call. 
  But the info you gave me allowed to find the following working
solution :

\define[1]\monappel{\high{(#1)}}
\setupnote[textcommand=\monappel]
\setupnotation[footnote][left={(},right={)}]


Thank you very much,
  Stéphane.
___
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
___