Re: [NTG-context] Miktex

2008-10-01 Thread Ulrike Fischer
Am Tue, 30 Sep 2008 22:38:38 -0700 schrieb David Arnold:

 I saw your note on blog.miktex.org: If you still want to run ConTeXt
 on MikTeX while it has been removed, you may create a file
 texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the
 content:
 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby 
 \texmfstart.rb %*
 and extract www.pragma-ade.com/context/current/cont-tmf.zip into C:
 \Program Files\MiKTeX 2.7. Then, update filename database and
 generate formats, and everything should work again.


 I followed this advice, installed texmfstart.bat, unzipped cont-
 tmf.zip properly, updated the filename database, then got stuck. At
 the dos prompt:

 $ texmfstart --help
 Worked just fine. However,
 $ texmfstart texexec --help
 Did not work.

 Can you please try what happens if you install MikTeX in some folder
 with no spaces in base path?
 
 I'll give your idea of no spaces a try tomorrow. Meanwhile if you can  
 think of anything less drastic, as I have to do this on 20 different  
 machines, 

You could try to unzip cont-tmf.zip in a separate root without spaces.
E.g. 

C:\contextfiles\...

Then add C:\contextfiles as a new root. 



-- 
Ulrike Fischer 

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

2008-10-01 Thread Taco Hoekwater


Hi Olivier,

Olivier wrote:

Btw: could you add in the doc a simple example of how to set up an mplib 
instance
(loading the format file) and typesetting a minimal graphic, and then
use it from within plain TeX for instance; this is transparent to
conTeXt users since there are files like mlib-run.lua but not easy for
plain TeX users :P  


Running mplib is easy enough to document, but that is only a part of
the work: you also have to convert the image to pdf literals, and
that is more work than I would like to put in the manual. Anyway, 
attached is a bunch of definitions I stripped out of context that

will allow you to run mplib in plain tex provided that you also have
context installed (you need mlib-pdf.lua for the PDF conversion)

Best wishes,
Taco

metapost = (metapost or {})

function metapost.report (a)
   print (\n .. a)
end

function metapost.finder (name, mode, ftype)
   return (mode==w and  name) or kpse.find_file(name, ftype)
end

function metapost.make(name, target, finder)
   local status = 2 -- higher numbers are errors
   finder = (finder or metapost.finder)
   local mpx = mplib.new ( {
 hash_size = 10,
 main_memory = 200,
 max_in_open = 50,
 param_size = 10,
 ini_version = true,
 find_file = finder,
 job_name = target,
  } )
   if mpx then
  local result = mpx:execute(input  .. name .. ; dump;)
  if result then status = result.status end
  mpx:finish()
   end
   if status  2 then
  metapost.report('mp message: created mem file ' .. target )
   else 
  metapost.report('mp error: mem file generation failed')
   end
end

function metapost.load(name, finder)
   finder = (finder or metapost.finder)
   local memname = finder(mplib- .. name,r,mem)
   if not memname then
  memname = finder(mplib- .. name, w, mem)
  metapost.make(name, memname, finder)
   end
   metapost.report('mp message: using mem file ' .. memname)
   local mpx = mplib.new ( {
 ini_version = false,
 mem_name = memname,
 find_file = finder,
  } )
   if not mpx then
  metapost.report('mp error: mem loading failed')
   end
   return mpx
end

function metapost.process(mpx, data)
local result
if mpx and data then
result = mpx:execute(data)
-- todo: error message
if not result then
   metapost.report(mp error: no result object returned)
elseif result.status  0 then
   metapost.report(mp error: .. (result.term or no-term) .. \n .. 
(result.error or no-error))
end
 end
 return result
end


\pdfoutput = 1
\pdfcompresslevel=0

\directlua0{ dofile (mplib.lua) }
\directlua0{ dofile (kpse.find_file('mlib-pdf.lua')) }

% some things that are normally pre-defined in context

