Re: [NTG-context] local footnote (Tables) problem

2009-11-22 Thread Wolfgang Schuster

Am 23.11.2009 um 08:49 schrieb Taco Hoekwater:

> it seems that TaBlE does not support splitting p() columns and
> (iirc) TABLE does.

TABLE doesn't (each cell is a \framed) but tabulate does

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] local footnote (Tables) problem

2009-11-22 Thread Taco Hoekwater


Bowen Alan C. wrote:
> Please excuse my persistence. The following is a minimal file
> illustrating a problem that I am having with a multipage table with
> local footnotes. Setting split=yes or split=repeat in \setuptables
> produces obviously unsatisfactory results. What I need is a multipage
> table that has good page divisions and puts the table's label on the
> last page only. I have been unable to find  documentation that would
> help with this yet.

My guess is that you should be using TABLE:

  http://wiki.contextgarden.net/TABLE

it seems that TaBlE does not support splitting p() columns and
(iirc) TABLE does.

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


Re: [NTG-context] help with math in context

2009-11-22 Thread Taco Hoekwater


luigi scarso wrote:
> Hi all , I'm not a context math user at all,
> so I know practically nothing, and I'm starting some jobs that require
> a little of math.
> So I really appreciate any links (wiki, url, file)  about math (but
> also mathml, etc) in context

http://wiki.contextgarden.net/MathML has good list of pointers, I think.

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


Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Taco Hoekwater


Oliver Buerschaper wrote:
> Hi Mojca,
> 
>>> Also, is there a way to directly get the glyph outlines of, say, 
>>> $\bigotimes$ in MetaPost code and use it to derive some length
>>> unit from it?
>> Yes, but this only works for Type1 fonts, not for OpenType.
>> 
>> The example below is a literal copy from metapost manual (created
>> by Taco).
> 
> This is quite impressive! This will make it much easier for me to
> obtain the right dimensions…
> 
> Now if only this worked with OpenType as well (or any other font

At some point next year I will rewrite the font backend of luatex,
and at the same time make it a bit more generic. Once that is done,
the new code can be ported to metapost. Don't hold your breath,
it will likely take more than a year.

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


Re: [NTG-context] Fields and JS Calculations

2009-11-22 Thread jeroen muskee

OK, I started off with a simpler example, just an addition of 2 numbers. I know 
this should be pretty close to the correct setup by looking at other Javascript 
examples, but it just does not work jet. Any suggestions

 

Thanks

Jeroen

 

 

\startJSpreamble {Calculate} used now
function Calculate ()
{ v = getField("textC") ; v.value = 0 ;
v.value += AFMakeNumber(getField("textA").value) ;
v.value += AFMakeNumber(getField("textB").value) }
\stopJSpreamble

 
\starttext 

 
\setupfield 
[lineABC] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\definefield[textA] [line] [lineABC] [] [] 
\definefield[textB] [line] [lineABC] [] [] 
\definefield[textC] [line] [lineABC] [] [] 

 
\startJScode{Calculate} 
AFSimple_Calculate("SUM", new Array ("textA", "textB")); 
\stopJScode 

 
Calculate the addition: A + B = C
\\
\field[textA][Please enter A] 
\\
\field[textB][Please enter B] 
\\ 
\goto{Calculate the Result}[JS(Calculate)]
\\
\field[textC][The Calculation Result C = ] 

 
\stoptext
 

From: jeroen.mus...@hotmail.com
To: ntg-context@ntg.nl
Date: Sat, 21 Nov 2009 14:19:03 +0100
Subject: [NTG-context] Fields and JS Calculations



I want to calculate the pressure of a hydrostatic fluid column with 
p(psi)=0.052*density(lb/gal)*depth(ft)
I have created a form with fields to enter the input, but I need somehow to 
pass the information entered to the JS calculation to display the result.
How can you pass an entered field value to JS caluclation and show the result 
into another field.
 
Thanks
Jeroen
 
 
 
\setupcolors[state=start] 

\setupinteraction[state=start] 

 
\starttext 

 
\definefield[textdensity] [line] [linedensity] [] [] 
\definefield[textdepth] [line] [linedepth] [] [] 
\definefield[textpressure] [line] [linepressure] [] [] 

 
\setupfield 
[linedensity] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\setupfield 
[linedepth] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\setupfield 
[linepressure] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\startJScode{presscalc}
pressure=0.052*density*depth;
\stopJScode

 
Calculate the hydrostatic pressure in psi with p = 0.05194 x density x depth
\blank
\field[textdensity][Please enter Density (lb/gal):] 
\blank
\field[textdepth][Please enter Depth (ft):] 
\blank 
\goto{Calculate Pressure}[JS(presscalc)]
\blank
\field[textpressure][Hydrostatic Pressure (psi):] 

 
\stoptext


Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.   
_
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail 
you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010___
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] font-syn.lua error

