Re: [NTG-context] Natural tables, offsets

2008-04-14 Thread Wolfgang Schuster
On Fri, Apr 11, 2008 at 3:24 PM, Santy, Michael
[EMAIL PROTECTED] wrote:

 Wolfgang,

 Can you use the leftoffset/rightoffset on individual table cells?

Yes you can.

You could also the offset parameters in \framed and any other command which
use \localframed.

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

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


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-14 Thread Thomas A. Schmitz

On Apr 13, 2008, at 9:30 AM, Taco Hoekwater wrote:
 Roland wrote:

 Anybody?

 Makes no sense to me. I hope Thomas can have a look. Something  
 obviously
 goes wrong for you, but I have never yet see it go _so_ wrong. Is  
 there
 a chance of a corrupted download of something?

 Best wishes,
 Taco

OK, I'll have a go at it.

Roland, could you send me (off-list) the output of these commands:

echo $PATH

ls -al /usr/local/texlive/2007/bin/i386-darwin

ls -al

luatex --version

And I'll see if I can find anything.

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] urw-garamond with MKIV

2008-04-14 Thread Wolfgang Schuster
On Sat, Apr 12, 2008 at 9:44 AM, Peter Münster [EMAIL PROTECTED] wrote:
 Hello,

 This does no more work with MKIV:

 \usemodule[urwgaramond]
 \starttext
 \rm\input knuth

 \it\input knuth

 \bf\input knuth

 \bi\input knuth
 \stoptext

 Could anybody help me, to get urw-garamond with MKIV?

Try the following setups.

\starttypescript [serif] [urwgaramond]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [Garamond-Regular]
  \definefontsynonym [SerifBold]   [Garamond-Medium]
  \definefontsynonym [SerifItalic] [Garamond-Italic]
  \definefontsynonym [SerifBoldItalic] [Garamond-MediumItalic]
\stoptypescript

\starttypescript [serif] [urwgaramond]
  \definefontsynonym [Garamond-Regular]  [file:ugmr8a]  [features=default]
  \definefontsynonym [Garamond-Medium]   [file:ugmm8a]  [features=default]
  \definefontsynonym [Garamond-Italic]   [file:ugmri8a] [features=default]
  \definefontsynonym [Garamond-MediumItalic] [file:ugmmi8a] [features=default]
\stoptypescript

\starttypescript [urwgaramond]
  \definetypeface [\typescriptone] [rm] [serif] [urwgaramond] [default]
\stoptypescript


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

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


[NTG-context] LuaTeX problems with \seeindex and \from

2008-04-14 Thread Drazen Baic
Hi,

this is my first posting to this list but I'm following it through the
archives for quite a long time.

First I would like to thank the list for this huge archive. By reading
the documentation and searching this archive most of my questions
about ConTeXt where answered. I searched for these problems but couldn't
find anything.

Now to my question: I was generating my documents with XeTeX until I
switched to LuaTeX and MKIV a few days ago. After I changed my
typescripts almost everything worked perfectly but the commands
\seeindex[]{}{} and \from[].

1) \seeindex simply doesn't seem to work. The index is generated but all
\seeindex entries are missing. It works perfectly when generated with
'texexec --xtx'. Generating the document with \version[temporary] shows
in the margin ' i Indexentry' and ' see Showindexentry' so it seems
that both entries are ok. I set up the register with
'\completeindex[interaction=text,align=yes]'

Is this a bug or are \seeindex entries handled different with LuaTeX?

2) The other problem took me quite some time to find out. When I create
the document with 'texexec --lua' LuaTeX it seems that everything runs
fine but no document is generated. There are no error messages even
with '--verbose' set - at least I couldn't see any. Finally I found out
that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
(see the CrashReporter log at the end of the mail).

I started to leave out all components of the product and started just
with the title page, then included chapter after chapter until I found
out the LuaTeX crashes when I leave the command \from[] in. I defined
the URL with \useURL[apache][http://httpd.apache.org/download.cgi] and
am using it in the document with \from[apache].

Here are the versions I'm using.

OS: Mac OS X 10.5.2
ConTeXt: 2008.04.11 00:07
LuaTeX: snapshot-0.25.2-2008041101


Many thanks in advance and regards,
Drazen Baic



Process: luatex [269]
Path:/usr/local/context-20080411/tex/texmf-osx-ppc/bin/luatex
Identifier:  luatex
Version: ??? (???)
Code Type:   PPC (Native)
Parent Process:  texlua [268]

Date/Time:   2008-04-13 11:21:14.865 +0200
OS Version:  Mac OS X 10.5.2 (9C31)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0010
Crashed Thread:  0

Thread 0 Crashed:
0   luatex 0x000dfc00 0x1000 + 912384
1   luatex 0x00163f00 0x1000 + 1453824
2   luatex 0x002c9820 0x1000 + 2918432

Thread 0 crashed with PPC Thread State 32:
  srr0: 0x000dfc00  srr1: 0x0200f030   dar: 0x0010 dsisr: 0x4000
r0: 0x0004r1: 0xbfffdce0r2: 0x0004r3: 0x0004
r4: 0x0001r5: 0x0010r6: 0xr7: 0x
r8: 0x0030r9: 0x0003a598   r10: 0x00019bd4   r11: 0x2ecc
   r12: 0x95158b40   r13: 0x   r14: 0x   r15: 0x
   r16: 0x   r17: 0x   r18: 0x   r19: 0x0003
   r20: 0x0380b880   r21: 0x03806cd0   r22: 0x   r23: 0x0001
   r24: 0x075910e0   r25: 0x03806cac   r26: 0x07591100   r27: 0x0100
   r28: 0x0020   r29: 0x07591100   r30: 0xbfffdce0   r31: 0x000e2cc4
cr: 0x48000444   xer: 0x0004lr: 0x000dfbf4   ctr: 0x000e5d0c
vrsave: 0x

Binary Images:
0x1000 -   0x4bbff9 +luatex ??? (???)
/usr/local/context-20080411/tex/texmf-osx-ppc/bin/luatex
0x8fe0 - 0x8fe30b23  dyld 96.2 (???)
39109181acbf30fed542e6c9abcf1798 /usr/lib/dyld
0x90b77000 - 0x90b7cff6  libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x950ef000 - 0x95156ffb  libstdc++.6.dylib ??? (???)
a4e9b10268b3ffac26d0296499b24e8e /usr/lib/libstdc++.6.dylib
0x95157000 - 0x952f0fe3  libSystem.B.dylib ??? (???)
754231f5e52ed8418f89f1f3369caf58 /usr/lib/libSystem.B.dylib
0x96842000 - 0x9684dffb  libgcc_s.1.dylib ??? (???)
ea47fd375407f162c76d14d64ba246cd /usr/lib/libgcc_s.1.dylib
0x8000 - 0x9703  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
___
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] ConTeXt Document with SVN Info Included

2008-04-14 Thread Michael Hallgren
Good morning,