\newdimen\onebasepoint 
\onebasepoint = 1bp
\newbox\scratchbox
{\catcode`\% =12 \gdef\letterpercent{%}}
\directlua0{ tex.ctxcatcodes = 0 }

% the three macros output by the context converter:

\def\startMPLIBtoPDF#1#2#3#4% watch the transparency reset
  {\hbox\bgroup
   \xdef\MPllx{#1}%
   \xdef\MPlly{#2}%
   \xdef\MPurx{#3}%
   \xdef\MPury{#4}%
   \xdef\MPwidth {\the\dimexpr#3\onebasepoint-#1\onebasepoint\relax}%
   \xdef\MPheight{\the\dimexpr#4\onebasepoint-#2\onebasepoint\relax}%
   \setbox\scratchbox\vbox\bgroup
   \noindent % this is really needed in order to force tex into proper cm's
}

\let\MPLIBtoPDF\pdfliteral

\def\stopMPLIBtoPDF % watch the transparency reset
  {\egroup
   \setbox\scratchbox\hbox\bgroup
 \hskip-\MPllx\onebasepoint
 \raise-\MPlly\onebasepoint
 \box\scratchbox
   \egroup
   \setbox\scratchbox\vbox to \MPheight\bgroup
 \vfill
 \hsize\MPwidth
 \ht\scratchbox=0pt
 \dp\scratchbox=0pt
 \box\scratchbox
   \egroup
   \wd\scratchbox\MPwidth
   \ht\scratchbox\MPheight
   \box\scratchbox
   \egroup }

% our own command

\def\mp#1{\directlua0{ 
  if not mpx then mpx = metapost.load('plain') end
  local f = metapost.process(mpx,'#1')
  if f then
print (f.term)
if f.fig then
  metapost.convert(f)
end
  end
}}

\mp{beginfig(1); draw fullcircle scaled 20 withcolor (1,0,0); endfig;}

\bye___
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] Last beta and CJK

2008-10-01 Thread Hans Hagen
Wolfgang Schuster wrote:
 
 Am 01.10.2008 um 00:08 schrieb Hans Hagen:
 
 Wolfgang Schuster wrote:
 Hi Hans,
 Japanese text is no longer broken across lines, it works only
 if I set the right feature with \setfontfeature but settings given
 with feature=... in \definefontsynonym are ignored.

 ok, fixed; thanks for testing; new beta in 15 minutes
 
 No really but it could be a Mac only problem, I get now:
 
 load otf | loading: /Users/wolf/Library/Fonts/KozMinProVI-Regular.otf
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)
 load otf | warning: Bad format for coverage table 768
 load otf | warning: Bad format for coverage table 768
 load otf | warning: Internal Error: Subtable status not filled in for 
 1th subtable of as_l_1
 MtxRun | fatal error, message: luatex: execution interrupted

bug in font itself

 
 I noticed another problem with \definedfont, the settings are ignored
 and I get the same same for bot lines but I will send it to the list and
 other users should test it.
 
 \starttext
 
 text
 
 {\definedfont[Serif sa 10]text} % normal text size in MkIV, scaled in MkII
 
 \stoptext

fixed

-
   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] French punctuation : tests

2008-10-01 Thread Olivier Guéry
2008/9/30 Peter Münster [EMAIL PROTECTED]:
 On Tue, Sep 30 2008, Olivier Guéry wrote:

 Think about the usage Celine made of the punctuation.

 Hello Olivier,

 Who is Celine?

A french writer from the 20th century. He's revolutionnary cause he
make « true » litterature by using spoke language. He used a lot
punctuatios (espacially « … » in fact).
http://en.wikipedia.org/wiki/Louis-Ferdinand_C%C3%A9line


 So the rules is not : there's a space before « ! ». But there's a
 space befor « ! » if the signe before is not punctuation.
 But i understand your point of view. In fact  such a rule is so unknow
 and rare that I thinked it's better to « hard-coded » it.

 If you begin to treat such exceptions, you'll never finish. Today you're
 thinking of !!!, tomorrow there will be 19:20 or Hi!jab.
 There are 2 main ideas:
 - Don't put too many exceptions into ConTeXt, especially if there is no hope
  to treat them all automatically. When a text needs special constructions,
  put them in a macro, for example \ThreeExclamationMarks.

I'll try this.

 - For most rules, the opinions diverge. Some people want a bit more
  kerning here or there, other people want less.

In fact it's the beauty un typography : there's rules and the last one
is « you can alway find an exception ».
I realy understand your point and you're certaily right, I'm too
strict :-) ; let me just point out that since most people don't know
the rules they expect their computer to know them.
So you can say : be cool with the rules, let people do adjustment
themselves, or make « hard » rules with the possibility to switch them
off.
I really don't know what's the better. Certainly something between the
two, as usual !

 - there is some default value for the amount of this space, that can be
  easily changed by user-setup

Maybe it's just because changing setup look's hard for me… gonna learn !

Thank's a lot for taking the time to answer me.

Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
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] Last beta and \definedfont

2008-10-01 Thread Olivier Guéry
2008/10/1 Wolfgang Schuster [EMAIL PROTECTED]:
 Hi all,

 can you test the following example with the last beta and luatex version.

 \starttext

 text

 {\definedfont[Serif sa 10]text}

 \stoptext

Here is the result here… not like yours !

This is LuaTeX, Version snapshot-0.30.0-2008100100, build unknown

MtxRun | main context file: /usr/share/texmf/tex/context/base/context.tex
MtxRun | current version: 2008.10.01 11:08

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com


test-wolfgang.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] French punctuation : tests

2008-10-01 Thread Olivier Guéry
2008/9/30 Hans Hagen [EMAIL PROTECTED]:
 Hi,

 there is a new beta with a few important changes

 - partial rewrite of the tex-lua font definition interface (from now on
 font-ini is different for mkii and mkiv)

 - adapted spacing (for french), taking care of penalty/space situations
 and such

 for this beta you need the latest luatex as well because otherwise the
 font definition mechanism will not work (this means that the minimals
 also need to be updated)

 Hans

Here is the result : frenchpunctuation run's great ! The test n°2 is
perfect ! (are they realy thin space ?)

Thank's a lot,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
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] relative file locations when compiling from different folders (in projects)

2008-10-01 Thread Hans Hagen
Mojca Miklavec wrote:
 Hello,
 
 I'm just wondering if there's some recipe about how to simplify the
 work when icluding other files and images in projects, when one is
 compiling from different folders.

\usepath[..]
\usesubpath[...] (on top of paths)
\setupexternalfigures[directory={.}]

and alike



 For example:
 
 articles/08/01/art-one.tex (product)
 articles/08/01/art-two.tex (product)
 articles/08/02/art-three.tex (product)
 articles/08/02/art-four.tex (product)
 articles/08/magazine_2008.tex (product)
 components/funny.tex (component)
 img/08/01/img-1.png
 img/08/01/img-2.png
 img/08/01/img-3.png
 img/08/02/img-2.png
 magazine_all.tex (project)
 layout.tex (environment)
 
 If I do
 cd articles/08/01
 texexec art-one
 then images are expected to be set up as ../../../img/08/01 and if I
 need to \input somefile from the project (like funny.tex), even if
 that's a component, I need to provide some explicit location.
 
 But then I would want to compile
 cd articles/08
 texexec magazine_2008
 and then all relative paths break, even when specified in subfolders.
 Now I would need to set up ../../img/08/01 as image directory. Even
 though the article provides relative path, that path is now relative
 to the document I compile one folder lower in hierarchy, not to the
 document that defines the relative path (which is a bit weird, but I
 understad why it is so).
 
 Also ... is there some elegant way to include funny.tex from an
 article, so that it will work both in article and magazine? (I'm
 thinking about putting \def\projectroot{../../} at the top of files,
 but that's a bit ugly.)
 
 I can solve the problem in my own ways with some weird macros, like
 the ones that set image directory to
 directory={../../../img/08/01,../../img/08/01,img/08/01} at the top
 of every article file, but my solutions are all a bit ugly. (Another
 thing is that it needs to be flexible enough, so that I don't need to
 change every single article in case that I decide to move images or
 articles to another location in project.)
 
 If some elegance exists to solve that, I would welcome any hints or
 suggestions. But as I said: it's all solvable in one way or another,
 so this is just a low-priority request for sharing your ideas. I'm
 posting this because I would almost bet that there's some one-liner to
 solve it all :) :) :)
 
 Thanks,
 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
 ___


-- 

-
   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] ansi codes

2008-10-01 Thread Alan Stone
Wonderful !

Is there a (preferably free) Linux or Windows font tool out there which
allows to print a font's characters and corresponding character codes ?


On Tue, Sep 30, 2008 at 4:16 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:



 Alan Stone wrote:
  On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  On Tue, 30 Sep 2008 12:23:56 +0200
  Alan Stone [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
How do you typeset font characters by their ansi code number, ex.
  Alt+33
(21h) ?
 
  \char 21 % hex
  \char 33  % decimal
 
 
  Thanks Taco.
 
  It didn't work as expected. It outputs exclamation points.

 OK, fetched the font.

  \starttypescript [sans] [combinumerals]
   \setups [font:fallback:sans]
   \definefontsynonym [sans][CombinumeralsRegular]
   \definefontsynonym [sansBold][CombinumeralsBold]
  \stoptypescript

 Two changes are needed here

 [Sans]   instead of   [sans]
 [SansBold]   instead of   [sansBold]

  \starttext
  %\showcharacters
  %\page

 Have to add a font switching command here:

   \switchtobodyfont[combinumerals,ss]

 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] ansi codes

2008-10-01 Thread Taco Hoekwater


Alan Stone wrote:
 Wonderful !
 
 Is there a (preferably free) Linux or Windows font tool out there which 
 allows to print a font's characters and corresponding character codes ?

I use fontforge: http://fontforge.sourceforge.net/

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] Last beta and CJK

2008-10-01 Thread Wolfgang Schuster

Am 01.10.2008 um 11:22 schrieb Hans Hagen:

 Wolfgang Schuster wrote:
 Am 01.10.2008 um 00:08 schrieb Hans Hagen:
 Wolfgang Schuster wrote:
 Hi Hans,
 Japanese text is no longer broken across lines, it works only
 if I set the right feature with \setfontfeature but settings given
 with feature=... in \definefontsynonym are ignored.

 ok, fixed; thanks for testing; new beta in 15 minutes
 No really but it could be a Mac only problem, I get now:
 load otf | loading: /Users/wolf/Library/Fonts/KozMinProVI-Regular.otf
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4  
 (Sjis-UTF-8)
 load otf | warning: Bad format for coverage table 768
 load otf | warning: Bad format for coverage table 768
 load otf | warning: Internal Error: Subtable status not filled in  
 for 1th subtable of as_l_1
 MtxRun | fatal error, message: luatex: execution interrupted

 bug in font itself

This was a luatex bug, it is fixed in revision 1525.

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

2008-10-01 Thread Olivier
Hi Taco,

 Running mplib is easy enough to document, but that is only a part of
 the work: you also have to convert the image to pdf literals, and
 that is more work than I would like to put in the manual. 

OK. It could be nice then to simply state this?

 Anyway, attached is a bunch of definitions I stripped out of context
 that will allow you to run mplib in plain tex provided that you also
 have context installed (you need mlib-pdf.lua for the PDF conversion)

Thanks a lot for these. With these hints I am now able to compile
metapost figs from conTeXt through texexec --luatex normaly.
To this end, I had to perform two tweaks:

* the files mlib-run.lua, mlib-ctx.lua, and mlib-pdf.lua were *NEVER*
  loaded so I added to my conTeXt source file:
  \directlua0 { dofile
  (/usr/share/texmf/tex/context/base/mlib-ctx.lua) }
  \directlua0 { dofile
  (/usr/share/texmf/tex/context/base/mlib-run.lua) }
  \directlua0 { dofile
  (/usr/share/texmf/tex/context/base/mlib-pdf.lua) }

* the format was generated correctly but loaded incorrectly:
  I had to add the following line:
   ini_version = false,
  in the metapost.load function in the mlib-run.lua file.

Now everything is OK.  The second thing (an misfortunate typo) is easy
to fix.  However, the fact that mlib-*.lua are never loaded is more worrying:
any idea where this error comes from?

Hope this will help Hans as well.

Cheers,
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] mplib errors

2008-10-01 Thread Taco Hoekwater

Hi Olivier and Hans,

Olivier wrote:
 
 Thanks a lot for these. With these hints I am now able to compile
 metapost figs from conTeXt through texexec --luatex normaly.
 To this end, I had to perform two tweaks:
 
 * the files mlib-run.lua, mlib-ctx.lua, and mlib-pdf.lua were *NEVER*
   loaded so I added to my conTeXt source file:
   \directlua0 { dofile
   (/usr/share/texmf/tex/context/base/mlib-ctx.lua) }
   \directlua0 { dofile
   (/usr/share/texmf/tex/context/base/mlib-run.lua) }
   \directlua0 { dofile
   (/usr/share/texmf/tex/context/base/mlib-pdf.lua) }

Wouldn't that mean that

   $ luatools mlib-pdf.lua

also fails to find the files? luatools --generate should be able to
fix that.

 * the format was generated correctly but loaded incorrectly:
   I had to add the following line:
ini_version = false,
   in the metapost.load function in the mlib-run.lua file.
 
 Now everything is OK.  The second thing (an misfortunate typo) is easy
 to fix.  

This should be fixable by simply updating your context, because that
is already fixed in newer contexts. But this could well be the cause
of Hans' problems.

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

2008-10-01 Thread Olivier
Taco,

 Wouldn't that mean that
 
$ luatools mlib-pdf.lua
 
 also fails to find the files? luatools --generate should be able to
 fix that.

Indeed luatools mlib-pdf.lua fails to find the file.
However luatools --generate does not help.
I'll investigate why.

 This should be fixable by simply updating your context, because that
 is already fixed in newer contexts. But this could well be the cause
 of Hans' problems.

I would have think so :)

Best,
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] Utopia and Fourier fonts

2008-10-01 Thread Mikael Persson
On Tue, Sep 30, 2008 at 8:43 AM, Mikael Persson [EMAIL PROTECTED] wrote:
 On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 20:35 schrieb Mikael Persson:

 On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:

 Some comments:
 * As a mathematician I was a bit tired of the computer modern
 fonts (I
 really like them, but I see them to often), so I decided to go
 with
 the utopia/fourier fonts. This forced me to work with mkii,
 since I
 did not get these fonts to work with mkiv (This is still a
 problem, I
 am not sure how to go on with it for future documents).

 looks quite nice, i also like the font size

 Thanks. What about getting these fonts to work in mkiv? Must
 there be
 some change in the fonts? Some files in ConTeXt? (they were
 perfectly
 working in older mkii)

 Fourier and Uptopia should work with mkiv. I will check why they
 are
 not
 working at present.

 Utopia use encoding-filename and MkIV needs the filename to
 load
 the fonts.

 Here is a complete typescript for utopia (without fake slanted and
 caps style).

 \starttypescript [serif] [utopia]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]   [Utopia-Regular]
   \definefontsynonym [SerifItalic] [Utopia-Italic]
   \definefontsynonym [SerifBold]   [Utopia-Bold]
   \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
 \stoptypescript

 \starttypescript [serif] [utopia]
   \definefontsynonym [Utopia-Regular][file:putr8a]
 [features=default]
   \definefontsynonym [Utopia-Italic] [file:putri8a]
 [features=default]
   \definefontsynonym [Utopia-Bold]   [file:putb8a]
 [features=default]
   \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
 [features=default]
 \stoptypescript

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

 \endinput

 Wolfgang

 Thank you Wolfgang, but this does not work for me with latest
 minimals. (I have downloaded utopia(+fourier) and they show up in
 mkii.) I put your lines in a file and add
 \setupbodyfont[utopia][ec/8r/...] %tried several and also without
 this last []
 \starttext
 test
 \stoptext

 LuaTeX just compiles and replaces these fonts by lm.

 luatools putr8a.pfb gives the resulting location of the pfb file
 so it
 actually finds the font.

 Do I misuse it?

 Try my test file (I saved the typescript above in type-utopia.tex).

 \usetypescriptfile[type-utopia]

 \usetypescript[utopia]
 \setupbodyfont[utopia]

 \starttext

 \tf ABC abc 123 \par
 \it ABC abc 123 \par
 \bf ABC abc 123 \par
 \bi ABC abc 123 \par

 \stoptext

 Wolfgang

 Mojca did send me a list with the necessary files for fourier+utopia.
 I put them in

 http://www.math.chalmers.se/~mickep/fourierandutopia.zip

 if someone wants to test. I also attach a small (I guess noncomplete)
 typescript file type-myfourier.tex (the myfourier not to clash with
 something previously defined) and a file ftest.tex which indeed gives
 the fourier fonts, but with the error as in
 http://www.math.chalmers.se/~mickep/ftest.pdf mentioned in a previous
 mail.

 I guess this is not the correct way to write typescripts for these
 fonts in mkiv, but I dont know how to :(

 Best regards, Mikael

 PS: Thank you Mojca for giving this list of files and also explain
 which of the otf/ttf/type1 files that needs typescripts.

 Math fonts are not available in 'ec' encoding, you have to use 'default'
 and why do you use the tfm files for Utopia, the afm files are enough.

 Here is my version:

 \starttypescript [serif] [utopia]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif]   [Utopia-Regular]
 \definefontsynonym [SerifItalic] [Utopia-Italic]
 \definefontsynonym [SerifBold]   [Utopia-Bold]
 \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
 \stoptypescript

 \starttypescript [serif] [utopia]
 \definefontsynonym [Utopia-Regular][file:putr8a]
 [features=default]
 \definefontsynonym [Utopia-Italic] [file:putri8a]
 [features=default]
 \definefontsynonym [Utopia-Bold]   [file:putb8a]
 [features=default]
 \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
 [features=default]
 \stoptypescript

 \starttypescript [math] [fourier] [name]
 \definefontsynonym [MathRoman] [Utopia-Regular]
 \definefontsynonym [MathItalic][futmii]
 \definefontsynonym [MathSymbol][futsy]
 \definefontsynonym [MathExtension] [fourier-mex]
 \loadmapfile[fourier.map]
 \stoptypescript

 \starttypescript [fourier,utopia]
 \definetypeface [\typescriptone] [rm] [serif] [utopia]  [default]
 \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
 [rscale=1.07]
 \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
 

[NTG-context] smallcaps surprise with latest minimal

2008-10-01 Thread Steffen Wolfrum
Hi,

I am not sure if this is also related to the latest beta problem?


But, however, with the latest minimal ...

This is LuaTeX, Version snapshot-0.30.0-2008093012, build unknown
MtxRun | current version: 2008.10.01 11:08

... this test below gives smallcaps today!!

Steffen


\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times]

\setupbodyfont[postscript,10pt]

\starttext

Test

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


[NTG-context] footnote numeration

2008-10-01 Thread Horacio Suarez

hello all:

In the following example, footnote doesn´t reset numbers by chapter. If I rem 
out all o some of the \part ´s, it wotks.

When there is a part with only one chapter, the next chapter doesn´t reset the 
footnote number. All footnote markers should be 1. What is wrong? Thankyou in 
adavance!

\setupfootnotes[way=bychapter]

\setuphead[part,chapter][page=no,placehead=yes]

\starttext

\part Primera parte

\chapter Pepe\footnote{Motoneta}

\part Segunda parte

\chapter Juan\footnote{de los palotes}

\chapter Maria\footnote{de nadie}

\part tercera parte

\chapter Julieta\footnote{demente}

\part cuarta parte

\chapter Jamon\footnote{crudo}

\stoptext




Horacio Suarez
_

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
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] A problem in fallback fonts of MkIV

2008-10-01 Thread Yanrui Li
Hi, Hans:

When I used AdobeSongStd-Light as my main font and used
LMRoman10-Regular as the fallback font, I found that the spaces
between Chinese characters and English words are perfect, for example:

\definefontfeature
  [zh][mode=node,script=hang,lang=zhs]
\definefontsynonym
  [zhserif][name:AdobeSongStd-Light][features=zh]
\definefontfallback
  [westernserif]
  [name:LMRoman10-Regular][0x-0x0400][force=yes]
\definefontsynonym
  [song][zhserif][fallbacks=westernserif]
\definefont[myfont][song at 12pt]

\starttext
\myfont
中文 English 之间的间隔\par
中文~English~之间的间隔\par
中文\;English\;之间的间隔
\stoptext

But, when I used SimSun instead of AdobeSongStd-Light, the spaces
between Chinese characters and English words became larger and ugly.
In previous example, spaces in the first two lines of text are larger
than those in the third one, even the spaces between English words
also become larger. I remerbered what you said, the fallback fonts can
be independent of the main font. However, I think the spaces between
the words are releated to the main font.

Would you give me a method for solving this problem? The pdf files
used as comparison are attached to in the mail and you can do a
comparative analysis.

Thanks.

by Li Yanrui


example.tar.gz
Description: GNU Zip compressed data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] smallcaps surprise with latest minimal

2008-10-01 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi,
 
 I am not sure if this is also related to the latest beta problem?
 
 
 But, however, with the latest minimal ...

fixed

-
   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] smallcaps surprise with latest minimal

2008-10-01 Thread Wolfgang Schuster

Am 01.10.2008 um 18:58 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 Hi,

 I am not sure if this is also related to the latest beta problem?


 But, however, with the latest minimal ...

 fixed

I get now with font fallback a error message about the undefined
command \parsefontspec in MkIV (used in font-col.tex) because
you defined it only in font-ini.mkii.

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] smallcaps surprise with latest minimal

2008-10-01 Thread Wolfgang Schuster

Am 01.10.2008 um 19:11 schrieb Wolfgang Schuster:


 Am 01.10.2008 um 18:58 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 Hi,

 I am not sure if this is also related to the latest beta problem?


 But, however, with the latest minimal ...

 fixed

 I get now with font fallback a error message about the undefined
 command \parsefontspec in MkIV (used in font-col.tex) because
 you defined it only in font-ini.mkii.

Here is a example:

\definefontfallback[whatever][Slanted][basiclatin][force=yes]

\definefontsynonym[SerifPlus][Serif][fallbacks=whatever]

\definefont[MySerif][SerifPlus at 10pt]

\starttext

\MySerif\input knuth

\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] smallcaps surprise with latest minimal

2008-10-01 Thread Wolfgang Schuster

Am 01.10.2008 um 19:11 schrieb Wolfgang Schuster:


 Am 01.10.2008 um 18:58 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 Hi,

 I am not sure if this is also related to the latest beta problem?


 But, however, with the latest minimal ...

 fixed

 I get now with font fallback a error message about the undefined
 command \parsefontspec in MkIV (used in font-col.tex) because
 you defined it only in font-ini.mkii.

Here is a example:

\definefontfallback[whatever][Slanted][basiclatin][force=yes]

\definefontsynonym[SerifPlus][Serif][fallbacks=whatever]

\definefont[MySerif][SerifPlus at 10pt]

\starttext

\MySerif\input knuth

\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] smallcaps surprise with latest minimal

2008-10-01 Thread Hans Hagen
Wolfgang Schuster wrote:
 Am 01.10.2008 um 18:58 schrieb Hans Hagen:
 
 Steffen Wolfrum wrote:
 Hi,

 I am not sure if this is also related to the latest beta problem?


 But, however, with the latest minimal ...
 fixed
 
 I get now with font fallback a error message about the undefined
 command \parsefontspec in MkIV (used in font-col.tex) because
 you defined it only in font-ini.mkii.

yeah, i ran into that too; solved already

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

2008-10-01 Thread Mojca Miklavec
On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote:
 Mojca,
 I saw your note on blog.miktex.org:
 If you still want to run ConTeXt on MikTeX while it has been removed, you
 may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7\miktex\bin
 with the content:
 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*

 However,

 $ texmfstart texexec --help

 Did not work

Does removing the quotation marks around argument help?

@echo off
ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*

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] ansi codes

2008-10-01 Thread Mojca Miklavec
On Wed, Oct 1, 2008 at 2:57 PM, Alan Stone wrote:

 Is there a (preferably free) Linux or Windows font tool out there which
 allows to print a font's characters and corresponding character codes ?

Geeks do it with LuaTeX :)

I'm not sure if this still works since I have no luatex here, but in
theory you can play with something like this:

% do whatever you want with it
\def\mychar#1#2{#1: #2\crlf}

\starttext
\ctxlua{
fontname = 'texgyrepagella-regular.otf'
tfmdata = fonts.tfm.read_and_define(file: .. fontname, 655360)

w = tfmdata.characters
for i=0,10 do
if w[i] then
tex.sprint(\\strut\\mychar{ .. i, }{\\type{, 
w[i].name, }})
end
end
}
\stoptext

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

2008-10-01 Thread David Arnold
I'll check when I get to school.

D.

On Oct 1, 2008, at 10:45 AM, Mojca Miklavec wrote:

 On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote:
 Mojca,
 I saw your note on blog.miktex.org:
 If you still want to run ConTeXt on MikTeX while it has been  
 removed, you
 may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 
 \miktex\bin
 with the content:
 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby 
 \texmfstart.rb %*

 However,

 $ texmfstart texexec --help

 Did not work

 Does removing the quotation marks around argument help?

 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby 
 \texmfstart.rb %*

 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
 __ 
 _

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

2008-10-01 Thread Mojca Miklavec
I got ConTeXt working on this machine, but mptopdf indeed seems to be broken.

c:\Documents and Settings\Uporabnik\My Documents\testmp example
(example.mpCreating example.mpx...
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(C:/DOCUME~1/UPORAB~1/LOCALS~1/Temp/mik55214/mpx314.tex
LaTeX2e 2005/12/01
Babel v3.8l and hyphenation patterns for english, dumylang, nohyphenation, sl
ovenian, loaded.
(C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo))
(C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty
(C:\Program Files\MiKTeX 2.7\tex\latex\base\latin9.def))
(C:\Program Files\MiKTeX 2.7\tex\latex\base\fontenc.sty
(C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.def))
(C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty
(C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty))
(C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty)
(C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty))
(C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty
(C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty))
No file mpx314.aux.
(C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd)
(C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd) [1] [1] [1] [1]
[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] (mpx314.aux) )
Output written on mpx314.dvi (19 pages, 2344 bytes).
Transcript written on mpx314.log.
Done.
 [1] )
1 output file written: example.1
Transcript written on example.log.

c:\Documents and Settings\Uporabnik\My Documents\testmptopdf example.1
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(example.1 [MP to PDF]
! I can't find file `0'.
to be read again
   \relax
\processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
  }\ifdim \wd 01in \message...