2009-11-22 Thread Hans Hagen

Thomas A. Schmitz wrote:

On Nov 22, 2009, at 10:19 PM, Hans Hagen wrote:


$ mtxrun --script font --reload
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)

that line says

   data_state = resolvers.data_state(),

so resolvers has no data_state entry which in turn means that you run an old 
mtxrun, so maybe you need top copy mtxrun.lua manually to where it currently 
sits in yout path (as mtxrun)

Hans



Hans, is it possible that you forgot to include the new version of mtxrun.lua in the zip? 

% diff ~/context/tex/texmf-context/scripts/context/lua/mtxrun.lua ~/context/tex/texmf-osx-intel/bin/mtxrun 
[no result ==> files are identical]


% mtxrun --script fonts --reload
text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)


maybe. i'll check it tomorrow morning

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


[NTG-context] \vspace

2009-11-22 Thread Wolfgang Schuster
Hi Hans,

can you add a \vspace command which behaves like \hspace but for vertical mode,
there are some cases where \blank is not so well suited (i know the \??vs 
namespace
is already used by \blank)

\def\definevspace
  {\dotripleempty\dodefinevspace}

\def\dodefinevspace[#1][#2][#3]%
  {\ifthirdargument
 \setvalue{\??vs#1:#2}{#3}%
   \else
 \setvalue{\??vs:#1}{#2}%
   \fi}

\unexpanded\def\vspace
  {\dodoubleempty\dohspace}

\def\dovspace[#1][#2]%
  {\ifsecondargument
 \dodovspace[#1][#2]%
   \else\iffirstargument
 \vspace[][#1]%
   \else
 \vspace[][\s!default]%
   \fi\fi}

\def\dodovspace[#1][#2]%
  {\vskip\vspaceamount{#1}{#2}}

\def\vspaceamount#1#2%
  {\executeifdefined{\??vs#1:#2}{\executeifdefined{\??vs:#2}\zeropoint}}

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] sectionsegments for reference

2009-11-22 Thread Wolfgang Schuster
Hi Hans,

there is a nice example in strc-ref.mkiv for the use of sectionsegments in 
references
but the feature is still missing, can it be added.

% \starttext
% 
\definestructureconversionset[default][Character,number,Romannumerals,Character][number]
% \definestructureseparatorset [default][.,.,--][.]
% \setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]

% \setupreferencing[sectionsegments=3:4]
% \section {One} \subsection[sec:test]{Two} See \in[sec:test]
% \stoptext

TIA,
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] font-syn.lua error

2009-11-22 Thread Thomas A. Schmitz

On Nov 22, 2009, at 10:19 PM, Hans Hagen wrote:

>> $ mtxrun --script font --reload
>> ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
>> field 'data_state' (a nil value)
> 
> that line says
> 
>data_state = resolvers.data_state(),
> 
> so resolvers has no data_state entry which in turn means that you run an old 
> mtxrun, so maybe you need top copy mtxrun.lua manually to where it currently 
> sits in yout path (as mtxrun)
> 
> Hans
> 

Hans, is it possible that you forgot to include the new version of mtxrun.lua 
in the zip? 

% diff ~/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
~/context/tex/texmf-osx-intel/bin/mtxrun 
[no result ==> files are identical]

% mtxrun --script fonts --reload
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)

___
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] font-syn.lua error

2009-11-22 Thread Hans Hagen

Khaled Hosny wrote:

On Sun, Nov 22, 2009 at 02:14:05PM +0100, Hans Hagen wrote:

Andreas Harder wrote:

Am 22.11.2009 um 13:16 schrieb Hans Hagen:


Andreas Harder wrote:

Hi,
if I try to run $ mtxrun --script fonts –reload
it ends with: text/tex/texmf-context/tex/context/base/font-syn.lua:666: 
attempt to call field 'data_state' (a nil value)

that means that you run an old mtxrun (try mtxrun –selfupdate)

I've tried it already, the error is still the same …

and what if you run

mtxrun --script font --reload


$ mtxrun --script font --reload
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)


that line says

data_state = resolvers.data_state(),

so resolvers has no data_state entry which in turn means that you run an 
old mtxrun, so maybe you need top copy mtxrun.lua manually to where it 
currently sits in yout path (as mtxrun)


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


Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Hans Hagen

Oliver Buerschaper wrote:

I know there used to be a TeX -> PS -> pstoedit -> MetaPost workflow. Does this 
still work with MkIV?

If you manage to extend dvips to handle OpenType fonts then maybe ...


So does this mean that outline fonts in MetaPost are currently dead with MkIV?


it's unrelated to tex ... outlines are ther ebecause of the svg output 
mode of metapost and so providing access made sense; opentype is another 
matter


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


Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread luigi scarso
On Sun, Nov 22, 2009 at 9:33 PM, Wolfgang Schuster
 wrote:
>
> Am 22.11.2009 um 21:15 schrieb luigi scarso:
>
>> %%test-outlined.tex
>> \starttext
>> \startTEXpage
>> \startuseMPgraphic{a}
>> graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
>> withdrawcolor blue
>>   withfillcolor .5white
>>     withpen pencircle scaled 5pt
>> \stopuseMPgraphic
>> \useMPgraphic{a}
>> \stopTEXpage
>> \stoptext
>
> \starttext
> {\blue\tfd Fun\llap{\red\property[outer]{\tfd Fun}}}
> \stoptext

Also from metapost manual

\starttext
\startTEXpage
\startuseMPgraphic{a}
fontmapfile "=lm-ec.map";
  picture q;
  path p;
  interim ahlength := 12bp;
  interim ahangle := 25;
  q := glyph "Dcaron" of "ec-lmr10" scaled .2;
  for item within q:
p := pathpart item;
drawarrow p withcolor (.6,.9,.6)
withpen pencircle scaled 1.5;
for j=0 upto length p:
  pickup pencircle scaled .7;
  draw (point j of p -- precontrol j of p)
  dashed evenly withcolor blue;
  draw (point j of p -- postcontrol j of p)
  dashed evenly withcolor blue;
  pickup pencircle scaled 3;
  draw precontrol j of p withcolor red;
  draw postcontrol j of p withcolor red;
  pickup pencircle scaled 2;
  draw point j of p withcolor black;
endfor
  endfor
\stopuseMPgraphic
\useMPgraphic{a}
\stopTEXpage
\stoptext


-- 
luigi
<>___
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] MetaPost integration: default parameters

2009-11-22 Thread Wolfgang Schuster

Am 22.11.2009 um 21:15 schrieb luigi scarso:

> %%test-outlined.tex
> \starttext
> \startTEXpage
> \startuseMPgraphic{a}
> graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
> withdrawcolor blue
>   withfillcolor .5white
> withpen pencircle scaled 5pt
> \stopuseMPgraphic
> \useMPgraphic{a}
> \stopTEXpage
> \stoptext

\starttext
{\blue\tfd Fun\llap{\red\property[outer]{\tfd Fun}}}
\stoptext


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] MetaPost integration: default parameters

2009-11-22 Thread luigi scarso
On Sun, Nov 22, 2009 at 8:16 PM, Oliver Buerschaper
 wrote:
>>> I know there used to be a TeX -> PS -> pstoedit -> MetaPost workflow. Does 
>>> this still work with MkIV?
>>
>> If you manage to extend dvips to handle OpenType fonts then maybe ...
>
> So does this mean that outline fonts in MetaPost are currently dead with MkIV?

%%test-outlined.tex
\starttext
\startTEXpage
\startuseMPgraphic{a}
graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
 withdrawcolor blue
   withfillcolor .5white
 withpen pencircle scaled 5pt
\stopuseMPgraphic
\useMPgraphic{a}
\stopTEXpage
\stoptext

#context test-outlined

works ok here
-- 
luigi
<>___
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] MetaPost integration: default parameters

2009-11-22 Thread Oliver Buerschaper
>> I know there used to be a TeX -> PS -> pstoedit -> MetaPost workflow. Does 
>> this still work with MkIV?
> 
> If you manage to extend dvips to handle OpenType fonts then maybe ...

So does this mean that outline fonts in MetaPost are currently dead with MkIV?

Oliver
___
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] Fonts disappeared after updating ConTeXt

2009-11-22 Thread Mojca Miklavec
On Sun, Nov 22, 2009 at 17:59, Bernhard Rosensteiner wrote:
> Hello all,
>
> i think the problem was with the old LuaTeX 0.44. I updated 5 minutes ago and 
> now all my files compile like a charm again with LuaTeX 0.45. Im so happy i 
> could sing :-).

