[NTG-context] font error?

2011-03-28 Thread Hans van der Meer
Just experimenting somewhat with fonts. Could the following be a font problem? 
Or is it just not possible in this typeface (taken from fonts in context page 
70)
Example:
\def\thetypeface{asana}
\setupbodyfont[\thetypeface]
\starttext
[\thetypeface]\quad Hello world!\space$c = \sqrt{a^2+b^2}$
\stoptext

Log message:
! Math error: parameter \Umathquad\displaystyle is not set.

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

 1 \def\thetypeface{asana}
 2 \setupbodyfont[\thetypeface]
 3 \starttext
 4   [\thetypeface]\quad Hello world!\space$c = \sqrt{a^2+b^2}$
 5 \stoptext

l.4 ...quad Hello world!\space$c = \sqrt{a^2+b^2}$

Hans van der Meer

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] font error?

2011-03-28 Thread Wolfgang Schuster

Am 28.03.2011 um 10:12 schrieb Hans van der Meer:

 Just experimenting somewhat with fonts. Could the following be a font 
 problem? Or is it just not possible in this typeface (taken from fonts in 
 context page 70)

Works for me.

mtx-context | current version: 2011.03.27 14:48

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 error?

2011-03-28 Thread Hans van der Meer

On 28 mrt 2011, at 10:21, Wolfgang Schuster wrote:

 
 Am 28.03.2011 um 10:12 schrieb Hans van der Meer:
 
 Just experimenting somewhat with fonts. Could the following be a font 
 problem? Or is it just not possible in this typeface (taken from fonts in 
 context page 70)
 
 Works for me.
 
 mtx-context | current version: 2011.03.27 14:48

Well that is strange. This is
ConTeXt  ver: 2011.03.26 12:41 MKIV  fmt: 2011.3.28  int: english/english

and furthermore to be sure I removed texmf-cache from the minimals, regenerated 
with
  mtxrun --generate
  context --make en
then ran it with:
  context test
getting the same error here:
system   tex  error on line 4 in file test.tex: Math error: parameter 
\Umathquad\displaystyle is not set ...

How can this be? Any idea?

Input was:
\def\thetypeface{asana} % lucida loopt vast
\setupbodyfont[\thetypeface]
\starttext
[\thetypeface]\quad Hello world!\space$c = \sqrt{a^2+b^2}$
\stoptext


Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] font error?

2011-03-28 Thread Hans van der Meer
Also downloaded latest monimals:
ConTeXt  ver: 2011.03.28 01:03 MKIV  fmt: 2011.3.28  int: english/english
Same happens here.

Hans van der Meer

On 28 mrt 2011, at 10:40, Hans van der Meer wrote:

 
 On 28 mrt 2011, at 10:21, Wolfgang Schuster wrote:
 
 
 Am 28.03.2011 um 10:12 schrieb Hans van der Meer:
 
 Just experimenting somewhat with fonts. Could the following be a font 
 problem? Or is it just not possible in this typeface (taken from fonts in 
 context page 70)
 
 Works for me.
 
 mtx-context | current version: 2011.03.27 14:48
 
 Well that is strange. This is
 ConTeXt  ver: 2011.03.26 12:41 MKIV  fmt: 2011.3.28  int: english/english
 
 and furthermore to be sure I removed texmf-cache from the minimals, 
 regenerated with
  mtxrun --generate
  context --make en
 then ran it with:
  context test
 getting the same error here:
 system   tex  error on line 4 in file test.tex: Math error: 
 parameter \Umathquad\displaystyle is not set ...
 
 How can this be? Any idea?
 
 Input was:
 \def\thetypeface{asana}   % lucida loopt vast
 \setupbodyfont[\thetypeface]
 \starttext
 [\thetypeface]\quad Hello world!\space$c = \sqrt{a^2+b^2}$
 \stoptext
 
 
 Hans van der Meer
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://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] Lucida font?

2011-03-28 Thread Hans van der Meer
I may finally have found the cause of this problem!
My afm files are somewhat older and they turned out to have Macintosh line 
endings instead of Unix line endings.
I guess Taco Hoekwater can tell us how detrimental this is.

Hans van der Meer


On 26 mrt 2011, at 22:34, Hans van der Meer wrote:

 From the book Fonts in ConTeXt I got the impression that the Lucida font is 
 working and decided to give it a try. I have the afm and type1 files in my 
 texmf-local/fonts directory. However, this simple program:
  \setupbodyfont[lucida]
  \starttext
  Hello world!
  \stoptext
 takes forever. On my MacPro (mid 2010) luatex is utilizing a processor thread 
 for 100%. I guess processing the fonts take some time. But after more than 12 
 minutes cpu time without any sign of process I do not believe all is well. 
 The log file is tacked to this post. Is there someone who knows what is 
 happening and where the culprit could be hiding?
 Thanks in advance.
 
 Hans van der Meer
 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Arranging pages ...

2011-03-28 Thread Willi Egger
Hi all,

I got a trouble with arranging pages.
While this gives me the desired result with Context 2011-02-14 MKIV I get weird 
output with context 2011-03-27 MKIV.

Could someone test the attached file?

Kind regards 

Willi



test-inslag.pdf
Description: Adobe PDF document


test-inslag.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Arranging pages ...

2011-03-28 Thread Hans van der Meer
I get the same pdf here with:
ConTeXt  ver: 2011.03.28 01:03 MKIV  fmt: 2011.3.28  int: english/english