l.19  0
0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop
Please type another input file name:
! Emergency stop.
to be read again
   \relax
\processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
  }\ifdim \wd 01in \message...
l.19  0
0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop
!  == Fatal error occurred, no output PDF file produced!
Transcript written on example.log.

c:\Documents and Settings\Uporabnik\My Documents\testmptopdf example.mp
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(example.mp [MP to PDF]
! I can't find file `verbatimtex'.
to be read again
   \relax
\processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
  }\ifdim \wd 01in \message...
l.2 verbatimtex

Please type another input file name: ^\
! Emergency stop.
to be read again
   \relax
\processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
  }\ifdim \wd 01in \message...
l.2 verbatimtex

!  == Fatal error occurred, no output PDF file produced!
Transcript written on example.log.


(I did not yet move files around, but will try.)

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

2008-10-01 Thread David Arnold
Mojca,

Thanks.

On:

http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx

At the bottom of the list, these seem to be the errors that another  
user reports.

Please keep me informed. I need to have mptopdf working for my  
students in the Miktex tree.

D.

On Oct 1, 2008, at 11:58 AM, Mojca Miklavec wrote:

 I got ConTeXt working on this machine, but mptopdf indeed seems to  
 be broken.

 c:\Documents and Settings\Uporabnik\My Documents\testmp example
 (example.mpCreating example.mpx...
 This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
 entering extended mode
 (C:/DOCUME~1/UPORAB~1/LOCALS~1/Temp/mik55214/mpx314.tex
 LaTeX2e 2005/12/01
 Babel v3.8l and hyphenation patterns for english, dumylang,  
 nohyphenation, sl
 ovenian, loaded.
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls
 Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo))
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\latin9.def))
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\fontenc.sty
 (C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.def))
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty
 For additional information on amsmath, use the `?' option.
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty))
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty)
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty))
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty))
 No file mpx314.aux.
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd)
 (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd) [1] [1]  
 [1] [1]
 [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]  
 (mpx314.aux) )
 Output written on mpx314.dvi (19 pages, 2344 bytes).
 Transcript written on mpx314.log.
 Done.
  [1] )
 1 output file written: example.1
 Transcript written on example.log.

 c:\Documents and Settings\Uporabnik\My Documents\testmptopdf  
 example.1
 This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
 entering extended mode
 (example.1 [MP to PDF]
 ! I can't find file `0'.
 to be read again