ConTeXt has worked here as well, but
mtxrun --script fonts --list *
with or without the star complains with the devil 666 error.

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


Re: [NTG-context] Fonts disappeared after updating ConTeXt

2009-11-22 Thread Bernhard Rosensteiner
Hello all,

i think the problem was with the old LuaTeX 0.44. I updated 5 minutes ago and 
now all my files compile like a charm again with LuaTeX 0.45. Im so happy i 
could sing :-).

best regards
Bernhard

Am 22.11.2009 um 17:22 schrieb Mojca Miklavec:

> On Sun, Nov 15, 2009 at 11:38, Mika Ritola wrote:
>> Hello,
>> 
>> I just updated ConTeXt to the latest version (2009.11.13 12:45), and now all
>> the fonts I have installed on my system seem to have mysteriously
>> disappeared from ConTeXt's sight. Running "mtxrun --script fonts --list"
>> displays only the fonts that are installed in the ConTeXt directory.
> 
> Be happy if it does that. Here it doesn't work at all :) :) :)
> [problem already reported by others]
> 
> 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://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] Fonts disappeared after updating ConTeXt

2009-11-22 Thread Mojca Miklavec
On Sun, Nov 15, 2009 at 11:38, Mika Ritola wrote:
> Hello,
>
> I just updated ConTeXt to the latest version (2009.11.13 12:45), and now all
> the fonts I have installed on my system seem to have mysteriously
> disappeared from ConTeXt's sight. Running "mtxrun --script fonts --list"
> displays only the fonts that are installed in the ConTeXt directory.