Do we have, in userland, an already developed metod of including
SVN info in a ConTeXt output file? A la svn-multi in the LaTeX
world...

Cheers,

mh

___
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 problems with \seeindex and \from

2008-04-14 Thread Taco Hoekwater

Hi,

Drazen Baic wrote:
 
 with '--verbose' set - at least I couldn't see any. Finally I found out
 that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
 (see the CrashReporter log at the end of the mail).

Can you please email me (or post) the smallest test file you can
make that crashes? For debugging, I really need a test file.

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] small caps and old numbers with open type fonts

2008-04-14 Thread Wolfgang Schuster
On Sun, Apr 13, 2008 at 8:39 PM, Antoine Junod [EMAIL PROTECTED] wrote:
 Hello list,

 I'm still playing with a few otf fonts and enjoying the way ConTeXt
 works :)

 I'm now playing with a beautiful Garamond. I try to typeset a few
 things with old-style numbers and, well, the output contains old-style
 numbers but not in my Garamond (it seems to be in latin modern). What
 should I do to use the old-style numbers of my font? Did a miss a doc
 about that? Or did I missunderstood the \os command (I thought it was
 a switch to the old-style of the font but it seems rather to change of
 font)?

 I actually use my font as simple as possible with a
 \definefont[boum][MyFont at 12pt]. Is it the problem?

 It the same with the \sc command.

\definefont[boum][MyFont at 12pt]
\definefont[scboum][MyFont*smallcaps at 12pt]

\starttext

\boum ABCabc123

\scboum ABCabc123

\stoptext

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

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


Re: [NTG-context] Module documentation

