Re: [NTG-context] Font features not always working

2008-05-06 Thread Wolfgang Schuster
On Wed, Apr 30, 2008 at 10:00 AM, Lutz Haseloff
[EMAIL PROTECTED] wrote:
 Hi Wolfgang,

 it seems that some fonts need script=latn in \definefontfeature.
 (i copied and pasted from font-ini.tex)

 So your file works here:

 --
 % engine=luatex

 \definefontfeature
  [default]
  [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes]

 \definefontfeature
  [smallcaps]
  [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,smcp=yes]

 \definefontfeature
  [oldstyle]
  [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes]

I looked into font-ini from my old installation and all fontfeatures
where defined with the latin script, would be interesting to know
why this has changed and if there is a reason for this.

 \definefont[pan][file:texgyrepagella-regular*default]
 \definefont[pas][file:texgyrepagella-regular*smallcaps]
 \definefont[pao][file:texgyrepagella-regular*oldstyle]

 \definefont[can][file:CAMBRIA*default]
 \definefont[cas][file:CAMBRIA*smallcaps]
 \definefont[cao][file:CAMBRIA*oldstyle]

 \definefont[con][file:CORBEL*default]
 \definefont[cos][file:CORBEL*smallcaps]
 \definefont[coo][file:CORBEL*oldstyle]

 \starttext

 \pan ANB anc 123 VA Ta

 \pas ANB anc 123 VA Ta

 \pao ANB anc 123 VA Ta

 \can ANB anc 123 VA Ta

 \cas ANB anc 123 VA Ta

 \cao ANB anc 123 VA Ta

 \con ANB anc 123 VA Ta

 \cos ANB anc 123 VA Ta

 \coo ANB anc 123 VA Ta
 \blank

 \starttabulate
 \NC ConTeXt \EQ \contextversion\NC\NR
 \NC LuaTeX Revision \EQ \number\luatexversion  \NC\NR
 \NC LuaTeX Revision \EQ \number\luatexrevision \NC\NR
 \stoptabulate

 \stoptext

The example works now as expected.

Thank you very much Lutz, for the solution.

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


Re: [NTG-context] Metapost on OS X 10.5

2008-05-06 Thread Thomas A. Schmitz
Hi Taco, Hi Karl,

looks like you nailed it: with the new c-std.h, compilation works  
without a hitch on my 10.5 box!

Best wishes

Thomas

On May 6, 2008, at 8:50 AM, Taco Hoekwater wrote:

 Hi Thomas,

 Can you please replace the c-std.h in src/texk/kpathsea
 with the attached one and see if that helps? The one I
 am distributing with metapost is slightly different from the
 one in tl, and we need to exclude differences that from the list
 of causes (either that, or we found the cause)

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


Re: [NTG-context] withshade (mlib)

2008-05-06 Thread Peter Rolf
Peter Rolf schrieb:
 Hans Hagen schrieb:
 Peter Rolf wrote:
 Hi,

 there are some problems in combination with the 'withshade' operator in 
 mlib.

 this must be patched in mp-mlib.mp (':=' instead of '='; too much lua ;)
 indeed


 i still get an error after this patch, because '_defined_cs_' is not 
 increased somehow (donno why, not my day; cleared mem, remade formats). 
 _defined_cs_pre_0 is of course undefined.
 did you delete the cont-en-metafun format in the cache?

 yes, several times. if it works for you, i just have bad luck. as said: 
 not my day..

don't know if i'm still out of luck or if it's a general problem
(luatex trunc, context beta 03.05.2008).

there was also some 'hide' missing, but anyway i still get the same 
error. code looks ok to me, but i'm no experienced mp programmer. maybe 
a luatex/mplib problem with vardef grouping? i'm puzzled.


vardef define_linear_shade (expr a, b, ca, cb) =
 hide (_defined_cs_ := _defined_cs_ + 1 ;
 _defined_cs_pre_ [_defined_cs_] := ls ;
 _defined_cs_post_[_defined_cs_] := 0 1   decimal shadefactor 
   
 colordecimals ca ddecimal (a shifted shadeoffset)   
 colordecimals cb ddecimal (b shifted shadeoffset) )
 _defined_cs_
enddef ;

same for define_circular_shade...

% testfile -
% engine=luatex
\setupcolors[state=start]
\starttext

\null
\startMPcode
 path p;
 p:= unitsquare xyscaled(10cm,1cm);
 fill p withshade
 define_linear_shade(p,1,red,blue);