\relax
 \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
   }\ifdim \wd 01in  
 \message...
 l.19  0
 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform  
 setlinewidth pop
 Please type another input file name:
 ! Emergency stop.
 to be read again
\relax
 \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
   }\ifdim \wd 01in  
 \message...
 l.19  0
 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform  
 setlinewidth pop
 !  == Fatal error occurred, no output PDF file produced!
 Transcript written on example.log.

 c:\Documents and Settings\Uporabnik\My Documents\testmptopdf  
 example.mp
 This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
 entering extended mode
 (example.mp [MP to PDF]
 ! I can't find file `verbatimtex'.
 to be read again
\relax
 \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
   }\ifdim \wd 01in  
 \message...
 l.2 verbatimtex

 Please type another input file name: ^\
 ! Emergency stop.
 to be read again
\relax
 \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1}
   }\ifdim \wd 01in  
 \message...
 l.2 verbatimtex

 !  == Fatal error occurred, no output PDF file produced!
 Transcript written on example.log.


 (I did not yet move files around, but will try.)

 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
 __ 
 _

___
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] Miktex 2.7 --- Remove quotes from %*

2008-10-01 Thread dwarnold45
Mojca,

OK. Removed quotes, so texmfstart.bat now reads:

@echo off
ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*

This now works:

$ C:\temptexmfstart texexec --help
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