Be happy if it does that. Here it doesn't work at all :) :) :)
[problem already reported by others]

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


Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Mojca Miklavec
On Sun, Nov 22, 2009 at 16:53, Oliver Buerschaper wrote:
>
> I know there used to be a TeX -> PS -> pstoedit -> MetaPost workflow. Does 
> this still work with MkIV?

If you manage to extend dvips to handle OpenType fonts then maybe ...

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


Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Oliver Buerschaper
Hi Mojca,

>> Also, is there a way to directly get the glyph outlines of, say,
>> $\bigotimes$ in MetaPost code and use it to derive some length unit from it?
> 
> Yes, but this only works for Type1 fonts, not for OpenType.
> 
> The example below is a literal copy from metapost manual (created by Taco).

This is quite impressive! This will make it much easier for me to obtain the 
right dimensions…

Now if only this worked with OpenType as well (or any other font format ConTeXt 
understands natively)… and it would be really great if direct access to 
outlines extended to arbitrary typeset material beyond single glyphs. 

I know there used to be a TeX -> PS -> pstoedit -> MetaPost workflow. Does this 
still work with MkIV?

Oliver
___
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] font-syn.lua error

2009-11-22 Thread Bernhard Rosensteiner
Hello,

same problem here exactly as described by Andreas (and reported in: 
http://archive.contextgarden.net/message/20091122.111218.3b9a921f.en.html).

best regards
Bernhard

Am 22.11.2009 um 15:26 schrieb Andreas Harder:

> 
> Am 22.11.2009 um 15:15 schrieb Wolfgang Schuster:
> 
>> 
>> Am 22.11.2009 um 15:09 schrieb Andreas Harder:
>> 
>>> Am 22.11.2009 um 14:41 schrieb Mojca Miklavec:
>>> 
 What operating system?
>>> 
>>> I'm on OS-X 10.6 and using the newest beta.
>> 
>> had you done
>> 
>> luatools --selfupdate
>> mtxrun –selfupdate
> 
> Yes! And I tried to delete the cache, the binaries, etc. and updated again. 
> It works fine with Latin Modern and TeX Gyre fonts or if I put the font in 
> the directory of the source file and define it without 'name:'.
> 
> Andreas
> ___
> 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] font-syn.lua error