Hans van der Meer

On 28 mrt 2011, at 11:27, Willi Egger wrote:

 Hi all,
 
 I got a trouble with arranging pages.
 While this gives me the desired result with Context 2011-02-14 MKIV I get 
 weird output with context 2011-03-27 MKIV.
 
 Could someone test the attached file?
 
 Kind regards 
 
 Willi
 
 test-inslag.pdftest-inslag.tex___
 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] beta (backend)

2011-03-28 Thread Andreas Harder
Here is another error with the latest beta:

\setupbackend[format=PDF/X-4p]
\starttext
  test
\stoptext

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


[NTG-context] Reference jump location

2011-03-28 Thread Marco
I have the feeling that this issue is well known, but I cannot find a solution
at the moment.

When clicking on a reference the jump goes underneath the heading making it
invisible. How to make the jump to a position that the heading stays visible?
Example:

\setupinteraction [state=start, focus=width]
\starttext
\completecontent [interaction=all]
\startchapter [title=Foo]
\stopchapter
\page
\startchapter [title=Bar]
\stopchapter
\stoptext


Marco


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lucida font?

2011-03-28 Thread Hans Hagen

On 28-3-2011 11:15, Hans van der Meer wrote:

I may finally have found the cause of this problem!
My afm files are somewhat older and they turned out to have Macintosh line 
endings instead of Unix line endings.
I guess Taco Hoekwater can tell us how detrimental this is.


you could try

local lineend = lpeg.patterns.newline

in font-afm.lua

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] beta (backend)

2011-03-28 Thread Hans Hagen

On 28-3-2011 12:29, Andreas Harder wrote:

Here is another error with the latest beta:

\setupbackend[format=PDF/X-4p]
\starttext
   test
\stoptext


fixed in next beta ... there might be more such buglets (namespace 
changes i.e. more code moved to the backends namespace)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Capital spacing feature

2011-03-28 Thread Andreas Harder
Consider the following example

\definefontfeature[capital spacing] [cpsp=yes]
\definefontfeature[small capitals]  [c2sc=yes]

\starttext
  \setfontfeature{capital spacing} % not OK
  % \setfontfeature{small capitals} % OK
  ABCDEFGHIJKLMNOPQRSTUVWXYZ
\stoptext

It works okay with small capitals but with capital spacing the context throws 
an error:

…/node-inj.lua:70: attempt to index local 'spec' (a nil value)

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


[NTG-context] Problem with en-dash in footer

2011-03-28 Thread Florian Wobbe
Hi,

this used to work before:

\setupcombinedlist[content][alternative=c]
\setupfootertexts[{should be en-dash: -- \hfill \pagenumber}]
\setupfooter[style=\ssbi] % -- comment out
\starttext
%text  % -- comment in
\completecontent
\stoptext

Strange is, that the en-dash is there when either the style is not set or when 
there is text before the TOC.

Best,
Florian

___
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] Dolly's Underware ?

2011-03-28 Thread Steffen Wolfrum
Hi Hans,

with todays beta I just re-ran Vedran's posted minimal example (see below):

Still there is Underware laying around under d. Whom does it belong to?


Hans, please fix this bug fast! In my current book there is a truckload of 
ownerless underware laying around :o)


Steffen


---


My \index{dog}dog is a \index{dog+bullterrier}bullterrier named 
\seeindex{Dolly}{Underware}Dolly.
He doesn't like \index{cat}cats.
There are a lot of \index{cat+stray}stray cats, but only a few of them are 
\index{cat+Siamese}Siamese.

\placeindex



___
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] Dolly's Underware ?

2011-03-28 Thread Hans Hagen

On 28-3-2011 8:07, Steffen Wolfrum wrote:


No, not necessarily. Just run the same file (see below) with MkII: Dolly with 
Underware, fine.


well, mkii is not a reference for this and mkiv shres no register code 
with it; also, you can consider the fact that mkii does not ignore 
faulty entries a bug there



I mean, did you state in MkIV that nobody shall throw around underwear and 
disappear ...


not only underware will disappear

anyhow, i now issue a message so when you see them you'd better check 
your source because your pant might drop to your ankles showing your 
underware when your client tell you that he wonders where those entries 
pointing nowhere come from (ok, you can consider it part of the 
automatically generate random references and bibliographies feature 
that Thomas and I are working on)


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] Dolly's Underware ?

2011-03-28 Thread Steffen Wolfrum

Am 28.03.2011 um 21:26 schrieb Hans Hagen:

 On 28-3-2011 8:07, Steffen Wolfrum wrote:
 
 No, not necessarily. Just run the same file (see below) with MkII: Dolly 
 with Underware, fine.
 
 well, mkii is not a reference for this and mkiv shres no register code with 
 it; also, you can consider the fact that mkii does not ignore faulty entries 
 a bug there
 
 I mean, did you state in MkIV that nobody shall throw around underwear and 
 disappear ...
 
 not only underware will disappear
 
 anyhow, i now issue a message so when you see them you'd better check your 
 source because your pant might drop to your ankles showing your underware 
 when your client tell you that he wonders where those entries pointing 
 nowhere come from (ok, you can consider it part of the automatically 
 generate random references and bibliographies feature that Thomas and I are 
 working on)


:o))


Wonderful!

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