2008-04-14 Thread Wolfgang Schuster
On Fri, Apr 11, 2008 at 4:25 PM,  [EMAIL PROTECTED] wrote:

 Hello all,

 I have been using Context for a while now and have learnt a lot from the
 manuals and wiki.  I now want to start to use features that are not
 documented.  On the wiki
 (http://wiki.contextgarden.net/Official_ConTeXt_Documentation#ConTeXt_Sources)
 I found the following command for producing a pdf output for a module:

 texmfstart texexec --module kpse:core-tab.tex

 which seems ideal for learning more.  When I run the above command line it
 creates a .ted file but then complains:

 I can't find the format file 'cont-en.fmt'!

 On Luigi Scarso's page
 (http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf) he suggests
 the following:

 texexec --module --pdf core-tab.tex

 but this returns no output at all, and no pdf.

 I am working on Windows.  I installed (this week) from the
 context/install/mswincontext.zip on the Pragma site and normally build from
 the Scite editor.

 Can anyone suggest what I'm doing wrong?

The mswincontext package use local settings for the paths and you can
use them only with scite or the setup script. You could try to add the path
for the setuptext script to the global path variables to use LuaTeX etc.
systemwide or you use the command line from scite.

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

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


Re: [NTG-context] luatools --ini plain

2008-04-14 Thread Hans van der Meer

On 14 apr 2008, at 00:38, Arthur Reutenauer wrote:

 luatools --ini plain

 Instead of the expected output 120,808 plain.fmt etc. I get an error:
 There is no lua initialization file found. ...

  The ConTeXt tools don't support plain.  If you really want a plain
 format for LuaTeX you can run luatex -ini instead:

   luatex -ini -jobname=luatex plain \\dump

  But why do you want plain LuaTeX in the first place?  If it's only to
 test the mk document, you should realize it's not a user manual.

Why I am doing this? Just because I want to experiment with luatex and  
to acquire experience using it. And what better to start with then  
examples given in the accompanying document.
It might not be a user manual, but does that mean its information is  
not to be used? I am quite aware of the preliminary nature of the  
document. That is what this newsgroup is for. By the way, Hans Hagen  
in the mean time corrected the call to luatools --make plain.

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

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


Re: [NTG-context] MkIV and DVI output

2008-04-14 Thread Wolfgang Schuster
On Sun, Apr 13, 2008 at 3:01 PM, Mojca Miklavec
[EMAIL PROTECTED] wrote:
 On Fri, Apr 11, 2008 at 11:45 AM, Hans Hagen wrote:
  Wolfgang Schuster wrote:
Hi,
   
is it possible to produce DVI files with Mark IV.
   
I tried a simple file like
   
\starttext
text
\stoptext
   
with the command texexec --lua --backend=dvipdfm filename
 
   no, at quite some places i've hardcoded a pdftex backend
 
   at some point i will redo the backends, but i wonder if it really makes
   sense to support dvi any longer; i'd rather prepare for future formats

 Hello Wolfgang (and others),

 I don't know if anyone has noticed it, but XeTeX doesn't support dvi
 format either. It can create some intermediate format (xdv), but it's
 rather useless - I don't know any software that can work with it. And
 even if LuaTeX would support dvi, you still need to write support for
 fonts in DVI previewers. (DVI=DeVice Independent - something that
 would definitely not be true any more with OpenType fonts; or rather -
 is not even true any more at this moment with dozens of PS specials)

Hi Mojca,

I know xdv is only a intermediate format in XeTeX and xdv2pdf and
xdvipdfmx are able to convert it into PDF format. I used always only the
pdftex backend for ConTeXt and used dvi only to play with a few macro
files where I needed it because they used PostScript to draw lines ...

I have also no dvi viewer on my system and I'm inable to take a look
at the output in dvi format.

I tried to play only a little bit with MkIV and dvi but I never wanted to
use it in real live, I tried only something what is at the moment only
possible with dvi output.

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

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


Re: [NTG-context] luatools --ini plain

2008-04-14 Thread Hans Hagen
Hans van der Meer wrote:
 On 14 apr 2008, at 00:38, Arthur Reutenauer wrote:
 
 luatools --ini plain

 Instead of the expected output 120,808 plain.fmt etc. I get an error:
 There is no lua initialization file found. ...
  The ConTeXt tools don't support plain.  If you really want a plain
 format for LuaTeX you can run luatex -ini instead:

  luatex -ini -jobname=luatex plain \\dump

  But why do you want plain LuaTeX in the first place?  If it's only to
 test the mk document, you should realize it's not a user manual.
 
 Why I am doing this? Just because I want to experiment with luatex and  
 to acquire experience using it. And what better to start with then  
 examples given in the accompanying document.
 It might not be a user manual, but does that mean its information is  
 not to be used? I am quite aware of the preliminary nature of the  
 document. That is what this newsgroup is for. By the way, Hans Hagen  
 in the mean time corrected the call to luatools --make plain.

in most cases examples in mk should work and if not, they should be 
corrected (it's a kind of dev history and i try to keep things up to 
date so send patches if needed)

Hans

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

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


Re: [NTG-context] Adding custom key/value pairs

2008-04-14 Thread Olivier Guéry
  Thanks Taco, that was exactly what I needed.

  Cheers,
  Rory

Can you post the good syntax you use, or put it on the wiki ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Adding custom key/value pairs

2008-04-14 Thread Olivier Guéry
On Mon, Apr 14, 2008 at 12:18 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Mon, Apr 14, 2008 at 11:56 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Thanks Taco, that was exactly what I needed.
   
 Cheers,
 Rory
  
   Can you post the good syntax you use, or put it on the wiki ?

  What do you mean.

  What he use use is already on the wiki and he midified it only it only.

  
 http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution

Sorry I was thinking that there were more differences between the two.
Having various example on the wiki can  be great, to have idears… for
« normal » users like me !
But I understand that it's not totally necessary.

Regards,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Adding custom key/value pairs

2008-04-14 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 12:34 PM, Olivier Guéry [EMAIL PROTECTED] wrote:

 On Mon, Apr 14, 2008 at 12:18 PM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:
  On Mon, Apr 14, 2008 at 11:56 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
  Thanks Taco, that was exactly what I needed.

  Cheers,
  Rory
   
Can you post the good syntax you use, or put it on the wiki ?
 
   What do you mean.
 
   What he use use is already on the wiki and he midified it only it only.
 
   
  http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution

 Sorry I was thinking that there were more differences between the two.
 Having various example on the wiki can  be great, to have idears… for
 « normal » users like me !

It is easy to add a alternative key to setuptitle to switch between
different results.

I think the following link is something for you, I could make a module and
provide a few title page styles.

http://www.ctan.org/tex-archive/info/latex-samples/

 But I understand that it's not totally necessary.

Why not, I have nothing against a few predefined title pages layouts.

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

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


Re: [NTG-context] fonts and luatex

2008-04-14 Thread Olivier Guéry
On Mon, Apr 14, 2008 at 11:49 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
   On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang [EMAIL PROTECTED] wrote:
On 4/14/08, Hans Hagen [EMAIL PROTECTED] wrote:
  Olivier Guéry wrote:
also if you wanted named access:
  
   mtxrun --script fonts --reload
  
   Maybe it's a solution to finely have linux-libertine run with 
 context… :o)
   But :
   mtxrun --script fonts --reload
   give me that : MtxRun | unknown script: fonts
  
   and :
   mtxrun --verbose --script fonts
  
   MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
  
   MtxRun | loading configuration for /usr/share/texmf/web2c from
   
 /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
   MtxRun | locating list of /home/nemo/.texmf-config
   MtxRun | locating list of /home/nemo/.texmf-var
   MtxRun | locating list of /home/nemo/texmf
 
  what strange paths: these periods
   
 Umm.. most linux distribution ship texlive like this.  It's common.
 Just like TeXlive use ~/.texlive2007
  
   Hello, (damn, installation problem again, sorry for this).
  
   I'm using a local install in /usr/share/texmf/ on my Ubuntu Hardy — no
   recent package of Context in hardy… sad :o(.
   My TeX install is a texlive-2007-13 from ubuntu packages.
  
   In my ~/.bashrc I put this :
  
   export MYTEXMF=/usr/share/texmf
   export TEXMFCNF=$MYTEXMF/web2c
   export TEXMFCACHE=/tmp
   export TEXMFLOCAL=/usr/share/texmf
   export LUAINPUTS=$MYTEXMF/tex/context/base:$MYTEXMF/script/context/lua
   export OSFONTDIR=/usr/share/fonts/otf
  
   The TEXMFCACHE  used to be « export TEXMFCACHE=$HOME/.texmf-cache »
   two weeks ago (but when I change to /tmp, i removed this cached
   file…).
  
   My luatools and mtxrun are links from /usr/bin/ to
   /usr/share/texmf/scripts/conteyt/lua/ :
   luatool - /usr/share/texmf/scripts/context/lua/luatools.lua and
   mtxran - /usr/share/texmf/scripts/context/lua/mtxrun.lua
  
   When I update, I run :
  
   texexec --make --all --pdftex
   texexec --make --all --xetex
   luatools --generate
   luatools --ini --compile --verbose cont-en
   texexec --make --all --lua
  
   Do you need the outputs ? They seems to run fine, but it's not realy
   readable for me…
  
   I can run context, but some otf fonts can't be find, like the nice
   linuxlibertine, for exemple (context used to find it with xetex).

  Can you use the TeX-Gyre Fonts, try the following example

All the tex-gyre run well.

  % engine=luatex

  \usetypescript[palatino]
  \setupbodyfont[palatino]

  \starttext
  Hello Text!
  \stoptext

  If this did work send your typescript for the linux libertine fonts.

Yes, it work. What do you mean by « typescript » ? For calling linux
libertine, I tried this :
\definefontsynonym [LinLibertine] [LinLibertineC_Re]
\definedfont [LinLibertine at 12pt]
and this :
\definefontsynonym [LinLibertine] [name:LinLibertineO]
\definedfont [LinLibertine at 12pt]
nothing work.

I get the name with otfinfo -i
I don't creat a special file for using LinLibertine… but other fonts
like the free Tally[1] run well.
Sorry but fonts use are still strange for me…

If I understand well, if mtxrun can't build a « database » with my
fonts, names can't work ?

Olivier.

[1] http://www.josbuivenga.demon.nl/tallys.html
-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Adding custom key/value pairs

2008-04-14 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 11:56 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
   Thanks Taco, that was exactly what I needed.
 
   Cheers,
   Rory

 Can you post the good syntax you use, or put it on the wiki ?

What do you mean.

What he use use is already on the wiki and he midified it only it only.

http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution

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

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


Re: [NTG-context] fonts and luatex

2008-04-14 Thread Olivier Guéry
On Mon, Apr 14, 2008 at 2:00 AM, Yue Wang [EMAIL PROTECTED] wrote:
 On 4/14/08, Hans Hagen [EMAIL PROTECTED] wrote:
   Olivier Guéry wrote:
 also if you wanted named access:
   
mtxrun --script fonts --reload
   
Maybe it's a solution to finely have linux-libertine run with context… 
 :o)
But :
mtxrun --script fonts --reload
give me that : MtxRun | unknown script: fonts
   
and :
mtxrun --verbose --script fonts
   
MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
   
MtxRun | loading configuration for /usr/share/texmf/web2c from

 /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
MtxRun | locating list of /home/nemo/.texmf-config
MtxRun | locating list of /home/nemo/.texmf-var
MtxRun | locating list of /home/nemo/texmf
  
   what strange paths: these periods

  Umm.. most linux distribution ship texlive like this.  It's common.
  Just like TeXlive use ~/.texlive2007

Hello, (damn, installation problem again, sorry for this).

