Re: [NTG-context] Greek in luatex

2007-09-16 Thread Thomas A. Schmitz

On Sep 16, 2007, at 3:08 PM, Arthur Reutenauer wrote:

  Yes, it works. So Fontforge is sensitive to the order in which the  
 lookups
 are defined in the file? Interesting ...

   Thomas, you can try this but I have made a mistake in the Unicode  
 code
 for omega with subscribed iota: it should be 1FF3 and not 1FD3.

   Arthur

Yep, I had already fixed that (and also replied to Taco's message,  
the context list is again a bit out of order today). Arthur, while  
we're at it: could you try and insert this line into the fea-file:

sub quotedbl quotesingle i by un1FD3 ;

whenever I try anything like this with the quotedbl character (which  
produces some ligatures), I get this error:

/Users/tas/texmf/fonts/opentype/greek/bosporos/BosporosU.otf
!luaTeX error (file /Users/tas/texmf/fonts/opentype/greek/bosporos/ 
BosporosU.otf): Unexpected error: 255 != 256
  == Fatal error occurred, no output PDF file produced!

(Or similar errors with other fonts). The mechanism for the single  
dieresis works:

sub quotedbl i by uni03CA ;

but nothing with quotedbl + something else. Do you have any ideal  
what triggers this error?

Best

Thomas
___
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] Greek in luatex

2007-09-16 Thread Thomas A. Schmitz
Hi Arthur, Taco,

you're my heroes! Changing the order of the lookup tables in the .fea  
file actually took care of the problem. Thanks for looking into this,  
now I get the results I was expecting; every substitution is applied  
to the font! Once the initial lookup has been done, this is  
reasonably fast, too, so I like it. I'm eagerly waiting for teh new  
release next week to see if this works with copy-and-past from pdfs.  
So this appears to be one way to deal with ASCII input a la babel.  
Easy to implement, but fails on fonts that don't have the glyphs for  
the Latin characters.

One trivial question: when I want to experiment with feature files,  
the cached instance of the font seems to be in the way. Only after  
deleting the current luatex-cache, regenerating it and recompiling  
the format do I get proper results. Is there an easier/faster way to  
do this?

Will now go on and experiment some more, especially with type1/afm- 
based fonts. Thanks a lot, best wishes

Thomas

On Sep 16, 2007, at 10:22 AM, Taco Hoekwater wrote:


 Hi guys,

 Try this ordering:

 lookup GreekBabelLookupMultiple {
 ...
 } GreekBabelLookupMultiple ;

 lookup GreekBabelLookupSimple {
  ...
 } GreekBabelLookupSimple ;




___
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] 2UP arranging spoils the table of contents and index

2007-09-20 Thread Thomas A. Schmitz

On Sep 20, 2007, at 8:29 AM, Liesbeth van der Plas wrote:

 Dear context group members,

 The 2UP arranging  spoils the table of contents and the index.  
 Deleting the second rule gives a content and index, including the  
 second rule gives only the titels 'content' and 'index'.

 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]

 \starttext
 \completecontent
 \chapter{hfdst 1}Dit is een verhaaltje.\index{verhaaltje}
 \chapter{hfdst 2}
 \chapter{hfdst 3}
 \chapter{hfdst 4}
 \completeregister[index]
 \stoptext


http://archive.contextgarden.net/message/ 
20070225.172829.92f7ff0f.en.html

http://archive.contextgarden.net/message/ 
20070421.062216.52756c79.en.html

http://archive.contextgarden.net/message/ 
20061128.210755.994f08ac.en.html

http://archive.contextgarden.net/message/ 
20070622.065115.ee898867.en.html

Thomas
___
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] Unicode error in embedded metapost

2007-09-25 Thread Thomas A. Schmitz

On Sep 24, 2007, at 11:58 PM, Maurí cio wrote:

 Hi,

 This small piece of code gives me a wrong
 result:

 \startuseMPgraphic{teste}
 z7 = (5cm,0);
 label.lrt(Pontão,z7);
 \stopuseMPgraphic

 I just have to change 'btex Pont\~ao etex'
 for 'Pontão' and everything goes fine.

 Best,
 Maurício


\enableregime[utf]

\starttext
\startuseMPgraphic{teste}
z7 = (5cm,0);
label(\sometxt{Pontão},z7);
\stopuseMPgraphic

\useMPgraphic{teste}

\stoptext

http://dl.contextgarden.net/myway/sometxt.pdf

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

HTH

Thomas
___
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] colors in luatex

2007-09-25 Thread Thomas A. Schmitz
Hi,

this minimal example compiles fine in mkii:

\setupcolors[state=start]

\starttext

\starttabulate
\startcolor[red]
\NC One \NC A \NC \NR
\NC Two \NC B \NC \NR
\stopcolor
\NC Three \NC C \NC \NR
\stoptabulate

\stoptext

With mkiv, I get this error:

! Missing \endgroup inserted.
inserted text
 \endgroup
to be read again
\endtemplate
template \endtemplate

\tabulatenormalcolumn #1-
\iftabulateequal \tabulateequalpos \else  
\tabulat...
\tabulatecontent -\par \startcolor [red] \NC
   One \NC A \NC \NR \NC  
Two \NC ...
\fulltabulatecontent ...dcontent \tabulatecontent

\tabulatetailcontent \remo...
...
l.13 \stoptabulate

Bug, or anything wrong with the code?

Thomas
___
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] quote characters in luatex