2009-11-22 Thread Andreas Harder

Am 22.11.2009 um 15:15 schrieb Wolfgang Schuster:

> 
> Am 22.11.2009 um 15:09 schrieb Andreas Harder:
> 
>> Am 22.11.2009 um 14:41 schrieb Mojca Miklavec:
>> 
>>> What operating system?
>> 
>> I'm on OS-X 10.6 and using the newest beta.
> 
> had you done
> 
> luatools --selfupdate
> mtxrun –selfupdate

Yes! And I tried to delete the cache, the binaries, etc. and updated again. It 
works fine with Latin Modern and TeX Gyre fonts or if I put the font in the 
directory of the source file and define it without 'name:'.

Andreas
___
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] font-syn.lua error

2009-11-22 Thread Wolfgang Schuster

Am 22.11.2009 um 15:09 schrieb Andreas Harder:

> Am 22.11.2009 um 14:41 schrieb Mojca Miklavec:
> 
>> What operating system?
> 
> I'm on OS-X 10.6 and using the newest beta.

had you done

luatools --selfupdate
mtxrun --selfupdate

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] font-syn.lua error

2009-11-22 Thread Andreas Harder

Am 22.11.2009 um 14:41 schrieb Mojca Miklavec:

> On Sat, Nov 21, 2009 at 19:49, Andreas Harder wrote:
>> Hi,
>> 
>> if I try to run
>> $ mtxrun --script fonts –reload
>> it ends with:
>> ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
>> field 'data_state' (a nil value)
> 
> What operating system?

I'm on OS-X 10.6 and using the newest beta.

> 
> I don't know if that can be a problem, but some platforms don't have
> LuaTeX beta-0.45.0 yet (freebsd, linux and linux-ppc; if you are on
> Mac, you can try to update once again).

I tired again, the result is the same error.

If I run the test file from my initial post:

\definefont[test][name:minionpro-regular] % font is not in TeX-tree
\starttext
\test Hallo Welt, das ist ein Test
\stoptext

the error message is more verbose, perhaps it can help.

! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: 
attempt to call field 'data_state' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: in 
function 'resetdata'
...text/tex/texmf-context/tex/context/base/font-syn.lua:671: in 
function 'identify'
...text/tex/texmf-context/tex/context/base/font-syn.lua:696: in 
function 'load'
...text/tex/texmf-context/tex/context/base/font-syn.lua:707: in 
function 'load'
...text/tex/texmf-context/tex/context/base/font-syn.lua:844: in 
function 'resolve'
...text/tex/texmf-context/tex/context/base/font-def.lua:243: in 
function 'r'
...text/tex/texmf-context/tex/context/base/font-def.lua:270: in 
function 'resolve'
...text/tex/texmf-context/tex/context/base/font-def.lua:574: in 
function 'read'
...text/tex/texmf-context/tex/context/base/font-ctx.lua:359: in 
function 'command_2'
:1: in main chunk.
\lowleveldefinefont ...dimexpr \textface \relax )}
  \edef \somefontspec {at \s...
\dododefinefont ...inefont {#2}\rawfontidentifier 
  \csname \rawfontidentifier...
l.5 \test
  Hallo Welt, das ist ein Test


Greetings

Andreas

___
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] font-syn.lua error

2009-11-22 Thread Andreas Harder

Am 22.11.2009 um 14:14 schrieb Hans Hagen:

> Andreas Harder wrote:
>> Am 22.11.2009 um 13:16 schrieb Hans Hagen:
>>> Andreas Harder wrote:
 Hi,
 if I try to run $ mtxrun --script fonts –reload
 it ends with: 
 text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to 
 call field 'data_state' (a nil value)
>>> that means that you run an old mtxrun (try mtxrun –selfupdate)
>> I've tried it already, the error is still the same …
> 
> and what if you run
> 
> mtxrun --script font –reload

Sorry, still there!

Andreas
___
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] font-syn.lua error