I'm using a local install in /usr/share/texmf/ on my Ubuntu Hardy — no
recent package of Context in hardy… sad :o(.
My TeX install is a texlive-2007-13 from ubuntu packages.

In my ~/.bashrc I put this :

export MYTEXMF=/usr/share/texmf
export TEXMFCNF=$MYTEXMF/web2c
export TEXMFCACHE=/tmp
export TEXMFLOCAL=/usr/share/texmf
export LUAINPUTS=$MYTEXMF/tex/context/base:$MYTEXMF/script/context/lua
export OSFONTDIR=/usr/share/fonts/otf

The TEXMFCACHE  used to be « export TEXMFCACHE=$HOME/.texmf-cache »
two weeks ago (but when I change to /tmp, i removed this cached
file…).

My luatools and mtxrun are links from /usr/bin/ to
/usr/share/texmf/scripts/conteyt/lua/ :
luatool - /usr/share/texmf/scripts/context/lua/luatools.lua and
mtxran - /usr/share/texmf/scripts/context/lua/mtxrun.lua

When I update, I run :

texexec --make --all --pdftex
texexec --make --all --xetex
luatools --generate
luatools --ini --compile --verbose cont-en
texexec --make --all --lua

Do you need the outputs ? They seems to run fine, but it's not realy
readable for me…

I can run context, but some otf fonts can't be find, like the nice
linuxlibertine, for exemple (context used to find it with xetex).

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Adding custom key/value pairs

2008-04-14 Thread Taco Hoekwater
Wolfgang Schuster wrote:
 
 Why not, I have nothing against a few predefined title pages layouts.

Somewhat related: it would be nice if there was some common code for
titles (books as well as articles). The Maps module currently defines
an article in this fashion:

\starttext
\startArticle
   [Title=...,
Author=...,
RunningAuthor=...] % etc. etc.

\startAbstract
... abstract ...
\stopAbstract

\startKeywords
... comma-separated keywords ...
\stopKeywords

... body ...

\stopArticle
\stoptext

Obvious weak point: the Abstract / Keywords are too late to influence
typesetting of the title (page). Of course that could be fixed by using
named buffers and/or an explicit \maketitle-like command.

Anyway, the maps module contains all the code to do everything. And
the same is true for the TUG module. And for quite a few others I have 
laying around. Lots of duplicate code all over, so a common framework
would be great. I've been meaning to write one for a long time, but
somehow I never quite get around to actually doing it.

Just saying this to let you know that I would really welcome a module
with commands like \setuptitle, \definetitle, and \placetitle.

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] Adding custom key/value pairs

2008-04-14 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 1:20 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Wolfgang Schuster wrote:
 
  Why not, I have nothing against a few predefined title pages layouts.

 Somewhat related: it would be nice if there was some common code for
 titles (books as well as articles). The Maps module currently defines
 an article in this fashion:

\starttext
\startArticle
   [Title=...,
Author=...,
RunningAuthor=...] % etc. etc.

\startAbstract
... abstract ...
\stopAbstract

\startKeywords
... comma-separated keywords ...
\stopKeywords

... body ...

\stopArticle
\stoptext

I never thought of them, good to have someone mention this.

 Obvious weak point: the Abstract / Keywords are too late to influence
 typesetting of the title (page). Of course that could be fixed by using
 named buffers and/or an explicit \maketitle-like command.

Something like:

\def\startabstract
  {\dostartbuffer[abstract][startabstract][stopabstract]}

\startsetups titlepage

  \getbuffer[abstract]

\stopsetups

\def\starttitlepage
  {\begingroup
   \placetitle}

\def\stoptitlepage
  {\setups{titlepage}
   \endgroup}


\setuptitle
  [author=...,
   title=...]

or

\starttitlepage
  [author=...,
   title=...]

\startabstract
...
\stopabstract

...

\stoptitlepage

 Anyway, the maps module contains all the code to do everything. And
 the same is true for the TUG module. And for quite a few others I have
 laying around. Lots of duplicate code all over, so a common framework
 would be great. I've been meaning to write one for a long time, but
 somehow I never quite get around to actually doing it.

To many ideas and too less time and motivation :-)

 Just saying this to let you know that I would really welcome a module
 with commands like \setuptitle, \definetitle, and \placetitle.

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

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


Re: [NTG-context] fonts and luatex

2008-04-14 Thread Wolfgang Schuster
I can run context, but some otf fonts can't be find, like the nice
linuxlibertine, for exemple (context used to find it with xetex).
 
   Can you use the TeX-Gyre Fonts, try the following example

 All the tex-gyre run well.

   % engine=luatex
 
   \usetypescript[palatino]
   \setupbodyfont[palatino]
 
   \starttext
   Hello Text!
   \stoptext
 
   If this did work send your typescript for the linux libertine fonts.

 Yes, it work. What do you mean by « typescript » ? For calling linux
 libertine, I tried this :
 \definefontsynonym [LinLibertine] [LinLibertineC_Re]
 \definedfont [LinLibertine at 12pt]
 and this :
 \definefontsynonym [LinLibertine] [name:LinLibertineO]

file:filename should normally work

 \definedfont [LinLibertine at 12pt]
 nothing work.

 I get the name with otfinfo -i
 I don't creat a special file for using LinLibertine… but other fonts
 like the free Tally[1] run well.
 Sorry but fonts use are still strange for me…

 If I understand well, if mtxrun can't build a « database » with my
 fonts, names can't work ?

Can't test this at the moment with the font names but you could try
my typescripts with the filenames.

\starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [LinLibertine-Regular]
  \definefontsynonym [SerifBold]   [LinLibertine-Bold]
  \definefontsynonym [SerifItalic] [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular]
[file:LinLibertine_Re-2.7.9.9] [features=default]
  \definefontsynonym [LinLibertine-Bold]
[file:LinLibertine_Bd-2.7.8]   [features=default]
  \definefontsynonym [LinLibertine-Italic]
[file:LinLibertine_It-2.7.8]   [features=default]
  \definefontsynonym [LinLibertine-BoldItalic]
[file:LinLibertine_BI-2.7.2]   [features=default]
  \definefontsynonym [LinLibertine-Caps]
[file:LinLibertineC_Re-2.7.3]  [features=default]
\stoptypescript

\starttypescript [linuxlibertine]
  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript


\usetypescript[linuxlibertine]
\setupbodyfont[linuxlibertine]

\starttext
Text in Linux Libertine.
\stoptext

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

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


Re: [NTG-context] fonts and luatex

2008-04-14 Thread Mojca Miklavec
On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry wrote:

  I can run context, but some otf fonts can't be find, like the nice
  linuxlibertine, for exemple (context used to find it with xetex).

Hello Oliver,

XeTeX finds fonts using fc-config, and fc-config usually knows about
all your system-wide-installed fonts, while you first need to tell
LuaTeX where your fonts reside. (LuaTeX is not aware of any
system-specific folders.)

You might need something like
export OSFONTDIR=/Library/Fonts
pointing to the folder where your font resides. Once you set that, you
need to run several commands to update font cache. I'm not 100% sure
which ones are really needed (I usually try guessing until it starts
working or delete the cache :) - but just follow Hans' comments
earlier in the thread. (luatools --generate, mtxrun --script fonts
--reload etc.)

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

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