2007-10-02 Thread Thomas A. Schmitz
In my experiments with luatex, there's one thing that may be  
surprising for many users: we have come to expect that the characters  
` and ' in our input files map to single left and single right  
quotation marks. luatex just typesets them verbatim, so to speak.  
It converts the combination `` and '' to double quotation marks,  
however. So my question: wouldn't it make sense to convert the single  
marks as well? (And please don't tell me Oh but you should use \quote 
{} instead of ` '. I know that, but I guess that many users have  
hundreds of old documents where they use `'. Moreover, ' also creates  
the apostrophe character, which cannot be avoided.)

Best

Thomas
___
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] quote characters in luatex

2007-10-02 Thread Thomas A. Schmitz

On Oct 2, 2007, at 5:36 PM, Hans Hagen wrote:


 there is a feature:

 texligatures=yes

 for the rest, we can consider mappings but i fear that we end up in a
 quote mess


is that the same as tlig=yes ? This doesn't effect the single quote.  
I see the problem with the quote mess; in the old pdfTeX, it wasn't  
even possible to get the ' character at all. But it is a minor  
anoyance in terms of backward compatibility, I think.

Thomas
___
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] LuaTeX on Mac OS X

2007-10-02 Thread Thomas A. Schmitz

On Oct 1, 2007, at 11:31 PM, Otared Kavian wrote:

 Dear Dalyoung,

 Like many other ConTeXt users I followed up the many threads about
 how to install, successfully, LuaTeX.
 In particular I was interested in your experience since I had more or
 less the same problems as the ones you described in your latest
 messages on the list.
 Now my question is: did you succeed to install and use LuaTeX on Mac
 OS X?
   --- If yes, could you please describe how you did proceed?
   --- If no, this means we have to wait more for our salvation...

 Thanks for your attention and best regards: OK


OK, I have just summarized my own experience with luatex. Please  
comment; if this is helpful at all, we should put it on the wiki.

Thomas

Setting up luatex on OS X

The following remarks are not more than an amplification of what Hans  
writes in
magazin #12. However, since some users have had difficulties, here's  
a short
summary of the steps that I have followed on my system (OS X 10.4;  
system
language set to English; vanilla TeXLive installation) to work with  
luatex.

1. Get the latest ConTeXt version.

Download the latest cont-tmf.zip at
www.pragma-ade.com (either stable or beta). Unzip this file in a  
texmf-tree. It
is recommended that you do this in a local tree. This way, if you  
ever have
problems, you can just delete this local tree and continue working  
with the
stable tree that came with your distribution. If you don't know where  
your
local texmf tree is located, follow these directions (a line with #  
in front
means you should type the line following this # into your Terminal  
window;
press Return at the end of the line. Comments or explanations which  
should
not be retyped are included in  brackets. Please be careful to retype
exactly, leaving all the quotes etc. in place!).

# kpsewhich --expand-var '$TEXMFLOCAL'

On my system, this expands to
/usr/local/texlive/texmf-local

Now go to this directory

# cd /usr/local/texlive/texmf-local

download the file cont-tmf.zip to this directory and unzip it. On  
most systems,
you will need superuser rights to do this; after entering the sudo  
command, you
will be asked for your password.

# sudo unzip cont-tmf.zip
Password:
# type your password, then RETURN
Archive:  cont-tmf.zip
replace bibtex/bst/context/cont-ab.bst? [y]es, [n]o, [A]ll, [N]one,  
[r]ename:
# type A then type RETURN

After this, a long list of files will scroll by.

2. Regenerate the formats

While we're at it, we might as well regenerate the formats for pdftex- 
based
ConTeXT:

# sudo texmfstart texexec --make --all --pdftex

You'll see the output on the Terminal; at the end, texexec should  
tell you that
it has regenerated all the formats.
TeXExec |
TeXExec | tex engine path: /usr/local/texlive/2007/texmf-config/web2c/ 
pdftex
TeXExec | mps engine path: /usr/local/texlive/2007/texmf-config/web2c
TeXExec |
TeXExec | tex: 02/10/2007 17:50:43  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/cont-en.fmt (7392414)
TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/cont-nl.fmt (7473512)
TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/mptopdf.fmt (277947)
TeXExec | mps: 02/10/2007 17:50:58  /usr/local/texlive/2007/texmf- 
config/web2c/metafun.mem (482192)
TeXExec |
TeXExec | runtime: 7.575246

3. Set environment variables

In its current beta stadium, luatex needs some environment variables  
to be set;
this will probably change soon. In my experiments, on OS X, it needs  
these
four variables:

TEXMFCACHE: this decides where the luatex-cache directory will be  
created. If
you set this variable to a temporary directory such as /tmp, it will  
be deleted
at every reboot. This is a good idea since luatex caches lots of  
files and
paths in this directory, so it makes sense to refresh this directory  
often.

TEXMFCNF: This should point to the directory where the file texmf.cnf  
which
your TeX installation uses is located. In order to find out where  
this is, run
this command:

#kpsewhich texmf.cnf

On my system, this points to
/usr/local/texlive/2007/texmf/web2c/texmf.cnf
so we need to set TEXMFCNF to /usr/local/texlive/2007/texmf/web2c.

TEXMF
This should list ALL texmf trees which your TeX installation uses. In  
order to
know what these trees are, run this command:

# kpsewhich --expand-var '$TEXMF'

The output of this command on my system is:

{/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf- 
var,/Users/tas/texmf,!!/usr/local/texlive/2007/texmf-config,!!/usr/ 
local/texlive/2007/texmf-var,!!/usr/local/texlive/2007/texmf,!!/usr/ 
local/texlive/2007/../texmf-local,!!/usr/local/texlive/2007/texmf- 
dist,!!/usr/local/texlive/2007/texmf.gwtex}

In this form, the list contains a few shortcuts and symbols which are  
special
to kpsewhich. Remove all the exclamation marks; if there are other  
shortcuts in
your output, bring it into a flat list of Unix directories.

LUAINPUTS

These 

Re: [NTG-context] quote characters in luatex

2007-10-03 Thread Thomas A. Schmitz

On Oct 2, 2007, at 6:51 PM, Hans Hagen wrote:

 well, we can make a converter, much simpler than the greek  
 debabelizer -)

 Hans

What, even simpler! :-)

Of course, it could also be done via Arthur's code for a fea file.  
I'm just wondering if this behavior should be made the default.

Thomas
___
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] beta

2007-10-03 Thread Thomas A. Schmitz

On Oct 3, 2007, at 4:35 PM, Arthur Reutenauer wrote:

 beware, i uploaded a new beta but when you use mkiv, you really  
 need the
 latest luatex, so best wait til that one is available or compile  
 yourself

   Oh, so that's the problem I had when I installed the new beta  
 today: I
 had one error in lang-ini.lua, and later two errors for each language
 defined ;-)

   It works fine with the latest revision.

Same here, after compiling the latest trunk, it works.


 (no pattern preloading, runtime loading of patterns)

   Sounds great indeed :-)

   Arthur


Yes, this is great, but can we somehow reduce the verbosity of the  
output? My bit bucket is already full with lines like

processing
found a word (lang=2): hier
clean hyphens: 00

Maybe luatex can find words without telling me about it? :-)

Thomas
___
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] beta

2007-10-03 Thread Thomas A. Schmitz

On Oct 3, 2007, at 4:58 PM, Taco Hoekwater wrote:

 You'll have to learn to live with that, sorry.

OK, will pretend my eyes aren't bleeding. :-)

 There are also
 no ligatures in the trunk version.


Hey, I was just going to complain about this...

Thanks

Thomas

___
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] LuaTeX on Mac OS X

2007-10-04 Thread Thomas A. Schmitz

On Oct 4, 2007, at 8:28 AM, Otared Kavian wrote:

 Indeed the binary paths I have for my TeX programs are

 /usr/local/gwTeX/bin/
 /usr/texbin

 of which the first one contains the directory

 /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0

 However, in this directory I only have a file pdftex which is not a
 directory, and therefore the command

 cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/

 results in:

 bash: cd: /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/: Not
 a directory

Sorry, that was a typo! So in your case, that should be

cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0

Btw, rehash is not the same as texhash: in some shells (I use  
zsh, the best shell in the world), you run this command when you add  
a new binary to your path.

Thomas
___
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] most recent context and luatex for linux

2007-10-04 Thread Thomas A. Schmitz

On Oct 5, 2007, at 7:14 AM, Lutz Haseloff wrote:

 I use luatex 11.2 beta (self compiled).
 The error occurs in normal context and in the beta.


 Greetings

 Lutz

Yes, that's what Hans wrote when he announced this beta: you'll need  
the latest latest luatex, i.e. you have to checkout the svn trunk and  
compile yourself (and what do you mean in normal context?)

Thomas
___
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] Problem with XML entities in titles [2]

2007-10-05 Thread Thomas A. Schmitz

On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:

 Hans,

 \xmlsetsetups throws Undefined control sequence...
 (ConTeXt 2007.09.28)

 ?!

 R.


With --luatex?

T.
___
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] LuaTeX on Mac OS X

2007-10-06 Thread Thomas A. Schmitz

On Oct 6, 2007, at 5:47 AM, Jeong Dalyoung wrote:

 Dear Thomas, Hans, and all

 I am sorry to give another noise to you. I did install luatex once
 more and I'd like to report the results.


A simple search in the archives would have brought up this thread  
from yesterday:

http://archive.contextgarden.net/thread/20071005.055839.1a3f8676.en.html

which describes exactly your problem.

Thomas
___
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] metapost question

2007-10-08 Thread Thomas A. Schmitz
Just because I hope that someone may have done this already: does  
anyone have metapost code to draw the Platonic solids (I hope the  
attachment comes through).


All best

Thomas

inline: platonic.png___
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 question

2007-10-08 Thread Thomas A. Schmitz

On Oct 8, 2007, at 6:49 PM, Otared Kavian wrote:

 Hi Thomas,

 I think you can find what you are looking for at:

 http://melusine.eu.org/syracuse/poulecl/albums/espace3/

 Best regards: OK


Thanks, Otared! It took me a while to find out how to navigate the  
site, but this really looks like it has exactly what I need! Thanks  
so much! French matheux simply are the best...

All best

Thomas
___
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] System commands are disabled

2007-10-14 Thread Thomas A. Schmitz

On Oct 14, 2007, at 7:16 AM, Leo wrote:

 Hi there,

 I have the following code from ConTeXt wiki. I tried it in
 http://live.contextgarden.net/ and the output is correct. But when I
 tried it in the ConTeXt from TeXLive 2007, the metapost graph is not
 displayed in the final pdf file. Any ideas?

1. Open the file /usr/local/texlive/2007/texmf/web2c/texmf.cnf in the  
editor of your choice.

2. scroll down to line 441

3. change shell_escape = f to shell_escape = t

HTH

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

2007-10-23 Thread Thomas A. Schmitz
Just wanted to renew my thanks. I used the code from these pages to  
produce the slides for my lecture, and I really liked the way the  
polyhedra came out. I always got an error about a redundant  
equation when compiling, but the pdf looks fine. So here's the link  
(the image with the Platonic solids is on p. 35):


http://www.uni-bonn.de/www/Philologie/Personal/Schmitz/Dateien/bilder/ 
07_10_23.pdf


Thanks

Thomas


On Oct 8, 2007, at 8:10 PM, Jesse Alama wrote:


And here's a page dedicated to the MetaPost package that's used for
those polyhedra:

  http://melusine.eu.org/syracuse/poulecl/geometriesyr16/

Download:

  http://melusine.eu.org/syracuse/poulecl/geometriesyr16/distrib/ 
geometriesyr16.tgz


Jesse

Otared Kavian [EMAIL PROTECTED] writes:


Hi Thomas,

I think you can find what you are looking for at:

http://melusine.eu.org/syracuse/poulecl/albums/espace3/

Best regards: OK

On 8 oct. 2007, at 15:47, Thomas A. Schmitz wrote:


Just because I hope that someone may have done this already: does
anyone have metapost code to draw the Platonic solids (I hope the
attachment comes through).

All best

Thomas

platonic.png


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

2007-10-23 Thread Thomas A. Schmitz
Hi,

at the risk of sounding rude or impatient: I'd love to know when new  
releases of luatex and ConTeXt mkiv can be expected. The latest  
luatex trunk has some problems (no ligatures, hyphenation flaky) and  
doesn't work with some of my fonts. Latest ConTeXt beta only works  
with trunk of luatex. Hans mentioned some fundamental changes in  
luatex, so I was just wondering.

Thanks!

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

2007-10-23 Thread Thomas A. Schmitz

On Oct 23, 2007, at 2:26 PM, Hans Hagen wrote:

 use := instead of = then


Well yes, but this was a pretty intricate package with lots of  
included files, so I found it difficult to trace down which equation  
was causing the trouble. However, I found the resilt very nice.

Best

Thomas
___
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] Problem with nested \quotation and \quote

2007-11-01 Thread Thomas A. Schmitz
Hi all,

the attached test file shows a problem with nested \quotation and  
\quote commands: ConTeXt breaks the line after the first closing  
quote. There shouldn't be a line break there.

Thanks!

Thomas

\definepapersize[test][width=7cm,height=3cm]

\setuppapersize[test][test]

\mainlanguage[en]

\starttext

\quotation{He said, \quote{this demonstrates the problem with nested  
quotes.}}

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


Re: [NTG-context] LuaTeX/MKIV on OS X 10.5 Leopard

2007-11-01 Thread Thomas A. Schmitz

On Nov 1, 2007, at 5:47 PM, David Wooten wrote:

 Greetings all,

 I'm curious whether anyone using MKIV on a Mac has upgraded to 10.5?
 Any problems after doing so?

 Regards,
 David

Yup, here. Upgraded to 10.5 day before yesterday; no problems with  
Mkiv so far. Except that the latest luatex snapshot won't compile on  
OS X, but beta 0.11.2 works normally here.

Thomas
___
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] combination with an additional line centered in a placefigure?

2007-11-15 Thread Thomas A. Schmitz

On Nov 16, 2007, at 8:14 AM, Peter Schorsch wrote:

 Hi,

 as soon I enter the cbox-line the combination is not longer  
 centered. I tried
 to embed the combination in a cbox, but that had no effect. Has  
 anyone a hint
 how to center the combination successfullly?

 \starttext
 \placefigure
   [force][fig:xy]
   {captiontext}
   {\startcombination[2*1]
   {\externalfigure[xxx][]}{}
   {\externalfigure[yyy][]}{}
   \stopcombination
   \cbox{\tfx Quelle: XY}
   }
 \stoptext

 Thanks, P.

Hmm, untested: isn't that because you're lying to ConTeXt? I'm not  
quite sure what you want to achieve, but it looks like you don't want  
a 2*1 combination. Rather, you're looking for a 1*2 combination, the  
first part of which is a 2*1 combination, so I would guess that  
nesting those combinations would be the way to go.

Thomas
___
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] Quickie about Line Numbering

2007-11-23 Thread Thomas A. Schmitz

On Fri, 2007-11-23 at 21:46 +0100, Matthias Wächter wrote:
 Hi!
 
 Just wondering how I can manage to number all the lines of my document.
 Thought that this would work but it actually doesn't.
 
 \starttext
 \startlinenumbering
 
 \chapter{First}
 
 A paragraph
 
 Another paragraph.
 
 \chapter{Second}
 
 Wait and see---nothing.
 
 \stoplinenumbering
 \stoptext
 
 
 Is there a better/smarter way for doing this than typing a lot of
 \(start|stop)linenumbering around paragraphs of text? We need line
 numbers as part of our document review process for clearly referencing
 error spots.
 
 - Matthias

I have some dim recollection that I asked a similar question some time
ago, and the answer was: you can't (but I can't find a reference in the
archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
start line numbering after headings:

\starttext

\chapter{First}

\startlinenumbering
A paragraph

Another paragraph.
\stoplinenumbering

\chapter{Second}

\startlinenumbering
Wait and see---nothing.
\stoplinenumbering

\stoptext

Thomas

___
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] defining and expanding in xml

2007-11-23 Thread Thomas A. Schmitz
Hi gurus,

sorry for this long mail, but this is too difficult for me, and I have
to apologize that I can't provide a minimal example. Here's what I want:

I have one big xml-file which is my lecture course for the semester.
Every single lecture is one section. This xml-file is processed
(needless to say!) with ConTeXt. Every lecture is accompanied by a
presentation, written in and processed by ConTeXt. The TeX files and the
resulting pdfs are named by their dates, such as 07_11_23.pdf for
today's lecture. I have defined a simple counter that will typeset a
number in red at every place in the lecture where I show a new slide
(and then increment the counter); here are the relevant definitions:

\definelabel[SlideNumber][headstyle=normal,way=bytext]
\define\SLN{\color[red]{[\nextSlideNumber]}}
\defineXMLcommand[sln]{\sln}

What I want: I would like to produce a handout of the lecture course
which would include the slides at the relevant places. My idea was that
everything is basically in place. I would simply need to define a
handout mode which would redefine this \sln command and use the
SlideNumber counter to insert the relevant pages from the presentation
pdf. But I can't get it to work. Here's what I've tried:

1. the value of the \SlideNumber counter should be \currentSlideNumber,
so basically I would like something along these lines:

\define\sln
{\externalfigure[presentations/07_11_23.pdf][page=
\currentSlideNumber]\incrementSlideNumber}

But this throws an error:
! Argument of \pp!doifinstringelse has an extra }.
inserted text 
\par 
to be read again 
   }
\doif #1#2-\edef \!!stringa {#1}
 \edef \!!stringb {#2}\ifx \!!stringa
\!!str...

\checkfigureusersettings ...ntedfigurepage \empty 
  {\let
\wantedfigurepage \!...

\calculateexternalfigure ...eckfigureusersettings 

\checkfigurecolorsettings ...
argument ...lideNumber },width=.75\textwidth ][]

\calculateexternalscreenfi...
...
l.71   SLN/

I assume it is an expansion problem. I tried page=
\expanded{\currentSlideNumber]}, but that doesn't work either. So this
is my first problem: how can I pass the value of SlideNumber on to the
externalfigure command?

2. Next step: I would like to have the name of the corresponding
presentation pdf in another macro so I can include this in the command
definition as well. In TeX, I would simply write someting like 

\let\CurrentPresentation=07_11_23.pdf

into my file and then refer to \CurrentPresentation. But how do I do
this in XML? I was thinking something along the lines

section Current=07_11_23.pdf

but am at a loss as to how to pick up this value later.

Sorry for the long post; I'd be very happy if someone could provide some
insights.

Thomas

___
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] font modification in \inright

2007-11-25 Thread Thomas A. Schmitz
This seems to work:


\definebodyfont[6pt][rm][default]

\setupinmargin[align=right,style={\switchtobodyfont[6pt]}]

Nice example, btw!

HTH

Thomas

On Nov 25, 2007, at 11:58 PM, Boris Dagaev wrote:

 Hello ConTeXt Experts!

 I am looking for a proper ConTeXt of solving a problem I've solved
 through a hack (my solution is right after the need and problem are
 stated below).

 Preface: I am learning ConTeXt as I go. I do apologize if mine is a
 rookie question. I'd appreciate your help very much.

 Need:
 number every paragraph and place its number on the right margin in a
 smaller (6pt) font.

 Problem:
 when I try to switch to a smaller font directly in an \inright:
 \inright{\vi\hfill\bf\the\parCount}
 that outputs the count in the main paragraph font (14pt) until I
 prefix every paragraph with a hack
 {\vi\ \setbox0=\hbox{\ }\kern-\wd0}
 then \inright outputs the number correctly in a 6pt font
 (if I add the hack to \everypar, the inright font is still 14pt)

 Question: is there a way to switch to a smaller font directly in  
 \inright{}?

 My solution:

 \setupoutput[pdftex]

 \definepapersize[MYBOOK][width=10.5cm,height=18.5cm]
 \setuppapersize[MYBOOK][letter]
 \setuplayout[width=fit, height=fit, topspace=0cm, header=1cm,
 footer=0.2cm, location=middle, marking=on, leftmargin=0cm,
 leftmargindistance=0cm, rightmargin=0.5cm, rightmargindistance=0cm,
 leftdistance=0cm, rightdistance=0cm, backspace=0cm]

 \setupbodyfont[14pt]
 \setupwhitespace[big]

 \setupinmargin[align=right]

 \newcount\parCount \parCount=1

 \def\inRightParCount{%
  %% ADDING THE HACK HERE DOES NOT HELP {\vi\ \setbox0=\hbox{\ }\kern- 
 \wd0}
  \inright{\hfill\bf\the\parCount}
  \global\advance\parCount by 1 }

 \appendtoks \inRightParCount \to \everypar

 \starttext

 {\vi\ \setbox0=\hbox{\ }\kern-\wd0}Lorem ipsum dolor sit amet,
 consectetuer adipiscing elit. In arcu justo, iaculis eu, adipiscing
 nec, lacinia a, eros. Proin consequat, nisl eu commodo dignissim,
 dolor sapien facilisis turpis, vitae mattis felis sapien ac enim.
 Donec nisi. Pellentesque nec enim. Vestibulum dignissim tincidunt
 eros. Proin pretium elit sed mi. Aenean eu magna. Integer elementum
 mollis nibh. Pellentesque habitant morbi tristique senectus et netus
 et malesuada fames ac turpis egestas. Nam nisi. Praesent feugiat est.
 Duis pharetra cursus orci. Fusce pede. Donec vitae nunc eget mauris
 condimentum sagittis.

 % WITHOUT THE HACK THE PARCOUNT IS IN 14pt
 % {\vi\ \setbox0=\hbox{\ }\kern-\wd0}
 Nunc vel ipsum. Fusce posuere. Praesent id sem in mi gravida molestie.
 Proin ultrices leo eget enim. Pellentesque faucibus, massa in aliquet
 mollis, turpis neque sollicitudin tortor, sed bibendum velit est id
 risus. Duis at massa. Curabitur euismod cursus libero. Integer
 pharetra, nisl eu laoreet sodales, sem lorem fermentum enim, in
 euismod odio velit at pede. Sed eget dui. Curabitur vitae turpis ut
 velit sollicitudin venenatis. Phasellus vel lectus. Nullam mi sapien,
 varius congue, imperdiet vitae, aliquet eget, orci. Donec purus.

 {\vi\ \setbox0=\hbox{\ }\kern-\wd0}Vivamus ut metus. Mauris ac. Aenean
 urna sem, interdum id, pellentesque ut, tincidunt vitae, magna. Morbi
 facilisis purus sit amet nisi. Quisque eleifend egestas ante. Vivamus
 eleifend sollicitudin ipsum. Praesent et tortor vestibulum dui aliquet
 accumsan. Vestibulum massa mauris, tristique sit amet, hendrerit
 vitae, euismod a, magna. Nulla erat. Maecenas tincidunt. Lorem ipsum
 dolor sit amet, consectetuer adipiscing elit. Curabitur sit amet pede.
 Phasellus pretium sagittis metus.

 \stoptext


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

___
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] defining and expanding in xml

2007-11-26 Thread Thomas A. Schmitz

On Nov 24, 2007, at 11:30 PM, Hans Hagen wrote:

 Thomas A. Schmitz wrote:


 \define\sln
 {\externalfigure[presentations/07_11_23.pdf][page=
 \currentSlideNumber]\incrementSlideNumber}

 does it work with simple filenames? like abc.pdf?


Thank you, Hans. Wolfgang Schuster was kind enough to help me off- 
list; he provided a solution that works wonderfully. If anybody is  
interested, here's the relevant code:

\def\CurPres#1{\gdef\doCurPres{#1}}

\def\sln
  {\blank[line]
   \incrementSlideNumber % vor dem Bild notwendig?
   \midaligned{\externalfigure[\doCurPres] 
[page={\getnumber[SlideNumber]},width=.75\textwidth]}
   \blank[line]}

and in order to provide the translation xml -- ConTeXt:

\defineXMLargument [present] \CurPres

Not sure if this is of interest to anybody; if it is, I'll wikify it.

All best, and thanks to Wolfgang!

Thomas
___
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] switching to Context

2007-11-29 Thread Thomas A. Schmitz

On Nov 29, 2007, at 1:17 PM, Roger Mason wrote:

 Hello,

 I'm thinking of making the switch from latex to context, indeed I'm
 working on my first non-trivial document as a trial.  I have some
 questions.

 (1) Is it possible to do conditional compilation?  I wish to use
 context to write lecture notes with embedded pictures.  I'd like to
 compile the document into one form to hand out to the class (or make
 available on the web) and another to be used as a presentation, much
 like latex-beamer, with just the pictures.

This is in fact quite easy with ConTeXt, you can use different modes.  
If you excuse the shameless plug, I wrote something in the PracTeX  
journal that may get you started:

http://www.tug.org/pracjourn/2006-2/schmitz/



 (2) Is it possible to convert context into plain text (i.e. strip out
 the formatting instructions)?  This may seem eccentric but it might,
 with some programming, offer a means to put document content into a
 relational database, perhaps in paragraph chunks.


I'm not aware of anything like that, but you can always use a tool  
such as pdftotext (part of xpdf, whch is available on any reasonable  
platform) on the pdf files that ConTeXt creates.

HTH

Thomas
___
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] selectively turn off captions

2007-11-30 Thread Thomas A. Schmitz

On Nov 30, 2007, at 2:11 PM, Roger Mason wrote:

 is it not possible to update to the current context?  I'm running
 3.0_p1 (on a Gentoo linux box so I'm acustomed to compiling from
 source).

Gentoo version numbers are not something that many people around here  
will know. I assume that 3.0_p1 refers to gentoo's tetex ebuild. This  
is ancient, tetex has been unmaintained for almost two years (and  
gentoo should be ashamed that they still haven't gotten around to  
making texlive the default). Of course it's possible to upgrade, but  
you will run into trouble: you'll need to compile a newer version of  
pdftex and install that. The gentoo tex setup is quite complex, and  
finding out why it is still using some old config file etc. is a royal  
pain. I tried it for a while and in the end got fed up with it and  
installed texlive from the iso image (see 
http://wiki.contextgarden.net/TeX-live) 
. But if you want to give it a shot, there's a wiki page about it;  
some info may be slightly updated, but most of it should work as  
described: 
http://wiki.contextgarden.net/Linux_Installation#Updating_Gentoo_Linux

Thomas
___
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] Greek: GR or EL? Czech: CZ or CS? UK: Ukrainian or ...

2007-12-05 Thread Thomas A. Schmitz
On Dec 5, 2007, at 2:40 AM, Mojca Miklavec wrote:

 I have noticed that ConTeXt uses gr for Greek, but the ISO code
 seems to be el. Less problematic: should agr be grc instead?
 (OpenType uses PGR, but I'm not sure if that's the same thing.)

 What do the Greek experts say?


Hi Mojca,

I have no strong opinion regarding gr/el, but what would grc stand  
for?

Thomas
___
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] new release

2007-12-05 Thread Thomas A. Schmitz
Oops, I was too fast upgrading... luatex fails to produce format files  
on my system:

luatex --version
This is LuaTeX, Version snapshot-0.20.0-2007120515

luatools --ini --compile cont-en

LuaTools | creating initialization file cont-en
LuaTools | using library path : /usr/local/texlive/texmf-local/tex/ 
context/base
LuaTools | using lua libraries: l-string.lua l-table.lua l-boolean.lua  
l-number.lua l-unicode.lua l-md5.lua l-os.lua l-io.lua l-file.lua l- 
dir.lua l-utils.lua l-tex.lua luat-lib.lua luat-inp.lua luat-tmp.lua  
luat-zip.lua luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command: luatex --ini --lua=cont-en.luc /usr/ 
local/texlive/texmf-local/tex/context/base/cont-en.tex \dump
Error in lua file loading: ?:0: attempt to call field '?' (a nil value)

LuaTools |
LuaTools | runtime: 0.37 seconds

Taco, Hans?

All best

Thomas
___
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] Greek: GR or EL? Czech: CZ or CS? UK: Ukrainian or ...

2007-12-05 Thread Thomas A. Schmitz


On Dec 5, 2007, at 9:20 AM, Arthur Reutenauer wrote:


It's the ISO-639-2 alpha-3 code for Greek, Ancient (to 1453) -- May
29th, I believe ;-)

 See http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt

Arthur


Ah, thanks! In that case, yes, let's go for grc. I had no idea ISO was  
working retroactively as well... Hans, I will look for agr in the  
sources and send you patches, OK?


Thomas___
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] new release

2007-12-06 Thread Thomas A. Schmitz

On Dec 6, 2007, at 8:26 AM, Arthur Reutenauer wrote:

  That particular line:

 # Error in lua file loading: ?:0: attempt to call field '?' (a nil  
 value)

  is often the sign of mismatching luatools and ConTeXt version :-)

   Arthur


Yes, thanks for your help, now it works wonderfully. On a related  
note: this big new release had me waiting in anticipation, so would it  
be possible to just tell us in a sentence or five or six what the big  
changes are? I guess with the right switches it can cook my dinner,  
but would be curious to learn a bit more...

Thanks

Thomas
___
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] [Dev-luatex] beta 0.20.1 released

2007-12-07 Thread Thomas A. Schmitz
Hi Taco,

on my system (Mac OS X 10.5.1, ppc), this snapshot doesn't compile; it  
fails at this stage:

test -d luatexdir || mkdir luatexdir
sed s/TEX-OR-MF-OR-MP/luatex/ ../../../src/texk/web2c/lib/texmfmp.c  
 luatexextra.c
gcc -DHAVE_CONFIG_H  -I. -I../../../src/texk/web2c -I.. -I../../../src/ 
texk/web2c/..  -I../../libs/obsdcompat -I../../libs/obsdcompat/.. - 
I../../../src/texk/web2c/../../libs/obsdcompat -I../../../src/texk/ 
web2c/../../libs/obsdcompat/..  -Dextra_version_info=`date +-%Y%m%d%H`  
-g -O2  -c luatexextra.c -o luatexextra.o
luatexextra.c: In function 'main':
luatexextra.c:408: error: storage size of 'sigstk' isn't known
make: *** [luatexextra.o] Error 1

Any ideas?

Thomas

On Dec 7, 2007, at 5:07 PM, Taco Hoekwater wrote:


 Hi all,

 I have just uploaded the archives for luatex 0.20.1. This
 is a bugfix release for wednesday's beta, and it fixes
 the following issues:

 * texlua was broken on Solaris because the some C header
   files were loaded in the wrong order.
 * os.tmpdir() now accepts an argument, making it easier
   to use. It now generates more unique filenames when
   it is called repeatedly in one run.
 * The --luaconly commandline switch is now documented
   in the --help text.
 * The new extended hyphenation exceptions were severely
   broken.
 * \pdfprotrudechars could cause luatex to abort with an
   assertion failure.
 * There was a bug in the  \span code that could cause endless
   loops.
 * The simple forms of \leaders were messed up on windows
   because a variable was not properly initialized.
 * Non-grouped \textdir commands created invalid output.
 * e-TeX's pseudo files were not closed properly in ini mode.
 * The luatex.web now weaves properly again.
 * I made some small improvements to the manual.

 I have uploaded source and linux/win32 binaries to

  http://foundry.supelec.fr/projects/luatex/

 Have fun,

 Taco


 ___
 dev-luatex mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/dev-luatex
 ___
 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
 ___

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

2007-12-12 Thread Thomas A . Schmitz

On Dec 12, 2007, at 7:50 AM, Peter Münster wrote:

 I vote against too.

 The only mappings, that make sense to me:
 -- and --- since it's difficult to distinguish them from - in a
 text-editor
 and ~ since it's difficult to distinguish the utf unbreakable  
 space from
 normal space in a text-editor.

Another German, and I agree, too, with every point Peter makes. As an  
addition: I would vote for keeping ` and '. I know that  
\quotation{ } is better and have been using it for a while now, but I  
also know that many older documents still have the old quotes, and  
when I began using TeX, they were considered standard. I think it's  
better to gently convince users to switch to the better style, not  
force them by breaking their documents.