TeXExec | --checkcheck versions
TeXExec | --figures  generate overview of figures
TeXExec | --listing  list of file content
TeXExec | --make make formats
TeXExec | --modules  generate module documentation
TeXExec | --mpgraphicprocess mp file to stand-alone graphics
TeXExec | --mpstatic process mp/ctx file to stand-alone graphics
TeXExec | --mptexprocess mp file
TeXExec | --mpxtex   process mpx file
TeXExec | --pdfarrange   impose pages (booklets)
TeXExec | --pdfcombine   combine multiple pages
TeXExec | --pdfcopy  copy pages from file(s)
TeXExec | --pdfselectselect pages from file(s)
TeXExec | --pdfsplit split file in pages
TeXExec | --pdftrim  trim pages from file(s)
TeXExec | --process  process file
TeXExec |
TeXExec | --help --all   shows all switches

However, I cannot make the formats. Going to Miktex 2.7-Settings-Formats, 
attempting to build cont-en results in, even though I've copied cont-en.ini 
into the directory expected by Miktex 2.7.

Creating the cont-en.pdftex format file...
Running pdftex...
This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

entering extended mode

(C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

! Emergency stop.

* cont-en.ini

   

No pages of output.

Transcript written on cont-en.log.

makefmt: pdftex failed on cont-en.ini.
initexmf.EXE: The operation failed for some reason.

So, here is where I stand.

D.
___
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] Miktex 2.7 --- Remove quotes from %*