\stopMPcode

\stoptext

% results in 
[..]
systems: begin file shade at line 3
mplib  : making format: metafun.mp, name: 
r:/tex/luatex-cache/context/be74c9ce1715b7e02ccf1b16a39c2fc2/formats/cont-en-metafun.mem
mplib  : loading format: metafun.mp, name: 
r:/tex/luatex-cache/context/be74c9ce1715b7e02ccf1b16a39c2fc2/formats/cont-en-metafun.mem
report  mp terminal: ! Missing argument to withshade.
to be read again
define_linear_shade
* ...,1cm); fill p withshade define_linear_shade
   (p,1,red,blue); ;
  unknown string _defined_cs_pre_0
! Improper type.
to be read again
withpostscript
withshade-...fined_cs_pre_[(EXPR0)]withpostscript
 
._defined_cs_post_[(EXPR0)]
to be read again
define_linear_shade
* ...,1cm); fill p withshade define_linear_shade
   (p,1,red,blue); ;
  _defined_cs_post_0define_linear_shade
! Improper type.
to be read again
(
* ...1cm); fill p withshade define_linear_shade(
   p,1,red,blue); ;
! Extra tokens will be flushed.
to be read again
(
* ...1cm); fill p withshade define_linear_shade(
   p,1,red,blue); ;

report  mp error: unknown, no error, terminal or log messages
fonts  : resetting map file list
[..]


any help welcome.

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


[NTG-context] bachotex

2008-05-06 Thread Hans Hagen
for mac and windows users ...

http://www.river-valley.tv/conferences/bachotex2008/


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


Re: [NTG-context] ConTeXt on MikTeX broken

2008-05-06 Thread George N. White III
On Tue, May 6, 2008 at 11:57 AM, Mojca Miklavec
[EMAIL PROTECTED] wrote:

 On Tue, May 6, 2008 at 4:29 PM, George N. White III wrote:
   On Sat, May 3, 2008 at 7:00 AM, Mojca Miklavec
[EMAIL PROTECTED] wrote:
  
  some time ago some MikTeX users have complained that ConTeXt doesn't
  work on MikTeX. It seems to be a problem with MikTeX itself since this
  workaround seems to solve the problem, at least temporary:
 ruby C:\Program Files\MiKTeX
  2.7\scripts\context\ruby\texmfstart.rb texexec
  
I'm not so quick to blame MiKTeX -- I suspect texmfstart.rb would need
to provide some path searching tailored to MiKTeX.   It seems to rely
on $0 with a tetex/texlive directory structure where SELFAUTOPARENT
can be used.

  Christian has indeed replied that he uses the binary version of
  texmfstart from CTAN (which is a bit older that the one on PRAGMA).
  But I still don't understand what can go wrong in the middle of
  nothing, without any major changes. So there is either a problem in
  MikTeX or in ConTeXt.


The only criticism of MiKTeX is that it is silly to distribute
a broken package, but then it is up to ConTeXt users to report breakage
and, ideally, supply fixes.

  I completely agree. Except that I have no MikTeX any more. And I don't
  have the slightest idea what could have caused the problem. I don't
  see any serious changes in the texmfstart code that could break the
  3-week-old version, while it has worked OK before.

  Mea culpa. I should have forced Hans to fix it during BachoTeX ... :)
  I will try to misuse some windows computer next week to see if I can
  find any bugs (but it's difficult to test since one cannot simply
  modify the ruby script as on other platforms).

You can replace texmfstart.exe with a .cmd script::

C: type texmfstart.cmd
@ruby c:/PROGRA~1/MIKTEX~1.7/scripts/context/ruby/texmfstart.rb %*