My two cents, best wishes

Thomas
___
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] beta

2007-12-14 Thread Thomas A. Schmitz

On Dec 14, 2007, at 9:24 AM, Hans Hagen wrote:

 Hi,

 I uploaded a new (mkiv) beta. The biggest change is that there are  
 some
 optimizations in the cached mkiv font tables which should lead to (1)
 faster loading and (2) a smaller memory footprint. I may have messed
 some things in the process, so testing is appreciated.

 Hans


Hi Hans,

one problem that I saw in a very brief test: |-| doesn't produce a  
hyphen in this beta; it works with version: 2007.12.07 19:14 (I can't  
test the beta before this one, haven't kept the zip file).

All best

Thomas
___
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] beta

2007-12-14 Thread Thomas A. Schmitz

On Dec 14, 2007, at 10:06 AM, Hans Hagen wrote:

 only mkiv?

 btw, you can use

 \setbreakpoints[compound]

 so that blabla-blabla is handled automatically

 Hans

Yes, only mkiv.

I'll have to play with \setbreakpoints[compound]. It's a mkiv feature,  
right?

Thomas
___
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] Flowed text around figures in columns

2007-12-14 Thread Thomas A. Schmitz

On Dec 14, 2007, at 4:29 PM, Zeus Gómez Marmolejo wrote:

 Hi,

 I have this code:

 \definecolumnset[example][n=3]

 \starttext

 \startcolumnset[example]

 \input knuth
 \placefigure{}{\externalfigure[placeholder][width=170pt]}
 \input knuth
 \input knuth

 \stopcolumnset
 \stoptext


 I can't manage to tell context to flow the text around the picture in
 the second column. Is it possible?


 Thanks,

 Zeus.