2008-10-01 Thread Wolfgang Schuster

Am 01.10.2008 um 21:42 schrieb [EMAIL PROTECTED]:

 Mojca,

 OK. Removed quotes, so texmfstart.bat now reads:

 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby 
 \texmfstart.rb %*

 This now works:

 $ C:\temptexmfstart texexec --help
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 TeXExec | --checkcheck versions
 TeXExec | --figures  generate overview of figures
 TeXExec | --listing  list of file content
 TeXExec | --make make formats
 TeXExec | --modules  generate module documentation
 TeXExec | --mpgraphicprocess mp file to stand-alone graphics
 TeXExec | --mpstatic process mp/ctx file to stand-alone graphics
 TeXExec | --mptexprocess mp file
 TeXExec | --mpxtex   process mpx file
 TeXExec | --pdfarrange   impose pages (booklets)
 TeXExec | --pdfcombine   combine multiple pages
 TeXExec | --pdfcopy  copy pages from file(s)
 TeXExec | --pdfselectselect pages from file(s)
 TeXExec | --pdfsplit split file in pages
 TeXExec | --pdftrim  trim pages from file(s)
 TeXExec | --process  process file
 TeXExec |
 TeXExec | --help --all   shows all switches

 However, I cannot make the formats. Going to Miktex 2.7-Settings- 
 Formats, attempting to build cont-en results in, even though I've  
 copied cont-en.ini into the directory expected by Miktex 2.7.

 Creating the cont-en.pdftex format file...
 Running pdftex...
 This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

 entering extended mode

 (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

 ! Emergency stop.

 * cont-en.ini



 No pages of output.

 Transcript written on cont-en.log.

 makefmt: pdftex failed on cont-en.ini.
 initexmf.EXE: The operation failed for some reason.

 So, here is where I stand.

Can't you just use the standaline version from Hans, it includes Perl
and Scite too.

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] ansi codes

2008-10-01 Thread Hans Hagen
Mojca Miklavec wrote:
 On Wed, Oct 1, 2008 at 2:57 PM, Alan Stone wrote:
 Is there a (preferably free) Linux or Windows font tool out there which
 allows to print a font's characters and corresponding character codes ?
 
 Geeks do it with LuaTeX :)
 
 I'm not sure if this still works since I have no luatex here, but in
 theory you can play with something like this:
 
 % do whatever you want with it
 \def\mychar#1#2{#1: #2\crlf}
 
 \starttext
 \ctxlua{
   fontname = 'texgyrepagella-regular.otf'
   tfmdata = fonts.tfm.read_and_define(file: .. fontname, 655360)
 
   w = tfmdata.characters
   for i=0,10 do
   if w[i] then
   tex.sprint(\\strut\\mychar{ .. i, }{\\type{, 
 w[i].name, }})
   end
   end
 }
 \stoptext

lesser geeks loom in s-fnt-10.tex -)

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] Miktex 2.7 --- Remove quotes from %*