Re: [NTG-context] LinuxLibertine Typescript (was : fonts and luatex)

2008-04-14 Thread Olivier Guéry
 \starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
 \definefontsynonym [Serif]   [LinLibertine-Regular]
 \definefontsynonym [SerifBold]   [LinLibertine-Bold]
 \definefontsynonym [SerifItalic] [LinLibertine-Italic]
 \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
 \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
 \definefontsynonym [LinLibertine-Regular] [file:LinLibertine_Re-2.7.9.9] 
 [features=default]
 \definefontsynonym [LinLibertine-Bold] [file:LinLibertine_Bd-2.7.8]   
 [features=default]
 \definefontsynonym [LinLibertine-Italic] [file:LinLibertine_It-2.7.8]   
 [features=default]
 \definefontsynonym [LinLibertine-BoldItalic] [file:LinLibertine_BI-2.7.2]   
 [features=default]
 \definefontsynonym [LinLibertine-Caps] [file:LinLibertineC_Re-2.7.3]  
 [features=default]
\stoptypescript

\starttypescript [linuxlibertine]
 \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript


\usetypescript[linuxlibertine]
\setupbodyfont[linuxlibertine]

\starttext
Text in Linux Libertine.
\stoptext


Thank's for the help, but I got this error :


[…]
specials   : fdf loaded
) (/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex)
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex)
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.texThis went wrong:
/usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
field '?' (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.32 \setupbodyfont[linuxlibertine]

?

I have exactly the same version of libertine font in
/usr/share/texmf/fonts/opentype/public/linlibertine

Greetings,
Olivier.

--
[tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread luigi scarso
I have a catalog.pdf

Title:  catalog
Subject:
Keywords:
Author:
Creator:ConTeXt - 2008.04.11 00:07
Producer:   luaTeX-0.25.2
CreationDate:   Mon Apr 14 14:58:34 2008
ModDate:20080414
Tagged: no
Pages:  158
Encrypted:  no
Page size:  595.276 x 841.89 pts (A4)
File size:  70685151 bytes
Optimized:  no
PDF version:1.5

 with this fonts

name type emb sub uni object ID
  --- --- --- -
MDCNZX+LMSans10-Bold CID Type 0C  yes yes yes 13  0
IGGGUK+LMSans8-Regular   CID Type 0C  yes yes yes 14  0
GZMKLC+UnicodeSymbolsCID TrueType yes yes yes 94  0
PTHJMN+LMTypewriter10-RegularCID Type 0C  yes yes yes855  0
WRYWGB+LMMathItalic8-Italic  Type 1   yes yes no 957  0

After distilling with
$  gs -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor
-dProcessColorModel=/DeviceCMYK -sDEVICE=pdfwrite -sOutputFile=a.pdf
catalog.pdf -c quit

I have
$ pdffonts a.pdf

Producer:   GPL Ghostscript 8.62
CreationDate:   Mon Apr 14 15:06:11 2008
ModDate:Mon Apr 14 15:06:11 2008
Tagged: no
Pages:  158
Encrypted:  no
Page size:  595.28 x 841.89 pts (A4)
File size:  24409214 bytes
Optimized:  no
PDF version:1.4

name type emb sub uni object ID
  --- --- --- -
YPEQNS+LMSans8-Regular-Identity-HCID Type 0C  yes yes yes 27  0
YXQHXP+LMSans10-Bold-Identity-H  CID Type 0C  yes yes yes 24  0
BCGFHD+UnicodeSymbols-Identity-H CID TrueType yes yes yes139  0
VOBVYK+LMTypewriter10-Regular-Identity-H CID Type 0C  yes yes yes   1144  0
IAAFVL+LMMathItalic8-Italic  Type 1C  yes yes no1286  0

and many ( 4516 lines )
Error: Illegal entry in bfrange block in ToUnicode CMap

What is this ?
Maybe a xpdf bug ?
(xpdf version 3.01)


Note that gs has no problems with both files .



My setup :
This is LuaTeX, Version snapshot-0.25.2-2008041413
ConTeXt  ver: 2008.04.11 00:07 MKIV  fmt: 2008.4.14  int: english/english

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] fonts and luatex

2008-04-14 Thread Hans Hagen
Mojca Miklavec wrote:
 On Mon, Apr 14, 2008 at 11:38 AM, Olivier Guéry wrote:
  I can run context, but some otf fonts can't be find, like the nice
  linuxlibertine, for exemple (context used to find it with xetex).
 
 Hello Oliver,
 
 XeTeX finds fonts using fc-config, and fc-config usually knows about
 all your system-wide-installed fonts, while you first need to tell
 LuaTeX where your fonts reside. (LuaTeX is not aware of any
 system-specific folders.)

indeed, and i'm not going to hard code paths

 You might need something like
 export OSFONTDIR=/Library/Fonts

right, at least on windows this works

(i think that i wrote a fc-whatever parser but then one needs to tell 
where it lives etc etc)

Hans

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

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


Re: [NTG-context] ConTeXt Document with SVN Info Included

2008-04-14 Thread Peter Münster
On Mon, Apr 14 2008, Michael Hallgren wrote:
 
 Do we have, in userland, an already developed metod of including
 SVN info in a ConTeXt output file? A la svn-multi in the LaTeX
 world...

This is perhaps something, you are looking for:

http://archive.contextgarden.net/message/20080403.194403.07530330.en.html

(I don't know, if it's userland, but you don't need to remake the
formats ;)


Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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 problems with \seeindex and \from

2008-04-14 Thread Hans Hagen
Drazen Baic wrote:
 Hi,
 
 this is my first posting to this list but I'm following it through the
 archives for quite a long time.
 
 First I would like to thank the list for this huge archive. By reading
 the documentation and searching this archive most of my questions
 about ConTeXt where answered. I searched for these problems but couldn't
 find anything.
 
 Now to my question: I was generating my documents with XeTeX until I
 switched to LuaTeX and MKIV a few days ago. After I changed my
 typescripts almost everything worked perfectly but the commands
 \seeindex[]{}{} and \from[].
 
 1) \seeindex simply doesn't seem to work. The index is generated but all
 \seeindex entries are missing. It works perfectly when generated with
 'texexec --xtx'. Generating the document with \version[temporary] shows
 in the margin ' i Indexentry' and ' see Showindexentry' so it seems
 that both entries are ok. I set up the register with
 '\completeindex[interaction=text,align=yes]'
 
 Is this a bug or are \seeindex entries handled different with LuaTeX?

can be a bug ... so you need to make a small example file

-- 

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

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


Re: [NTG-context] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread Taco Hoekwater


luigi scarso wrote:
 
 and many ( 4516 lines )
 Error: Illegal entry in bfrange block in ToUnicode CMap

Is the error in the original pdf or in the redistilled one?
___
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] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread luigi scarso
  Is the error in the original pdf or in the redistilled one?