2009-11-22 Thread Khaled Hosny
On Sun, Nov 22, 2009 at 02:14:05PM +0100, Hans Hagen wrote:
> Andreas Harder wrote:
>> Am 22.11.2009 um 13:16 schrieb Hans Hagen:
>>
>>> Andreas Harder wrote:
 Hi,
 if I try to run $ mtxrun --script fonts –reload
 it ends with: 
 text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to 
 call field 'data_state' (a nil value)
>>> that means that you run an old mtxrun (try mtxrun –selfupdate)
>>
>> I've tried it already, the error is still the same …
>
> and what if you run
>
> mtxrun --script font --reload

$ mtxrun --script font --reload
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)



-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital 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] font-syn.lua error

2009-11-22 Thread Khaled Hosny
On Sun, Nov 22, 2009 at 02:41:08PM +0100, Mojca Miklavec wrote:
> On Sat, Nov 21, 2009 at 19:49, Andreas Harder wrote:
> > Hi,
> >
> > if I try to run
> > $ mtxrun --script fonts –reload
> > it ends with:
> > ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to 
> > call field 'data_state' (a nil value)
> 
> What operating system?
> 
> I don't know if that can be a problem, but some platforms don't have
> LuaTeX beta-0.45.0 yet (freebsd, linux and linux-ppc; if you are on
> Mac, you can try to update once again).

I get the same error with both 0.44 and 0.45 on Linux.


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital 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] font-syn.lua error

2009-11-22 Thread Mojca Miklavec
On Sat, Nov 21, 2009 at 19:49, Andreas Harder wrote:
> Hi,
>
> if I try to run
> $ mtxrun --script fonts –reload
> it ends with:
> ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
> field 'data_state' (a nil value)

What operating system?

I don't know if that can be a problem, but some platforms don't have
LuaTeX beta-0.45.0 yet (freebsd, linux and linux-ppc; if you are on
Mac, you can try to update once again).

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


Re: [NTG-context] simplefonts

2009-11-22 Thread Alan BRASLAU
Of course, I need
\usemodule[simplefonts]

Now I *am* impressed!
(and I'm not running Windows)


Alan

On Sunday 22 November 2009 14:10:28 Alan BRASLAU wrote:
> On Sunday 22 November 2009 13:24:19 Wolfgang Schuster wrote:
> > Am 21.11.2009 um 22:33 schrieb Vyatcheslav Yatskovsky:
> > > Searching for wiki, I found the line "For instance, assuming the
> > > Delicious fonts  are
> > > properly installed and recognized by ConTeXt, you can simply
> > > write". What do you mean by "properly installed and recognized"?
> > > Can I just say
> > >
> > > \setmainfont[Times New Roman]
> > >
> > > and get Window's standard Times New Roman working?
> >
> > Why don't you just try it.
> 
> \setmainfont[Times New Roman]
> \starttext
> Hello, {\CONTEXT} community!
> \stoptext
> 
> ! Undefined control sequence.
> l.1 \setmainfont
> [Times New Roman]
> ? X
> 
___
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] font-syn.lua error

2009-11-22 Thread Hans Hagen

Andreas Harder wrote:

Am 22.11.2009 um 13:16 schrieb Hans Hagen:


Andreas Harder wrote:

Hi,
if I try to run $ mtxrun --script fonts –reload
it ends with: text/tex/texmf-context/tex/context/base/font-syn.lua:666: 
attempt to call field 'data_state' (a nil value)

that means that you run an old mtxrun (try mtxrun –selfupdate)


I've tried it already, the error is still the same …


and what if you run

mtxrun --script font --reload


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


Re: [NTG-context] simplefonts

2009-11-22 Thread Wolfgang Schuster