Did you look at the columnsets manual? There's an example at p. 36

http://www.pragma-ade.com/general/manuals/columns.pdf

HTH

Thomas
___
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] color expansion at runtime

2007-12-14 Thread Thomas A. Schmitz

On Dec 14, 2007, at 5:57 PM, Peter Rolf wrote:

 Hi,

 I desperately need runtime defined colors (state dependent) for my
 macros. The macros are used with different graphic styles, which is  
 the
 reason why I want to avoid any style dependent part inside them.

 To give you an example. I need something like this

 \color 
 [{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}]

 If flag 'stateA' is true at runtime, then color 'green' is used (and  
 so
 on; order is significant).

 I have written such a macro, but sadly it crashes when used inside
 \color or \definecolor. Tried to debug it, but this is my first
 experience with the trace commands (probably not the best example to
 start with). Sigh, still so much to learn.. :)

 Any hints are welcome.

I'm not quite sure I understand what you're trying to do, so this is a  
shot in the dark: instead of low-level trickery, you could use ConTeXt  
modes:

\startmode[A]
\definecolor [mycolor] [g=1]
\stopmode

\startmode[B]
\definecolor [mycolor] [r=1]
\stopmode

You can then set \enablemode[A] in your file or pass the mode on the  
commandline: texexec --mode=A

HTH

Thomas
___
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] [Dev-luatex] beta 0.20.2 released

2007-12-17 Thread Thomas A. Schmitz

On Dec 17, 2007, at 3:43 PM, Taco Hoekwater wrote:

 Hi all,

 I have just uploaded the archives for luatex 0.20.2. This
 is a simple bugfix release for last week's beta:

 * some portability fixes to the build scripts
 * a fix for multi-\span in alignments causing unbreakable
   loops
 * manual improvements from Jonathan Sauer
 * fix for undefined csnames in \directlua if
   web2c's hash_extra is nonzero
 * fix for LR text inside of a RL document
 * fix for open_read_file callback not being called
   unless find_read_file was also registered
 * removed the ocp status message when \ocps are not
   actually used
 * unicodeenc in the fontforge to_table renamed to
   unicode for improved consistency

 I have uploaded source and linux/win32 binaries to

   http://foundry.supelec.fr/projects/luatex/

 Have fun,

 Taco

Any news on the Mac OS X 10.5 question? I still get the error

gcc -DHAVE_CONFIG_H  -I. -I../../../src/texk/web2c -I.. -I../../../src/ 
texk/web2c/..  -I../../libs/obsdcompat -I../../libs/obsdcompat/.. - 
I../../../src/texk/web2c/../../libs/obsdcompat -I../../../src/texk/ 
web2c/../../libs/obsdcompat/..  -Dextra_version_info=`date +-%Y%m%d%H`  
-g -O2  -c luatexextra.c -o luatexextra.o
luatexextra.c: In function 'main':
luatexextra.c:408: error: storage size of 'sigstk' isn't known
make: *** [luatexextra.o] Error 1

when I try to build it, so I'll have to wait for Arthur to build  
luatex on his 10.4 system.

Thomas
___
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] [Dev-luatex] beta 0.20.2 released

2007-12-17 Thread Thomas A. Schmitz

On Dec 17, 2007, at 7:02 PM, Mojca Miklavec wrote:

 The binary is also on
 http://minimals.contextgarden.net/current/bin/luatex/osx-intel/bin/
 now.

 Mojca

Thanks for the hint, Mojca. Unfortunately, I need the ppc-binary...

Thomas
___
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] [Dev-luatex] beta 0.20.2 released

2007-12-17 Thread Thomas A. Schmitz

On Dec 17, 2007, at 9:42 PM, Arthur Reutenauer wrote:

 when I try to build it, so I'll have to wait for Arthur to build
 luatex on his 10.4 system.

  It's up :-)

And works perfectly - thanks a lot, Arthur! This one does seem faster  
than its predecessor!

Best

Thomas
___
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] bib module in pdftex and luatex

2007-12-21 Thread Thomas A. Schmitz

On Dec 21, 2007, at 1:47 PM, Hans Hagen wrote:

 you can increase the hash size in texmf.cnf ... if so, then also  
 remake
 the format

 in mkiv we need less hash space if only because it got rid of  
 encodings
 and regimes

Indeed, increasing the hash_extra size and rebuilding the formats  
worked. Remarkable that mkiv is already more efficient wrt hash space!

Thanks, and best

Thomas
___
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] bib module in pdftex and luatex

2007-12-21 Thread Thomas A. Schmitz
Hi all (esp. Taco ;-),

here's a very fundamental question about the bib-module: my main bib  
file now has ~ 1,700 entries. When I tried to compile a file which  
includes bibliographic references in mkii, I got this error:

! TeX capacity exceeded, sorry [hash size=6].
\@@shortsectionnumber ...\c!conversion \endcsname
   \relax [EMAIL PROTECTED] 
\ifx  
\csname \...

\@@longsectionnumber ...\@@shortsectionnumber {#1}
   \fi
\finalsectionnumber ...alue {\@@sectie \c!number }
   \fi \fi
\dodododoconstructhead ...er {\someheadconversion
   }\getvalue {\??ko  
#1\c!inb...
l.162 \section{Textausgaben}

!  == Fatal error occurred, no output PDF file produced!

The same file compiles without errors in mkiv. So I'm curious: Is it  
possible that the bib file is just too large for mkii? Or is it more  
probable that there's some error in it such as missing crossref etc?  
Does anyone have experience with large bib files and the bib module?

Thanks, and best wishes

Thomas
___
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] bib module in pdftex and luatex

2007-12-21 Thread Thomas A. Schmitz

On Dec 21, 2007, at 2:37 PM, Taco Hoekwater wrote:

 Just to be complete: In general, the answer to that is yes, even for
 mkiv.

 Best wishes,
 Taco


Hmm, okay, thanks, Taco. Any rule of thumb for just how big is too  
big? And what do people do in cases like this? One of the wonderful  
things about bibtex for me was that I could build up one big database  
which I could reuse for all my needs.

Best

Thomas
___
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] bib module in pdftex and luatex

2007-12-21 Thread Thomas A. Schmitz

On Dec 21, 2007, at 4:56 PM, Taco Hoekwater wrote:

 Depends on your texmf.cnf. IIRC, I have twenty or so csnames per
 entry, and the baseline for mkii is a bit over 40.000 csnames,
 so you need about

40.000 + 20 * (numberofentries)

 And what do people do in cases like this? One of the wonderful

 Increase hash_extra, as Hans said. There is (virtuallly) no limit
 to that.

 Best wishes,
 Taco

Ah, okay! Thanks a lot. So I will pit my ever larger and larger bib  
files against the ever more powerful computers that we will have in  
the future and let them fight it out!

Thomas
___
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] symbols in luatex?

2008-01-02 Thread Thomas A. Schmitz
Hi all,

first, a very happy new year 2008 to all of you! May ConTeXt continue  
to prosper and develop at a brisk pace :-)

What better way to start the new year than asking a stupid question on  
the list? Here comes: I must be missing something really obvious here.  
I have a font (otf) with a number of (metrical) symbols which I use in  
a module. In mkii, I defined an encoding within this module to address  
the symbols:

\startencoding[metr]
\definecharacter metricbreve 66
\stopencoding

so I can use the symbold with \metricbreve. Works great in mkii. But  
how do I do this in mkiv, which doesn't seem to read and use the  
encoding anymore?

All best

Thomas
___
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] symbols in luatex?

2008-01-02 Thread Thomas A. Schmitz

On Jan 2, 2008, at 12:42 PM, Hans Hagen wrote:

 \startencoding[default]

 probably still works (may change in favor of virtual fonts)

Thanks Hans, but nope, doesn't work. The font is found and used (I get  
glyphs for normal characters such as numbers), but the special  
characters just disappear from the output.

Thomas
___
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] symbols in luatex?

2008-01-04 Thread Thomas A. Schmitz

On Jan 2, 2008, at 2:04 PM, Thomas A. Schmitz wrote:


 On Jan 2, 2008, at 12:42 PM, Hans Hagen wrote:

 \startencoding[default]

 probably still works (may change in favor of virtual fonts)

 Thanks Hans, but nope, doesn't work. The font is found and used (I get
 glyphs for normal characters such as numbers), but the special
 characters just disappear from the output.

 Thomas

Hmm, this is something I need for a presentation next week, so can I  
ask again: how can I address arbitrary symbols in luaTeX? There has to  
be some way, right? I'm also quite willing to look into the luaTeX way  
of constructing a virtual font (I need some metrical and some math  
symbols which I want to take from a different font), but I'm not sure  
if there's any example out there how to do this.

Thanks!

Thomas
___
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] symbols in luatex?

2008-01-04 Thread Thomas A. Schmitz

On Jan 4, 2008, at 5:15 PM, Hans Hagen wrote:

 doesn't \charnumber work?


Depends... fontforge tells me what I'm looking for is, e.g., character  
803 in TeXGyreHeros-Regular, so I tried this:

\starttypescript[serif][greeksymbols][name]
\definefontsynonym [Serif] [name:TeXGyreHeros-Regular]  
[features=default]
\stoptypescript
\starttypescript[GreekSymbols]
\definetypeface [GreekSymbols] [rm] [serif] [greeksymbols] [default]
\stoptypescript

\usetypescript[GreekSymbols]

\define{\anglebracketleft}%
{\bgroup\switchtobodyfont[GreekSymbols]\char803\egroup}

I tried several numbers, and get some symbols from TeXGyreHeros, but I  
haven't yet found out how luaTeX interprets the \char numbers... OTOH,  
this is a workaround:

\define{\anglebracketleft}%
{\bgroup\switchtobodyfont[GreekSymbols]〈\egroup}

but will obviously only work for symbols that are defined in Unicode,  
so nothing in the private Unicode area. My presentation next week  
doesn't use any of those, so I'm saved for today, but will be back in  
a few weeks when I need the other stuff as well...

Thanks

Thomas


___
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] non-typographic apostrophe

2008-01-04 Thread Thomas A. Schmitz

On Jan 4, 2008, at 5:52 PM, Santy, Michael wrote:

 How do I include a non-typographic apostrophe in ConTeXt?  If I type  
 ' (U+0027), it is automatically converted to a typographic  
 (directional) apostrophe.

You could try \quotesingle (also depends on the font).

HTH

Thomas
___
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] symbols in luatex?

2008-01-04 Thread Thomas A. Schmitz

On Jan 4, 2008, at 6:39 PM, Wolfgang Schuster wrote:

 The following should work.

 % engine=luatex

 \definecharacter anglebracketleft  \char2329
 \definecharacter anglebracketright \char232A

 \starttext

 text \anglebracketleft text\anglebracketright\ text

 \stoptext

 Wolfgang