in the redistilled one
-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread Taco Hoekwater


luigi scarso wrote:
  Is the error in the original pdf or in the redistilled one?
 in the redistilled one

Then it's easy: it is a ghostscript bug.

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] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread luigi scarso
  Then it's easy: it is a ghostscript bug.
or maybe a xpdf bug,
given that ghostscript has no problem to show it.

BTW, what does this error mean ?

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Error: Illegal entry in bfrange block in ToUnicode CMap

2008-04-14 Thread Taco Hoekwater


luigi scarso wrote:
  Then it's easy: it is a ghostscript bug.
 or maybe a xpdf bug,
 given that ghostscript has no problem to show it.
 
 BTW, what does this error mean ?

ToUnicode CMaps vectors in PDF are used to aid in searches,
and they have a pretty strict official format. Your pdf file
is apparently breaking one of the constraints.

I am fairly certain of that, because some of the constraints
are a cumbersome and seemingly arbitrary so it is likely that
both gs and AR just ignore them. If you want to be really sure,
you can send me the file, and I can have a precise look.

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] Adding custom key/value pairs

2008-04-14 Thread Aditya Mahajan
On Mon, 14 Apr 2008, Taco Hoekwater wrote:

 Wolfgang Schuster wrote:

 Why not, I have nothing against a few predefined title pages layouts.

 Somewhat related: it would be nice if there was some common code for
 titles (books as well as articles).

 [snip]

 Anyway, the maps module contains all the code to do everything. And
 the same is true for the TUG module. And for quite a few others I have
 laying around. Lots of duplicate code all over, so a common framework
 would be great. I've been meaning to write one for a long time, but
 somehow I never quite get around to actually doing it.

 Just saying this to let you know that I would really welcome a module
 with commands like \setuptitle, \definetitle, and \placetitle.

I agree with that. It will be really nice to have a module that does a few 
simple titles (alternate=(a|b|c), etc.) For one of my personal modules, 
I was following something along the lines of the maps module. But I find 
Wolfgang's solution on the wiki to be more ConTeXtish than what all other 
modules use.

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] fonts and luatex

2008-04-14 Thread Olivier Guéry
I have this : export OSFONTDIR=/usr/share/fonts/otf in my .bashrc.
And I put a copy in the same directory than the texgyre.

The mtxrun problem is strange, do you have an explanation ?
Olivier.
___
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] fonts and luatex

2008-04-14 Thread Arthur Reutenauer
 (i think that i wrote a fc-whatever parser but then one needs to tell 
 where it lives etc etc)

  If fontconfig is correctly installed, you shouldn't need to do
anything special: only run fc-list / configure fontconfig the normal way
(probably by editing things like /etc/fonts/local.conf).

  This certainly is a good idea; I thought about it myself.  It could
“unify” font searching with XeTeX (although it won't make the overall
system easier to understand!).

Arthur
___
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] \hyphenatedfile redefined!!

2008-04-14 Thread Aditya Mahajan
Hi,

Typeset this file :)

\starttext

The file \filename{knuth} contains a quotation from Don Knuth, the creator
of \TEX.

\stoptext

core-ver.tex defines \filename to be

\unexpanded\def\filename#1{{\tttf\hyphenatedfile{#1}}}

and supp-lan.tex defines \hypenatedfile to be

\let\hyphenatedfile\hyphenatedurl

However this is redefined in supp-box.tex, due to which \filename gets 
redefined.

%D \macros
%D   {hyphenatedword,
%Dhyphenatedpar,
%Dhyphenatedfile,
%Ddohyphenateword}
%D
%D The next one is a tricky one. \PLAIN\ \TEX\ provides
%D \type{\showhyphens} for showing macros on the terminal. When
%D preparing a long list of words we decided to show the
%D hyphens, but had to find out that the \PLAIN\ alternative
%D can hardly be used and|/|or adapted to typesetting. The next
%D two macros do the job and a little more.

Although, I cannot gather this from the definition, it seems that 
\hypenatedfile is showing all the hyphens in a file.

One of the macros need to get a different name :)

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] LuaTeX problems with \seeindex and \from

2008-04-14 Thread Drazen Baic
Hi,

Of course, I should have provided one in my first mail. Trying to create
a minimal test file I also found out that the crash only happens when
\setupinteraction [state=start] is set. Here is the file.

\setupinteraction [state=start]
\useURL[apache][http://httpd.apache.org/download.cgi]

\starttext
\startitemize
 \item Download Apache at \from[apache]
\stopitemize

\stoptext

Regards,
Drazen

On Mon, Apr 14, 2008 at 9:57 AM, Taco Hoekwater [EMAIL PROTECTED] wrote:

  Hi,


  Drazen Baic wrote:
  
   with '--verbose' set - at least I couldn't see any. Finally I found out
   that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
   (see the CrashReporter log at the end of the mail).

  Can you please email me (or post) the smallest test file you can
  make that crashes? For debugging, I really need a test file.

  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
  
 ___

___
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 problems with \seeindex and \from

2008-04-14 Thread Drazen Baic
Hi,

Here is a small test file. Compiled with 'texexec --lua' the register
has only the entry 'Software 1' but it should have one additional
entry 'Apache see Software'. This works OK when compiled with
'texexec --xtx'

\starttext
\index{Software}Software
\seeindex{Apache}{Software}Apache

\placeindex
\stoptext

Regards,
Drazen

On Mon, Apr 14, 2008 at 3:40 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Drazen Baic wrote:
   Hi,
  
   this is my first posting to this list but I'm following it through the
   archives for quite a long time.
  
   First I would like to thank the list for this huge archive. By reading
   the documentation and searching this archive most of my questions
   about ConTeXt where answered. I searched for these problems but couldn't
   find anything.
  
   Now to my question: I was generating my documents with XeTeX until I
   switched to LuaTeX and MKIV a few days ago. After I changed my
   typescripts almost everything worked perfectly but the commands
   \seeindex[]{}{} and \from[].
  
   1) \seeindex simply doesn't seem to work. The index is generated but all
   \seeindex entries are missing. It works perfectly when generated with
   'texexec --xtx'. Generating the document with \version[temporary] shows
   in the margin ' i Indexentry' and ' see Showindexentry' so it seems
   that both entries are ok. I set up the register with
   '\completeindex[interaction=text,align=yes]'
  
   Is this a bug or are \seeindex entries handled different with LuaTeX?

  can be a bug ... so you need to make a small example file

  --

  -
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] fonts and luatex

2008-04-14 Thread Hans Hagen
Arthur Reutenauer wrote:
 (i think that i wrote a fc-whatever parser but then one needs to tell 
 where it lives etc etc)

it's rather trivial to support it

   If fontconfig is correctly installed, you shouldn't need to do
 anything special: only run fc-list / configure fontconfig the normal way
 (probably by editing things like /etc/fonts/local.conf).