Am 22.11.2009 um 14:10 schrieb Alan BRASLAU:

\usemodule[simplefonts]

> \setmainfont[Times New Roman]
> \starttext
> Hello, {\CONTEXT} community!
> \stoptext

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] simplefonts

2009-11-22 Thread Alan BRASLAU
On Sunday 22 November 2009 13:24:19 Wolfgang Schuster wrote:
> Am 21.11.2009 um 22:33 schrieb Vyatcheslav Yatskovsky:
> > Searching for wiki, I found the line "For instance, assuming the
> > Delicious fonts  are
> > properly installed and recognized by ConTeXt, you can simply write".
> > What do you mean by "properly installed and recognized"? Can I just say
> >
> > \setmainfont[Times New Roman]
> >
> > and get Window's standard Times New Roman working?
> 
> Why don't you just try it.


\setmainfont[Times New Roman]
\starttext
Hello, {\CONTEXT} community!
\stoptext

! Undefined control sequence.
l.1 \setmainfont
[Times New Roman]
? X
___
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] simplefonts

2009-11-22 Thread Wolfgang Schuster

Am 21.11.2009 um 22:33 schrieb Vyatcheslav Yatskovsky:

> Searching for wiki, I found the line "For instance, assuming the Delicious 
> fonts  are properly installed 
> and recognized by ConTeXt, you can simply write". What do you mean by 
> "properly installed and recognized"? Can I just say
> 
> \setmainfont[Times New Roman]
> 
> and get Window's standard Times New Roman working?

Why don't you just try it.

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] font-syn.lua error

2009-11-22 Thread Andreas Harder

Am 22.11.2009 um 13:16 schrieb Hans Hagen:

> Andreas Harder wrote:
>> Hi,
>> if I try to run $ mtxrun --script fonts –reload
>> it ends with: text/tex/texmf-context/tex/context/base/font-syn.lua:666: 
>> attempt to call field 'data_state' (a nil value)
> 
> that means that you run an old mtxrun (try mtxrun –selfupdate)

I've tried it already, the error is still the same …

Andreas 
___
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] font-syn.lua error

2009-11-22 Thread Hans Hagen

Andreas Harder wrote:

Hi,

if I try to run 
$ mtxrun --script fonts –reload
it ends with: 
text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call field 'data_state' (a nil value)


that means that you run an old mtxrun (try mtxrun --selfupdate)

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


Re: [NTG-context] latest beta: trouble with font loading

2009-11-22 Thread Bernhard Rosensteiner
Hello all,

thanks for help Li. It seems since the latest beta this "name:" is obligatory. 
However, now i get an error (see attachment). I think its the same error 
reported in "[ntg-context] font-syn.lua error". 

keine otf fonts.log
Description: Binary data


keine otf fonts.tex
Description: Binary data


best regards
Bernhard



Am 22.11.2009 um 02:34 schrieb Yanrui Li:

> 2009/11/22 Bernhard Rosensteiner :
>> Hello all,
>> 
>> now i only have attached the .log and .tex (minimal example) files (first i
>> attached the .otf font too). My problem with the otf font loading still
>> exists (even after completely removing the old minimals and uptating via
>> first-setup.sh). All my documents compile normal but the fonts are not
>> visible (in one document i can see some strange numbers...predominantly 9)
>> no matter what otf font i use (all my fonts are located in
>> /Users/bernhardrosensteiner/Library/Fonts). All graphic related stuff works
>> normal even the defined position on the paper is right. Fallback fonts
>> (normal cmr) works (when i out-comment the \definefont line in my minimal
>> example). I have Mac OS X 10.6.
> 
> You can try
> 
> \definefont[TitleFont][name:GaramondPremrPro-Disp at 30pt]
> 
> -- 
> Best regards,
> 
> Li Yanrui
> ___
> 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] help with math in context

2009-11-22 Thread luigi scarso
Hi all , I'm not a context math user at all,
so I know practically nothing, and I'm starting some jobs that require
a little of math.
So I really appreciate any links (wiki, url, file)  about math (but
also mathml, etc) in context
(I already start my search  from http://wiki.contextgarden.net/Math of course) .
TIA

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