On Jan 4, 2008, at 7:42 PM, Hans Hagen wrote:

 \definedfont[name:TeXGyreHeros-Regular] \otfchar{uni0323} % 803 ?

Hans, Wolfgang,

thanks a lot! Wolfgang's approach works immediately. \otfchar doesn't  
seem to work, but I could combine your suggestion with Wolfgang's and  
now have

{\bgroup\definedfont[name:TeXGyreHeros-Regular]\char2329\egroup}

Cool! Without fiddling with map files and encodings, I can take glyphs  
from whatever OTF font I want.

Thanks so much!

Thomas
___
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] symbols in luatex?

2008-01-04 Thread Thomas A. Schmitz

On Jan 4, 2008, at 9:40 PM, Hans Hagen wrote:

 ah so you know the number ...

 \getglyph{name:TeXGyreHeros-Regular}{\char2329}

 should also work then


Yes, that works too! Thanks, maybe even easier!

BTW, fea files and font features are a bit flaky these days, in the  
latest two versions, none of my fea gsub stuff works... But it's  
difficult for me to say whether it is the current version of luaTeX or  
of ConTeXt which is at fault. Will try to give more useful information  
when I have a bit more time.

Thomas
___
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] symbols in luatex?

2008-01-05 Thread Thomas A. Schmitz

On Jan 5, 2008, at 10:00 AM, Wolfgang Schuster wrote:

 There is a better font if you need only symbols, choose the Unicode
 Symbols link on the following page.

 http://users.teilar.gr/~g1951d/

 Wolfgang

Great fonts! Really excellent, thanks a lot for the link, Wolfgang!

Thomas
___
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] latest beta

2008-01-08 Thread Thomas A. Schmitz
Hi all, Taco, Hans,

this combination of latest betas:

This is LuaTeX, Version snapshot-0.20.2-2007121721

CtxTools | context version: 2008.01.03 16:25

gives me output without the usual TeX ligatures (fi etc.).

I'm uncertain whether it is worth reporting such things or whether,  
given the rapid change of luatex and mkiv, you think this is  
unnecessary?

All best

Thomas
___
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] beta math

2008-01-08 Thread Thomas A. Schmitz
Hans,

\textbraceleft and \textbraceright (which I us from time to time) are  
identified as math characters in the latest beta and give errors:

! Missing $ inserted.
inserted text
 $
to be read again
\omathchar
\textbraceleft -\omathchar
 4020066

But I want to use them as text characters (they are defined in enco- 
ans.tex, enco-ec.tex, and other encodings. Can this be fixed?

Thomas


On Jan 8, 2008, at 1:25 PM, Hans Hagen wrote:

 Hi,

 I uploaded a beta.

 (1) feature inheritance, example:

 \definefontfeature[default-a][tlig=yes]
 \definefontfeature[default-b][liga=yes]
 \definefontfeature[default-c][default-a,default-b][mode=node]

 \starttext
   \definedfont[Serif*default-c at 60pt]fiets --
 \stoptext

 (2) unicode math

 this is work in progress and i need a few volunteers for building
 definition lists; all info goes in char-def.lua and math mappings are
 generated automatically; there will still be math vectors (like
 math-tex.tex) but using lua tables; an example is in math-ini.lua; for
 math stuff not in unicode we will use private unicodes in char-def;  
 just
 a dumb test ...

 \starttext
 [[[\utfchar{8194}]]][[[\utfchar{8195}]]] \par
 $[[[\utfchar{8194}]]][[[\utfchar{8195}]]]$\par
 $\alpha\char945 \utfchar{945} abc 123$
 \startXMLdata
 oeps((( )))/oeps
 \stopXMLdata
 \stoptext



 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
 ___

___
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] beta math

2008-01-08 Thread Thomas A. Schmitz

On Jan 8, 2008, at 4:42 PM, Hans Hagen wrote:

 Thomas A. Schmitz wrote:
 Hans,

 \textbraceleft and \textbraceright (which I us from time to time) are
 identified as math characters in the latest beta and give errors:

 ! Missing $ inserted.
 inserted text
 $
 to be read again
\omathchar
 \textbraceleft -\omathchar
 4020066

 But I want to use them as text characters (they are defined in enco-
 ans.tex, enco-ec.tex, and other encodings. Can this be fixed?

 hope so, just uploaded a new zip (btw, enco-ec cum suis are past  
 time in
 luatex)

 Hans

Excellent, works again! Was aware that enco-XXX is dead as a doornail,  
but wanted to explain that this is not a mathcharacter (at least not  
exculively...).

Thanks, and best

Thomas
___
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] latest beta (2008-01-09 19:58)

2008-01-09 Thread Thomas A. Schmitz
Hi Hans,

there seems to be a problem with the latest beta; compilation stops  
with several of these warnings:

error  define font: font with name lmromanslant12-regular is not found
error  define font: name: lmromanslant12-regular, loading aborted
! Font \*12ptrmslrm*=file:lmromanslant12-regular*default not loadable:  
metric data not found or bad.
to be read again
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let  
\localrelativefontsiz...
\dodosettextfamilyA ...amily \fontsize \endcsname
   \else \ifcsname  
\fontbody ...
\dosettextfamily ... \dodosettextfamily \textfont
   \let \fontbody  
\savedfontb...
inserted text ...y \c!bf \dosettextfamily \c!sl
   \dosettextfamily \c! 
it \do...
\synchronizetext ...athfonts \the \textstrategies
   \fi

(and the document in question doesn't even use Latin Modern...)

Best

Thomas
___
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] latest beta (2008-01-09 19:58)

2008-01-09 Thread Thomas A. Schmitz

On Jan 9, 2008, at 9:54 PM, Mojca Miklavec wrote:

 Hans has updated files without a please don't update yet warning
 (that's what beta in ConTeXt means, after all :).

Drats, I always thought it meant download immediately!

 A new version of LM is in front of the door, and ConTeXt tries to be
 kept up-to-date, or better, ahead-of-time.


Ok, will have to revert to stable then...

Thanks

Thomas

___
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] latest beta (2008-01-09 19:58)

2008-01-09 Thread Thomas A. Schmitz

On Jan 9, 2008, at 10:48 PM, Hans Hagen wrote:

 aha, i need a bidirectional fallback ... making a new beta now

 since i have both names on my system it's tricky to test (don't want  
 to
 mess up things too much)

 Hans

New one works... Thanks for the quick fix!

Thomas
___
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] latest beta (2008-01-09 19:58)

2008-01-09 Thread Thomas A. Schmitz

On Jan 9, 2008, at 11:06 PM, Hans Hagen wrote:

 you can also test this (there is a file 'context' somewhere as stub)

 mtxrun --script context blabla.tex

 i.e. this is the upcoming replacement of texexec in case of luatex/ 
 mkiv

 Hans

Yes, it works if I call it with

mtxrun --script context --run blabla.tex

(so the default needs to be set explicitly). How many languages did  
you learn and use during the last years? I'm waiting for lispTeX,  
pythonTeX, schemeTeX etc. :-)

Thomas
___
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] beta math

2008-01-11 Thread Thomas A. Schmitz

On Jan 11, 2008, at 3:35 PM, Taco Hoekwater wrote:


 Hi,

 I assume today's upload has made that 'current'. I wrote
 a page at http://wiki.contextgarden.net/Context_2008.01.11
 but no summary on the main page; because I do not trust that
 I have not missed something important (like the unicode math).

 Can someone (Hans) please check that page and write a small
 stub entry for http://wiki.contextgarden.net/Release_Notes ?

 Best wishes,
 Taco


So I take it enrichment will replace fea files? Anything known  
about syntax etc. yet?

Which French king is supposed to have said enrichissez-vous, was  
that Louis-Philippe? ;-)

All best

Thomas
___
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] file runs diferently on windows and linux

2008-01-15 Thread Thomas A. Schmitz
Look for the configuration file texmf.cnf in both installations.  
(kpsewhich texmf.cnf) In your Windows installation, the value of  
pool_size is bigger than in your linux install. Increase the value,  
regenerate the formats, and you're done.

HTH

Thomas


On Jan 15, 2008, at 1:39 PM, Horacio Suarez wrote:

 Hello all:

 can somebody tell me why can be possible that the same file runs ok  
 on windows and in linux aborts with (both the last version):

 I don't know what to look foor.

 Thankyou very much.



___
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] shading in metapost

2008-01-16 Thread Thomas A. Schmitz

Hi all,

I have a somewhat silly question about metapost/metafun. To emphasize  
parts of a picture, I place a bright red arrow or circle/ellipse on  
top of the picture. I would like to make this arrow more visible by  
putting a shade beneath it (I attach a jpg that will hopefully show  
the desired effect). Right now, I simply draw the arrow twice with a  
transparent black color, once with a smaller pencircle, so the effect  
is like a shadow that is darker in the center than at the edges.  
However, I think the effect would be more dramatic if I could have a  
transparent area with a smooth grading. Is this possible at all in  
metapost? filling a path with a transparent AND shaded color?


All best

Thomas

inline: test.jpg

___
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] latest release(s) and XeTeX

2008-01-19 Thread Thomas A. Schmitz
Is anybody using XeTeX with the latest releases? Even the most basical  
Hello World document doesn't compile with this error (both stable  
and beta, regardless if the document actually uses Latin Modern or  
not). Any hints?

Thomas

bodyfont: 12pt rm is loaded
kpathsea: Illegal fontname `[lmromanslant10-regular]:+liga; 
+kern;mapping=tlig;+trep;': contains '['
kpathsea: Illegal fontname `lmromanslant10-regular:+liga; 
+kern;mapping=tlig;+trep;': contains ':'
kpathsea: Running mktextfm lmromanslant10-regular
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input lmromanslant10-regular
This is METAFONT, Version 2.71828 (Web2C 7.5.6)

kpathsea: Running mktexmf lmromanslant10-regular
! I can't find file `lmromanslant10-regular'.
* ...; nonstopmode; input lmromanslant10-regular

Please type another input file name
! Emergency stop.
* ...; nonstopmode; input lmromanslant10-regular

Transcript written on mfput.log.
grep: lmromanslant10-regular.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;  
input lmromanslant10-regular' failed to make lmromanslant10-regular.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \*7ptrmslrm*:=lmromanslant10-regular at 7.0pt not loadable:  
Metric (TFM)
  file or installed font not found.
to be read again
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let  
\localrelativefontsiz...

\dodosettextfamilyA ...amily \fontsize \endcsname
   \else \ifcsname  
\fontbody ...

\dosettextfamily ...ttextfamily \scriptscriptfont
   \let \fontbody  
\scriptface...
inserted text ...y \c!bf \dosettextfamily \c!sl
   \dosettextfamily \c! 
it \do...

\synchronizetext ...athfonts \the \textstrategies
   \fi
...
l.1

?

___
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] latest release(s) and XeTeX

2008-01-19 Thread Thomas A. Schmitz

On Jan 20, 2008, at 12:40 AM, Mojca Miklavec wrote:

 On Jan 19, 2008 6:05 PM, Thomas A. Schmitz wrote:
 Is anybody using XeTeX with the latest releases? Even the most  
 basical
 Hello World document doesn't compile with this error (both stable
 and beta, regardless if the document actually uses Latin Modern or
 not). Any hints?

 The new beta has been turned into stable slightly too soon. (Hans has
 added support for the new filenames of LM before they were even
 released - in LuaTeX there are synonyms, but XeTeX is broken at the
 moment if you don't have those fonts.)

 If you have rsync on your computer, the fastest way to resolve the
 problems would be to call
rsync -av rsync://contextgarden.net/minimals/current/fonts/new/ 
 fonts/opentype/public/lm/
 folder-with-otf-lm
 and then mktexlsr.

 (XeLaTeX didn't even consider those changes, I'm affraid. It's a
 serious problem since the changes need to be synchronized, and I'm
 afraid of *many* XeTeX users complainig very soon ...)

 But some new LM filenames are really weird (lmromanslant10-regular.otf
 and others). I hope that they will change at least a few of them to
 something more sensible (for the sake of compatibility the best thing
 to do would be not changing them at all). Size feature and some
 grouping has been added to all of these fonts, so the names/usage in
 GUI applications or in XeTeX (when called by name) will change as
 well.

 Mojca


Thanks Mojca, that worked! Now that I have your attention, may I ask  
another question: a couple of months ago, I was wondering about using  
fonts that are NOT installed on the system but are in one of the texmf- 
trees. In typescripts, we have the name: and file: syntax; the  
latter works with these fonts but seems to have some limitations (I  
attach a reply Taco wrote). Has anything new developed on this  
question? What is the canonical way of using such fonts?

Thanks a lot, and all best

Thomas

On Aug 2, 2007, at 4:24 PM, Taco Hoekwater wrote:



 Thomas A. Schmitz wrote:

 1. The syntax [name:Minion Pro\xetexcolon mapping=tex-text;+onum;]
 will only work for installed fonts, not for opentype fonts that are
 in the texmf-tree,

 correct

 My experiments suggest that these can be found via the  
 [file:filename]
 mechanism, but I can't  append any mapping or other specials.

 almost certainly correct.

 While nearly everything (except the engine-options) is supported by
 XeTeX's low-level interface, I expect that context would interpret
 such a specification as if you were asking for the file
 minionpro:mapping=tex-test.otf, and it would therefore generate
 the wrong low-level syntax.


 2. This syntax will go away soon, so it's no use spending time on
 experiments.

 definately correct.

 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] latest release(s) and XeTeX