well, we only need the path in mkiv; personally i prefer setting an env 
var instead of editing yet another configuration file

   This certainly is a good idea; I thought about it myself.  It could
 “unify” font searching with XeTeX (although it won't make the overall
 system easier to understand!).

i'll upload a beta that looks at the file; the relevant code is in 
font-syn; i.e. only named fonts will be seen because the file is not 
consulted otherwise

 local name = fonts.names.xml_configuration_file
 if name and not name ==  then
 local name = input.find_file(instance,name,other)
 if name ~=  then
 collect(xml.collect_texts(xml.load(name),dir,true))
 end
 end

i'm wondering ... if a name is not found, i can regenerate the database 
at runtime. i had that for a while; maybe i should reinstate that

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
___


[NTG-context] chapter setup / table of contents

2008-04-14 Thread Henning Hraban Ramm
Ahoi!

In a volume of proceedings, each chapter has an author and title and  
sometimes a subtitle.
The ToC entry should look like:

Author: Title \hfill Page
(no indents!)

At the moment I've this setup:

---

\def\Titel#1#2#3{% author, title, subtitle
\page%
{\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
\switchtobodyfont[12pt]\noindent #1%
\chapter{\noindent #2}%
{\ss\bf #3}%
\blank[2*big]}%
}

\setuphead[chapter][page=no, number=no, align= 
{flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},  
after={\blank}]

\definecombinedlist[toc][chapter][level=chapter, placehead=no,  
criterium=all, alternative=b, offset=none]
\setupcombinedlist  [toc] [partnumber=no]

---

Please don't cry, I know it's ugly... ;-)

What it does is close, but nood good enough.

- Is there a way to use the normal chapter (or any head) mechanism  
with such feathered titles?
- How do I get my special ToC?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] bug in mplib?

2008-04-14 Thread Thomas A. Schmitz
Hi all,

I just noticed that with the new incarnation of metapost, arrows  
behave somewhat erratically. Take this minmal example:

\starttext

\startuseMPgraphic{arrowtest}
z1=(0,0) ;
z2=(3cm,0) ;
ahlength := 15pt ;
pickup pencircle scaled 5pt ;
drawarrow z1--z2 ;
\stopuseMPgraphic

\useMPgraphic{arrowtest}

\stoptext

compile it with mkii and mkiv and observe the difference.

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] ConTeXt Document with SVN Info Included

2008-04-14 Thread Michael Hallgren
Le lundi 14 avril 2008 à 14:38 +0200, Peter Münster a écrit :
 On Mon, Apr 14 2008, Michael Hallgren wrote:
  
  Do we have, in userland, an already developed metod of including
  SVN info in a ConTeXt output file? A la svn-multi in the LaTeX
  world...
 
 This is perhaps something, you are looking for:
 
 http://archive.contextgarden.net/message/20080403.194403.07530330.en.html
 
 (I don't know, if it's userland, but you don't need to remake the
 formats ;)
 
 

Many thanks. Looks interesting (also or in particular because of the lua
piece).

Cheers,

mh


 Cheers, Peter
 

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

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


Re: [NTG-context] chapter setup / table of contents

2008-04-14 Thread luigi scarso
On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote:
 Ahoi!

  In a volume of proceedings, each chapter has an author and title and
  sometimes a subtitle.
  The ToC entry should look like:

  Author: Title \hfill Page
  (no indents!)

  At the moment I've this setup:

  ---

  \def\Titel#1#2#3{% author, title, subtitle
 \page%
 {\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
 \switchtobodyfont[12pt]\noindent #1%
 \chapter{\noindent #2}%
 {\ss\bf #3}%
 \blank[2*big]}%
  }

  \setuphead[chapter][page=no, number=no, align=
  {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},
  after={\blank}]

  \definecombinedlist[toc][chapter][level=chapter, placehead=no,
  criterium=all, alternative=b, offset=none]
  \setupcombinedlist  [toc] [partnumber=no]

  ---

  Please don't cry, I know it's ugly... ;-)

  What it does is close, but nood good enough.

  - Is there a way to use the normal chapter (or any head) mechanism
  with such feathered titles?
  - How do I get my special ToC?

I've seen in core-lst
% \setuplist
%   [section]
%   [alternative=MyListItem,
%after=\blank,
%before=\blank]
%
% \definelistplacement[MyListItem][none]#1#2#3%
%   {(#1) (#2) (#3)}

Maybe this can help you ?


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] chapter setup / table of contents

2008-04-14 Thread Henning Hraban Ramm
Am 2008-04-14 um 22:26 schrieb luigi scarso:

 I've seen in core-lst
 % \setuplist
 %   [section]
 %   [alternative=MyListItem,
 %after=\blank,
 %before=\blank]
 %
 % \definelistplacement[MyListItem][none]#1#2#3%
 %   {(#1) (#2) (#3)}

 Maybe this can help you ?

I guess not - these 3 parameters are AFAIK part no., title and page  
no., and it's called automatically for the ToC entry, so I don't  
know how I could replace #2 with author: #2

i.e. alternative in \setuplist is only for defining a different  
format for the ToC line, not for changing the *content* of it.

Probably I must utilize that, too, but it doesn't solve my problem on  
its own.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] chapter setup / table of contents

2008-04-14 Thread luigi scarso
a bit of lua code ?

\startluacode
 MyStuff = {}
 SecCount = 0
 SecIndexCount = 0
\stopluacode

\definelistplacement[MyListItem][none]#1#2#3{%
\ctxlua{SecIndexCount = SecIndexCount +1}
%% Do something with
%%\ctxlua{tex.sprint(MyStuff[SecIndexCount])}
%%
}

\setuplist[section][alternative=MyListItem,
]

\def\SectionHeadCommand#1#2{%
\ctxlua{SecCount = SecCount +1}
%% Here set MyStuff
%% \ctxlua{MyStuff[SecCount] = }%
%%
}
\setuphead[section][command={\SectionHeadCommand}]


  I guess not - these 3 parameters are AFAIK part no., title and page
  no., and it's called automatically for the ToC entry, so I don't
  know how I could replace #2 with author: #2

  i.e. alternative in \setuplist is only for defining a different
  format for the ToC line, not for changing the *content* of it.

  Probably I must utilize that, too, but it doesn't solve my problem on
  its own.




  Greetlings from Lake Constance!
  Hraban
  ---
  http://www.fiee.net/texnique/
  http://wiki.contextgarden.net
  https://www.cacert.org (I'm an assurer)

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

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




-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] bug in mplib?

2008-04-14 Thread Peter Rolf
Hi Thomas,

Thomas A. Schmitz schrieb:
 Hi all,
 
 I just noticed that with the new incarnation of metapost, arrows  
 behave somewhat erratically. Take this minmal example:
 
 \starttext
 
 \startuseMPgraphic{arrowtest}
 z1=(0,0) ;
 z2=(3cm,0) ;
 ahlength := 15pt ;
 pickup pencircle scaled 5pt ;
 drawarrow z1--z2 ;
 \stopuseMPgraphic
 
 \useMPgraphic{arrowtest}
 
 \stoptext
 
 compile it with mkii and mkiv and observe the difference.
 