C: ruby c:/PROGRA~1/MIKTEX~1.7/scripts/context/ruby/texmfstart.rb
texexec.rb cont-sample2e
TeXExec | processing document 'cont-sample2e'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file cont-sample2e.top
TeXExec | using randomseed 780
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.1415926-1.40.8-alpha-20080323 (MiKTeX 2.7)
entering extended mode
(cont-sample2e.tex

ConTeXt  ver: 2008.01.28 21:28 MKII  fmt: 2008.2.18  int: english/english

language: language en is active
system  : cont-new loaded
(C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.tex

FatalError  : Your format does not match the base files!

FormatVersion   : 2008.01.28 21:28 MKII
FilesVersion: 2008.04.18 14:17

TeXUtil | parsing file cont-sample2e.tui
TeXUtil | shortcuts : 297
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 30
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.641

c: texmfstart texexec.rb --make
TeXExec | using search method 'kpsewhich'
TeXExec | updating file database

.
...
...
..
.

[...]
TeXExec | generating mps format metafun
mpost: Invalid command-line option

[The command line can be captured by renaming mpost.exe to
mpostbin.exe and making a script:
type mpost.cmd
mpostbin %*

This shows:
mpostbin -alias=metafun -initialize -tcx=natural.tcx --8bit metafun

[...]

With this, I can format simple documents.  The mpost problem seems to
be with the --8bit option, which comes from
tex.rb.


  (But apparently there are not many MikTeX users on the list anyway.
  Else more would have complained.)
  
Don't complain, just switch to a platform/distro where ConTeXt works
and use mpm (since few others provide updates with the speed and
convenience of MiKTeX).
  
I think MiKTeX should remain focusing on the packages and binaries,
and rely on upstream to fix broken packages.

  I agree. But I have thought that some change in MikTeX might have
  occurred in the meantime.

The problem with mpost suggests some tweaks are still needed
to handle differences between linux and miktex command lines.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bachotex

2008-05-06 Thread luigi scarso
also in linux with totem
(actually no audio :( )

On Tue, May 6, 2008 at 6:07 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 for mac and windows users ...

 http://www.river-valley.tv/conferences/bachotex2008/


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




-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bachotex

2008-05-06 Thread Hans Hagen
luigi scarso wrote:
 also in linux with totem
 (actually no audio :( )

that's why i left linux out of the list -)

later there will be more formats

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


Re: [NTG-context] bachotex

2008-05-06 Thread Olivier Guéry
Linux here and everything seems to work…
Ubuntu hardy heron / firefox3 last beta / mplayer plugin (but I also
can see the flash movies).

Olivier.

On Tue, May 6, 2008 at 8:06 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 luigi scarso wrote:
   also in linux with totem
   (actually no audio :( )

  that's why i left linux out of the list -)

  later there will be more formats

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




-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bachotex

2008-05-06 Thread luigi scarso
On Tue, May 6, 2008 at 8:22 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Linux here and everything seems to work…
 Ubuntu hardy heron / firefox3 last beta / mplayer plugin (but I also
 can see the flash movies).
oh yes, also here before updating to 8.04


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] processing xml

2008-05-06 Thread Roger Mason
Hello,

I have a document converted from rtf to xml that I'd like to attempt
to typeset using Context.

As a starting point I tried to follow the procedure in a document from
the wiki: mag-0008-1.pdf Dealing with XML.  Having copied the first
example document and stylesheet from that article and generated
sample-1.fx, I run:

texexec --pdf --use=fx --xml sample-1.fx

but it ends with:

(/usr/local/context_minimal/tex/texmf-local/tex/context/base/spec-fdf.tex
(/usr/local/context_minimal/tex/texmf-local/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
system  : module fx not found
)
systems : system commands are enabled
)
*

I installed the minimal today from the wiki to be up to date before
posting.

Probably something has changed in the four years since mag-0008-1.pdf
was written.  If some kind soul would point me in the right direction
I'll be very grateful.

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


Re: [NTG-context] bachotex

2008-05-06 Thread Aditya Mahajan
On Tue, 6 May 2008, Hans Hagen wrote:

 for mac and windows users ...

 http://www.river-valley.tv/conferences/bachotex2008/

Works perfectly in linux here (Hardy 8.04).

Nice font, BTW.

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


[NTG-context] How to define my own list entry?

2008-05-06 Thread Zhichu Chen
Hi everybody,

I'm just writing a module to typeset the traditional Chinese books.
Here is the thing: I use page-arrangement to put like 15 pages on
one page or actually 30 pages on one page in a double-sided mode
(I mean page 1 and page 2---which contain 15 mini-pages each---are
on the same page), and yes I want to make a table of contents and
some PDF bookmarks. But having searched the list, I find that I
should use
texexec --arrange file.tex
to compile the file and get the real page number. That's not what I
want. Because if I get one chapter on the second page, the page
number is 31 rather than 2 which I really want it to be. And so do
the bookmarks behave. If I click the bookmark of the first chapter,
it will go to the 31st page of the PDF file if it has page 31. I don't
really like the mess.

I know it's normal, but I would like to know if there's any way to
write the page counters I defined to the .tui or .tuo file so that I can
totally handle them and display them on the contents and make
the bookmarks not crazy any more.


-- 
Best Regards
Chen


Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn

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