2008-01-20 Thread Thomas A. Schmitz

On Jan 20, 2008, at 5:45 PM, Mojca Miklavec wrote:

 Yes. See type-otf.tex:

\definefontsynonym
[LMRoman10-Regular]
[file:lmroman10-regular]
[features=default]

 features=default is defined in font-ini.tex:

 \definefontfeature
  [default]
  [liga=yes,kern=yes,tlig=yes,trep=yes] %  
 texligatures=yes,texquotes=yes

 tlig=yes is than mapped to
\remapfontfeature tlig  yes  mapping=tlig

 Note that mapping=tlig replaces mapping=tex-text (maybe it might
 make sense to call it mapping=tex-ligatures, I don't know which one
 sounds better), which replaces -- with endash, --- with emdash and '
 with the proper apostrophe. The rest of sligtly weird ligatures from
 tex-text is not there.

 Mojca

 (I somehow still miss a sligtly more simple syntax for the whole
 typescript, but I have no idea what that could be.)

Thanks again, Mojca! I begin to understand how things work in XeTeX  
(but are still a bit lost when I get font errors; I have learnt to  
understand what they mean in traditional TeX and will have to  
understand them in XeTeX and luaTeX...).

All best

Thomas
___
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] (Most) stable minimal for Mac Intel

2008-01-21 Thread Thomas A. Schmitz

On Jan 21, 2008, at 7:21 PM, Arthur Reutenauer wrote:

  The current version is beta-0.20.2.  I build the binaries for Mac  
 OS X
 myself each time Taco releases a beta (I compile on Tiger, but I  
 expect
 the binaries should work flawlessly on Leopard -- if you experience
 problems, please report).

   Arthur

Not only can I confirm that Arthur's binaries work perfectly on  
Leopard; Taco has also fixed the trunk version, so it's now possible  
to check out the latest revision and compile it on Leopard, should you  
be so inclined (it's simply a matter of calling the script build.sh,  
so no black magic is involved).

Thomas
___
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] {{ double braces }}

2008-01-23 Thread Thomas A. Schmitz

On Jan 23, 2008, at 10:50 PM, Peter Münster wrote:

 I've just seen, that it does not work for nested braces:
 \footnote{x{y}z}:   ok
 \footnote{x{y{z}}}: not ok

 The next one (normal regexp, not extended) has support for up to one  
 level
 of nesting:

 \\footnote{[^{}]*\([^{}]*{[^{}]*\([^{}]*{[^{}]*}[^{}]*\)*[^{}]*} 
 [^{}]*\)*[^{}]*}

 These examples seem to work:
 \footnote{x{y}z}
 \footnote{x{y{z}}}
 \footnote{x{y}z}
 \footnote{x{y{z}}x{y{z}}x{y}z}
 \footnote{x{y{z}}x{y{z}y{z}y}x{y}z}

 Cheers, Peter

You could also use a nice scripting language like ... lua!! lua has  
support for balanced strings, so no nesting trickery is needed, see 
http://www.lua.org/pil/20.2.html 
  (scroll to the bottom of the page). Or you could try and nag Hans  
into giving a nice tutorial on the lua lpeg library at Bohinj! :-)


All best

Thomas
___
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] shading in metapost

2008-01-24 Thread Thomas A. Schmitz

On Jan 16, 2008, at 11:22 PM, John Luciani wrote:

 There is some information on doing transparencies in
 METAPOST at http://www-math.univ-poitiers.fr/~phan/metalpha.html

 Using the code at the above link you should be able to produce
 the effect in your jpeg.

 (* jcl *)

John,

I never thanked you for your message; sorry about that! Unless I'm  
missing something, this page is just about transparency, but that  
works quite well in metafun; it was the combination of transparency  
and shading which I couldn't get right.


On Jan 24, 2008, at 1:28 AM, Mojca Miklavec wrote:

 In theory possible, but in practice not implemented in metafun. But  
 see
http://www.fauskes.net/media/pgf/pgfmanualCVS2008-01-23.pdf
 It might satisfy your needs. (Impressive!)

 Mojca

Thanks, Mojca, that's what I suspected. For the time being, I prefer  
metafun just because I know a little bit about it (and almost nothing  
about tikz). I have solved the problem at hand by drawing ten  
instances of a very transparent black circle on top of each other and  
increasing the scale of the pencircle slightly at every run. Which  
leads me to one last question: I wanted to be clever and do it in a  
for-loop like this:

  for i=1 upto 10:
pickup pencircle scaled (i*0.5) pt ;
draw fullcircle scaled 5mm withcolor transparent (1,0.04,black) ;
  endfor ;

Is this because the expression pencircle scaled expects a numeric  
primary as argument? And is there any way around this?

All best, and thanks to all

Thomas
___
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] shading in metapost

2008-01-24 Thread Thomas A. Schmitz

On Jan 24, 2008, at 9:03 AM, Aditya Mahajan wrote:

 Hi Thomas,

 On Thu, 24 Jan 2008, Thomas A. Schmitz wrote:


  I wanted to be clever and do it in a
 for-loop like this:

 for i=1 upto 10:
  pickup pencircle scaled (i*0.5) pt ;
  draw fullcircle scaled 5mm withcolor transparent (1,0.04,black) ;
 endfor ;

 Is this because the expression pencircle scaled expects a numeric
 primary as argument? And is there any way around this?

 scaled expects a dimension. (i*0.5)pt is not a dimension. You need to
 either write (i*0.5pt) or ((i*0.5)*1pt). The extra parenthesis are  
 needed
 to keep the metapost parser happy.

 Aditya


Hi Aditya,

agh. So easy - and I had no idea how to do it. Works perfectly!  
I'm glad I'm in the humanities and not in engineering; my bridges  
would collapse real soon... Thanks so much; this loop looks so much  
nicer than having ten lines of code doing the same circle all over  
again!

All best

Thomas
___
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] {{ double braces }}

2008-01-26 Thread Thomas A. Schmitz

On Jan 24, 2008, at 12:19 AM, Aditya Mahajan wrote:

 Another option is Gema http://gema.sourceforge.net/new/index.shtml  
 (also has a lua library gelhttp://gema.sourceforge.net/new/ 
 gel.shtml). You can define regions and matching nested braces quite  
 easily.

 Aditya

Hi Aditya,

I remember I had a look at gema before but couldn't really find out  
what was special about it and would warrant further attention. I also  
haven't seen anything about nested braces etc. (which would be great  
for processing TeX files but is a major pain in the back with regexs).  
You seem to know more about it: could you give an example of how it's  
possible to have nested braces in a gema pattern?

Thomas
___
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] t-lilypond, placement of oversized lines.

2008-01-26 Thread Thomas A. Schmitz

On Jan 27, 2008, at 1:32 AM, David Wooten wrote:

 This includes lines which have an instrument name, as mentioned in the
 comments, and also includes piano notation, which has a special
 bracket on the left joining the two staffs.

 Can anyone help me out here?

 Best,
 David

No, I can't help, but I may have bad news for you: I played some with  
the lilypond module myself and found out that lilypond itself may be  
the culprit. lilypond can produce eps figures; that's the only way the  
output is cropped to just the figure and doesn't produce an entire  
page. Unfortunately, in my experiments, the bounding box which  
lilypond uses is always a bit too small, the elements you describe are  
always cut off at the left margin. You can try that by creating a  
standalone .ly file and running lilypond with the --backend=eps option  
on it, and you'll see the effect. I have tried with a number of  
options to modify this behavior of lilypond, but haven't had any  
success. Since lilypond is pretty broken on Os X 10.5 at the moment, I  
have given up for the time being.

Thomas
___
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] the new minimal is broken

2008-01-28 Thread Thomas A. Schmitz

On Jan 28, 2008, at 5:38 PM, Taco Hoekwater wrote:

 Jikes, I am afraid luatools is too new now: this needs the luatex  
 trunk,
 not beta-0.20.0 :-(


Well, I can confirm that things work with a fresh svn checkout and the  
latest current. Funny, Taco and Hans racing each other :-)

All best

Thomas
___
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] header to register

2008-01-30 Thread Thomas A. Schmitz

On Jan 29, 2008, at 5:35 PM, Wolfgang Schuster wrote:

 Try this:

 \starttext
 text\textellipsis

 text\unknown
 \stoptext

 I prefer the second line (there a short discussion about this topic a
 long time ago).

 Wolfgang


Hi Wolfgang,

isn't this just a bug in lmodern? In any decent font, \textellipsis in  
fact gives exactly the output you get from \unknown here. There may be  
historical reasons why the glyph looks that way in cm and lm, but it  
certainly is unexpected compared to other fonts.

Thomas
___
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] latest beta

2008-01-31 Thread Thomas A . Schmitz
Hi Hans,

great: I now get Greek hyphenation with XeTeX as well! However,  
there's a problem with mkiv: none of my mkiv-typescripts works with  
it; I always get this error:

This went wrong: ...al/texlive/texmf-local/tex/context/base/luat- 
tmp.lua:121: attempt to call field 'is_writable' (a nil value)
.
to be read again
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let  
\localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
   \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
   \fi \iftryingfont  
\fontstr...
\synchronizefont ...strategy \the \fontstrategies
   \relax \fi  
\iftryingfont \...
argument \getvalue [EMAIL PROTECTED]@ \fontstyle }
\edef \fontstyle  
{\fontstyle }\if...
...
l.3 \setupbodyfont[MyAGaramond,12pt]

It works with vanilla LatinModern, and the same typescripts work with  
yesterday's beta.

All best

Thomas
___
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] latest beta

2008-01-31 Thread Thomas A. Schmitz

On Jan 31, 2008, at 11:17 PM, Hans Hagen wrote:

 ok, i'll make a new beta zip; i dunny what went wrong; normally  
 there is
 no reason to delete the cache; can you test again?

 Hans


Great, this one works! Thanks for your swift action, Hans. I haven't  
played with zipped trees yet, but will try to do so. No fea support  
yet, I suppose?

Thanks

Thomas
___
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] Unicode greek in Context

2008-02-06 Thread Thomas A. Schmitz
Hi Vassilis,

short answer because I'm on the run right now: you could either try to  
typeset your example with ConTeXt + XeTeX; this should work out of  
the box. Or you could try my Greek module (lookn on the contextgarden  
under third party modules). It's designed for ancient Greek but  
should work with the modern variety as well. If you want more support  
for typographical conventions of modern Greek, it should be fairly  
easy to implement that yourself. And welcome to ConTeXt!

Thomas

On Feb 5, 2008, at 8:24 PM, Βασίλης Γκολφινόπουλος  
wrote:

 Hello,

 I am evaluating context for using it to write long greek documents.  
 So far I
 have not succeeded in typesetting unicode greek in live-context. I  
 have
 tried scanning the documentation and mailing list archive with no  
 success. I
 must admit I am not a very technical user. This is what I have tried  
 so far
 (unseccessfuly):

 \enableregime[utf-8]
 \mainlanguage[gr]
 \starttext
 Hello world!
 Καλημέρα κόσμε!
 \stoptext

 Is there something wrong with that? Sorry if I am wasting your time  
 -- if
 there is a good RTFM answer I would not mind.

 Vassilis


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

___
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] \high{} in mkiv

2008-02-11 Thread Thomas A. Schmitz

Hi all (Hans!),

I have a problem with the \high{} command in mkiv: in most of my  
typescripts, I have the onum feature set for my base fonts. When I  
have a number with two digits within the \high command, I get the  
expected oldstyle numbers; with one-digit numbers, the number is  
regular (not oldstyle). Since I know that this sounds completely  
ludicrous, I attach a small pdf example. It's set in Adobe Garamond,  
and the source is:


A\high{1} A\high{2} A\high{12}

Why is the onum feature lost for single-digit numbers? I'm completely  
lost here, can anyone help?


Thanks, and best

Thomas



example.pdf
Description: Adobe PDF document


___
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] Nonletter bug in ConTeXt ver: 2008.02.11 10:35 MKII

2008-02-12 Thread Thomas A. Schmitz

On Feb 12, 2008, at 4:36 PM, Otared Kavian wrote:

 Hi all,

 I just tried to update my ConTeXt installation with the command:
 sudo ctxtools --updatecontext

 and after several lines of output I got:

 […]

 language: patterns agr for agr loaded (n=16,e=ec,m=ec)
 (/usr/local/gwTeX/texmf.local/tex/context/patterns/lang-agr.pat
 ! Nonletter.
 l.65 α2᾿
ὺ

 However saying
 r
 and hitting return resulted in the installation continuing (entering
 nonstop mode…). It seems that the problem comes from greek letters.
 Despite this it seems my context installation works fine… that is:
 ConTeXt  ver: 2008.02.11 10:35 MKII  fmt: 2008.2.12  int: english/
 english
 So here is the question: is this just a minor bug in the most recent
 ConTeXt?

 Thanks for your attention: OK

Oops, that is due to a typo which Hans and I introduced while we were  
experimenting with Greek hyphenation. Hans, could you merge the latest  
patch I sent you yesterday? Otared, if this keeps you from working, I  
can send you a correct lang-agr.pat.

Thomas
___
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] {{ double braces }}

2008-02-12 Thread Thomas A. Schmitz
Hi Aditya,

now I need to apologize for being so slow to reply: thanks a lot, this  
looks really fascinating! I don't know how many things I've read on  
the web to understand if regexps can handle nested delimiters or not  
(I think the long and short of it was that on some mathematical  
principle it just isn't possible); there is some pretty obscure perl  
stuff that might be able to do it but is highly experimental. If gema  
really can do this, it should be a godsend for processing TeX files. I  
have it installed now on my OS X box (but couldn't build the gel  
binary) and am looking forward to experimenting with it.

All best, and thanks!

Thomas

On Feb 6, 2008, at 8:01 AM, Aditya Mahajan wrote:

 Nested patterns is something where gema really excels. Here is a gema
 script to convert \footnote{{something}} to \footnote{something}

 :\\footnote\W\{\{matchbrace\}\}=\\footnote\{$1\}
 matchbrace:\{#\}=\{#\}
 matchbrace:\\Y1=\\$1

 Save it as footnote.gema and then run

 gema -f footnote.gema tex-file  output-file

 It handles these expressions correctly:

 \footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote}}

 \footnote{{This $\frac{a}{b^{c+d}}$ is a strange footnote with  
 multiple {nested
 {expressions

 \footnote{{This $\frac{\left[\frac {a}{b}\right\}}{c}$ is a strange
 footnote}}

 It is much easier to write than regular expressions. Unfortunately,  
 gema
 expressions can be as hard as regular expressions to read.

 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
___


Re: [NTG-context] Nonletter bug in ConTeXt ver: 2008.02.11 10:35 MKII

2008-02-12 Thread Thomas A. Schmitz

On Feb 12, 2008, at 5:04 PM, Hans Hagen wrote:

 Otared Kavian wrote:
 On 12 févr. 08, at 16:49, Thomas A. Schmitz wrote:

 […]
 Oops, that is due to a typo which Hans and I introduced while we  
 were
 experimenting with Greek hyphenation. Hans, could you merge the  
 latest
 patch I sent you yesterday? Otared, if this keeps you from  
 working, I
 can send you a correct lang-agr.pat.

 just to be sure .. can you resent that one? i thought that i had  
 patched it

 Hans

Sure, here comes: the greeomega was the giveaway; I had corrected  
that one.

All best

Thomas

 On Feb 11, 2008, at 10:10 AM, Hans Hagen wrote:

 can you check this version?

Works with one small modification (and fixed one typo). Very neat!

--- ctxtools.rb 2008-02-11 10:22:38.0 +0100
+++ /usr/local/texlive/texmf-local/scripts/context/ruby/ctxtools.rb  
2008-02-11 10:21:39.0 +0100
@@ -1321,9 +1321,9 @@
remap(/\\o\s*/, [oeligature])
when 'agr' then
# bug fix
-   remap(a2|1, [greekalphaiotasub]1)
-   remap(h2|1, [greeketaiotasub]1)
-   remap(w2|1, [greeomegaiotasub]1)
+   remap(a2|, [greekalphaiotasub])
+   remap(h2|, [greeketaiotasub])
+   remap(w2|, [greekomegaiotasub])
# main conversion
remap(/\\'a\|/, [greekalphaiotasubdasiatonos])
# remap(/\\'a\|/, [greekdasiatonos][greekAlpha] 
[greekiota])

(With the original version, greekalphaiotasub1 wasn't converted into a  
utf character.) Great, thanks so much!

Thomas
___
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] latest beta hates most of my fonts

2008-02-13 Thread Thomas A. Schmitz
the latest beta refuses to work with most of my (Greek) fonts. I have  
compiled the very latest trunk (rev. 1006, I think). Difficult to make  
a minimal example because it doesn't happen with simple Latin text,  
only when there's Greek in the file. The error message is always  
similar:

)/Users/tas/texmf/fonts/opentype/greek/bosporos/BosporosU.otf
!luaTeX error (file /Users/tas/texmf/fonts/opentype/greek/bosporos/ 
BosporosU.otf): Unexpected error: 85 != 92
  == Fatal error occurred, no output PDF file produced!

Does that ring a bell, or should I see if I can find a font which  
doesn't work in normal mode? The fonts are set up like this:

\installfontfeature[otf][grbl]

\definefontfeature
   [agreek]
[mode=node,language=dflt,script=latn,kern=yes,tlig=yes,trep=yes,
 grbl=yes,featurefile=greek-babel.fea]

   \definefontsynonym [Serif]   [name:BosporosU]   
[features=agreek]

etc.

Thomas
___
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] latest beta hates most of my fonts

2008-02-13 Thread Thomas A. Schmitz

On Feb 13, 2008, at 5:05 PM, Mojca Miklavec wrote:

 Here's a minimal example for the start:
   texexec --xtx --make --all
 but this has already been reported and I'm not sure if it's the same  
 problem.

 /context/texmf-context/tex/context/patterns/lang-agr.pat
 ! Nonletter.
 l.206 4´
  ´
 ?

 Mojca

No, that's a different problem which I created by optimizing the  
pattern files; sorry about that!

Thomas
___
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] Strange problem with tikz module

2008-02-14 Thread Thomas A. Schmitz

On Feb 14, 2008, at 3:26 PM, Jean Magnan de Bornier wrote:

 Hi all,
 I had not made use of the tikz module for some time, and today I  
 needed
 it; but inserting \usemodule[tikz] in my preamble has this effect:

Hi Jean

that's a known problem when using an older version of tikz together  
with Taco's bib module; both use the aux file and can't agree who's  
right... Just upgrade to a new version of tikz, and you should be back  
inbusiness.

HTH

Thomas
___
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] latest release doesn't make

2008-02-17 Thread Thomas A. Schmitz

On Feb 17, 2008, at 12:12 PM, Henning Hraban Ramm wrote:

 Ahoi,

 just tried to update via ctxtools, but making formats stops at Greek
 hyphenation patterns:

 (/usr/local/texlive/2007/../texmf-local/tex/context/patterns/lang-
 agr.pat
 ! Nonletter.
 l.234 ᾿
  2ρ1῾2ρ

 If I press r to continue I get a long list of more Greek  
 nonletters.

 Is that caused by the known LM change?


No, that has nothing to do with the LM change; Greek hyphenation  
patterns are under construction. I hope this is the last time I have  
to admit that my changes weren't quite sufficient... I'll send Hans a  
patch.

Thomas
___
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] bib module and pdftex 1.40.7: Virtual memory exhausted using MiKTeX-2.7

2008-02-27 Thread Thomas A. Schmitz

On Feb 20, 2008, at 10:05 AM, luigi scarso wrote:

 Just the other day, I encountered a mysterious error which may or may
 not be related. I upgraded to pdftex 1.40.7 on all my boxes. This was
 smooth on my intel-macs (OS X 10.5.2). On my powerpc-mac, I got a  
 TeX
 capacity exceeded! error with 1.40.7 for a file that compiled fine
 with 1.40.5. I tried several times: all I did was dropping the pdftex
 binary and pdftex.pool in place, rebuilding th format and compiling
 the file. Compilation was smooth with 1.40.5 and consistently failed
 with 1.40.7 (which I compiled and recompiled without any special
 flags). I haven't pursued the matter for the moment and just went  
 back
 to 1.40.5, but I'm wondering if these problems are related.
 Do you have a test file ?


Sorry, it took me a while because this is the computer in my office,  
from which I;ve been away for a while. I think I nailed it down: if I  
try to include a pdf image into a ConTeXt document


\starttext
  \externalfigure[Logo][width=56mm,height=20mm]
\stoptext

(with any pdf file) I get this error:

./Logo.pdf
! TeX capacity exceeded, sorry [PDF object stream buffer=5].
\dogetTPDfiguresize ...geBox {\@@DriverImageFile }
   \xdef  
\PDFimagereference {...

\doanalyzefiguredimensionsinternal ...tfiguresize

\setanalyzedfiguredimensio...
argument ...}\doanalyzefiguredimensionsinternal

\doanalyzefiguredimensions...

\firstoftwoarguments #1#2-#1

\dododoanalyzeunknownfiguretype ...guredimensions
   \fi
\next2 ...dododoanalyzeunknownfiguretype {pdf}{#1}
   \doprocesscommaitem
...
l.4

!  == Fatal error occurred, no output PDF file produced!

The pdf file is OK; this error only occurs with pdftex 1.40.7 on  
powerpc (OS X, 10.5.2). The same file compiles fine with

luatex on powerpc and intel
pdftex 1.40.5 on powerpc and intel
pdftex 1.40.7 on OS X intel

All best

Thomas

___
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] bib module and pdftex 1.40.7: Virtual memory exhausted using MiKTeX-2.7

2008-02-27 Thread Thomas A. Schmitz

On Feb 27, 2008, at 10:52 AM, Hans Hagen wrote:

 that looks quite small to me

 Hans

Question is: where does this value come from? Since it only occurs in  
1.40.7, it must be some default value set during compilation of  
pdftex, I assume?

Thomas
___
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] new mkiv beta

2008-02-27 Thread Thomas A. Schmitz

On Feb 27, 2008, at 11:55 AM, Hans Hagen wrote:

 Thomas A. Schmitz wrote:
 On Feb 26, 2008, at 3:59 PM, Hans Hagen wrote:

 Hi,

 I uploaded a beta release. The biggest change is that image
 inclusion in
 mkiv has changed. Currently it's still some mix of tex and lua code,
 and
 the backend code is somewhat messy (and not complete yet) but it's a
 first step towards lua doing things. This will only work with a e
 recent
 luatex.


 Hi Hans,

 there appears to be a bug in the new image inclusion: my images are
 only found when I give the extension explicitly. So this does work:

 \externalfigure[aegean.png]

 while this doesn't:

 \externalfigure[aegean]

 (Glad I don't have to write about Greek patterns for a change...)

 glad that you test this ...

 new beta

 Hans

Excellent, now it works! Thanks for the quick fix.

Thomas
___
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] bib module and pdftex 1.40.7: Virtual memory exhausted using MiKTeX-2.7

2008-02-27 Thread Thomas A. Schmitz

On Feb 27, 2008, at 1:05 PM, Martin Schröder wrote:

 How did you get the pdftex binary? Did you fiddle with --disable- 
 largefile?

 Best
   Martin

I simply ran the build.sh script.

Thomas
___
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 with XeTeX (beginner question)

2008-03-04 Thread Thomas A. Schmitz
Have a look at this thread:


http://archive.contextgarden.net/message/20080119.170549.5a52968f.en.html


This may be the same problem.

Thomas

On Mar 4, 2008, at 5:45 PM, Adam Baker wrote:

 Hello,