same here. another broken example

\starttext

\startuseMPgraphic{squaretest}
   draw unitsquare xyscaled(5cm,2.5cm)
   withpen pensquare scaled 4;
\stopuseMPgraphic

\useMPgraphic{squaretest}

\stoptext


and sorry, i promised to test. but currently i'm stuck with the adaption 
of my mp specials... still trying to understand the code. without those 
specials, my examples won't work (so no testing from my side).

best wishes, peter

 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
 ___
 

___
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 Document with SVN Info Included

2008-04-14 Thread Stephan Hennig
Michael Hallgren schrieb:

 Do we have, in userland, an already developed metod of including
 SVN info in a ConTeXt output file? A la svn-multi in the LaTeX
 world...

I have not tested it with ConTeXt, but what about the vc bundle
available at CTAN:support/vc?  Feedback is welcome!

Best regards,
Stephan Hennig

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

2008-04-14 Thread Wolfgang Werners-Lucchini
On 13 Apr 2008 at 13:31, [EMAIL PROTECTED] wrote:

Hallo Taco,

thank you for your example.

 % start low-level
 \startlua
 local function finder(name, mode, ftype)
  if mode==w then
  return name
  else
  return kpse.find_file(name,ftype)
  end
 end
 mp = mplib.new ( {
  hash_size = 10,
  main_memory = 200,
  param_size = 10,
  find_file = finder,
  ini_version = true
 } )
 if mp then
  res = mp:execute('plain')
  mp:finish()
 end

this first step runs with res=0, but there is no 'plain.mem' dumped.
(I have temporary appended 'dump;' to plain.mp)
this first step runs with res=0 with mp:execute('mpost'), but no 
'mpost.mem'
the first step even runs with res=0 and mp:execute('\\plain; dump;'), 
but no 'plain.mem'

after that I produced 'plain.mem' executing
'texmfstart texexec --make plain'

 
 mp = mplib.new ( {
  hash_size = 10,
  main_memory = 200,
  param_size = 10,
  find_file = finder,
 } )
 
 if mp then
  res = mp:execute(
 \\beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye; )
  tex.print([ .. tostring(res.status) .. ])
  mp:finish()
 end
 \stoplua
 % stop low-level
 

this second step returns res=3.

Is there a find_file function necessary to find the mem-file given in 
'mem_name' or is such a function only necessary for file-names in 
'mp:execute'?

Wolfgang

-- 
Musensturm-Verlag -- Postfach 1249 -- 36126 Gersfeld 
 http://www.musensturm.de

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

2008-04-14 Thread Mojca Miklavec
On Mon, Apr 14, 2008 at 7:43 PM, Hans Hagen wrote:

  i'm wondering ... if a name is not found, i can regenerate the database
  at runtime. i had that for a while; maybe i should reinstate that

This sounds reasonable. If user is asking for non-existing font, he
can be punished a bit (by a longer compile time) for providing the
wrong name, and if he has just installed a new font, that behaviour is
desirable anyway.

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

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


Re: [NTG-context] Module documentation

2008-04-14 Thread Mojca Miklavec
On Mon, Apr 14, 2008 at 10:27 AM, Wolfgang Schuster wrote:

 On Fri, Apr 11, 2008 at 4:25 PM,  [EMAIL PROTECTED] wrote:
  
   Hello all,
  
   I have been using Context for a while now and have learnt a lot from the
   manuals and wiki.  I now want to start to use features that are not
   documented.  On the wiki
   
 (http://wiki.contextgarden.net/Official_ConTeXt_Documentation#ConTeXt_Sources)
   I found the following command for producing a pdf output for a module:
  
   texmfstart texexec --module kpse:core-tab.tex
  
   which seems ideal for learning more.  When I run the above command line it
   creates a .ted file but then complains:
  
   I can't find the format file 'cont-en.fmt'!
  
   On Luigi Scarso's page
   (http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf) he suggests
   the following:
  
   texexec --module --pdf core-tab.tex
  
   but this returns no output at all, and no pdf.
  
   I am working on Windows.  I installed (this week) from the
   context/install/mswincontext.zip on the Pragma site and normally build from
   the Scite editor.
  
   Can anyone suggest what I'm doing wrong?

  The mswincontext package use local settings for the paths and you can
  use them only with scite or the setup script. You could try to add the path
  for the setuptext script to the global path variables to use LuaTeX etc.
  systemwide or you use the command line from scite.

You need to run something like (single line!!!):

C:\Programs\context\usr\local\context\tex\setuptex.bat
C:\Programs\context\usr\local\context\tex

in command prompt. For texexec --module --pdf core-tab.tex to work
you need to be in context base folder (tex/context/base; kpse makes
sure that you find  take the proper file automatically), and you
probably need to report a few problems in the source to be able to
compile that particular source file :)

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

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


[NTG-context] 2 problems with texexec --module

2008-04-14 Thread Peter Münster
Hello,

1.) Compilation stop like this:

[1.1] [2.1] . (./t-french.tex
language   : language specific options [default-fr] introduce a 4.0pt  skip
\wait=

With the following example:

%D \module
%D   [  file=t-french,
%Dversion=2008.04.05,
%D  title=\CONTEXT\ User Module,
%D   subtitle=For French documents,
%D author=Peter Münster,
%D   date=\currentdate,
%D  copyright={Peter Münster}]

\startlanguagespecifics[fr]
  \setcharacterspacing[frenchpunctuation]
\stoplanguagespecifics

Command: texexec --module --luatex t-french


2.) The option --result is not respected:

texexec --module --result=french-doc t-french
produces t-french.pdf but not french-doc.pdf.


Greetings, Peter

-- 
http://pmrb.free.fr/contact/

___
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] Unable to generate luatex formats

2008-04-14 Thread Michael Green
The two files Taco pointed to *appear* to be OK (though I'm too  
inexperienced to say with certainty). That leaves something esoteric  
or a tossed salad of old and new code.

Since this is mainly a matter of learning and curiosity for me, I'll  
wait and see how things develop for a bit.

Thanks for your help!

mjg


 I think either

/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex

 is not the one from the latest context distribution, or an extra
 luatools --generate command is needed.

 You can check the \contextversion by looking at

/usr/local/texlive/texmf-local/tex/context/base/context.tex

 around line 45, it should say

   \edef\contextversion{2008.04.11 14:48}


 There can be some more esoteric causes,  but these are the two most
 likely ones.


 in previou sversions the env was loaded runtime (this behaviour
 originated in the stepwise development of embedding bytecodes in the
 format, in the beginning all chunks were loaded at runtime); i managed
 to get rid of that; in addition to taco's suggestions ... so it  
 could be
 that old code and new code is mixed.

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