Re: [NTG-context] mptopdf (broken again)
Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error with two other betas I've got in my computer. I guess there is something broken inside the mptopdf since I can compile the charts themselves with texexec --mptex chart08.mp. And when I include it into a TeX file with \externalfigure, the pdf file created is all right. Can you tell me how to solve it? I will really need mptopdf in two or three weeks painfully. Many thanks. Best wishes, Michal 2011/1/12 Hans Hagen pra...@wxs.nl On 10-1-2011 12:37, Mojca Miklavec wrote: Hans Taco, A tiny request: is there any chance to make the mptopdf script point to --script mptopdf instead of --script base? i see, the sh script is wrong And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: it was wrong in the context zip; for windows one can just copy the stub mtxrun.exe to mptopdf.exe but the same is not true for the shell script that needs to be: #!/bin/sh mtxrun --script mptopdf $@ I'm not sure, but a generic (copyable) script could be: #!/bin/sh mtxrun --script $0 $@ (no shell expert) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička prgo...@gmail.com: Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error with two other betas I've got in my computer. I guess there is something broken inside the mptopdf since I can compile the charts themselves with texexec --mptex chart08.mp. And when I include it into a TeX file with \externalfigure, the pdf file created is all right. Can you tell me how to solve it? I will really need mptopdf in two or three weeks painfully. Many thanks. Best wishes, Michal Can you show a minimal example ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička prgo...@gmail.com: Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! I have tried to compile the following example: beginfig(1); draw btex $x+1=2$ etex; endfig; end. It works fine with TeX Live 2010/TLContrib, but fails in minimals (nearly-latest version of ConTeXt). To me this seems as if mptopdf was trying to run plain pdfTeX instead of ConTeXt [or I have no idea what]. It then only reads pdftex.map which certainly lacks the information about lmmi font. But I wonder why it only reads from pdftex.map ... I could fix pdftex.map, but I would like to figure out what exactly is going on ... 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 18:12, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: 2011/1/12 Michal Kvasnička prgo...@gmail.com: Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! I have tried to compile the following example: beginfig(1); draw btex $x+1=2$ etex; endfig; end. It works fine with TeX Live 2010/TLContrib, but fails in minimals (nearly-latest version of ConTeXt). To me this seems as if mptopdf was trying to run plain pdfTeX instead of ConTeXt [or I have no idea what]. It then only reads pdftex.map which certainly lacks the information about lmmi font. But I wonder why it only reads from pdftex.map ... I could fix pdftex.map, but I would like to figure out what exactly is going on ... Just some more information ... Looking into the filename.1 makes me very suspicious: %!PS %%BoundingBox: 0 0 0 0 %%HiResBoundingBox: 0 0 0 0 %%Creator: MetaPost 1.503 %%CreationDate: 2011.01.12:1822 %%Pages: 1 %*Font: ec-lmr12 11.95517 11.95517 1c:800c040106d42298 %*Font: lmmi12 11.95517 11.95517 78:8 %%BeginProlog %%EndProlog %%Page: 1 1 0 0 0 setrgbcolor 208.537 -9.2369 moveto (1) ec-lmr12 11.95517 fshow -1.133 -67.5053 moveto (b) ec-lmr12 11.95517 fshow 5.6958 -67.5053 moveto (egin\034g\(1\);) ec-lmr12 11.95517 fshow 60.9747 -67.5053 moveto (dra) ec-lmr12 11.95517 fshow 77.5584 -67.5053 moveto (w) ec-lmr12 11.95517 fshow 89.9146 -67.5053 moveto (btex) ec-lmr12 11.95517 fshow 116.2533 -67.5053 moveto (x) lmmi12 11.95517 fshow showpage %%EOF What exactly does begindraw do in EPS file? Adding ec-lmr12 and lmmi12 into pdftex.map got rid of the error, but didn't generate any valid output (it created an empty pdf). What mptopdf run on filename.1 does is basically pdftex -fmt=mptopdf -progname=context \\relax mathmp.1 (maybe I'm wrong; but it behaved exactly like that), but I didn't manage to get any sensible output out of that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying MPtoPDF!
Vladimir Lomov wrote: ** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]: Hi, [...] This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. This: (TeX Live 2010) contradicts with that: While trying to get some MetaPost plots converted to PDF, with the latest ConTeXt minimals installation (MkIV) on my Linux box, things happen which I don't understand, sorry! [...] Do I need to install other tools to get it working? I'm not sure. But before you have to be sure that you actually use context minimals. Suppose, that you have TeX Live 2010 installed here: /usr/local/texlive/2010 and context minimals installed here: /usr/local/opt/context Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and do $ . /usr/local/opt/context/tex/setuptex and _after_ that run $ mtxrun ... If you still get an error something is really broken. --- WBR, Vladimir Lomov Hi, No I haven't installed TeXLive2010, only ConTeXt minimals! Regards, Gerard Verhaag ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying MPtoPDF!
** Verhaag, G.C.H.M. [2011-01-10 10:35:32 +0100]: Vladimir Lomov wrote: ** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]: Hi, [...] This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. This: (TeX Live 2010) contradicts with that: While trying to get some MetaPost plots converted to PDF, with the latest ConTeXt minimals installation (MkIV) on my Linux box, things happen which I don't understand, sorry! [...] Do I need to install other tools to get it working? I'm not sure. But before you have to be sure that you actually use context minimals. Suppose, that you have TeX Live 2010 installed here: /usr/local/texlive/2010 and context minimals installed here: /usr/local/opt/context Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and do $ . /usr/local/opt/context/tex/setuptex and _after_ that run $ mtxrun ... If you still get an error something is really broken. Hi, No I haven't installed TeXLive2010, only ConTeXt minimals! Sorry, I wasn't aware that pdftex from context minimal pretends to be from TL 2010 (or this is intentionaly?). I tried $ mptopdf graph1_mp.mp and saw only file name echoed. The 'mptopdf' script contains mtxrun --script base $@ Sorry for noise. --- WBR, Vladimir Lomov -- The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence. -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying MPtoPDF!
Dear Vladimir, after processing your file graph1_mp.mp by typing $mpost graph1_mp.mp (or: mp graph1_mp.mp) you should get a file graph1_mp.1 (if the figure is numbered by beginfig(1) ). Then you can convert this file by typing $mptopdf graph1_mp.1 Greetings Albrecht On Mon, 10 Jan 2011, Vladimir Lomov wrote: ** Verhaag, G.C.H.M. [2011-01-10 10:35:32 +0100]: Vladimir Lomov wrote: ** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]: Hi, [...] This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. This: (TeX Live 2010) contradicts with that: While trying to get some MetaPost plots converted to PDF, with the latest ConTeXt minimals installation (MkIV) on my Linux box, things happen which I don't understand, sorry! [...] Do I need to install other tools to get it working? I'm not sure. But before you have to be sure that you actually use context minimals. Suppose, that you have TeX Live 2010 installed here: /usr/local/texlive/2010 and context minimals installed here: /usr/local/opt/context Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and do $ . /usr/local/opt/context/tex/setuptex and _after_ that run $ mtxrun ... If you still get an error something is really broken. Hi, No I haven't installed TeXLive2010, only ConTeXt minimals! Sorry, I wasn't aware that pdftex from context minimal pretends to be from TL 2010 (or this is intentionaly?). I tried $ mptopdf graph1_mp.mp and saw only file name echoed. The 'mptopdf' script contains mtxrun --script base $@ Sorry for noise. --- WBR, Vladimir Lomov -- The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence. -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying MPtoPDF!
On Mon, Jan 10, 2011 at 13:40, Vladimir Lomov wrote: Sorry, I wasn't aware that pdftex from context minimal pretends to be from TL 2010 (or this is intentionaly?). We could have modified the string, but we don't. We simply take what's in pdfTeX source repository. (Now we don't even do that any more.) Most binaries for ConTeXt minimals siply come from TeX Live 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?
On Sun, Jan 9, 2011 at 22:50, jeroen.mus...@hotmail.com wrote: In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. I get the following error and will try to investigate further: This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) MPtoPDF 1.4.0 : error while processing tex file Mojca PS: I have to admit that I have no idea when I last compiled the windows binary for gnuplot. I would need to learn again how to do it. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?
On Sun, 9 Jan 2011, Mojca Miklavec wrote: On Sun, Jan 9, 2011 at 22:50, jeroen.mus...@hotmail.com wrote: In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. I get the following error and will try to investigate further: This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) MPtoPDF 1.4.0 : error while processing tex file texexec --make --all should regenerate mptopdf format. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Trying MPtoPDF!
Hi, While trying to get some MetaPost plots converted to PDF, with the latest ConTeXt minimals installation (MkIV) on my Linux box, things happen which I don't understand, sorry! First I run the command: mtxrun --script which yields: MTXrun | TDS Runner Tool 1.26 MTXrun | MTXrun | no script name given, known scripts: MTXrun | MTXrun | babel 1.20 Babel Input To UTF Conversion MTXrun | base 1.35 ConTeXt TDS Management Tool MTXrun | cache 0.10 ConTeXt MetaTeX Cache Management MTXrun | chars 0.10 MkII Character Table Generators MTXrun | check 0.10 Basic ConTeXt Syntax Checking MTXrun | context 0.51 ConTeXt Process Management MTXrun | convert 0.10 ConTeXT Graphic Conversion Helpers MTXrun | fonts 0.21 ConTeXt Font Database Management MTXrun | grep 0.10 Simple Grepper MTXrun | interface 0.11 ConTeXt Interface Related Goodies MTXrun | metatex 0.10 MetaTeX Process Management MTXrun | modules 1.00 ConTeXt Module Documentation Generators MTXrun | mptopdf 0.51 MetaPost to PDF Converter [more is output but NOT listed here!] When I run mtxrun --script mptopdf tobeconvertedplot.1 I get the following output: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. kpathsea: Running mktexfmt mptopdf.fmt mktexfmt: No such file or directory I can't find the format file `mptopdf.fmt'! MPtoPDF 1.4.0 : error while processing tex file By the way I've NO TeXLive installed! Why do the MTtoPDF versions (1.4 or 0.5!) not agree, and why does it not work? Do I need to install other tools to get it working? Regards, Gerard Verhaag ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying MPtoPDF!
** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]: Hi, [...] This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. This: (TeX Live 2010) contradicts with that: While trying to get some MetaPost plots converted to PDF, with the latest ConTeXt minimals installation (MkIV) on my Linux box, things happen which I don't understand, sorry! [...] Do I need to install other tools to get it working? I'm not sure. But before you have to be sure that you actually use context minimals. Suppose, that you have TeX Live 2010 installed here: /usr/local/texlive/2010 and context minimals installed here: /usr/local/opt/context Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and do $ . /usr/local/opt/context/tex/setuptex and _after_ that run $ mtxrun ... If you still get an error something is really broken. --- WBR, Vladimir Lomov -- It is enough to make one sympathize with a tyrant for the determination of his courtiers to deceive him for their own personal ends... -- Russell Baker and Charles Peters ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MPtoPDF problem
Hallo. Few days ago I migrated to Ubuntu 10.10 (Linux) and last stable ConTeXt minimals (2010.07.30 11:35 MKII) (from very old ConTeXt version). Now I found I can't run mptopdf: Command mptopdf chart.1 just prints chart.1 and an empty line Command mtxrun --script mptopdf chart.1 fails with these complaints: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file And command mtxrun --script mptopdf chart.mp starts to compile something, than reports that it cannot write the log file and asks for another file name, and eventually fails with the same complaints as above. Can you possibly tell me what to do? Many thanks. Best wishes, Michal Kvasnicka ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MPtoPDF problem
On 01/06/2011 03:59 PM, Michal Kvasnička wrote: Hallo. Few days ago I migrated to Ubuntu 10.10 (Linux) and last stable ConTeXt minimals (2010.07.30 11:35 MKII) (from very old ConTeXt version). Now I found I can't run mptopdf: Command mptopdf chart.1 just prints chart.1 and an empty line Not sure what goes wrong here. Command mtxrun --script mptopdf chart.1 fails with these complaints: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! This probably means that you do not have the latin modern fonts installed. Check to make sure that you have all the texlive packages in ubuntu installed, the dependencies are not always perfect. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Question: [mpost .. texnum.mpfatal: Command failed]
Hello, I am using the default implementation of TeXLive 2010 which provides MetaPost 1.211 on Windows 7. I'm getting a fatal error on texnum.mp on the simplest possible use of graph. Here is the simplest possible test case that shows the error: input graph end Here is the error message I get. C:\texlive\2010\bin\win32\mpost xtest This is MetaPost, version 1.211 (Web2C 2010) (kpathsea version 6.0.0) (./xtest.mp (c:/TeXLive/2010/texmf-dist/metapost/base/graph.mp (c:/TeXLive/2010/texmf-dist/metapost/base/marith.mp (c:/TeXLive/2010/texmf-dist/metapost/base/string.mp)) (c:/TeXLive/2010/texmf-dist/metapost/base/format.mp (c:/TeXLive/2010/texmf-dist/metapost/base/string.mp) (c:/TeXLive/2010/texmf-dist/metapost/base/texnum.mpfatal: Command failed: etex - -parse-first-line --interaction=nonstopmode mpa05524.tex; see mpxerr.log texnum.mp texnum.mpx ! Unable to make mpx file. l.17 init_numbers(btex $-$etex, btex$1$etex, btex${\times}10$etex, Transcript written on xtest.log. Here is the information I get when running etex. C:\texlive\2010\bin\win32\etex --parse-first-line --interaction=nonstopmode mpxerr.tex This is pdfTeX, Version 3.1415926-1.40.11 (Web2C 2010) restricted \write18 enabled. entering extended mode (./mpxerr.tex [1] [1] [1] [1] [1] [1] ) Output written on mpxerr.dvi (6 pages, 672 bytes). Transcript written on mpxerr.log. Is there something I need to configure in TeXLive or my .mp file in order to get this to work? Or is there some other debugging I can do to determine how to resolve this problem? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Metric (TFM) file not found.
Hello. I downloaded showfont.pdf and I tried the first example: \starttext \definetypeface [zapf] [cg] [calligraphy] [chancery] \switchtotypeface [zapf] [12pt,cg] \dorecurse{10}{\input tufte} \stoptext but I received the error message metric file not found. This is the log file: == This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (format=cont-en 2010.12.28) 31 DEC 2010 18:37 entering extended mode restricted \write18 enabled. %-line parsing enabled. (/usr/local/texlive/2010/texmf/web2c/natural.tcx) **04-fonts.tex \emergencyend (./04-fonts.tex ConTeXt ver: 2010.07.30 11:35 MKII fmt: 2010.12.28 int: english/english system : cont-new loaded (/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-new.mkii)) system : cont-fil loaded (/usr/local/texlive/2010/../texmf-local/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/usr/local/texlive/2010/../texmf-local/tex/context/user/cont-sys.rme (/usr/local/texlive/2010/../texmf-local/tex/context/base/type-def.mkii) (/usr/local/texlive/2010/../texmf-local/tex/context/base/type-siz.mkii) (/usr/local/texlive/2010/../texmf-local/tex/context/base/type-one.mkii)) system : 04-fonts.top loaded (./04-fonts.top) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 us- ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3 da-ec:ec-6-2:2 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2 fr-ec:ec-1 0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2 it- ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2 pt-ec:ec-17 -2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2 pl-qx:qx-21- 2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2 sk-ec:ec-25 -2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2 tk-ec:ec-29-1 :2 lt-l7x:l7x-30-2:2 agr-agr:agr-32-2:2 fi-ec:ec-33-2:2 hu-ec:ec-34- 2:2 ru-t2a:t2a-36-2:2 uk-t2a:t2a-37-3:3 loaded specials: dvips loaded \openout3 = `04-fonts.tui'. \openout0 = `04-fonts-mpgraph.mp'. \openout0 = `mpgraph.mp'. systems : system commands are enabled language: language en is active specials: loading definition file tpd (/usr/local/texlive/2010/../texmf-local/tex/context/base/spec-tpd.mkii specials: loading definition file fdf (/usr/local/texlive/2010/../texmf-local/tex/context/base/spec-fdf.mkii)) publications: file 04-fonts.bbl not found, waiting for bibtex systems : begin file 04-fonts at line 1 ! Font \*zapf12ptcgtfcg*:=TeXGyreChorus-MediumItalic at 12.0pt not loadable: Me tric (TFM) file not found. to be read again \relax \definefontglobal ...dcsname \lastfontname \relax \expandafter \let \expanda... \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 \... ... l.3 \switchtotypeface [zapf] [12pt,cg] ? X Here is how much of TeX's memory you used: 982 strings out of 456094 15626 string characters out of 2517944 4851573 words of memory out of 7259343 41916 multiletter control sequences out of 15000+20 82418 words of font info for 37 fonts, out of 300 for 9000 396 hyphenation exceptions out of 8191 38i,1n,61p,227b,542s stack positions out of 5000i,500n,1p,20b,5s No pages of output. PDF statistics: 0 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 50) 1 words of extra memory for PDF output out of 1 (max. 1000) == Is there anyone who can help me? Many thanks. Sam Qasbah ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with encoding
Hello, this example stopped working. I don't know exactly when, maybe with the newest Ctx beta. Let's have two sources: --- t.mkiv \mainlanguage[cz] \enableregime[cp1250] \starttext \input t2.mkiv AáSš \stoptext --- And: --- t2.mkiv AáSš --- The t2.mkiv is included by the main file t.mkiv. The strange thing is that chars with diacritics being used in the included file are successfully processed, whilst those in the main file are not. Here's the process log: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf C:/Lukas/Jobs/Holesov.PDPS/SO_201/Texts/T/t.mkivThis is LuaTeX, Version beta-0.64.0-2010111223 (rev 3956) \write18 enabled. (C:/Lukas/Jobs/Holesov.PDPS/SO_201/Texts/T/t.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.29 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t.top loaded (t.top ){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/Jobs/Holesov.PDPS/SO_201/Texts/T/t.mkiv at line 4 (t2.mkiv) ! String contains an invalid utf-8 sequence. l.7 A ßSÜ backends using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 systems : end file C:/Lukas/Jobs/Holesov.PDPS/SO_201/Texts/T/t.mkiv at line 8 )c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config file - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.016 seconds mkiv lua stats : stored bytecode data - 257 modules, 56 tables, 313 chunks mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411 mkiv lua stats : node memory usage - 19 glue_spec mkiv lua stats : node list callback tasks - 6 unique task lists, 5 instances (re)created, 329 calls mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - cs::23 en::2 mkiv lua stats : callbacks - direct: 481, indirect: 4508, total: 4989 mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls mkiv lua stats : result saved in file - t.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tf m rm-lmr9.tfm mkiv lua stats : fonts load time - 0.266 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.64.0-2010111223 (web2c 2010) (rev 3956) mkiv lua stats : control sequences - 29979 of 165536 mkiv lua stats : current memory usage - 32 MB (ctx: 32 MB) mkiv lua stats : runtime - 0.813 seconds, 1 processed pages, 1 shipped pages, 1.230 pages/second MTXrun | fatal error: return code: 1 --- So the example doesn't work with the Ctx version from 27.11.2010. But it does with one from 20.11.2010 (tested on another computer). So is it possible to make Ctx work even when diacritics and ANSI encoding is used
[NTG-context] Compatibility problem Ctx TeXlive2010 x ctx minimals or error in code??
Hello all, I'm looking the reason of non-functioning my context module in the context TeXlive 2010. In context mimals version everything is working properly and without error, but when I compile my source code with ConTeXt, which is part of TeXlive 2010, then I get message: C:\1da\ConTeXt-MkIV\t-scancsv.mkivcontext --autopdf cykly-test-002.tex MTXrun | run 1: luatex --fmt=C:/Users/Jaroslav Hajtmar/.texlive2010/texmf-var/ luatex-cache/context/da91aab37cf8e89a658f7077fc24d4ff/formats/cont-en --lua=C: /Users/Jaroslav Hajtmar/.texlive2010/texmf-var/luatex-cache/context/da91aab37cf 8e89a658f7077fc24d4ff/formats/cont-en.lui --backend=pdf ./cykly-test-002.tex This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736) \write18 enabled. (cykly-test-002.tex publications: loading formatting style from bxml-apa (C:/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.9.21 int: english/english system : cont-new loaded (C:/texlive/2010/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (C:/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/texlive/2010/texmf-dist/tex/context/user/cont-sys.rme (C:/texlive/2010/texmf -dist/tex/context/base/type-def.mkiv) (C:/texlive/2010/texmf-dist/tex/context/ba se/type-lua.mkiv) (C:/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv) (C :/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv)) system : cykly-test-002.top loaded (cykly-test-002.top) fonts : preloading latin modern fonts {C:/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{C:/texlive/2010/texm f-dist/fonts/map/dvips/lm/lm-rm.map}{C:/texlive/2010/texmf-dist/fonts/map/pdftex /context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active system : module t-scancsv loaded (t-scancsv.mkiv loading : ConTeXt User Module / ScanCSV ! Undefined control sequence. l.45 \definenamespace ? When I comment \definenamespace section, then I get message: (shortly) This is LuaTeX, Version beta-0.60.2-2010071421 (Web2C 2010) (rev 3736) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.9.21 int: english/english system : module t-scancsv loaded (t-scancsv.mkiv loading : ConTeXt User Module / ScanCSV ! Argument of \dotripletestemptyx has an extra }. inserted text \par to be read again } \dodostartluacode ...nd \directlua \zerocount {#1} } l.439 \stopluacode ? I do not know whether it is compatibility problem or I have a bug somewhere in source code of my module ... Has anyone any ideas? I do not know where to begin the search mistake ... Thanx. Jaroslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 4000 pages limit?
2010/12/17 Taco Hoekwater t...@elvenkind.com On 12/17/2010 07:52 AM, luigi scarso wrote: On Fri, Dec 17, 2010 at 12:04 AM, Jonas Steinn...@jonasstein.de wrote: Yesterday I was trying to typeset a very, very long document (about 3000 pages in A4). Well, mkiv died with a PANIC: unprotected error in call to Lua API (stack overflow (out of stack space)) It's easily reproducible with a simple \starttext \dorecurse{5}{ \input knuth } \starttext \dorecurse{5}{ \input knuth }\stoptext also fails after page [1619.1619]) with ! TeX capacity exceeded, sorry [pool size=1254582]. That is mkii, right? (I am not interested in that) PANIC: unprotected error in call to Lua API (stack overflow (out of stack space)) I think that is a bug, or not? yes, I think so. Yes it was a bug, fixed in the luatex source repository now. How high is the limit now? Just curious, since I saw LuaTeX building _a paragraph_ lasting few hundred pages without problems (on the other hand, pdfTeX couldn't do it). Regards, Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 4000 pages limit?
2010/12/17 Vedran Miletić riva...@gmail.com: How high is the limit now? Just curious, since I saw LuaTeX building _a paragraph_ lasting few hundred pages without problems (on the other hand, pdfTeX couldn't do it). Which limit? For the simple knuth case most likely the size of your harddisk is the limit (iff luatex can generate PDFs 4GB :). And you'll get problems with pdfs with millions of objects (i.e. pages), as readers can't cope with them. Best Martin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 4000 pages limit?
On 17-12-2010 10:44, Vedran Miletić wrote: How high is the limit now? Just curious, since I saw LuaTeX building _a paragraph_ lasting few hundred pages without problems (on the other hand, pdfTeX couldn't do it). I've done tests with tens of thousands of pages with mkiv with no problem so there must be something special going on now. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug against minimals
Hi, With latest stable minimals version I don't get correct output of the metapost article (I attach it) But with the texlive package with ubuntu 8.04 (and only with 8.04; with 10.10 I have the same problem), it works. I think it's a bug Thanks, Xan. PS: Please Ccme % Choose a font \setupbodyfont [cmr,11pt] % Be tolerant with paragraph building \setuptolerance [horizontal,verytolerant,stretch] % Choose a language, and associated hyphenation rules. %\language [ca] \mainlanguage[ca] % Page number \setuppagenumbering [location={footer}] % Paper size \setuppapersize [A4] % Margins %\setuplayout [grid=yes, footer=0.5\footerheight, header=0.5\headerheight] %\setuplayout[footer=2cm, header=2cm] %\showlayout %\showframe %\showsetups \setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm] % Enable colors and activate hyperlinks \setupcolors [state=start] %\definecolor[lightBlue][r=0.5, g=0.5, b=1.0] %\setupinteraction [state=start, color=lightBlue] %\setupurl[style=small, space=yes] \setupurl[space=yes] % Enumerate the URLs %\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki] % Fonts %% Chapters... \setupheads[align=flushleft] \setuphead[chapter][style={\tfd\bf}] \setuphead[section][style={\bfb}, header=nomarking] \setuphead[subsection][style={\bfa}] \setuphead[subsubsection][style={\bfa}] %\setuphead[section][textstyle=bold] % Bibliography options % BIBTEX %\usemodule[bib] %\usemodule[bibltx] %\setupbibtex[database=funcions,sort=author] %\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, criterium=all]% %\setupheadtext[ca][pubs=Referències] %\setuppublicationlist[authoretallimit=3] %\setuppublicationlist[authoretaltext={\it\ et al.}] %\setuppublicationlist[authoretaldisplay=1] %Indentation \setupheads[indentnext=yes] \setupindenting[yes,small,first] % Vertical spaces between paragraphs \setupwhitespace[none] %Itemize \setupitemize[each][identnext=yes,margin=2em] \setupitemize[each][headstyle=bold] % Mathematical packets %\usemodule[newmat] % Modules \usemodule[tikz] \usetikzlibrary[mindmap,arrows,calc] %\usetikzlibrary[trees] % AMSTHM \defineenumeration [exercici] [text={Exercici},headstyle=bold,between=\blank,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em] % Table of contents %% dots between... and subsubsubsection are not listed \setupcombinedlist[content][level=4,alternative=c] %% section = bold. % width= 10mm -- less space between num-letter %% line break after section. \setuplist[section][style=bold,width=10mm] \setuplist[section][before=\blank] %% margin = 10 mm. Put the subsection just bottom section. \setuplist[subsection][margin=10mm,width=10mm] \setuplist[subsubsection][margin=20mm,width=10mm] % Set Ãndex like Ãndex de continguts \setupheadtext [ca] [content=Ãndex] % Heads and footers \setupfootertexts[{\tfx \pagenumber/\lastpage}] \setupfooter[text][before=\hrule] \setupheader[text][after=\hrule] \setupheadertexts[{\tfx IES Binissalem. Dpt. Orientació}][{\tfx 3r DIV}] % hyphenating \hyphenation{do-cu-ment} \hyphenation{subs-ti-tueix} \hyphenation{pro-ble-ma} \hyphenation{Ma-the-ma-tics} \hyphenation{Ma-the-ma-ti-cal} \hyphenation{es-crip-tu-ra} \hyphenation{ge-ne-ra-lit-za-ció} \hyphenation{va-ria-bles} % em = bf italic \setupbodyfontenvironment[default][em=italic] % underline \setupunderbar[alternative=b] % Virgueries %% Quadres de text %% Per usar-ho: \startframedtext[width=\textwidth,background=QuadreBasic,frame=off] \startuseMPgraphic{QuadreBasic} picture p ; numeric w, h, o ; p := textext.rt(\MPstring{QuadreBasic}) ; w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ; p := p shifted (2o,h-ypart center p) ; draw p ; drawoptions (withpen pencircle scaled 2pt withcolor .625red) ; draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ; draw boundingbox p ; draw (0,0) -- (0,-5pt) ; draw (-5pt,0) -- (0,0); draw (w, h) -- (w, h+5pt); draw (w,h) -- (w+5pt,h); setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[QuadreBasic][\useMPgraphic{QuadreBasic}] % interface=en output=pdftex % Regime \enableregime[utf] \input capcalera.contex \setupheadertexts[{\tfx 3r DIV. T4 - MAT}][{\tfx {\bf FULL 1}. \currentdate}] % Start the text \starttext \bigskip \startframedtext[width=broad, location=middle] \startalignment[middle] {\sca Full de problemes d'equacions de 1r grau} \stopalignment \stopframedtext \section{Traducció d'enunciats} % Pà gina 132 del manual de de MetaFun \startuniqueMPgraphic{lions a} path p ; p := fullsquare xyscaled (\overlaywidth,\overlayheight) superellipsed .85 ; pickup pencircle scaled 1pt ; fill p withcolor .850white ; draw p withcolor .625yellow ; \stopuniqueMPgraphic \defineoverlay[lions][\uniqueMPgraphic{lions a}] \def\processword#1% {\noindent\framed[frame=off,background=lions
Re: [NTG-context] 4000 pages limit?
Yesterday I was trying to typeset a very, very long document (about 3000 pages in A4). Well, mkiv died with a PANIC: unprotected error in call to Lua API (stack overflow (out of stack space)) It's easily reproducible with a simple \starttext \dorecurse{5}{ \input knuth } Once it reaches page 4000 it will die. i could run this \starttext \dorecurse{5}{narf \page} \stoptext == pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! Output written on test.pdf (5 pages, 10574005 bytes). Transcript written on test.log. TeXExec | runtime: 310.679998 == and got 5 pages in one pdf. Okular is quite slow in opening it and needs 200 MB RAM, but it works. But i could not use Ctrl-C to break the loop. I think that is a bug, or not? i use this context: http://packages.debian.org/experimental/context Kind regards, -- Jonas Stein n...@jonasstein.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] 4000 pages limit?
On Fri, Dec 17, 2010 at 12:04 AM, Jonas Stein n...@jonasstein.de wrote: Yesterday I was trying to typeset a very, very long document (about 3000 pages in A4). Well, mkiv died with a PANIC: unprotected error in call to Lua API (stack overflow (out of stack space)) It's easily reproducible with a simple \starttext \dorecurse{5}{ \input knuth } \starttext \dorecurse{5}{ \input knuth }\stoptext also fails after page [1619.1619]) with ! TeX capacity exceeded, sorry [pool size=1254582]. i could run this \starttext \dorecurse{5}{narf \page} \stoptext pdftex is ok luatex fails with pagesflushing realpage 3987, userpage 3987 PANIC: unprotected error in call to Lua API (stack overflow (out of stack space)) I think that is a bug, or not? yes, I think so. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimal ConTeXt and texfont!
Am 2010-12-13 um 10:27 schrieb Verhaag, G.C.H.M.: I've removed my old TeXLive installation from my Linux box, an decided to start using ConTeXt only! Congratulations! I want to try to install some new fonts and it is common practice to use texfont for that. ConTeXt comes with its own texfont, but when I type texfont at my linux-prompt, no texfont can be found? Do I need to install additional tools to be able to build new fonts? You normally don't need texfont nor any other tools. What version of ConTeXt (MarkII or MarkIV) and if MarkII, which engine (pdfTeX or XeTeX) do you use? On which OS? What kind of fonts do you want to use (OPenType, TrueType, PS Type1 or other)? Have a look at the wiki* and Wolfgang's simplefonts[2] module (to avoid the need to write typescripts). [1] http://wiki.contextgarden.net/Fonts#How_to_use_fonts_in_ConTeXt (Might be more confusing that helping, though.) [2] http://wiki.contextgarden.net/Fonts_in_LuaTeX#With_the__simplefonts_module 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimal ConTeXt and texfont!
On Mon, Dec 13, 2010 at 10:27, Verhaag, G.C.H.M. wrote: I want to try to install some new fonts and it is common practice to use texfont for that. ConTeXt comes with its own texfont, but when I type texfont at my linux-prompt, no texfont can be found? Do I need to install additional tools to be able to build new fonts? TeXfont used to be a common practice until the arrival of MKIV. It's not maintained, it is somewhat buggy, it has been removed from standard tools (though you can still make it work easily), but I would strongly recommend you to use ConTeXt MKIV (LuaTeX instead of pdfTeX) if you need non-texie fonts. In that case all you need to do is to put your fonts into texmf-fonts or texmf-local under tex/opentype/company/fontname (the part tex/opentype is the most important part - assuming that you are indeed dealing with OpenType fonts). Alternatively you may configure OSFONTDIR to point to the folders where you have your system fonts and they will be picked up automatically. If you use XeTeX your system font should be found by default. You only need the right typescripts, but no font conversion at all. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimal ConTeXt and texfont!
Mojca Miklavec wrote: On Mon, Dec 13, 2010 at 10:27, Verhaag, G.C.H.M. wrote: I want to try to install some new fonts and it is common practice to use texfont for that. ConTeXt comes with its own texfont, but when I type texfont at my linux-prompt, no texfont can be found? Do I need to install additional tools to be able to build new fonts? TeXfont used to be a common practice until the arrival of MKIV. It's not maintained, it is somewhat buggy, it has been removed from standard tools (though you can still make it work easily), but I would strongly recommend you to use ConTeXt MKIV (LuaTeX instead of pdfTeX) if you need non-texie fonts. In that case all you need to do is to put your fonts into texmf-fonts or texmf-local under tex/opentype/company/fontname (the part tex/opentype is the most important part - assuming that you are indeed dealing with OpenType fonts). Alternatively you may configure OSFONTDIR to point to the folders where you have your system fonts and they will be picked up automatically. If you use XeTeX your system font should be found by default. You only need the right typescripts, but no font conversion at all. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Hi, I use the latest ConTeXt MkIV version on a Linux (kernel 2.4) based PC; so I use LuaTeX! I understand that I don't need to use texfont when using ttf-fonts, with this version of ConTeXt. But still need to write the proper typescripts, right? Does the same apply to opentype fonts? Regards, Gerard Verhaag ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in TABLE when there is a complex head
Hi Developers, Enclosed is a piece of code that demonstrates a bug in the NaturalTable environment when using a complex head in a multipage case. If you run the following code you will notice that not only does the head get repeated but also the first row of the body of the table. The cause appears to be [nr=2] in the head. I am using This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 2010.4.14) 6 DEC 2010 08:32 I do apologise if this is fixed in a later version. Thanks for a great program. \bTABLE[split=repeat] \bTABLEhead \bTR \bTH[nr=2] head l\eTH \bTH head r\eTH \eTR \bTR \bTH head r\eTH \eTR \eTABLEhead \bTABLEbody \bTR\bTD first l\eTD\bTD first r\eTD\eTR \dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR} \eTABLEbody \eTABLE -- Nigel King ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in TABLE when there is a complex head
On 6-12-2010 9:39, Nigel King wrote: Hi Developers, Enclosed is a piece of code that demonstrates a bug in the NaturalTable environment when using a complex head in a multipage case. If you run the following code you will notice that not only does the head get repeated but also the first row of the body of the table. The cause appears to be [nr=2] in the head. I am using This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 2010.4.14) 6 DEC 2010 08:32 I do apologise if this is fixed in a later version. Thanks for a great program. \bTABLE[split=repeat] \bTABLEhead \bTR \bTH[nr=2] head l\eTH \bTH head r\eTH \eTR \bTR \bTH head r\eTH \eTR \eTABLEhead \bTABLEbody \bTR\bTD first l\eTD\bTD first r\eTD\eTR \dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR} \eTABLEbody \eTABLE put this in cont-new.tex: \unprotect \def\endtblrow {\kern\dimexpr\tbltblrightmargindistance-\tbltblcolumndistance\relax \crcr \noalign {\nointerlineskip \ifnum\tblrow\noftblheadlines \ifnum\gettblnob\tblrow=\zerocount \allowbreak \fi \else \allowbreak % else no proper head split off \fi \bgroup % protect local vars \@@tblsplitafter \egroup \bgroup % protect local vars \scratchcounter\numexpr\tblrow+\plusone\relax \ifnum\scratchcounter\noftblhdnxlines\relax \ifnum\scratchcounter\maximumrow\relax \doifsomething\tbltblspaceinbetween{\blank[\tbltblspaceinbetween]}% \fi \fi \egroup}} \protect - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in TABLE when there is a complex head
Hans, Thanks very much. That works perfectly. Nigel From: Hans Hagen pra...@wxs.nl To: mailing list for ConTeXt users ntg-context@ntg.nl Cc: Nigel King ni...@nigelking.me.uk Sent: Monday, 6 December, 2010 13:13:39 Subject: Re: [NTG-context] bug in TABLE when there is a complex head On 6-12-2010 9:39, Nigel King wrote: Hi Developers, Enclosed is a piece of code that demonstrates a bug in the NaturalTable environment when using a complex head in a multipage case. If you run the following code you will notice that not only does the head get repeated but also the first row of the body of the table. The cause appears to be [nr=2] in the head. I am using This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 2010.4.14) 6 DEC 2010 08:32 I do apologise if this is fixed in a later version. Thanks for a great program. \bTABLE[split=repeat] \bTABLEhead \bTR \bTH[nr=2] head l\eTH \bTH head r\eTH \eTR \bTR \bTH head r\eTH \eTR \eTABLEhead \bTABLEbody \bTR\bTD first l\eTD\bTD first r\eTD\eTR \dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR} \eTABLEbody \eTABLE put this in cont-new.tex: \unprotect \def\endtblrow {\kern\dimexpr\tbltblrightmargindistance-\tbltblcolumndistance\relax \crcr \noalign {\nointerlineskip \ifnum\tblrow\noftblheadlines \ifnum\gettblnob\tblrow=\zerocount \allowbreak \fi \else \allowbreak % else no proper head split off \fi \bgroup % protect local vars \@@tblsplitafter \egroup \bgroup % protect local vars \scratchcounter\numexpr\tblrow+\plusone\relax \ifnum\scratchcounter\noftblhdnxlines\relax \ifnum\scratchcounter\maximumrow\relax \doifsomething\tbltblspaceinbetween{\blank[\tbltblspaceinbetween]}% \fi \fi \egroup}} \protect - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] multipage tables - vertical space
Hello all, What's wrong with this multipage table? \starttext \setuptables[split=repeat] \placetable[split,here][tab:example]{Long Table Example}{\start \starttablehead \HL \VL \bf A \VL \bf B \VL\MR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \dorecurse{100}{\VL first \VL second \VL\MR} \stoptables \stop} \stoptext On each page, I get a vertical space above the footer. see: http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf Using TeX Live 2009 for Mac OS X: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (/usr/local/texlive/2009/texmf/web2c/natural.tcx) entering extended mode (./tableproblem.tex ConTeXt ver: 2009.08.19 17:10 MKII fmt: 2010.6.15 int: english/english Thanks in advance! Best, Peter van Kranenburg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] gaps in vertical border of table
Hello all, When creating a table with horizontal lines that do not run across the whole table, gaps are appearing in the vertical border at places the horizontal lines would have been (see attached png). Could someone tell me how to get rid of those spaces? Thanks in advance, Peter van Kranenburg Using Tex Live 2009: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (/usr/local/texlive/2009/texmf/web2c/natural.tcx) entering extended mode (./preklassieken.tex ConTeXt ver: 2009.08.19 17:10 MKII fmt: 2010.6.15 int: dutch/dutch The example was created with: \steltabellenin[korps=10pt,splitsen=herhaal] \plaatstabel[splitsen,hier][tab:custodeshymnes]{Caption.}{\start \starttabelkop \HL \VL \bf Hymne \VL \bf Verset \VL \bf Type A \VL \bf Type B \VL \bf Type C \VL \bf Type D \VL\MR \HL \stoptabelkop \starttabelstaart \HL \stoptabelstaart \starttabellen[|l|l|l|l|l|l|] \VL Ad C\oe{}nam \VL I \VL \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL II \VL 36, 40 \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL III \VL 12 \VL \VL \VL \VL \MR \DC\DL[5]\DR \VL \VL IV \VL 17, 19, 68, 69, 71, 74, 77, 86 \VL \VL \VL 18 \VL \MR \HL [... etc ...] \stoptabellen \stop} attachment: tablesverticallines.png___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping: font size
Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Did you test it? --- t2.mkiv \enableregime[cp1250] \setuptyping[default][bodyfont=8pt] % As you advised \starttext \typefile[default]{t2.mkiv} \stoptext --- I got a result (seems desired), but with error return code: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf C:/Lukas/ConTeXt/Cont-Tst/t2.mki \write18 enabled. (C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.29 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeXt/tex/texmf-context/tex/cont system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t2.top loaded (t2.top ){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5 ! Missing number, treated as zero. to be read again \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... \firststageinitializetyping ...eckverbatimmargins \dosettypingattributes \c!... \dodododotypefile ... \firststageinitializetyping \secondstageinitializetypi... \dotypefile ...le {#3}} {\dododotypefile {#1}{#3}} \else \dododotypefile \v!f... l.6 \typefile[default]{t2.mkiv} ! Illegal unit of measure (pt inserted). ... MTXrun | fatal error: return code: 1 --- The source file and the log are attached... Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t2.log Description: Binary data t2.mkiv Description: Binary data t2.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping: font size
... Still the same error with the latest beta. Lukas On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Did you test it? --- t2.mkiv \enableregime[cp1250] \setuptyping[default][bodyfont=8pt] % As you advised \starttext \typefile[default]{t2.mkiv} \stoptext --- I got a result (seems desired), but with error return code: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf C:/Lukas/ConTeXt/Cont-Tst/t2.mki \write18 enabled. (C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.29 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeXt/tex/texmf-context/tex/cont system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t2.top loaded (t2.top ){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5 ! Missing number, treated as zero. to be read again \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... \firststageinitializetyping ...eckverbatimmargins \dosettypingattributes \c!... \dodododotypefile ... \firststageinitializetyping \secondstageinitializetypi... \dotypefile ...le {#3}} {\dododotypefile {#1}{#3}} \else \dododotypefile \v!f... l.6 \typefile[default]{t2.mkiv} ! Illegal unit of measure (pt inserted). ... MTXrun | fatal error: return code: 1 --- The source file and the log are attached... Lukas t2.log Description: Binary data t2.mkiv Description: Binary data t2.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
On Wed, Dec 1, 2010 at 17:04, Mojca Miklavec wrote: May I suggest reverting to the previous version until so critical issues are solved? Well ... I'm simply grateful for having MKII-compatible documents in such cases ... :) Arghh! Not even MKII works now. The first run is successfull: pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! Output written on seminar-simetrije.pdf (34 pages, 2439864 bytes). SyncTeX written on seminar-simetrije.synctex.gz Transcript written on seminar-simetrije.log. TeXUtil | parsing file seminar-simetrije.tui but then the second run gives me ... floatblocks : order disturbed floatblocks : 31 placed structure : end of sectionblock appendices [33.32] (./seminar-simetrije.tuo) (./seminar-simetrije.tuo ! Improper alphabetic constant. to be read again \bi argument \ifnum `\bi =255 32\else `\bi \fi \utfdiv #1-\the \numexpr \ifcase \numexpr #1 \relax 0\else (#1-\...@g )/\utf... \PDFunicodechar ...bers \...@ea {\number \utfdiv {#1} }...@ea \lchexnumbers \...@ea {... \nodoPDFuni ...ar {\ifnum `#1=255 32\else `#1\fi } \doPDFuni \bookmarktext -\unicodechar {65279}$\bi sp$?--?linearna?hibridizacija ... l.77 ...tna hibridizacija}{2--0-0-6-1-2-0-0--8}{9} % ? In the source I have \def\naslovhib#1#2{\subsubsection{$\bi#1$ -- #2 hibridizacija}} Which I call as: \naslovhib{sp}{linearna} Apart from that I get some weird messages like references : duplicate object [FDF colorspaces=16/2] references : duplicate object [FDF colorspaces=22/3] references : duplicate object [FDF colorspaces=29/4] references : duplicate object [FDF colorspaces=33/5] references : duplicate object [FDF colorspaces=64/6] references : duplicate object [FDF colorspaces=75/7] references : duplicate object [FDF colorspaces=93/8] references : duplicate object [FDF colorspaces=117/9] references : duplicate object [FDF colorspaces=135/10] references : duplicate object [FDF colorspaces=143/11] references : duplicate object [FDF colorspaces=153/12] references : duplicate object [FDF colorspaces=161/13] references : duplicate object [FDF colorspaces=172/14] references : duplicate object [FDF colorspaces=179/15] references : duplicate object [FDF colorspaces=188/16] references : duplicate object [FDF colorspaces=199/17] references : duplicate object [FDF colorspaces=214/18] references : duplicate object [FDF colorspaces=219/19] references : duplicate object [FDF colorspaces=232/20] references : duplicate object [FDF colorspaces=237/21] references : duplicate object [FDF colorspaces=251/22] references : duplicate object [FDF colorspaces=265/23] references : duplicate object [FDF colorspaces=276/24] references : duplicate object [FDF colorspaces=298/25] references : duplicate object [FDF colorspaces=323/26] references : duplicate object [FDF colorspaces=333/27] references : duplicate object [FDF colorspaces=340/28] references : duplicate object [FDF colorspaces=350/29] references : duplicate object [FDF colorspaces=359/30] references : duplicate object [FDF colorspaces=368/31] references : duplicate object [FDF colorspaces=378/32] references : duplicate object [FDF colorspaces=383/33] Thanks a lot, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
On 1-12-2010 5:13, Mojca Miklavec wrote: On Wed, Dec 1, 2010 at 17:04, Mojca Miklavec wrote: May I suggest reverting to the previous version until so critical issues are solved? Well ... I'm simply grateful for having MKII-compatible documents in such cases ... :) Arghh! Not even MKII works now. The first run is successfull: pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! Output written on seminar-simetrije.pdf (34 pages, 2439864 bytes). SyncTeX written on seminar-simetrije.synctex.gz Transcript written on seminar-simetrije.log. TeXUtil | parsing file seminar-simetrije.tui but then the second run gives me floatblocks : order disturbed floatblocks : 31 placed structure : end of sectionblock appendices [33.32] (./seminar-simetrije.tuo) (./seminar-simetrije.tuo ! Improper alphabetic constant. to be read again \bi argument \ifnum `\bi hm, I didn't touch mkii at all ... probably some fancy expansion in bookmarks Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mkiv/luatex bug
Am 27.11.2010 um 22:03 schrieb Benedikt Morbach: Hi, I'm currently trying out context and somehow I can't get it to behave the way it should/I want it. I think I may be hitting a bug in either my setup or context mkiv. Somehow when using luatex/mkiv the spacing and placing of figures and such looks very different (and wrong) compared to pdftex/mkii (invoked using context --luatex/--pdftex). I think the bug is either in context or my context setup, because lualatex compared with pdflatex is fine, so it doesn't seem engine related. I already ran various combinations of (texexec|luatools|context) ((--generate|--make)||--all) but that didn't help. I'm experiencing this with TeXLive + TLContrib as well as context-minimals (only installed for testing) attached are: - Hello World.tex (from http://wiki.contextgarden.net/Hello_world ) - logs context.(lua|pdf).log - the resulting pdfs Hello World.(lua|pdf).pdf Would be nice if someone could help me with this, since I'm eager to play with luatex and context a bit more. Benedikt It’s a problem with the header setups in the example document, with the following settings the output is correct: \setuphead [section,subject] [style={\ss\bfa}, before={\blank[2*big]}, after={\blank[nowhite]}] and \setuphead [title] [ style={\ss\bfd}, before={\begingroup\switchtobodyfont[14.4pt]}, after={\leftaligned{\ss\tfa A. U. Thor $\langle$\from[author-email]$\rangle$}\blank[2*big]\endgroup}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem \input a file (lastest minimals)
Hello, I have a problem to \input a file [in the same directory as the main file is]. This problem started appearing with the latest minimals (updated today evening) and there was no such a problem before. Try this: --- main.mkiv \enableregime[cp1250] \input{_inc.mkiv} \starttext AAA \stoptext --- --- _inc.mkiv INC.MKIV --- And the the compilation error: --- D:\Lukas\ConTeXt\Samples\t-Incset PATH=c:\ConTeXt\tex\texmf-mswin\bin;C:\WINDOWS\System32\Wbem;C:\WINDOWS/system32;C:\WINDOWS;D:/Programs/Tcl/bin;C:/gs/gs8.54/bin;C:/Program Files/Common Files/Autodesk Shared/;c:/Program Files/Microsoft SQL Server/90/Tool s/binn/;C:\Program Files\Lua\5.1;C:\Program Files\Lua\5.1\clibs;C:\adabas\bin;C:\adabas\pgm;D:\Lukas\Bat;D:\Programs.Con;C:\Program Files\Gtk+\bin;;C:\PROGRA~1\COMMON~1\AUTODE~1 D:\Lukas\ConTeXt\Samples\t-Inccontext.exe main.mkiv MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf ./ma in.mkivThis is LuaTeX, Version beta-0.64.0-2010111223 (rev 3956) \write18 enabled. (main.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.28 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeX t/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : main.top loaded (main.top){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil value). insert l.3 \input{_inc.mkiv} ? ! Emergenc^Cy stop. insD:\Lukas\ConTeXt\Samples\t-Incert l.3 \input{_inc.mkiv} ! == Fatal error occurred, no output PDF file produced! D:\Lukas\ConTeXt\Samples\t-Inc --- Bug anywhere? Friendly regards, Lukas _inc.mkiv Description: Binary data main.log Description: Binary data main.mkiv Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MkII index bug?
Hi Hans, playing with the solution for Horacio the line \enableregime[utf] stops treating index entries and its subentries right in MkII. %\enableregime[utf] \starttext \placeregister[index] \page A\index[arbol+rojo]{arbol+rojo}\page B\index[araña+linda]{araña+linda}\page C\index[arbol+verde]{arbol+verde}\page D\index[araña+grande]{araña+grande}\page E\index[arbol+blanco]{arbol+blanco}\page \stoptext Creator:ConTeXt - 2010.11.20 12:51 Producer: pdfTeX-1.40.11 Jano ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trying to move from LaTeX to MKIV in MikTeX (Mojca Miklavec)
Mojca, Thanks for trying to help, Here's what I do know so far. . . 1. Yes I bought TUG Lucida and have installed the fonts in c:\localtexmf and done fndb update via MikTeX 2.9 wizard. 2. Yes I also used 3rd party patch and installed those tfm files also in the localtexmf directory Here is a sample of the log file:: (Master.tex publications: loading formatting style from bxml-apa (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.11.19 int: english/english system : cont-new loaded (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/user/cont-sys.rme (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/type-def.mkiv) (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/type-lua.mkiv) (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/type-siz.mkiv) (C:/Users/barndog/AppData/Roaming/MiKTeX/2.9/tex/context/base/type-otf.mkiv)) system : Master.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % Master.tex, % } % \stopluacode % % process info % \setupsystem[inputfile=Master.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (Master.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active !define font: forced type afm of lbr not found !define font: font with name lbr is not found !define font: forced type tfm of hlcrim not found !define font: font with name hlcrim is not found !define font: forced type tfm of hlcrim not found !define font: font with name hlcrim is not found !define font: forced type tfm of hlcry not found !define font: font with name hlcry is not found . . . LuaTeX warning: lua-loaded font [45] (lucidamath) has no characters! ! LuaTeX error ...ata/Roaming/MiKTeX/2.9/tex/context/base/font-def.lua:539: attempt to index field 'parameters' (a nil value) stack traceback: ...ata/Roaming/MiKTeX/2.9/tex/context/base/font-def.lua:539: in function 'register' ...ata/Roaming/MiKTeX/2.9/tex/context/base/font-ctx.lua:387: in function 'command_2' main ctx instance:1: in main chunk. \lowleveldefinefont ...lax , \relativefontid )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \fi \csname \newfontidenti... \dodosetmathfamily ...\currentmathsize \endcsname \else \ifcsname \fontclass... \dosetmathfamily ...athfamily \scriptscriptfont #1 \let \currentmathsize \!!p... inserted text \dosetmathfamily \mrfam \c!mr ... l.54 \setupbodyfont[lucida] ? !define font: forced type afm of lbr not found !define font: font with name lbr is not found !define font: forced type tfm of hlcrim not found !define font: font with name hlcrim is not found !define font: forced type tfm of hlcrim not found . . . !math virtual : font lucidamath has no parameters !math virtual : font lucidamath, no parameters set !math virtual : font lucidamath, no parameters set !math virtual : font lucidamath, no parameters set !math virtual : font lucidamath, no parameters set . . . Missing character: There is no μ (U+03BC) in font c:/windows/fonts/LBRITE! Missing character: There is no μ (U+03BC) in font c:/windows/fonts/LBRITE! . . Missing character: There is no ∘ (U+2218) in font c:/windows/fonts/LBRITE! Missing character: There is no ∘ (U+2218) in font c:/windows/fonts/LBRITE! . . . The lua interpreter ran into a problem, so the remainder of this lua chunk will be ignored. Perhaps I need an expert to get involved. I hope I have provided enough information to begin to fix this problem. barney ___ 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
Re: [NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?
On Mon, Nov 22, 2010 at 20:15, Florian Wobbe wrote: Especially for line drawings it would be beneficial not to place every single point. Instead consecutive points should be skipped if they are close to each other (with regard to plot units) - it makes no sense to include points which you won't see anyway. This could be done by defining a grid with a certain (user defined) resolution and rounding the coordinates (plot units) of a line point to the nearest grid node. All consecutive line points falling on the same grid node should not be passed on to terminal drivers. The psxy utility of GMT (http://gmt.soest.hawaii.edu/) does this for instance. I am not aware of such a functionality within gnuplot but it would be a nice feature. But this is an issue of Gnuplot, not something that a terminal writer is supposed to think of. One thing that I did implement in ConTeXt was that if I get instructions move_to(10,3) line_to(11,8) line_to(11,8) line_to(11,9) then one line_to(11,8) will be ignored (resolution is hard-coded in the terminal, but you could draw a smaller plot and then magnify it which would seemingly decrease resolution). But in most cases that wouldn't really help. About the timing difference between set term context and set term lua context: it is quite possible that metapost library is much faster than TikZ which uses TeX-based macros. TeX might be slower in calculations than metapost (which uses C for low level calculations) and TikZ is not optimized for drawing ten-thousand segments. And Hans really tried hard to optimize the code. Processing the output with ConTeXt is also at least ten times slower that outputting straight to PS or PDF and if you try ConTeXt MKII it is about two times slower than MKIV. You probably didn't have a chance to try the first implementations of ConTeXt terminal for gnuplot. It needed 10 minutes for 13 ordinary plots and it ran out of memory if I tried to plot 14 of them!!! (The reason was the usage of btex text etex constructs which lead to ConTeXt runs inside metapost runs inside ConTeXt runs, all doubled, maybe the labels were compile even four times, usually with a separate instance of ConTeXt for each plot.) Now compare that speed difference and the enormous optimization that Hans implemented back in 2006 ... The slow speed of TikZ is not something that you could do much about. There might be some tiny room for optimization in gnuplot-lua-tikz-common.tex, but hardly any. LuaTeX-based TikZ could be reimplemented and that would bring most benefits, but since Till almost-quit the project and since it works out-of-the-box with pdfTeX macros it is highly unlikely to happen. But yes, it would be nice if also ConTeXt terminal would be included. It still doesn't support raw images, but most other features are present. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is the chart module broken?
On 19-11-2010 8:43, Cecil Westerhof wrote: The only things I see that could mean something are: systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead this is harmless but you can copy the file cont-sys.rme to cont-sys.tex and tweak its content pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! But I do not know if that is a problem. The pfd is made with: texexec --automp flowchart Without the --automp I get a message about mpost. Is mpost run or not? Your code looks ok and generates an image here, so it looks like mpost is not run on your system. For the moment forget about --automp as it only makes sense as speed optimization. - double check if write18 is enabled in the used texmf.cnf file - make sure that there is a metafun format (texexec --make metafun) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is the chart module broken?
2010/11/19 Hans Hagen pra...@wxs.nl On 19-11-2010 8:43, Cecil Westerhof wrote: The only things I see that could mean something are: systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead this is harmless but you can copy the file cont-sys.rme to cont-sys.tex and tweak its content I did not think so, but better safe as sorry. pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! But I do not know if that is a problem. The pfd is made with: texexec --automp flowchart Without the --automp I get a message about mpost. Is mpost run or not? Your code looks ok and generates an image here, so it looks like mpost is not run on your system. I tried to make it after running 'texexec --make metafun'. It is still not run. I get: systems : begin file flowchart at line 3 (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp)sh: mpost: opdracht niet gevonden locate mpost gives: /home/cecil/ConTeXt/tex/texmf-linux/bin/mpost /home/cecil/ConTeXt/tex/texmf/metapost/base/mpost.mp /usr/lib/texmf/doc/man/man1/mpost.man1.pdf /usr/share/doc/packages/libSDL-devel/html/sdlsempost.html /usr/share/pstoedit/mpost.fmp Trying alias mpost=/home/cecil/ConTeXt/tex/texmf-linux/bin/mpost does not make a difference. For the moment forget about --automp as it only makes sense as speed optimization. I read somewhere to use it when having a problem with mpost. And I do not get a message when using it. But I forget about it. - double check if write18 is enabled in the used texmf.cnf file When trying to make the pdf I get: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE) \write18 enabled. (/usr/lib/texmf/web2c/natural.tcx) entering extended mode (./flowchart.tex So it should be enabled. - make sure that there is a metafun format (texexec --make metafun) Gives: MTXrun | kpse fallback with progname 'context' initialized in 0.04 seconds TeXExec | using search method 'kpsewhich' TeXExec | updating file database mktexlsr: Updating /etc/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/main/ls-R... mktexlsr: Updating /usr/share/texmf/../../../var/lib/texmf/dist/ls-R... mktexlsr: Updating /var/cache/texmf/fonts/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. TeXExec | using mp engine mpost TeXExec | using mps format path /etc/texmf/web2c TeXExec | generating mps format metafun TeXExec | TeXExec | mps engine path: /etc/texmf/web2c TeXExec | TeXExec | TeXExec | runtime: 0.675681 -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is the chart module broken?
On Fri, 19 Nov 2010, Cecil Westerhof wrote: 2010/11/19 Hans Hagen pra...@wxs.nl On 19-11-2010 8:43, Cecil Westerhof wrote: The only things I see that could mean something are: systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead this is harmless but you can copy the file cont-sys.rme to cont-sys.tex and tweak its content I did not think so, but better safe as sorry. pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! But I do not know if that is a problem. The pfd is made with: texexec --automp flowchart Without the --automp I get a message about mpost. Is mpost run or not? Your code looks ok and generates an image here, so it looks like mpost is not run on your system. I tried to make it after running 'texexec --make metafun'. It is still not run. I get: systems : begin file flowchart at line 3 (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp) (./flowchart-flw-1.tmp)sh: mpost: opdracht niet gevonden locate mpost gives: /home/cecil/ConTeXt/tex/texmf-linux/bin/mpost /home/cecil/ConTeXt/tex/texmf/metapost/base/mpost.mp /usr/lib/texmf/doc/man/man1/mpost.man1.pdf /usr/share/doc/packages/libSDL-devel/html/sdlsempost.html /usr/share/pstoedit/mpost.fmp You pdftex is from texlive, but you do not have a metapost executable from texlive. Either install metapost in texlive or use minimals (You already seem to have the minimals installed. You need to run source ~/ConTeXt/tex/setuptex to add the minimals' binaries to the path). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is the chart module broken?
2010/11/19 Aditya Mahajan adit...@umich.edu You pdftex is from texlive, but you do not have a metapost executable from texlive. Either install metapost in texlive or use minimals (You already seem to have the minimals installed. You need to run source ~/ConTeXt/tex/setuptex to add the minimals' binaries to the path). Mpost is still not found. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [texhax] Choosing TeX um ... stuff
Peter Davis wrote: I've been on the periphery of TeX for years, as a casual user of LaTeX and also as an implementer of publishing software. However, I'm afraid I haven't kept in as close touch as I'd like, and now I find myself trying to absorb a lot in a short time. I'm trying to choose what software to use in building an XML-TeX workflow. I'd appreciate any help with the following questions: 1. True or False: TeX can be categorized along three orthogonal axes: 1. by format (plain TeX, LaTeX, ConTeXt, others?) 2. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?) 3. by distribution (MikTeX, TeXLive, MacTeX, others?) 2) is false; whilst web2c is a methodology and an basis for implementation, pdfTeX is a derivative, pdfLaTeX is simply LaTeX layered on top of PdfTeX, LuaTeX is a major fork, and so on. 2. True or False: plain TeX and LaTeX(2e) are warhorses ... been around for decades, quirks well known, lots of documentation, etc. Yes, except that while Plain TeX has more-or-less remained static (modulo essential bug fixes by Don), LaTeX2e has continued to evolve. I have heard rumours that this particular evolutionary branch may have come to an end, but I have no definite knowledge of this. 3. True or False: ConTeXt is newer, with a lot of built-in features, but still changing quite a bit from build to build. Context is a L O T newer : it has many devotees, but is still something of an outside to mainstream TeX usage. Other comments welcome vis. picking which software to use. One point is that since the actual TeX input files will be generated programmatically, readability or ease-of-coding is not a factor. I was going to use plain TeX, but it seems a lot of features like placing text boxes and graphics anywhere, using system fonts, etc. are more available for LaTeX and ConTeXt. Thank you for any comments! Talk to River Valley and/or Sebastian Rahtz; both have considerable knowledge of the matters that interest you. Philip Taylor ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [texhax] Choosing TeX um ... stuff
On 17-11-2010 11:06, Paul Isambert wrote: Philip, plain TeX isn't exactly mainstream anymore, and ConTeXt probably beats it on this point. And ConTeXt is already more than 15 years old, so it's not so new, although it does keep moving. fyi, there are two versions of context: - mkii is a frozen snapshot of context that runs on top of pdftex and xetex - mkiv is the mainstream version and runs on top of luatex; it is a rathere drastic rewrite + major upgrade and many internals are pretty new but is mostly downward compatible as well Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ugly bug with TikZ in recent ConTeXt MKIV
On Thu, Nov 18, 2010 at 09:48, Hans Hagen wrote: On 18-11-2010 12:00, Mojca Miklavec wrote: Dear Hans, The following example worked perfectly fine with the version of ConTeXt MKIV I was using one hour ago (no idea which version, but something less than two weeks old). It still works OK with MKII and it works much worse in the real document that I'm using. In my document both images are completely screwed up. Here it's only the second one and if I comment out the first one, the second figure comes out fine, so I'm a bit clueless about what magic is going on inbetween. Nothing in TikZ has changed (I'm still using the frozen version from November 2009 from minimals), so it must have something to do with ConTeXt MKIV. It just messes up with some boxes on the page in some unpredictable way. Hans, thanks a lot for the really nice simple example. I have no clue ... maybe some magic tikz variable (or shared register) that does not get reset? I have no clue either, but this has never been a problem before and it still works perfectly in both pdfTeX and XeTeX. So something really looks suspicious on the MKIV part. I would love to help debugging, but I have zero clue what and where to look for. \usemodule[tikz] \starttext \startbuffer[1] \starttikzpicture \draw[-] (0,0)--(1cm,1cm); \stoptikzpicture \stopbuffer % \ruledhbox{\getbuffer[1]} \ruledhbox {\ruledhbox{\getbuffer[1]} \ruledhbox{\getbuffer[1]}} \ruledhbox {\ruledhbox{\getbuffer[1]}% \ruledhbox{\getbuffer[1]}} \ruledhbox{\getbuffer[1]} \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ugly bug with TikZ in recent ConTeXt MKIV
On 18-11-2010 10:03, Mojca Miklavec wrote: On Thu, Nov 18, 2010 at 09:48, Hans Hagen wrote: On 18-11-2010 12:00, Mojca Miklavec wrote: Dear Hans, The following example worked perfectly fine with the version of ConTeXt MKIV I was using one hour ago (no idea which version, but something less than two weeks old). It still works OK with MKII and it works much worse in the real document that I'm using. In my document both images are completely screwed up. Here it's only the second one and if I comment out the first one, the second figure comes out fine, so I'm a bit clueless about what magic is going on inbetween. Nothing in TikZ has changed (I'm still using the frozen version from November 2009 from minimals), so it must have something to do with ConTeXt MKIV. It just messes up with some boxes on the page in some unpredictable way. Hans, thanks a lot for the really nice simple example. I have no clue ... maybe some magic tikz variable (or shared register) that does not get reset? I have no clue either, but this has never been a problem before and it still works perfectly in both pdfTeX and XeTeX. So something really looks suspicious on the MKIV part. After some tracing and hard thinking Taco and I found interesting spaces showing up in the output that result from a kludge in tikz: Normally one will use \ignorespaces to catch spurious spaces but tikz invokes \nullfont assuming that its fontdimen 2 is zero. But, in context it no longer is (prelude to delayed font loading). You can put this in cont-new.mkiv as a temporary hack \let\normalnullfont\nullfont \def\nullfont {\fontdimen1\normalnullfont\zeropoint \fontdimen2\normalnullfont\zeropoint \fontdimen3\normalnullfont\zeropoint \fontdimen4\normalnullfont\zeropoint \fontdimen5\normalnullfont\zeropoint \fontdimen6\normalnullfont\zeropoint \fontdimen7\normalnullfont\zeropoint \normalnullfont} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time
Hello, Whenever I compile a document, it appears that mtxrun and simple fonts must rebuild/remake/generate every time. mtxrun starts off with: MTXrun | warning: source mismatch (luv: 144e2249a1a87cb1144311e3cfb4f0e1 bin: 40142b7d400e559a49cf2e9f12599280), forcing remake It appears to not throw errors about saving the cache. Just one example in hundreds: MTXrun | resolvers: preparing 'files' for '/usr/local/texlive/2010/texmf-dist' MTXrun | resolvers: category 'files', cachename '/usr/local/texlive/2010/texmf-dist' saved in '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d.lua' It appears that this command tails with: MTXrun | format path: /Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats MTXrun | resolvers: using given filetype 'tex' MTXrun | using tex source file: /usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.tex MTXrun | resolvers: using given filetype 'tex' MTXrun | resolvers: remembering file 'cont-en.lus' MTXrun | resolvers: qualified name '/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.lus' Then luatex --ini begins: MTXrun | running command: luatex --ini --lua=/usr/local/texlive/2010/texmf-dist/tex/context/base/luat-cod.lua /usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.tex \dump This is LuaTeX, Version beta-0.64.0-2010111215 (INITEX) \write18 enabled. It loads a great number of macros without error and tails with: Beginning to dump on file cont-en.fmt (format=cont-en 2010.11.18) 31667 strings using 410675 bytes 752503 memory locations dumped; current usage is 198375520 29129 multiletter control sequences \font\nullfont=nullfont 0 preloaded fonts 0 words of pdf memory 7 indirect objects mkiv lua stats : used config file - /usr/local/texlive/2010/texmfcnf.lua;/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - /Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a mkiv lua stats : input load time - 0.247 seconds mkiv lua stats : stored bytecode data - 229 modules, 54 tables, 283 chunks mkiv lua stats : node list callback tasks - 6 unique task lists, 2 instances (re)created, 6 calls mkiv lua stats : cleaned up reserved nodes - 0 nodes, 9 lists of 410 mkiv lua stats : node memory usage - 16 glue_spec mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : callbacks - direct: 534, indirect: 117518, total: 118052 mkiv lua stats : result saved in file - cont-en.pdf mkiv lua stats : luatex banner - this is luatex, version beta-0.64.0-2010111215 mkiv lua stats : control sequences - 29129 of 65536 mkiv lua stats : current memory usage - 40 MB (ctx: 41 MB) mkiv lua stats : runtime - 24.292 seconds Then the document is processed and it goes quickly up until the end of this block: luatex --fmt=/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats/cont-en --lua=/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats/cont-en.lui --backend=pdf /Users/andrew/Dropbox/Documentation/context/Excursion.texThis is LuaTeX, Version beta-0.64.0-2010111215 \write18 enabled. sorters setting language 'en' (/Users/andrew/Dropbox/Documentation/context/Excursion.tex jobcontrol resuming randomizer with 0.74766131478719 publications: loading formatting style from bxml-apa (/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.11.18 int: english/english system : cont-new loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/usr/local/texlive/2010/texmf-dist/tex/context/user/cont-sys.rme (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv)) system : Excursion.top loaded (Excursion.top) fonts : preloading latin modern fonts {/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active system : module simplefonts loaded
Re: [NTG-context] Is the chart module broken?
Op woensdag 3 nov 2010 19:41 CET schreef Hans Hagen: In the past I have used the chart module for a little flow chart in a presentation. I wanted to make again flow charts. But I did not get it working. I just compiled my old version again, but this does not work also. The chart is drawn, but the boxes and lines are invisible. That is not very usefull. What could be the problem? [CUT] no clue as no test file ... is write 18 enabled on your system? I took this code from the internet. So I suppose this should work. \usemodule[chart] \starttext \startFLOWchart[cells] \startFLOWcell \name {first} \location{1,1} \shape {singledocument} \text {not really a document} \stopFLOWcell \stopFLOWchart \FLOWchart[cells] \stoptext But it gives: http://www.decebal.nl/ConTeXt/flowchart.pdf The log file created is at: http://www.decebal.nl/ConTeXt/flowchart.log The only things I see that could mean something are: systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet! But I do not know if that is a problem. The pfd is made with: texexec --automp flowchart Without the --automp I get a message about mpost. -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Choosing TeX um ... stuff
I've been on the periphery of TeX for years, as a casual user of LaTeX and also as an implementer of publishing software. However, I'm afraid I haven't kept in as close touch as I'd like, and now I find myself trying to absorb a lot in a short time. I'm trying to choose what software to use in building an XML-TeX workflow. I'd appreciate any help with the following questions: 1. True or False: TeX can be categorized along three orthogonal axes: 1. by format (plain TeX, LaTeX, ConTeXt, others?) 2. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?) 3. by distribution (MikTeX, TeXLive, MacTeX, others?) 2. True or False: plain TeX and LaTeX(2e) are warhorses ... been around for decades, quirks well known, lots of documentation, etc. 3. True or False: ConTeXt is newer, with a lot of built-in features, but still changing quite a bit from build to build. Other comments welcome vis. picking which software to use. One point is that since the actual TeX input files will be generated programmatically, readability or ease-of-coding is not a factor. I was going to use plain TeX, but it seems a lot of features like placing text boxes and graphics anywhere, using system fonts, etc. are more available for LaTeX and ConTeXt. Thank you for any comments! -pd ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Choosing TeX um ... stuff
On Wed, Nov 17, 2010 at 22:23, Peter Davis p...@pfdstudio.com wrote: I've been on the periphery of TeX for years, as a casual user of LaTeX and also as an implementer of publishing software. However, I'm afraid I haven't kept in as close touch as I'd like, and now I find myself trying to absorb a lot in a short time. I'm trying to choose what software to use in building an XML-TeX workflow. I'd appreciate any help with the following questions: True or False: TeX can be categorized along three orthogonal axes: by format (plain TeX, LaTeX, ConTeXt, others?) In general true, just a tiny detail; ConTeXt has several formats: - English (cont-en), Dutch (cont-nl), German (cont-de), ... [not too interesting to you, I guess ...] - ConTeXt MKII and ConTeXt MKIV are somehow different formats, but that distinction is already made on the engine basis There are other formats like cstex, cslatex, ..., but they are not too important. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?) No, that is called by engine: tex, pdftex, xetex, luatex are the most important ones. Others not too important are known (ptex, ...) MikTeX and TeX Live are not compatible, but I'm not sure how to classify that. by distribution (MikTeX, TeXLive, MacTeX, others?) MacTeX is basically TeX Live, repackaged for Mac in a more user-friendly way. Another important distribution for ConTeXt users is ConTeXt Minimals. There are many other distributions (w32tex, ...), many of them obsolete by now (gwTeX, tetex, emtex, fptex, ...). The most important ones are just MikTeX and TeX Live (including MacTeX), plus minimals for ConTeXt users. I was going to use plain TeX, but it seems a lot of features like placing text boxes and graphics anywhere, using system fonts, etc. are more available for LaTeX and ConTeXt. Using system fonts depends on engine. Only XeTeX and LuaTeX allow that. You can use any system font with plain XeTeX, but it's slightly easier to access the fonts with LaTeX and ConTeXt. (But if you generate the output automatically, it hardly makes a difference.) ConTeXt makes an enormous difference in layout issues. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Choosing TeX um ... stuff
On 17-11-2010 10:23, Peter Davis wrote: 1. by format (plain TeX, LaTeX, ConTeXt, others?) there are others but they're sort of obsolete 2. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?) see remarks by Mojca: engines (etex, pdftex, xetex, luatex), implementation (web2c, etc), pdflatex is just a format 3. by distribution (MikTeX, TeXLive, MacTeX, others?) 2. True or False: plain TeX and LaTeX(2e) are warhorses ... been around for decades, quirks well known, lots of documentation, etc. the latex kernel yes, styles and extensions is another matter 3. True or False: ConTeXt is newer, with a lot of built-in features, but still changing quite a bit from build to build. depends on what you use ... you're not a demanding power user in terms of typeserting and the basic mechanism are ok (mkii does not change at all, while mkiv is developed in sync with luatex) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Placing boxes anywhere on the page
On Tue, Nov 16, 2010 at 3:22 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.11.2010 um 21:06 schrieb Peter Davis: Is there a way to place a box at some specified x and y position on the page, and then typeset one or more paragraphs of text into the box? I guess I'm thinking of something like LaTeX's minipage, but with the ability to specify absolute coordinates, rather than just position relative to the current baseline. Use layers (untested): \definelayer[textbox][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=textbox] \def\starttextbox {\dosingleargument\dostarttextbox} \def\dostarttextbox[#1]% {\def\stoptextbox{\setlayerframed[textbox][#1]{\getbuffer[textbox]}}% \startbuffer[textbox][starttextbox][stoptextbox]} \starttext \starttextbox[x=2cm,y=4cm,width=8cm,frame=off] some text ... more text ... \stoptextbox \starttextbox[x=6cm,y=12cm,width=8cm,frame=off] another example ... \stoptextbox \stoptext Wolfgang Thanks, Worfgang! I just tried this. I don't see any errors, but I don't see any PDF either. Here's the log file: sorters setting language 'en' (layertest.tex jobcontrol resuming randomizer with 0.72399060029908 publications: loading formatting style from bxml-apa (C:/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.11.9 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-def.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : layertest.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % layertest.tex, % } % \stopluacode % % process info % \setupsystem[inputfile=layertest.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (layertest.top) fonts : preloading latin modern fonts {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active systems : begin file layertest.tex at line 12 systems : end file layertest.tex at line 24 system : cont-err loaded (C:/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) mkiv lua stats : used config file - C:/context/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - C:/context/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.026 seconds mkiv lua stats : stored bytecode data - 231 modules, 54 tables, 285 chunks mkiv lua stats : node list callback tasks - 6 unique task lists, 4 instances (re)created, 316 calls mkiv lua stats : cleaned up reserved nodes - 33 nodes, 10 lists of 411 mkiv lua stats : node memory usage - 20 glue_spec mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en::2 mkiv lua stats : callbacks - direct: 425, indirect: 4447, total: 4872 mkiv lua stats : result saved in file - layertest.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats : fonts load time - 0.262 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.63.0-2010090921 (web2c 2010) (rev 3873) mkiv lua stats : control sequences
Re: [NTG-context] XSL-FO to PDF?
Hi, Renaud, In a nutshell, my use is a form of database publishing from two XML files. The first file is *like* XSL-FO, but also contains some namespaced constructs. This XML file is the page template ... it represents the layout, the static portions of the page, and the locations where various live data should get plugged in. The second XML contains the live data, extracted from a database. There might be thousands or tens of thousands of records of information to publish. So for each main element in the live data file, we use the template file, but plug in the live data and generate a beautiful, formatted document. The data may contain plain text, text with some formatting, and references to graphics and images in various formats. It definitely needs to support advanced typesetting (beautiful paragraphs, tracking and kerning, ligatures, multiple languages, etc.). It needs to support full color (mostly CMYK), most widely used fonts (T1, TT/OT, CID, etc.) It also needs to produce finished pages at a rate of thousands or tens of thousands of pages per minute. TeX has the features I want, but I'm still trying to determine the best way to use it. ConTeXt is particularly attractive for its built-in XML support, simplefonts support, pdfTeX support and minimals packaging, among other things. -pd On 11/14/2010 5:48 PM, Renaud AUBIN wrote: XSLT is fully adapted to XML/XML(fo or other target schema) since it was the design basis… My experience is: − good xslt is (relatively) easy to design as soon as you master the underlying data model − xsltproc is REALLY REALLY fast for xslt 1 processing − if you want something smarter, go for java with saxon/xerces, which is performant too… I'm the devil's advocate but what's your need to use ConTeXt. I have not read all your threads but if you just need: − to produce pdfs from xml data − without advanced typesettings you could use xslt to produce DocBook 5 xml file, include them using xi:include href=./data/stuff.xml/, configure your layout with an intermediate xslt + Fo xml config… Once more, it depends on your original ecosystem and constraints… If you provide a use case, I should provide a sample if you don't need it within a couple of hours (but a couple of days)… Best regards, Renaud Le 14/11/2010 22:36, Peter Davis a écrit : On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagenpra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try…http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :ntg-context@ntg.nl /http://www.ntg.nl/mailman/listinfo/ntg-context webpage :http://www.pragma-ade.nl /http://tex.aanhet.net archive :http://foundry.supelec.fr/projects/contextrev/ wiki :http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TYPE 1 font
2010/11/11 Herbert Voss wrote: I have a pfb and tfm file of the DANTE font, which has only the five characters D,A,N,T,E However, this did not work \definefont[dante][dante at 16pt] \starttext \dante DANTE \stoptext When I create a afm file from the dante.pfb then everything is fine. Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file? Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.) But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TYPE 1 font
Am 11.11.2010 12:10, schrieb Mojca Miklavec: 2010/11/11 Herbert Voss wrote: Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file? Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.) But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files). thanks, I converted it with fontforge to otf. Now I get v...@shania:/opt/context mtxrun --script fonts --list --all --pattern=*dante* dante dante DANTE.otf dantenormal dante DANTE.otf Is this the intended behaviour, that the afm files are now no more listed? without the otf version the output is: v...@shania:/opt/context mtxrun --script fonts --list --all --pattern=*dante* dante dante dante.afm dantenormal dante dante.afm Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TYPE 1 font
On 11-11-2010 12:59, Herbert Voss wrote: Am 11.11.2010 12:10, schrieb Mojca Miklavec: 2010/11/11 Herbert Voss wrote: Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file? Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.) But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files). thanks, I converted it with fontforge to otf. Now I get v...@shania:/opt/context mtxrun --script fonts --list --all --pattern=*dante* dante dante DANTE.otf dantenormal dante DANTE.otf Is this the intended behaviour, that the afm files are now no more listed? without the otf version the output is: v...@shania:/opt/context mtxrun --script fonts --list --all --pattern=*dante* dante dante dante.afm dantenormal dante dante.afm indeed, as the names are the same, otf takes precedence over type one Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
Am 2010-11-09 um 12:27 schrieb Peter Davis: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. Will you tell us anything about the settings you made in TeXworks? Did you try to run context on the command line? (GUI setup is an additional complication) This MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/ AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) looks like there's MiKTeX in your (TeXwork's) PATH, but not ConTeXt's binaries. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First try with ConTeXt (Win7)
I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Any clues available? Thanks! -pd ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 5:30 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, Nov 9, 2010 at 12:27, Peter Davis wrote: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. However note that if you will want to use LaTeX again, you will have to put that path lower than MikTeX's binary path again. Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ You do not have to install Context minimal separately. Just run the package manager and select Context and install. Context will work without any problems. Emmanuel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 12:27, Peter Davis wrote: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. However note that if you will want to use LaTeX again, you will have to put that path lower than MikTeX's binary path again. Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] options for luatex
On Wed, 3 Nov 2010, Marius wrote: Here is a patch. I can now pass whatever I want for luatex. Your patch overrides the default behavour of --luatex. Also, it will look funny if I use context (the wrapper script) with pdftex engine: context --pdftex --luatex=--file-line-error Texexec uses the option --passon for passing on options to the engine. Maybe that is a better keyword than --luatex. But looks like luatex ignores: --file-line-error, --halt-on-error and --output-directory=tmp options. Is this by intention or just a missing functionality? No idea. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pdfcrop
I have installed context minimal and TeXLive2010. When I run pdfcrop on a created context source, I get: v...@shania:~/texte pdfcrop --luatex 04-02-5.pdf PDFCROP 1.31, 2010/09/17 - Copyright (c) 2002-2010 by Heiko Oberdiek. kpathsea: Running mktexfmt luatex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: Zeile 395: /opt/context/tex/texmf/texconfig/tcfmgr: Datei oder Verzeichnis nicht gefunden fmtutil: config file `fmtutil.cnf' not found. !!! Error: LuaTeX run failed! the same happens whithou --luatex, the it tries to create the pdftex format file. Is this a problem with pdfcrop or context minimal? Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdfcrop
On 11/01/2010 11:03 AM, Herbert Voss wrote: I have installed context minimal and TeXLive2010. When I run pdfcrop on a created context source, I get: v...@shania:~/texte pdfcrop --luatex 04-02-5.pdf PDFCROP 1.31, 2010/09/17 - Copyright (c) 2002-2010 by Heiko Oberdiek. kpathsea: Running mktexfmt luatex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: Zeile 395: /opt/context/tex/texmf/texconfig/tcfmgr: Datei oder Verzeichnis nicht gefunden fmtutil: config file `fmtutil.cnf' not found. !!! Error: LuaTeX run failed! the same happens whithou --luatex, the it tries to create the pdftex format file. Is this a problem with pdfcrop or context minimal? Most likely, something is wrong with your PATH. My pdfcrop works nicely with just texlive 2010. You should try $ pdfcrop -debug 04-02-5.pdf which gives lots of debugging information. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdfcrop
On Mon, Nov 1, 2010 at 11:10 AM, Taco Hoekwater t...@elvenkind.com wrote: On 11/01/2010 11:03 AM, Herbert Voss wrote: I have installed context minimal and TeXLive2010. When I run pdfcrop on a created context source, I get: v...@shania:~/texte pdfcrop --luatex 04-02-5.pdf PDFCROP 1.31, 2010/09/17 - Copyright (c) 2002-2010 by Heiko Oberdiek. kpathsea: Running mktexfmt luatex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: Zeile 395: /opt/context/tex/texmf/texconfig/tcfmgr: Datei oder Verzeichnis nicht gefunden fmtutil: config file `fmtutil.cnf' not found. !!! Error: LuaTeX run failed! the same happens whithou --luatex, the it tries to create the pdftex format file. Is this a problem with pdfcrop or context minimal? Most likely, something is wrong with your PATH. My pdfcrop works nicely with just texlive 2010. You should try $ pdfcrop -debug 04-02-5.pdf which gives lots of debugging information. Hm, a nice application for leptonica . I consider it for the next article for maps. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence
% } \def\pgfu...@endminipage{\egroup\egroup} % Driver detector (how should we do this in ConTeXt?) : \ifx\pdfoutp...@undefined\newcount\pdfoutput\fi \ifx\pdfoutput\relax\newcount\pdfoutput\fi \def\pgfu...@guessdriver{ \ifx\xetexversi...@undefined \ifx\preloadedspecia...@undefined% \ifcase\pdfoutput% \def\pgfsysdriver{pgfsys-dvips.def}% \else% \def\pgfsysdriver{pgfsys-pdftex.def}% pdfTeX LuaTeX \fi% \else% \pgfu...@driver@i...@in{postscript}{pgfsys-dvips.def} \pgfu...@driver@i...@in{tpd}{pgfsys-pdftex.def} \pgfu...@driver@i...@in{dpm}{pgfsys-dvipdfm.def} \pgfu...@driver@i...@in{dpx}{pgfsys-dvipdfmx.def} \pgfu...@driver@i...@in{xetex}{pgfsys-xetex.def} \ifx\pgfsysdriver\relax% \PackageWarning{pgf}{I was not able to discern the driver, the preloaded specials were \preloadedspecials. I am going to use pgfsys-dvips.def}% \def\pgfsysdriver{pgfsys-dvips.def} \fi% \fi \else \def\pgfsysdriver{pgfsys-xetex.def}% should be right \fi } \def\pgfu...@driver@i...@in#1#2{% \edef\...@marshal{\noexpand\pgfutil@i...@{#1}{\preloadedspecials}} \...@marshal \ifpgfu...@in@% \def\pgfsysdriver{#2}% \fi% } % Global colors \let\pgfu...@globalcolorsfalse=\relax \let\pgfu...@globalcolorstrue=\relax % Font stuff \def\pgfu...@font@tiny{\tfxx} \def\pgfu...@font@scriptsize{\tfxx} \def\pgfu...@font@footnotesize{\tfx} \def\pgfu...@font@small{\tfx} \def\pgfu...@font@normalsize{\tf} \def\pgfu...@font@large{\tfa} \def\pgfu...@font@Large{\tfb} \def\pgfu...@font@huge{\tfc} \def\pgfu...@font@Huge{\tfc} \def\pgfu...@font@itshape{\it} \def\pgfu...@font@bfseries{\bf} \let\pgfu...@font@normalfont=\tf \let\pgfu...@selectfont=\tf % Extra counters, registers, boxes \newcount\pgfu...@tempcnta \newcount\pgfu...@tempcntb \newbox\pgfu...@tempboxa \newdimen\pgfu...@tempdima \newdimen\pgfu...@tempdimb \newbox \pgfu...@voidb@x \newtoks \pgfu...@toks@ % Module stuff \def\pgfu...@usemodule#1{\usemodule[#1]} % % % % begin patches by HH % % % % \let\pgfu...@insertatbegincurrentpagefrombox\flushatshipout \let\pgfu...@insertatbegincurrentpage \flushatshipout \def\pgfu...@insertatbegineverypage #1{\appendtoks#1\to\everyshipout} % space removed after #1 \let\pgfu...@setuppdfresources \relax \doifmodeelse {mkiv} { \def\...@sys@p...@pdfbackendset@one#1#2% {\normalexpanded{\noexpand\...@sys@p...@pdfbackendset@two\noexpand#1#2\relax}} \def\...@sys@p...@pdfbackendset@two#1/#2 #3\relax {#1{#2}{#3}} \def\...@sys@p...@addtopageresource@pattern {\...@sys@p...@pdfbackendset@one\pdfbackendsetpattern} \def\...@sys@p...@addtopageresource@colorspace{\...@sys@p...@pdfbackendset@one\pdfbackendsetcolorspace} \def\...@sys@p...@addtopageresource@extgstate {\...@sys@p...@pdfbackendset@one\pdfbackendsetextgstate} \def\...@sys@p...@possible@resources {\pdfbackendcurrentresources} \def\...@sys@p...@check@resources {} \ifdefined\PDFcolor \else \ctxlua{function lpdf.pdfcolor(attribute) context(lpdf.color(1,attribute)) end} \def\PDFcolor#1{\ctxlua{lpdf.pdfcolor(\thecolorattribute{#1})}} \fi } { \def\...@sys@p...@addtopageresource@extgstate {\appendtoPDFdocumentextgstates } \def\...@sys@p...@addtopageresource@colorspace {\appendtoPDFdocumentcolorspaces} \def\...@sys@p...@addtopageresource@pattern{\appendtoPDFdocumentpatterns } \def\...@sys@p...@possible@resources {\currentPDFresources} \def\...@sys@p...@check@resources {} } \let\...@sys@addpdfresou...@extgs@plain \...@sys@p...@addtopageresource@extgstate \let\...@sys@addpdfresou...@patterns@plain \...@sys@p...@addtopageresource@pattern \let\...@sys@addpdfresou...@colorspaces@plain\...@sys@p...@addtopageresource@colorspace \let\...@sys@p...@check@resour...@plain \...@sys@p...@check@resources \...@sys@addpdfresou...@colorspaces@plain{/pgfprgb [/Pattern /DeviceRGB]} % % % % end patches by HH % % % % % Do something at the end of a job \appendtoks \the\pgfu...@everybye \to \everybye % The following is still messy and needs to be cleanup up (everything % prefixed by pgfutil@): \def\PackageInfo#1#2{} \def\PackageWarning#1#2{\immediate\write17{Package #1: Warning! #2.}}% \def\PackageError#1#2#3{\immediate\write17{Package #1: Error! #2.}}% \long\def\AtBeginDocument#1{#1}% \endinput ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem processing a non-UTF8 Lua script
Hello, I have a problem with processing a Lua file similar to that with \typefile described several days (weeks?) ago. Let's have the following files: - Ctx: --- \mainlanguage[cz] \enableregime[cp1250] \starttext AAA \startluacode local t = dofile(t.lua) context(t) \stopluacode \stoptext --- - And the t.lua: --- -- return 111 -- This worked OK return žšč -- This is problem for Ctx --- When I try the t.lua from Win console by Lua -e dofile('t.lua'), there is no problem. When I run the Ctx file, it has problem processing characters with diacritics (like čřž...); the t.lua is not encoded in UTF-8 (which seems to be supposed by Ctx-Lua), but I'm using the cp1250 code page + each character = 1 B. The error message is: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf D:/L ukas/ConTeXt/Samples/U8/t-U8.mkivThis is LuaTeX, Version beta-0.63.0-2010090921 (rev 3873) \write18 enabled. (D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv jobcontrol resuming randomizer with 0.50767540513321 ConTeXt ver: 2010.10.20 21:33 MKIV fmt: 2010.10.21 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeX t/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t-U8.top loaded (t-U8.top ) fonts : preloading latin modern fonts {c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv at line 4 ! String contains an invalid utf-8 sequence. system error on line 1 in file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv: String contains an invalid utf-8 sequence ... 1 \mainlanguage[cz] 2 \enableregime[cp1250] 3 4 \starttext 5 AAA 6 7 \startluacode 8 local t = dofile(t.lua) 9 10 context(t) 11 \stopluacode l.1 ×ÜŔ } context(t) ...le(t.lua) \dodostartluacode ...d \directlua \zerocount {#1}} l.11 \stopluacode backends using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 systems : end file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv at line 12 )c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config file - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.094 seconds mkiv lua stats : stored bytecode data - 241 modules, 56 tables, 297 chunks mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411 mkiv lua stats : node memory usage - 19 glue_spec mkiv lua stats : node list callback tasks - 6 unique task lists, 5 instances (re)created, 328 calls mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - cs::23 en::2 mkiv lua stats : language load time- 0.156 seconds , nofpatterns: 2 mkiv lua stats : callbacks - direct: 480, indirect: 4507, total: 4987 mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats : result saved in file - t-U8.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12 -regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9
[NTG-context] itemize
An example from the documentation: \starttext \startitemize[1,packed] \head supported image formats in \PDFTEX \par \startitemize[a] \item png \item eps \item pdf \stopitemize \head non supported image formats in \PDFTEX \par \startitemize[continue] \item jpg \item gif \item tif \stopitemize \stopitemize \stoptext I get with mkIV (TeXLive2010) [...] systems : begin file .tex at line 3 ! Math error: parameter \Umathquad\displaystyle is not set. \mathematics ... #1\else \Ustartmath #1\Ustopmath \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname [...] Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize
2010/10/19 Herbert Voss herbert.v...@fu-berlin.de: An example from the documentation: \starttext \startitemize[1,packed] \head supported image formats in \PDFTEX \par \startitemize[a] \item png \item eps \item pdf \stopitemize \head non supported image formats in \PDFTEX \par \startitemize[continue] \item jpg \item gif \item tif \stopitemize \stopitemize \stoptext I get with mkIV (TeXLive2010) [...] systems : begin file .tex at line 3 ! Math error: parameter \Umathquad\displaystyle is not set. \mathematics ... #1\else \Ustartmath #1\Ustopmath \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname [...] Herbert It's ok with latest minimals. Unfortunately minimals still suffers of cont-fil bug: in context.mkiv/mkii \loadcorefile{cont-fil} should be \loadmarkfile{cont-fil} -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize
On 19-10-2010 11:17, luigi scarso wrote: 2010/10/19 Herbert Vossherbert.v...@fu-berlin.de: An example from the documentation: \starttext \startitemize[1,packed] \head supported image formats in \PDFTEX \par \startitemize[a] \item png \item eps \item pdf \stopitemize \head non supported image formats in \PDFTEX \par \startitemize[continue] \item jpg \item gif \item tif \stopitemize \stopitemize \stoptext I get with mkIV (TeXLive2010) [...] systems : begin file .tex at line 3 ! Math error: parameter \Umathquad\displaystyle is not set. \mathematics ... #1\else \Ustartmath #1\Ustopmath \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname [...] If I remember right this is a bug in the luatex version that ships with texlive. Does \def\Ustartmath{$} \def\Ustopmath {$} help? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize
On Tue, Oct 19, 2010 at 11:27:35AM +0200, Hans Hagen wrote: On 19-10-2010 11:17, luigi scarso wrote: 2010/10/19 Herbert Vossherbert.v...@fu-berlin.de: An example from the documentation: \starttext \startitemize[1,packed] \head supported image formats in \PDFTEX \par \startitemize[a] \item png \item eps \item pdf \stopitemize \head non supported image formats in \PDFTEX \par \startitemize[continue] \item jpg \item gif \item tif \stopitemize \stopitemize \stoptext I get with mkIV (TeXLive2010) [...] systems : begin file .tex at line 3 ! Math error: parameter \Umathquad\displaystyle is not set. \mathematics ... #1\else \Ustartmath #1\Ustopmath \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname [...] If I remember right this is a bug in the luatex version that ships with texlive. Does \def\Ustartmath{$} \def\Ustopmath {$} The problem seems to be with \Umathquad\displaystyle not being said, which usually means he is loading a math font that has no math parameters. For lualatex this used to be some TTF version of CM fonts that are erroneously have similar file names (with different extension) to the TFM fonts so it gets loaded instead of the real CM fonts. On my Debian system, the were two versions, one bundled with LyX and one with some other latex fonts package. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] calling ConTeXt as a background process
On 8-10-2010 10:00, Henning Hraban Ramm wrote: Sorry for the OT thread, I suspected the problem being more in the LuaTeX area. I never had problems running luatex (texlua) on linux boxes as part of a web service so I cannot image luatex being the problem. Can you see what pdftex does? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Running Mk-IV using TeXLive 2010
On Wednesday 06 October 2010 11:39 PM, Mojca Miklavec wrote: On Wed, Oct 6, 2010 at 19:19, R (Chandra) Chandrasekhar chyav...@gmail.com wrote: ConTeXt ver: 2010.07.30 11:35 MKII fmt: 2010.10.5 int: english/english system : cont-new loaded (/localhost/texlive/2010/texmf-dist/tex/context/base/cont-new.tex FatalError : Your format does not match the base files! Usually running (for the whole system) sudo fmtutil-sys --all or fmtutil-sys --all or texexec --make en should help. If not, try to figure out where an additional copy of cont-en.fmt resides, delete it and run any of commands above. You don't need to reinstall anything. Thank you very much. I did the following: 1. Deleted /localhost/texlive/2010/texmf-var/web2c/xetex/cont-en.fmt ./localhost/texlive/2010/texmf-var/web2c/pdftex/cont-en.fmt 2. Ran fmtutil-sys --all 3. Ran texexec --make en All three steps were needed to get both texexec and context working under TeXLive 2010, and now they do. I have verified by looking at generator field of the PDF file properties. Wanting to have both context minimals and TeXLive 2010--modified only by tlmgr--coexisting, I tried to install the minimals in a directory called ~/local-context using the following commands: rsync -av rsync://contextgarden.net/minimals/current/context/current/ \ ~/local-context/ rsync -av --include 'mtxrun' --include 'luatools' \ rsync://contextgarden.net/minimals/current/bin/context/linux-64/bin/ \ ~/local-context/bin/ No, no, no. You could go to http://minimals.contextgarden.net/setup/ and follow those instructions. Thanks for the link. You can do: cd ~/local-context rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh and then use . ~/local-context/tex/setuptex when you want to switch. The method you use won't simply work for various reasons. If there is a complete error-free algorithm/script in future for making TeXLive 2010 and the context-minmals coexist independently I will appreciate knowing about it. The are able to coexist independently as long as you don't clone the instructions from wiki (now already removed fro wiki). Meanwhile, it looks like I need to reinstall TeXLive 2010 afresh. No, you just need to remake the formats. Mojca Thank you. Chandra ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXexec MkII, ConTeXt MkIV
On Sat, 2 Oct 2010, Tom Maynard wrote: Hello, I have pretty recent installations of TeXLive 2010 (for Cygwin) and ConTeXt Minimals (for Windows). In both installations, running TeXexec reports it is ConTeXt MkII ... but running ConTeXt directly reports itself as MkIV. I think that you are confused by the terminology. ConTeXt MkII is the collection of context maros that work with pdftex and xetex engine. ConTeXt MkIV is the collection of context macros that work with luatex engine. texexec is a ruby wrapper to run ConTeXt macros. context is a lua wrapper to run ConTeXt macros. Both wrappers can run either any engine texexec --pdftex texexec --xetex texexec --luatex or context --pdftex context --xetex context --luatex Just that texexec defaults to --pdftex while context defaults to --luatex I would like to synchronize TeXexec and MkIV ... as MkIV ... how is this done -- for each installation? The above options should work with both TL and minimals. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXexec MkII, ConTeXt MkIV
On 3-10-2010 8:11, David Rogers wrote: * Tom Maynard t...@maynard.com [2010-10-02 17:25]: Hello, I have pretty recent installations of TeXLive 2010 (for Cygwin) and ConTeXt Minimals (for Windows). In both installations, running TeXexec reports it is ConTeXt MkII ... but running ConTeXt directly reports itself as MkIV. I would like to synchronize TeXexec and MkIV ... as MkIV ... how is this done -- for each installation? The old ConTeXt (MkII) is accessed through the texexec command. The new ConTeXt (MkIV) is accessed through the context command. If you want to use MkIV, simply use the context command in every case, and forget the texexec command (unless you do mean MkII). if a file is really mkii, you can put % engine=pdftex at the top of the file and the context script will understand that ad run texexec ... handy if you run context from within an editor and only want one command - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXexec MkII, ConTeXt MkIV
2010/10/3 Hans Hagen pra...@wxs.nl: % engine=pdftex at the top of the file and the context script will understand that ad run texexec ... handy if you run context from within an editor and only want one command A bit off topic: is there still a plan to reimplement texexec in Lua and get rid of dependancy on Ruby? -- Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXexec MkII, ConTeXt MkIV
On 3-10-2010 12:24, Vedran Miletić wrote: 2010/10/3 Hans Hagenpra...@wxs.nl: % engine=pdftex at the top of the file and the context script will understand that ad run texexec ... handy if you run context from within an editor and only want one command A bit off topic: is there still a plan to reimplement texexec in Lua and get rid of dependancy on Ruby? in principle the context script can replace the texexec one apart from index sorting; I have a lua variant of that somewhere but untested Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Two layer in a document
Hi list, I am typesetting a template for internal documentation. In the header of the document I want to put two different figure. One on the left side and the other on the right side. When I compile the source the output shows only the figure on the left side. \enableregime[utf-8] \mainlanguage[de] \setupcolors [state=start] \setupoutput[pdftex] \setuppapersize[A4][A4] \usemodule [simplefonts,r,tikz,edtsnc,chart] \setmainfont [rubscalatz] \setsansfont [rubflama] \setuphead [chapter][number=no, style=bold, textcommand=\ss] \setuphead [section][number=no, style=bold, textcommand=\ss] \setuphead [subsection][number=no] \setuphead [subsubsection][number=no] \setuplayout [top=0cm,rightmargin=2.3cm,footer=1.0cm,header=5cm,topspace=0mm,height=29.9 577cm,width=16.25cm,leftmargindistance=0cm,rightmargindistance=0cm] \setupbackgrounds[footer][background=color,backgroundcolor=gray] \setupbackgrounds[text][rightmargin][background=color,backgroundcolor=gray] \setupbackgrounds[header][rightmargin][background=color,backgroundcolor=gra y] \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] \setupbackgrounds[page][righttop][background={foreground,logo}] \setlayer[logo][preset=righttop,hoffset=1cm,state=start] {\externalfigure[label][height=4cm,3.5cm]} \definelayer[marke][width=6.5cm,height=0.3cm,state=repeat] \setupbackgrounds[page][lefttop][background={foreground,marke}] \setlayer[marke][preset=lefttop,hoffset=1.3cm,voffset=1.4cm,state=repeat] {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} \setuppagenumbering[state=stop] \starttext Bla Bla \page Bla Bla \page Bla \stoptext Can anybody find the possible mistake I did? Thanks. Daniel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two layer in a document
Am 30.09.2010 um 11:49 schrieb Daniel Grycman: Hi list, I am typesetting a template for internal documentation. In the header of the document I want to put two different figure. One on the left side and the other on the right side. When I compile the source the output shows only the figure on the left side. \enableregime[utf-8] \mainlanguage[de] \setupcolors [state=start] \setupoutput[pdftex] \setuppapersize[A4][A4] \usemodule [simplefonts,r,tikz,edtsnc,chart] \setmainfont [rubscalatz] \setsansfont [rubflama] \setuphead [chapter][number=no, style=bold, textcommand=\ss] \setuphead [section][number=no, style=bold, textcommand=\ss] \setuphead [subsection][number=no] \setuphead [subsubsection][number=no] \setuplayout [top=0cm,rightmargin=2.3cm,footer=1.0cm,header=5cm,topspace=0mm,height=29.9 577cm,width=16.25cm,leftmargindistance=0cm,rightmargindistance=0cm] \setupbackgrounds[footer][background=color,backgroundcolor=gray] \setupbackgrounds[text][rightmargin][background=color,backgroundcolor=gray] \setupbackgrounds[header][rightmargin][background=color,backgroundcolor=gra y] None of these settings is necessary for a minimal example, leave them out next time. \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] \setupbackgrounds[page][righttop][background={foreground,logo}] \setlayer[logo][preset=righttop,hoffset=1cm,state=start] {\externalfigure[label][height=4cm,3.5cm]} \definelayer[marke][width=6.5cm,height=0.3cm,state=repeat] \setupbackgrounds[page][lefttop][background={foreground,marke}] \setlayer[marke][preset=lefttop,hoffset=1.3cm,voffset=1.4cm,state=repeat] {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} One layer is enough for both pictures, try also to make it more readable next time. \definelayer[logo][width=\paperwidth,height=\paperheight,state=repeat] \setupbackgrounds[page][background={foreground,logo}] \setlayer [logo] [preset=righttop, hoffset=1cm] {\externalfigure[label][height=4cm,3.5cm]} \setlayer [logo] [preset=lefttop, hoffset=1.3cm, voffset=1.4cm] {\externalfigure[wortmarke][height=0.3cm,width=6.5cm]} \starttext \dorecurse{20}{\input knuth\par} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] composing characters in MKIV
On Thu, Sep 30, 2010 at 22:14, Hans Hagen wrote: \starttext \definefontfeature[default][default][compose=yes] \setupbodyfont[lucida] Oh, I have tried that; actually I did \definefontfeature[default][liga=yes,kern=yes,tlig=yes,compose=yes] as well as \addff{compose}, but it had zero effect since I used that *after* \setupbodyfont instead of using it before. This was a bit weird since features for OpenType fonts can be switched on and off at any given time and I didn't realize that order was important. \startTEXpage mojča MOJČA \stopTEXpage \stoptext ok, positioning could be improved I guess but so far no one bothered about this feature (I started fixing vf fonts of Lucida for pdfTeX, but I'm not sure how to proceed; and now it may not be needed any more.) There are two problems. Even \buildtextaccent creates an ugly č and that dates back to Knuth's TeX (TeX assumes that every letter is symetric which holds for just about any letter but c). But I agree that this is highly esoteric request. However compose=yes creates an unacceptable uppercase Č, at least in Lucida, much worse than what TeX does (and already TeX does it badly). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Calling Lua function from an external package
Hello, I have the following problem. Let's have T~.lua file which defines a function: --- function F2() context(draw (0,0)--(5cm,0)) end print(T~OK!) --- Let's have MP-02.ctx ConTeXt source file: --- \starttext AAA \startluacode function F() context(draw (0,0)--(2cm,0)) end require(T~) context.startMPcode() F() -- F2() context.stopMPcode() \stopluacode \stoptext --- Such code works OK - produces .pdf with a text AAA and a horizontal line. You can find the text T~OK! in the compilation log - that means T~.lua was successfully loaded. When I remove comment marks in front of F2() (which is defined in T~.lua), so I get: --- \starttext AAA \startluacode function F() context(draw (0,0)--(2cm,0)) end require(T~) context.startMPcode() F() F2() context.stopMPcode() \stopluacode \stoptext --- the compilation to .pdf fails with the following error message: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf ./MP -02.ctxThis is LuaTeX, Version beta-0.63.0-2010090921 (rev 3873) \write18 enabled. (MP-02.ctx jobcontrol resuming randomizer with 0.40830713827937 ConTeXt ver: 2010.09.22 12:33 MKIV fmt: 2010.9.22 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeX t/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : MP-02.top loaded (MP-02.top) fonts : preloading latin modern fonts {c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file MP-02.ctx at line 1 T~OK! mplib : initializing instance 'metafun' using format 'metafun' mplib : loading 'metafun.mp' (experimental metapost version two) ! mp terminal: ! Extra tokens will be flushed. to be read again addto draw-addto .currentpicture.if.picture(EXPR0):also(EXPR0)else:doublepath(EXPR... to be read again ; * draw (0,0)--(2cm,0)draw (0,0)--(5cm,0); . system error on line 4 in file MP-02.ctx: mp terminal: ! Extra tokens will be flushed. to be read again addto draw-addto .currentpicture.if.picture(EXPR0):also(EXPR0)else:doublepath(EXPR... to be read again ; * draw (0,0)--(2cm,0)draw (0,0)--(5cm,0); ... 1 \starttext 2 AAA 3 4 \startluacode 5 function F() 6 context(draw (0,0)--(2cm,0)) 7 end 8 9 require(T~) 10 11 context.startMPcode() 12 F() 13 F2() 14 context.stopMPcode() inserted text ...re.mp ; fi ; ]===], false)} \processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... l.4 \stopMPcode } context.stopMPcode() \dodostartluacode ...d \directlua \zerocount {#1}} l.15 \stopluacode --- It's strange to me, especially when body of F() and F2() is almost identical. Why? And how do I make it work (I mean still having a function defined in a separate file)? Thank you in advance. Cheers, Lukas T~.lua Description: Binary data MP-02.ctx Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [BUG] \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29
Please see the attached minimal example and its error log. \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29. It works fine in ConTeXt 2010.09.24. Both the luatex versions are beta-0.63.0-2010091123. @unpublished{test, title={Test}, author={test}, journal={Test}, year=2010, month=9, day=29, } sorters using sort sequence: mm mc uc (test.tex ConTeXt ver: 2010.09.29 15:00 MKIV fmt: 2010.9.29 int: english/english system : cont-new loaded (/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/qiuhw/context/tex/texmf-context/tex/context/user/cont-sys.rme (/home/qiuhw/context/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/qiuhw/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (/home/qiuhw/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/qiuhw/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : test.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ %test, % } % \stopluacode % % process info % \setupsystem[inputfile=test] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (test.top) fonts : preloading latin modern fonts {/home/qiuhw/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/qiuhw/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/qiuhw/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active publications: wrote a new auxiliary file cont-en.aux publications: loading formatting style from bxml-apa (/home/qiuhw/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file test at line 3 ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:195: bad argument #1 to 'gsub' (string expected, got nil) stack traceback: [C]: in function 'gsub' ...text/tex/texmf-context/tex/context/base/strc-lst.lua:195: in function ...text/tex/texmf-context/tex/context/base/strc-lst.lua:192 (tail call): ? ...text/tex/texmf-context/tex/context/base/strc-lst.lua:392: in function 'analyze' main ctx instance:1: in main chunk. system error on line 5 in file test.tex: LuaTeX error ... 1 \setupbibtex[database=test] 2 3 \starttext 4 \cite[test] 5 \placepublications[criterium=all] 6 \stoptext \analyzestructurelist analyze(#1,#2,#3)} \dodeterminelistcharacteristics ...ter \c!number } \xdef \utilitylistlength {... to be read again \initializepubslist \dodoplacepublications ...ubs]\initializepubslist \doifnot {\namedlistparame... l.5 \placepublications[criterium=all] ? X mkiv lua stats : used config file - /home/qiuhw/context/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - /home/qiuhw/context/tex/texmf-cache/luatex-cache/context/3525c3c2a591596c39048524c75fec75 mkiv lua stats : input load time - 0.047 seconds mkiv lua stats : stored bytecode data - 239 modules, 56 tables, 295 chunks mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 411 mkiv lua stats : node memory usage - 1 hlist, 3 glue, 1 penalty, 10 glyph, 6 attribute, 20 glue_spec, 2 attribute_list, 1 temp, 1 local_par, 1 dir mkiv lua stats : node list callback tasks - 6 unique task lists, 1 instances (re)created, 281 calls mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en::2 mkiv lua stats : callbacks - direct: 369, indirect: 4462, total: 4831 mkiv lua stats : result saved in file - test.pdf mkiv lua stats : loaded fonts - 33 files
[NTG-context] scancsv.lua
Hi all, I use the sancsv.lua libray by Jaroslav Hajtmar for the typesetting of a study guide at the German Department at Ruhr-University. By reading the data of csv-eile Textmate canceled with the following messages. The csv-file has utf-8 encoding. MTXrun | run 1: luatex --fmt=/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e 9159e878e989105b2ef2d27fad97515/formats/cont-en --lua=/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e 9159e878e989105b2ef2d27fad97515/formats/cont-en.lui --backend=pdf /Users/grycman/Dropbox/Uni/kvvtest.tex This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736) \write18 enabled. (/Users/grycman/Dropbox/Uni/kvvtest.tex publications: loading formatting style from bxml-apa (/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.9.20 int: english/english system : cont-new loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys loaded (/usr/local/texlive/2010/texmf-config/tex/context/user/cont-sys.tex (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv) (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv)) system : kvvtest.top loaded (kvvtest.top) fonts : preloading latin modern fonts {/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/lo cal/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texliv e/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active system : module simplefonts loaded (/usr/local/texlive/2010/texmf-dist/tex/context/third/simplefonts/t-simplef onts.tex loading : ConTeXt User Module / Simplefonts ) system : module r loaded (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-r.tex) system : module tikz loaded (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/frontendlayer/t-tikz.te x (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgf.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgfcor.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/systemlayer/t-pgfsys.t ex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfmod.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-comm on.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-conte xt.def) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.t ex)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code .tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code. tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdft ex.def (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-comm on-pdf.def)) (kvvtest.pgf)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftp ath.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsysproto col.code.tex)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code .tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.t ex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.t ex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathparser.code .tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathoperations. code.tex (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathtrig.code.t ex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathrnd.code.te x)) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathbase.code.t ex))) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoint s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathc onstruct.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathu sage.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescope s.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraph icstate.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans formations.code.tex) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf
[NTG-context] Euler font and context minimals
Hi everyone, I'm using ConTeXt for my PhD thesis and as I'm getting sick of writing up I've been trying to tweak the appearance a bit. I'd like to switch to using Palatino font for main body and Euler font for math. So I tried \setupbodyfont[pagella-euler] \starttext test $f(x) = x^2$. \stoptext But I get errors during processing such as: MTXrun | run 1: luatex --fmt=/home/mboes/src/context/tex/texmf-cache/luatex-cache/context/9076a3f5a9f873039eaa5d3001a4c6ac/formats/cont-en --lua=/home/mboes/src/context/tex/texmf-cache/luatex-cache/context/9076a3f5a9f873039eaa5d3001a4c6ac/formats/cont-en.lui --backend=pdf ./chap-one.texThis is LuaTeX, Version beta-0.63.0-2010090921 \write18 enabled. (chap-one.tex jobcontrol resuming randomizer with 0.20642945552544 ConTeXt ver: 2010.09.24 11:40 MKIV fmt: 2010.9.25 int: english/english system : cont-new loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/mboes/src/context/tex/texmf-context/tex/context/user/cont-sys.rme (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : chap-one.top loaded (chap-one.top) fonts : preloading latin modern fonts {/home/mboes/src/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/mboes/src/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/mboes/src/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active define fonts forced type otf of euler not found define fonts font with name euler is not found define fonts unknown font euler, loading aborted define fonts unable to define euler.otf as \*pagella-euler7ptmmmr33* define fonts forced type otf of euler not found define fonts font with name euler is not found define fonts unknown font euler, loading aborted define fonts unable to define euler.otf as \*pagella-euler9ptmmmr22* define fonts forced type otf of euler not found define fonts font with name euler is not found define fonts unknown font euler, loading aborted define fonts unable to define euler.otf as \*pagella-euler12ptmmmr11* [...] I noticed that in my (recent) ConTeXt minimals tree, there was no euler.odf, so I grabbed one from somewhere in the tree in http://minimals.contextgarden.net/minimals/current, and placed it $CONTEXTROOT/tex/texmf-fonts, but to no avail. I still get the same error messages. I also ran luatools --generate and that doesn't make a difference. I read through the typography and fonts chapters of the manual but I didn't find specific information about installing fonts. Am I doing it right? How can I get ConTeXt to recognize this standard font? Many thanks, Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Wed, Sep 22, 2010 at 12:17 AM, John Culleton j...@wexfordpress.com wrote: Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. Here is the base problem. All other publishing related programs on my system will a) look in /usr/share/fonts and b) list the fonts fond there in a window when selecting fonts. Laying aside b) for the moment it would be nice if some form of TeX (preferably not LaTeX) would join the party and find Type1, TTF and OTF fonts in the system standard location. Gimp does this, Scribus does this, Inkscape does this, Open Office Writer does this and so on. Luatex supposedly does this. But getting Luatex to work on a new standard distro , texlive 2010, seems to be a game of whackamole. I tried comp.text.tex but when no one there seemed to have the right answers and many of the names mentioned in the documentation were gurus here I thought I would ask how to get the luatex business set up. My goal is to use the stuff myself of course but also to describe how to do it in a book I am writing on Free Publishing Software. It does not appear that Luatex is suitable for a newbie to set up. Remember, the competition consists of programs where you download and install the program and font finding is automatic. I write for an impatient audience who want to have it all just work without a lot of experimentation and fuss and feathers. There does not yet seem to be a reliable single set of instructions for installing Luatex and setting it up properly. When there is I will revisit the program. Thanks for helping and sorry to have wasted your time. A bit off topic: you can consider minimals metatex.tex with mkiv (hence not texlive); it should build a (sort of) plain tex with luatex . See tex/context/base/metatex.tex but a bit of experience is required, I believe. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Tuesday 21 September 2010 18:37:48 Khaled Hosny wrote: On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote: Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format. The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts. However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent). A small test file would be: \input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug. For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions. Regards, Khaled Now that works! I'll try it on my XP partition also to see how well I fare. And I need to fiddle with some non-Gyre fonts as well. You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well? -- John Culleton Wexford Press Create Book Covers with Scribus Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Wed, Sep 22, 2010 at 09:25:26AM -0400, John Culleton wrote: On Tuesday 21 September 2010 18:37:48 Khaled Hosny wrote: On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote: Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format. The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts. However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent). A small test file would be: \input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug. For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions. Regards, Khaled Now that works! I'll try it on my XP partition also to see how well I fare. And I need to fiddle with some non-Gyre fonts as well. You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well? By default on Linux it will attempt to read /etc/fonts/fonts.conf and detect system font directories, so /usr/share/fonts (and ~/.fonts) should work, you can override this by explicitly setting OSFONTDIR, in this case it will only search the specified directories (it is a regular kpathsea variable). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Wed, Sep 22, 2010 at 12:22:36PM -0400, John Culleton wrote: On Wednesday 22 September 2010 09:27:52 Alan BRASLAU wrote: On Wednesday 22 September 2010 15:25:26 John Culleton wrote: You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well? export OSFONTDIR=/usr/share/fonts Alan We are getting close! Thanks for your help. That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system: \font\barr={file:AGaramond-Regular.pfb} at 30bp Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
Am 2010-09-22 um 18:34 schrieb Khaled Hosny: That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system: \font\barr={file:AGaramond-Regular.pfb} at 30bp Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts. John: For ConTeXt you need AFM files to use Type1; I guess that will become the same for luaotfload. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On 22-9-2010 11:38, Henning Hraban Ramm wrote: Am 2010-09-22 um 18:34 schrieb Khaled Hosny: That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system: \font\barr={file:AGaramond-Regular.pfb} at 30bp Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts. John: For ConTeXt you need AFM files to use Type1; I guess that will become the same for luaotfload. the main reason why afm loading is not in the generic code is that it's most likely to be incompatible; context always used the afm approach (via texfont) while latex has relied on the prebuilt tfm files, and they use different metrics geared at latex (things are different for the gyre fonts but one would use the otf files there). There is not that much to gain as most type one fonts are rather incomplete. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] modify resume
Am 21.09.2010 um 11:20 schrieb pol stra: 2010/9/19 Wolfgang Schuster schuster.wolfg...@googlemail.com: http://pastie.org/1091180 http://pastie.org/1091177 I renamed the first one into cv.tex and the second one into moderncv.tex. When i run texexec cv.tex, i’ve got this message : Runaway argument? {{\margintext {##1} ##2 ! Paragraph ended before \complexdefine was complete. to be read again \par l.87 {{\margintext{#1} #2 \par }} i don’t understand why. Change in moderncv.tex \define[2]\cvcompactentry {{\margintext{#1} #2 \par}} to \define[2]\cvcompactentry {\margintext{#1} #2 \endgraf} This isn't the only problem when you use the code with mkii, the author wrote it for mkiv and used the marvosym font in a way which doesn't work with pdftex. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Tuesday 21 September 2010 17:43:15 Henning Hraban Ramm wrote: Am 2010-09-21 um 23:27 schrieb John Culleton: On Friday 10 September 2010 15:54:00 Peter Schorsch wrote: You can list all local availble fonts with: mtxrun --script fonts --list --all More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX Tried all that on a fresh install of texlive 2010. Here are the results, or lack thereof: - - bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' It says clearly unknown script (i.e. not found), nothing to do with fonts. I guess you didn't set TEXMFOS and/or TEXROOT. Mine (with minimals' setuptex) are: TEXMFOS=/Users/hraban/Library/texmf/tex/texmf-osx-intel TEXROOT=/Users/hraban/Library/texmf/tex Don't know if these are necessary: OWNPATH=/Users/hraban/Library/texmf/tex ARGPATH=/Users/hraban/Library/texmf/tex SCRIPTPATH=/Users/hraban/Library/texmf/tex/setuptex I've also TEXMFOS in my PATH. (Since I don't use TeX Live I can't help you further.) Any hints? At the moment I am looking to use just plain Luatex. I can only handle one set of confusing things at a time :) Then don't try to use PlainTeX ;-) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. Here is the base problem. All other publishing related programs on my system will a) look in /usr/share/fonts and b) list the fonts fond there in a window when selecting fonts. Laying aside b) for the moment it would be nice if some form of TeX (preferably not LaTeX) would join the party and find Type1, TTF and OTF fonts in the system standard location. Gimp does this, Scribus does this, Inkscape does this, Open Office Writer does this and so on. Luatex supposedly does this. But getting Luatex to work on a new standard distro , texlive 2010, seems to be a game of whackamole. I tried comp.text.tex but when no one there seemed to have the right answers and many of the names mentioned in the documentation were gurus here I thought I would ask how to get the luatex business set up. My goal is to use the stuff myself of course but also to describe how to do it in a book I am writing on Free Publishing Software. It does not appear that Luatex is suitable for a newbie to set up. Remember, the competition consists of programs where you download and install the program and font finding is automatic. I write for an impatient audience who want to have it all just work without a lot of experimentation and fuss and feathers. There does not yet seem to be a reliable single set of instructions for installing Luatex and setting it up properly. When there is I will revisit the program. Thanks for helping and sorry to have wasted your time. -- John Culleton Wexford Press Create Book Covers with Scribus Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. Not if you use plain TeX. Unlike XeTeX, LuaTeX cannot find or use any more fonts than pdfTeX does. You need additional macros, that are present in ConTeXt, but in neither LaTeX nor (obviously) plain TeX. You can, though, use the luaotfload package with LuaLaTeX as well as (I think) plain LuaTeX, but Khaled should be able to tell you more about that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fonts
On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote: Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format. The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts. However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent). A small test file would be: \input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug. For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A rose by any other name ....
On Thu, Sep 16, 2010 at 04:13:43PM -0400, Aditya Mahajan wrote: On Thu, 16 Sep 2010, Peter Rolf wrote: Am 16.09.2010 13:12, schrieb Patrick Gundlach: Is it possible to change the name of the font as it appears in the pdf file? More specifically, I am using Termes font, but I want that the document properties to show the name of the font as Times. Is that possible? Is doing so a violation of the font license? It sounds like a trademark infringement to me. I would be surprised if times is not a ®. sadly true... Sigh...Thanks for the clarification. Better try to convince the customer that a rose is a rose... ;-) I am still interested in changing the name of the font...not to Times but to some gibberish (like the characters that pdftex adds before Type1 font names). Then, I can blame the font naming on a software limitation ;) Output an uncompressed PDF, open in a text editor, search for the font name and replace it, but you will need to fix xref after that (no idea what xref is, but pdclean from mupdf fixs it) -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A rose by any other name ....
Am 16.09.2010 22:13, schrieb Aditya Mahajan: On Thu, 16 Sep 2010, Peter Rolf wrote: Am 16.09.2010 13:12, schrieb Patrick Gundlach: Is it possible to change the name of the font as it appears in the pdf file? More specifically, I am using Termes font, but I want that the document properties to show the name of the font as Times. Is that possible? Is doing so a violation of the font license? It sounds like a trademark infringement to me. I would be surprised if times is not a ®. sadly true... Sigh...Thanks for the clarification. Better try to convince the customer that a rose is a rose... ;-) I am still interested in changing the name of the font...not to Times but to some gibberish (like the characters that pdftex adds before Type1 font names). Then, I can blame the font naming on a software limitation ;) :-D (untested) http://fontforge.sourceforge.net/fontinfo.html 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimals fail to install on SunOS x86
On Fri, 17 Sep 2010 10:54:26 +0200, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: For Solaris Sparc we have nobody to compile the binaries at the moment. I also have a Sparc server but I cannot remote access it from my location now. But I feel no need to run context on the Sparc. The person who asked us for adding Solaris x86 support is not using Solaris any more, in last month there was no single Solaris user downloading the minimals and after Oracle overtake, I have been seriously considering removing support for solaris. However, if there is demand for it, we can keep it. OK. If I'm the only user it's not that important to make it run just for me. The question is: is these because there's LuaTeX beta-0.61.0 instead of the latest LuaTeX available or is it because my virtual machine (OpenSolaris whatever-version-has-been-available-two-months-ago) and your server incompatible in some sense? I suspect that it is the second. If you are willing to help us debug, I can try to send you unstripped binary. I will help as much as I can. I did some investigation. The results: I cannot execute the provided binaries, maybe you're right and the systems are incompatible. I downloaded the luatex trunk and compiled the source. I can successfully execute the compiled binary. After having a look at the first-setup.sh script I performed the mtxrun ... line. As expected it failed (as I cannot execute the binaries). I replaced the luatex binary with the fresh compiled one and checked the other programs. Result: I can execute all binaries exept luatex and pdftex. Since I only use MkIV this should not be a problem. So I made the formats and compiled my test document. MkIV works (including metapost). So finally I can get a running system by myself. I will write my own »first-setup.sh« to update my system. - To update the system I can use the following command, right? mtxrun --verbose --script ./bin/mtx-update.lua --force --engine=luatex --texroot=$PWD/tex --extras=all - After replacing the »buggy« luatex I make the formats using: mtxrun --verbose --script ./bin/mtx-update.lua --make --force --engine=luatex --texroot=$PWD/tex Please correct me if I use the wrong arguments. I don't really understand the use of all the options. How can I check the luatex version used in the minimals? Maybe it is saved in some text file. Background: If the luatex version changes my script needs to fetch the new trunk, compile and replace the »buggy or incompatible« binary. Simply getting the binary and execute --version triggers the error mentioned before. Thanks for your help. If I can do anything (send binaries, etc.) let me know. best regards Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimals fail to install on SunOS x86
Dear Marco, (I'm CC-ing Apostolos who compile Solaris binaries for TeX Live.) On Fri, Sep 17, 2010 at 15:59, Marco wrote: On Fri, 17 Sep 2010 10:54:26 +0200, Mojca Miklavec wrote: For Solaris Sparc we have nobody to compile the binaries at the moment. I also have a Sparc server but I cannot remote access it from my location now. But I feel no need to run context on the Sparc. The person who asked us for adding Solaris x86 support is not using Solaris any more, in last month there was no single Solaris user downloading the minimals and after Oracle overtake, I have been seriously considering removing support for solaris. However, if there is demand for it, we can keep it. OK. If I'm the only user it's not that important to make it run just for me. It means no extra work for us as long as someone is using it and as long as someone keeps compiling LuaTeX when a new version comes out, else ConTeXt stops working. That someone could theoretically be me, but if my binaries don't work on other machines, it makes no sense for me to compile the binaries, so that someone would probably have to be you. The question is: is these because there's LuaTeX beta-0.61.0 instead of the latest LuaTeX available or is it because my virtual machine (OpenSolaris whatever-version-has-been-available-two-months-ago) and your server incompatible in some sense? I suspect that it is the second. If you are willing to help us debug, I can try to send you unstripped binary. I will help as much as I can. I did some investigation. The results: I cannot execute the provided binaries, maybe you're right and the systems are incompatible. I downloaded the luatex trunk and compiled the source. I can successfully execute the compiled binary. Can you please send me the binaries (or at least the LuaTeX one) off-list (or if you could upload it to some place, so that I could download it from there), so that I can test if your binaries work on my virtual machine? If nothing else out of pure curiosity. After having a look at the first-setup.sh script I performed the mtxrun ... line. As expected it failed (as I cannot execute the binaries). I replaced the luatex binary with the fresh compiled one and checked the other programs. Result: I can execute all binaries exept luatex and pdftex. Since I only use MkIV this should not be a problem. So I made the formats and compiled my test document. MkIV works (including metapost). So finally I can get a running system by myself. I will write my own »first-setup.sh« to update my system. Just a remark: the way to install minimals is soon going to change a bit (I won't delete the old scripts straight away, but I will try to change a few aspects of installation). - To update the system I can use the following command, right? mtxrun --verbose --script ./bin/mtx-update.lua --force --engine=luatex --texroot=$PWD/tex --extras=all - After replacing the »buggy« luatex I make the formats using: mtxrun --verbose --script ./bin/mtx-update.lua --make --force --engine=luatex --texroot=$PWD/tex Please correct me if I use the wrong arguments. I don't really understand the use of all the options. That is fine. But as long as the old luatex resides on computer, you should better not use the --make switch How can I check the luatex version used in the minimals? It's 0.61. At the moment you can see http://minimals.contextgarden.net/current/bin/solaris-intel/luatex/ but that might change. Btw.: does TeX Live 2010 work OK on your server? (It would be helpful to know. ConTeXt should work OK there.) Maybe it is saved in some text file. Background: If the luatex version changes my script needs to fetch the new trunk, compile and replace the »buggy or incompatible« binary. Simply getting the binary and execute --version triggers the error mentioned before. We should just get a working version to the server and then you would not need any special hacks. Thanks for your help. If I can do anything (send binaries, etc.) let me know. I would be grateful for the binaries and specification of your server. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___