I am using MikTeX 2.7 with XeTeX 0.997 and ConTeXt version
 2008.01.28 21:28. Working off of this wiki page,

 http://wiki.contextgarden.net/XeTeX

 I am trying to load system fonts in a ConTeXt document. When I run the
 file (below), I get an error (further below). One thing I suspect may
 be part of the problem is cont-en.fmt. In the MikTeX bin directory, I
 run

 texexec --make --xtx en

 This creates cont-en.fmt in the bin directory, but I don't know that
 that's where ConTeXt expects it to be. Searching the rest of the
 MikTeX directory structure, I can't find another file with that name.

 Any help appreciated,
 Adam Baker


 begin file
 \enableregime[utf]
 % not necessary since it is default regime, but can remind you that
 you must provide UTF-8–coded text
 \definetypeface[myface][ss][Xsans][Arial]
 % or any else font in your /windows/fonts folder; run fc-list
 namelist.txt to get them all
 \setupbodyfont[myface, 12pt]

 \starttext
 Hello World!
 Привет!
 \stoptext
 end file

 C:\Documents and Settings\Adam Baker\My Documents\Booklettexmfstart  
 texexec --x
 tx test.tex
 TeXExec | processing document 'test.tex'
 TeXExec | no ctx file found
 TeXExec | utf mode forced (bom found)
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file test.top
 TeXExec | using randomseed 1402
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeX, Version 3.141592-2.2-0.997 (MiKTeX 2.7)
 entering extended mode
 (test.tex

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

 language: language en is active
 system  : cont-new loaded
 (C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 (C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.mkii) (C: 
 \Program File
 s\MiKTeX 2.7\tex\context\base\cont-mtx.tex))
 system  : cont-old loaded
 (C:\Program Files\MiKTeX 2.7\tex\context\base\cont-old.tex
 loading : Context Old Macros
 )
 system  : cont-fil loaded
 (C:\Program Files\MiKTeX 2.7\tex\context\base\cont-fil.tex
 loading : Context File Synonyms
 )
 system  : cont-sys.rme loaded
 (C:\Program Files\MiKTeX 2.7\tex\context\user\cont-sys.rme (C: 
 \Program Files\
 MiKTeX 2.7\tex\context\base\type-tmf.tex) (C:\Program Files\MiKTeX  
 2.7\tex\con
 text\base\type-siz.tex) (C:\Program Files\MiKTeX 2.7\tex\context 
 \base\type-otf
 .tex)
 (C:\Program Files\MiKTeX 2.7\tex\context\base\type-xtx.tex))
 bodyfont: 12pt rm is loaded
 Running makemf...
 makemf: The [lmromanslant10-regular]:+liga;+kern;mapping=tlig;+trep;  
 source file
 could not be found.
 Running hbf2gf...

 hbf2gf (CJK ver. 4.7.0)

 Couldn't find `[lmromanslant10-regular]:+liga;+kern;mapping=tlig; 
 +tre.cfg'
 maketfm: No creation rule for font [lmromanslant10-regular]:+liga; 
 +kern;mapping=
 tlig;+trep;.
 Running makemf...
 makemf: The lmromanslant10-regular:+liga;+kern;mapping=tlig;+trep;  
 source file c
 ould not be found.
 Running hbf2gf...

 hbf2gf (CJK ver. 4.7.0)

 Couldn't find `lmromanslant10-regular:+liga;+kern;mapping=tlig; 
 +tre.cfg'
 maketfm: No creation rule for font lmromanslant10-regular:+liga; 
 +kern;mapping=tl
 ig;+trep;.
 Running makemf...
 makemf: The lmromanslant10-regular source file could not be found.
 Running hbf2gf...

 hbf2gf (CJK ver. 4.7.0)

 Couldn't find `lmromanslant10-regul.cfg'
 maketfm: No creation rule for font lmromanslant10-regular.
 ! Font \*7ptrmslrm*:=lmromanslant10-regular at 7.0pt not loadable:  
 Metric (TFM)
 file or installed font not found.
 to be read again
   \relax
 \xxdododefinefont ...tspec {#4}\newfontidentifier
  \let  
 \localrelativefontsiz...
 \dodosettextfamilyA ...amily \fontsize \endcsname
  \else \ifcsname  
 \fontbody ...
 \dosettextfamily ...ttextfamily \scriptscriptfont
  \let \fontbody  
 \scriptface...
 inserted text ...y \c!bf \dosettextfamily \c!sl
  \dosettextfamily \c! 
 it \do...
 \synchronizetext ...athfonts \the \textstrategies
  \fi
 ...
 l.1
\enableregime[utf]
 ?
 ___
 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] lua problem with Windows Vista

2008-03-06 Thread Thomas A. Schmitz

On Mar 6, 2008, at 9:45 AM, Johan Sandblom wrote:

 MkII seems to work after this but when I run

 luatools --generate
 luatools --ini --compile --verbose cont-en

 I get the output below which looks like a lua error. luatex version is
 snapshot-0.22.0-2008021623. I do not know enough about lua to track
 this error down. I am hoping someone knows what to do. Perhaps there
 is even someone who can tell me an easier way to install context on
 vista.

Hi Johan,

I think I had the same error; it will disappear when you upgrade to a  
more recent snapshot of luatex. (The one on 
http://foundry.supelec.fr/projects/luatex 
  now is 0.22.1, but you may even need to compile from svn). As for  
Vista, my best advice would be to install linux instead ;-)

Thomas
___
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] MKIV format generation with context-beta: context.tex not found

2008-03-10 Thread Thomas A. Schmitz

On Mar 10, 2008, at 3:51 PM, Peter Münster wrote:

 Hello,

 I've just tried the beta version too, and I get another error (very  
 early):
 \input context.tex : cannot find input file context.tex

 My command: texexec --make --all --luatex

 What could be the reason for this problem?

I just tried and get similar messages with this command:

TeXExec | using tex engine luatex
TeXExec | using tex format path /usr/local/texlive/2007/texmf-config/ 
web2c/luatex
TeXExec | generating tex format cont-en

LuaTools | no tex file with name cont-en.tex
LuaTools |
LuaTools | runtime: 0.004 seconds
TeXExec | generating tex format cont-nl

LuaTools | no tex file with name cont-nl.tex
LuaTools |
LuaTools | runtime: 0.003 seconds

However, with

luatools --ini --compile cont-en

the format is compiled without problems.

Thomas
___
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 in mkiv

2008-03-16 Thread Thomas A. Schmitz
Hi all,

xml processing is about the last part of my ConTeXt stuff where I  
haven't been able to switch to mkiv; I just can't get my head around  
it... 2 questions:

1. When I try to process a xml-file with my old (mkii) environments,  
the output looks OK, but I always get a first page with the xml  
version declaration

?xml version=1.0 encoding=utf-8?

Is this a bug or a feature? Is there anything I can do to prevent it?

2. I'm really lost with the new xml mechanism. My first problem: In a  
message from September last year, Hans explained that the command to  
process xml files is:

 The regular definitions still work but processing a file is done
 differently:

 \xmlprocess{id}{filename}{optional initialization setup}

I used to have environments with which to typeset a bunch of files.  
How can  this be ported to the new mechanism, which appears to expect  
a filename?

Sorry if these are very basic problems, but I'm probably a bit obtuse  
here.

All best

Thomas
___
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] processing xml in mkiv

2008-03-16 Thread Thomas A. Schmitz

On Mar 16, 2008, at 12:04 PM, Wolfgang Schuster wrote:

 On Sun, 16 Mar 2008 11:29:49 +0100
 Thomas A. Schmitz [EMAIL PROTECTED] wrote:

 Hi all,

 xml processing is about the last part of my ConTeXt stuff where I
 haven't been able to switch to mkiv; I just can't get my head around
 it... 2 questions:

 1. When I try to process a xml-file with my old (mkii) environments,
 the output looks OK, but I always get a first page with the xml
 version declaration

 ?xml version=1.0 encoding=utf-8?

 Is this a bug or a feature? Is there anything I can do to prevent it?

 Can you post a example, I never saw such a effect in my test files.

Hi Wolfgang,

OK, here is a minimal example:

file test.xml:

?xml version=1.0 encoding=utf-8?
!DOCTYPE test [
!ELEMENT document   (section)
!ELEMENT section(#PCDATA)
]

document
   section title=First
 pThis is quotationan/quotation xml file./p
   /section
/document

file testenvironment.tex

\usemodule[xtag-ent]

\defineXMLenvironment[document]
  {\starttext}
  {\stoptext}

\defineXMLenvironment[section]
  {\section{\XMLpar{section}{title}{}}}
  {}

\defineXMLenvironment[quotation]
  {\quotation\bgroup}
  {\egroup}


When I process with mkii, I get the expected output. Processing with

texexec --lua --env=testenvironment test.xml

gives me the first line (here it's not an entire page) I described!



 2. I'm really lost with the new xml mechanism. My first problem: In a
 message from September last year, Hans explained that the command to
 process xml files is:

 The regular definitions still work but processing a file is done
 differently:

\xmlprocess{id}{filename}{optional initialization setup}

 I used to have environments with which to typeset a bunch of files.
 How can  this be ported to the new mechanism, which appears to expect
 a filename?

 \xmlprocess{main}{filename.xml}{} works for me.

I tried to translate this into the new mechanism and thought it  
should read like so:

\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{text:p|section|quotation}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:p
\xmlflush{#1}\endgraf
\stopxmlsetups

\startxmlsetups xml:quotation
\quotation{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:section
\section{\xmlatt{#1}{section}{title}}
\stopxmlsetups

\starttext
\xmlprocess{main}{test.xml}{}
\stoptext

But then, I only get invalid xml file in the output.



 Sorry if these are very basic problems, but I'm probably a bit obtuse
 here.

 You don't have to use new xml mechanism form MkIV, the old code could
 be used without problems. The advantage of the new code is direct
 access to elements in the tree (you could use xml files as database)
 and the option to read from zip files.

 Wolfgang

OK, I'll keep that in mind. Thanks for your help, Wolfgang!

Thomas
___
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] processing xml in mkiv

2008-03-17 Thread Thomas A. Schmitz

On Mar 16, 2008, at 6:16 PM, Hans Hagen wrote:

 indeed ther eis something weird, but it may as well be something in
 lautex itself, so taco has to look into it too

 what happens is:

 \def\processXMLfilegrouped#1{{\enableXML\processfile{#1}\relax 
 \ifmmode\else\par\fi}}

 it looks like the new catcode regime lags one line behind here

Glad to know it wasn't just me being stupid... So I will continue to  
try  my hand at the new mkiv mechanism.

All best

Thomas
___
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] processing xml in mkiv

2008-03-18 Thread Thomas A. Schmitz

On Mar 17, 2008, at 2:04 PM, Taco Hoekwater wrote:

 It is a bug in luatex, but not an easy one to fix. The simplest
 workaround (for now) is to patch core-job.lua.

 Best wishes,
 Taco


 --- core-job.lua~   2008-02-13 12:01:06.0 +0100
 +++ core-job.lua2008-03-17 14:02:12.0 +0100
 @@ -64,7 +64,7 @@
  function commands.processfile(name,maxreadlevel)
name = find_file(name,maxreadlevel)
if name ~=  then
 -tex.sprint(tex.ctxcatcodes,string.format(\\input %s\ 
 \relax,name))
 +tex.print(tex.ctxcatcodes,string.format(\\input %s\ 
 \relax,name))
end
  end



Thanks Taco! I was away from my computer yesterday, but will try that  
today.

All best

Thomas
___
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] Numbering in margin

2008-03-18 Thread Thomas A. Schmitz
Hi all,

I want some numbers to appear in the paragraph. It's for a commentary,  
so the numbering isn't continuous, but pretty arbitrary. The problem  
is, I need two sets of numbers (for sections and subsections), and I  
want both in the margin, like so:

1  1   Some text

3   More text

4   Even more

3  1   And more

2   and so on

5  Sometimes, there are sections without subsections

So far, I have succeeded in doing this with some low-level trickery by  
defining two commands, LEVELONE and LEVELTWO:

\def\LEVELONE#1 {\dontleavehmode\llap{#1\kern1.8em \null}}

\def\LEVELTWO#1 {\dontleavehmode\llap{\tfx #1\kern1em \null}}

(I need to gobble the space after the command, that's why I included  
it in the \def). However, I'm wondering if there's a more ConTeXt-like  
way of doing this, since my next project will be to do this for xml  
files. I had tried with \inmargin[1] and \inmargin[2], but that didn't  
quite do what I expected. Any thoughts on this?

All best

Thomas

___
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] Numbering in margin

2008-03-18 Thread Thomas A. Schmitz

On Mar 18, 2008, at 5:06 PM, Thomas A. Schmitz wrote:

 Hi all,

 I want some numbers to appear in the paragraph.

Oh shoot, please make that: appear in the margin.

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


  1   2   3   4   5   6   7   8   9   10   >