2008-10-01 Thread Mojca Miklavec
On Wed, Oct 1, 2008 at 9:42 PM,  [EMAIL PROTECTED] wrote:
 Mojca,

 OK. Removed quotes, so texmfstart.bat now reads:

 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*

 This now works:

 $ C:\temptexmfstart texexec --help
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 However, I cannot make the formats. Going to Miktex 2.7-Settings-Formats, 
 attempting to build cont-en results in, even though I've copied cont-en.ini 
 into the directory expected by Miktex 2.7.

 Creating the cont-en.pdftex format file...
 Running pdftex...
 This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

 entering extended mode

 (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

 ! Emergency stop.

 * cont-en.ini



 No pages of output.

 Transcript written on cont-en.log.

 makefmt: pdftex failed on cont-en.ini.
 initexmf.EXE: The operation failed for some reason.

Can you please check/compare the values with the sones below? I did
not put any ini file anywhere, though I had some issues with formats
(restarting the program helped).

http://wiki.contextgarden.net/MikTeX#Make_formats

Make formats

* Go to Start Menu - MikTeX 2.7 - Settings - Formats - New ...

Format key: ConTeXt (could be anything)
Format name:cont-en (could be anything)
Compiler:   pdftex
Input file name:cont-en.tex
Description:ConTeXt format  (could be anything)
(uncheck)   Exclude this format ... 

* Choose the newly created format and Build it.
* For mptopdf uncheck the box for excluding as well.

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

2008-10-01 Thread Mojca Miklavec
On Wed, Oct 1, 2008 at 9:06 PM, David Arnold wrote:
 Mojca,

 Thanks.

 On:

 http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx

 At the bottom of the list, these seem to be the errors that another
 user reports.

 Please keep me informed. I need to have mptopdf working for my
 students in the Miktex tree.

I'm just as lost as others are. I have no idea what's wrong. I suspect
it's about spaces in filenames, but need to try it out.

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

2008-10-01 Thread George N. White III
On Wed, Oct 1, 2008 at 5:57 PM, Mojca Miklavec
[EMAIL PROTECTED] wrote:

 On Wed, Oct 1, 2008 at 9:06 PM, David Arnold wrote:
 Mojca,

 Thanks.

 On:

 http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx

 At the bottom of the list, these seem to be the errors that another
 user reports.

 Please keep me informed. I need to have mptopdf working for my
 students in the Miktex tree.

 I'm just as lost as others are. I have no idea what's wrong. I suspect
 it's about spaces in filenames, but need to try it out.

Since mptopdf works for me, it isn't about spaces.   It looks like the
mptopdf program could be better replaced by another simple script:

Try:

C:\Testingpdftex mptopdf \processMPfile{example.1}
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
[MP to PDF] (example.1{C:/windows/profiles/gwhite/Local Settings/Application Da
ta/MiKTeX/2.7/pdftex/config/pdftex.map}) [1] C:\windows\profiles\gwhite\Local
Settings\Application Data\MiKTeX\2.7\fonts\pk\ljfour\jknappen\ec\dpi600\ecrm100
0.pkC:/Program Files/MiKTeX 2.7/fonts/type1/bluesky/cm/cmex10.pfbC:/Program
 Files/MiKTeX 2.7/fonts/type1/bluesky/cm/cmmi10.pfbC:/Program Files/MiKTeX 2.
7/fonts/type1/bluesky/cm/cmmi7.pfbC:/Program Files/MiKTeX 2.7/fonts/type1/blu
esky/cm/cmr10.pfbC:/Program Files/MiKTeX 2.7/fonts/type1/bluesky/cm/cmr7.pfb
C:/Program Files/MiKTeX 2.7/fonts/type1/bluesky/cm/cmsy10.pfbC:/Program File
s/MiKTeX 2.7/fonts/type1/bluesky/cm/cmsy7.pfbC:/Program Files/MiKTeX 2.7/font
s/type1/bluesky/ams/msbm10.pfb
Output written on example.pdf (1 page, 32785 bytes).
Transcript written on example.log.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Minimals and latest luatex on linux-64

2008-10-01 Thread Aditya Mahajan
Hi,

The minimals still have LuaTeX, Version snapshot-0.29.0-2008072108. With 
the latest minimals, I get the following error

! LuaTeX error 
...tyam/tex/texmf-context/tex/context/base/font-def.lua:684: attempt to 
call field 'definefont' (a nil value)
stack traceback:
...tyam/tex/texmf-context/tex/context/base/font-def.lua:684: in 
function 'command'

which I think is due to the old version of luatex.

Mojca, do you need someone to supply the latest 64bit linux binaries?

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] Minimals and latest luatex on linux-64

2008-10-01 Thread Aditya Mahajan
Actually luatex is broken on the garden also. A simple test file gives

! LuaTeX error 
.../context/current/texmf/tex/context/base/font-def.lua:684: attempt to 
call field 'definefont' (a nil value)
stack traceback:
.../context/current/texmf/tex/context/base/font-def.lua:684: in 
function 'command'
main ctx instance:1: in main chunk.
\parsefontspec ...atures , \@@fontfallbacks  )}
   \expandafter \let 
\expanda...
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let 
\localrelativefontsiz...
\fontstrategy ...ame #1\csname #2#3#4#5\endcsname
   \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
   \fi \iftryingfont 
\fontstr...
\synchronizefont ...strategy \the \fontstrategies
   \relax \fi 
\ifskipfontchar...
argument \getvalue [EMAIL PROTECTED]@ \fontstyle }
\edef \fontstyle {\fontstyle 
}\if...
...

Aditya


On Wed, 1 Oct 2008, Aditya Mahajan wrote:

 Hi,

 The minimals still have LuaTeX, Version snapshot-0.29.0-2008072108. With
 the latest minimals, I get the following error

 ! LuaTeX error
 ...tyam/tex/texmf-context/tex/context/base/font-def.lua:684: attempt to
 call field 'definefont' (a nil value)
 stack traceback:
   ...tyam/tex/texmf-context/tex/context/base/font-def.lua:684: in
 function 'command'

 which I think is due to the old version of luatex.

 Mojca, do you need someone to supply the latest 64bit linux binaries?

 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
 ___



___
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] Miktex 2.7 Blues

2008-10-01 Thread dwarnold45
Mojca,

When I try to build cont-en, using the settings you proposed from Context 
Garden, I get:

Creating the cont-en.pdftex format file...
Running pdftex...
This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

entering extended mode

(C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

! Emergency stop.

* cont-en.ini

   

No pages of output.

Transcript written on cont-en.log.

makefmt: pdftex failed on cont-en.ini.
initexmf.EXE: The operation failed for some reason.

D.
___
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] Miktex 2.7 --- Remove quotes from %*

2008-10-01 Thread David Arnold
Mojca,

Ouch! Ignore my last email.

You had:

 Input file name:  cont-en.tex

But I had:

 Input file name:  cont-en.ini

I'll have to pay more attention. I'll try this again tomorrow.

D.


On Oct 1, 2008, at 1:14 PM, Mojca Miklavec wrote:

 On Wed, Oct 1, 2008 at 9:42 PM,  [EMAIL PROTECTED] wrote:
 Mojca,

 OK. Removed quotes, so texmfstart.bat now reads:

 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby 
 \texmfstart.rb %*

 This now works:

 $ C:\temptexmfstart texexec --help
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 However, I cannot make the formats. Going to Miktex 2.7-Settings- 
 Formats, attempting to build cont-en results in, even though I've  
 copied cont-en.ini into the directory expected by Miktex 2.7.

 Creating the cont-en.pdftex format file...
 Running pdftex...
 This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

 entering extended mode

 (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

 ! Emergency stop.

 * cont-en.ini



 No pages of output.

 Transcript written on cont-en.log.

 makefmt: pdftex failed on cont-en.ini.
 initexmf.EXE: The operation failed for some reason.

 Can you please check/compare the values with the sones below? I did
 not put any ini file anywhere, though I had some issues with formats
 (restarting the program helped).

 http://wiki.contextgarden.net/MikTeX#Make_formats

 Make formats

 * Go to Start Menu - MikTeX 2.7 - Settings - Formats - New ...

 Format key:   ConTeXt (could be anything)
 Format name:  cont-en (could be anything)
 Compiler: pdftex
 Input file name:  cont-en.tex
 Description:  ConTeXt format  (could be anything)
 (uncheck) Exclude this format ... 

 * Choose the newly created format and Build it.
 * For mptopdf uncheck the box for excluding as well.

 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
 __ 
 _

___
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] Miktex 2.7 --- Remove quotes from %*

2008-10-01 Thread David Arnold
Wolfgang,

Thanks. I am aware of this option. But my students are using Latex,  
so we need Miktex. What I need is to get mptopdf running in Miktex.

D.

On Oct 1, 2008, at 12:53 PM, Wolfgang Schuster wrote:


 Am 01.10.2008 um 21:42 schrieb [EMAIL PROTECTED]:

 Mojca,

 OK. Removed quotes, so texmfstart.bat now reads:

 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby
 \texmfstart.rb %*

 This now works:

 $ C:\temptexmfstart texexec --help
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 TeXExec | --checkcheck versions
 TeXExec | --figures  generate overview of figures
 TeXExec | --listing  list of file content
 TeXExec | --make make formats
 TeXExec | --modules  generate module documentation
 TeXExec | --mpgraphicprocess mp file to stand-alone graphics
 TeXExec | --mpstatic process mp/ctx file to stand-alone graphics
 TeXExec | --mptexprocess mp file
 TeXExec | --mpxtex   process mpx file
 TeXExec | --pdfarrange   impose pages (booklets)
 TeXExec | --pdfcombine   combine multiple pages
 TeXExec | --pdfcopy  copy pages from file(s)
 TeXExec | --pdfselectselect pages from file(s)
 TeXExec | --pdfsplit split file in pages
 TeXExec | --pdftrim  trim pages from file(s)
 TeXExec | --process  process file
 TeXExec |
 TeXExec | --help --all   shows all switches

 However, I cannot make the formats. Going to Miktex 2.7-Settings-
 Formats, attempting to build cont-en results in, even though I've
 copied cont-en.ini into the directory expected by Miktex 2.7.

 Creating the cont-en.pdftex format file...
 Running pdftex...
 This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX)

 entering extended mode

 (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini)

 ! Emergency stop.

 * cont-en.ini



 No pages of output.

 Transcript written on cont-en.log.

 makefmt: pdftex failed on cont-en.ini.
 initexmf.EXE: The operation failed for some reason.

 So, here is where I stand.

 Can't you just use the standaline version from Hans, it includes Perl
 and Scite too.

 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
 __ 
 _

___
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] TeX-MP interaction in mkii and mkiv

2008-10-01 Thread Aditya Mahajan

Hi,

I cannot understand why mkii and mkiv give different output in the 
attached example modified from Thomas's presentation module. The output 
of MKII is correct. In MKIV, the first picture (Left) is not correct, and 
I cannot understand why is this the case.


I am using the latest minimals and the latest svn luatex.

Thanks,
Aditya
\setupcolors[state=start]

\beginOLDTEX
\loadmapfile[qhv-ec.map]

\definefontsynonym  [BigNumberFont] [ec-qhvb] 
\endOLDTEX

\beginLUATEX
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
\endLUATEX

\definefont [NumberFont][BigNumberFont at 30pt]

\definetextext[taspresent:sometxt:left] {\TaspresentSometxtLeft}
\definetextext[taspresent:sometxt:right]{\TaspresentSometxtRight}

\unexpanded\def\TaspresentSometxtLeft#1%
  {\getvalue{taspresent:framed:small}
   {\color[orange]
   {\NumberFont #1}}}

\unexpanded\def\TaspresentSometxtRight#1%
  {\getvalue{taspresent:framed:small}
   {\color[blue]
   {\NumberFont #1}}}

\startuseMPgraphic{test}
StartPage ;
picture Left, Right ;

Left  := \sometxt[taspresent:sometxt:left] {\folio} ysized 6cm; 
Right := \sometxt[taspresent:sometxt:right]{\folio} ysized 6cm; 

clip Left  to boundingbox Left  xyscaled(0,3cm) ;

if PageNumber  10:
	clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/2,0) ;
	draw Left  shifted (14.26cm,-.5cm) ;
	draw Right shifted (14.26cm,-.5cm) ;
else :
	clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/1.5,0) ;
	draw Left  shifted (12.59cm,-.5cm) ; 
	draw Right shifted (12.59cm,-.5cm) ;
fi;
StopPage ;
\stopuseMPgraphic

\defineoverlay[test][\useMPgraphic{test}]

\setupbackgrounds[page]
 [background=test]

\starttext

\dorecurse{10}{
\chapter{test}
\input knuth}

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


[NTG-context] Best approach for project with three-part headings and table of contents references?

2008-10-01 Thread Adrian Drury
I am trying to figure out how best to use ConTeXt for a project. Essentially
I want to format postings on a message board for printing in a book, and
provide multiple tables of contents for the postings (more information
further down, and questions at the bottom). I'm sure that everything I want
to do can be done with ConTeXt, but I'm a ConTeXt beginner, and it looks as
if there's a lot of complexity to do this.

Each post has a title, an author, a date, and the text of the post. I'd like
to arrange the information roughly like this:

   Title of the post
Author author  - Date date
--
Text of the post... text text text
text text text.

Then I'd like to create a table of contents that lists posting titles by
date, like this:
January 1, 2008
 Title title title  10
 Another title .. 11
January 2, 2008
 Yet another title . 12

Putting the author in there also might be nice, like this:
January 1, 2008
 Title title title (John Doe).. 10
 Another title (Jane Doe)... 11
January 2, 2008
 Yet another title (John Doe). 12

I'd also like to have a table of contents that lists posting titles by
author, like this
Jane Doe
 A title . 14
 Another title .45
John Doe
 Title title title  35
 Another title .40

My questions:

1) How complex is this (for a beginner) to do in ConTeXt? I am very
comfortable with Perl, so I thought I could write a Perl script to parse the
posts and generate such tables of contents, with lots of \reference, \at,
and \about commands. If this needs significant complexity to solve, I would
prefer to handle the complexity with Perl, and keep the ConTeXt simple, so I
can understand it.

2) Can I (ab)use the existing heading commands (\title, \subject,
\setuphead, etc) to arrange and reference the title, author, and date? If
so, can anyone provide a hint of how to do the headings and referencing?
Will the existing heading commands let me reference the title, author, and
date values for use in my table of contents? It looks as if I would have
to create my own command that formatted the heading information how I wanted
it, and set up the three references. I looked at Alternative mechanisms in
the cont-eni.pdf, but that didn't seem to describe this type of flexibility.

3) If I can use the existing heading commands (question 2), can I also use
the existing index and/or table of contents commands (\setuplist,
\placecontent, etc)? And like  question 2, can anyone provide a hint of how
to do it? It looked to me as if a lot of custom ConTeXt code would be
necessary, and that I would have to build my own table of contents entry by
entry.

Thank you very much,
Adrian
___
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] Minimals and latest luatex on linux-64

2008-10-01 Thread Peter Münster
On Wed, Oct 01 2008, Aditya Mahajan wrote:

 The minimals still have LuaTeX, Version snapshot-0.29.0-2008072108.

Excuse me, I did not see that 'svn ci -F $BUILDDIR/VERSIONS.tmp' had
failed 2 days ago (network down), when I ran the build-binaries.sh
script...

Now luatex is updated to 0.30.0.

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
___