Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > On Tue, 18 Dec 2007, Hans Hagen wrote: > >> Aditya Mahajan wrote: >>> On Mon, 17 Dec 2007, Aditya Mahajan wrote: >>> LuaTools | locating list of /usr/share/texmf-{texlive LuaTools | locating list of tetex} >>> Bug in line 2498 of luatools >>> >>> local t = instance.treepath:splitchr(',') >>> >>> Should be split taking the braces into account. >> what variable is that? > > The texmf.cnf that ships with Ubuntu has > > TEXMFDIST = /usr/share/texmf-{texlive,tetex} > > With this string, luatools was splitting it into two trees > > /usr/share/texmf-{texlive > tetex > > rather than /usr/share/texmf-texlive and /usr/share/texmf-tetex ok, we need the advanced splitter then; but i wonder why that branch is entered Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Tue, 18 Dec 2007, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Mon, 17 Dec 2007, Aditya Mahajan wrote: >> >>> LuaTools | locating list of /usr/share/texmf-{texlive >>> LuaTools | locating list of tetex} >> >> Bug in line 2498 of luatools >> >> local t = instance.treepath:splitchr(',') >> >> Should be split taking the braces into account. > > what variable is that? The texmf.cnf that ships with Ubuntu has TEXMFDIST = /usr/share/texmf-{texlive,tetex} With this string, luatools was splitting it into two trees /usr/share/texmf-{texlive tetex rather than /usr/share/texmf-texlive and /usr/share/texmf-tetex Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Hans Hagen wrote: > Aditya Mahajan wrote: > >> So /home/adityam/texmf/tex/// tree is there, and it seems that kpsewhich >> finds >> the file by brute-force search of that tree (there is no ls-R file in >> TEXMFHOME). > > sounds pretty slow to me, if that's a large tree It should not be a large tree, just for your own private fonts and macros and maybe images. That it does not need mktexlsr there is a good thing for almost all ordinary tex users. It means you can put (and remove) stuff in your home tree without having to worry about running mktexlsr. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > Bottom line, if you try to install mkiv on a non-distribution tree, run > mktexlsr > before generating formats. i think that this is a leftover from the time that we didn't have lfs compiled into luatex so that we needed a way to determine a path as 'valid' (some distributions have many fake paths in the spec) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > So /home/adityam/texmf/tex/// tree is there, and it seems that kpsewhich finds > the file by brute-force search of that tree (there is no ls-R file in > TEXMFHOME). sounds pretty slow to me, if that's a large tree Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > On Mon, 17 Dec 2007, Aditya Mahajan wrote: > >> LuaTools | locating list of /usr/share/texmf-{texlive >> LuaTools | locating list of tetex} > > Bug in line 2498 of luatools > > local t = instance.treepath:splitchr(',') > > Should be split taking the braces into account. what variable is that? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Mon, 17 Dec 2007, Aditya Mahajan wrote: > On Mon, 17 Dec 2007, Hans Hagen wrote: > >> Aditya Mahajan wrote: >> >>> Why did luatools decide not to scan my user texmf trees? Since the new >>> files are located at /home/adityam/texmf and this tree is not scanned, >>> format generation does not work. >> >> maybe --verbose helps > > with luatools --generate, --verbose does not give any additional > information. Ok. Finally had to read luatools.lua. MTX_INPUT_TRACE=10 luatools --generate gives a bit more info. This is what I think is happening. I do sudo mktexlsr and get mktexlsr: Updating /usr/local/share/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. ls-R-TEXMFMAIN and ls-R-TEXLIVE and symlinked in other directories. But no ls-R was created for TEXMFHOME. Luatools looks in directors in TEXMF containing ls-R files. It does not find any in $HOME/texmf, so it does not include it in the hash for where to look for files. When it searches for cont-en.tex it finds one in /usr/share/texmf/ (the distribution directory). kpsewhich on the other hand (it appears) also searches files in the TEXMF tree. This is what kpsewhich tells me kdebug:Search path for ls-R files (from texmf.cnf) kdebug: = /var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texmf-texlive kdebug:Search path for tex files (from texmf.cnf) kdebug: = .:/home/adityam/.texmf-config/tex/kpsewhich//:/home/adityam/.texmf-var/tex/kpsewhich//:/home/adityam/texmf/tex/kpsewhich//:/etc/texmf/tex/kpsewhich//:!!/var/lib/texmf/tex/kpsewhich//:!!/usr/local/share/texmf/tex/kpsewhich//:!!/usr/share/texmf/tex/kpsewhic h//:!!/usr/share/texmf-texlive/tex/kpsewhich//:/home/adityam/.texmf-config/tex/generic//:/home/adityam/.texmf-var/tex/generic//:/home/adityam/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic/ /:!!/usr/share/texmf/tex/generic//:!!/usr/share/texmf-texlive/tex/generic//:/home/adityam/.texmf-config/tex///:/home/adityam/.texmf-var/tex///:/home/adityam/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/shar e/texmf/tex///:!!/usr/share/texmf-texlive/tex/// So /home/adityam/texmf/tex/// tree is there, and it seems that kpsewhich finds the file by brute-force search of that tree (there is no ls-R file in TEXMFHOME). So, I read the man page of mktexlsr and try mktexlsr $HOME/texmf which creates a ls-R in $HOME/texmf Now, I recreate the formats, and finally things are working. That is, I am back to where I was before I reinstalled the OS. Mkiv is working, mtxrun --script font still does not work. I will look into that tomorrow. Bottom line, if you try to install mkiv on a non-distribution tree, run mktexlsr before generating formats. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Mon, 17 Dec 2007, Aditya Mahajan wrote: > LuaTools | locating list of /usr/share/texmf-{texlive > LuaTools | locating list of tetex} Bug in line 2498 of luatools local t = instance.treepath:splitchr(',') Should be split taking the braces into account. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Mon, 17 Dec 2007, Hans Hagen wrote: > Aditya Mahajan wrote: > >> Why did luatools decide not to scan my user texmf trees? Since the new >> files are located at /home/adityam/texmf and this tree is not scanned, >> format generation does not work. > > maybe --verbose helps with luatools --generate, --verbose does not give any additional information. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > On Mon, 17 Dec 2007, Aditya Mahajan wrote: > > Things in windows and linux are different! > >> Why did luatools decide not to scan my user texmf trees? > > luatools only scans trees with a ls-R database. For some reason mktexlsr > only generates ls-R in /usr/local/share/texmf and /var/lib/texmf/ hm, this should not be so, i need to check it - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > Why did luatools decide not to scan my user texmf trees? Since the new > files are located at /home/adityam/texmf and this tree is not scanned, > format generation does not work. maybe --verbose helps - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Mon, 17 Dec 2007, Aditya Mahajan wrote: Things in windows and linux are different! > Why did luatools decide not to scan my user texmf trees? luatools only scans trees with a ls-R database. For some reason mktexlsr only generates ls-R in /usr/local/share/texmf and /var/lib/texmf/ I was running mktexlsr without root permissions (thinking that ls-R will be only regenerated in TEXMFHOME. I was wrong). > Since the new > files are located at /home/adityam/texmf and this tree is not scanned, > format generation does not work. I changed {texilve,tetex} to just texlive in texmf.cnf, but even now the format generating is not ok. Now I get, LuaTools | creating initialization file cont-en LuaTools | using library path : /usr/share/texmf/tex/context/base LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua l-boolean.lua l-number.lua l-unicode.lua l-md5.lua l-os.lua l-io.lua l-file.lua l-dir.lua l-utils.lua l-tex.lua luat-lib.lua luat-inp.lua luat-tmp.lua luat-zip.lua luat-tex.lua LuaTools | using compiled initialization file cont-en.luc LuaTools | using lua initialization file cont-en.luc LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/share/texmf/tex/context/base/cont-en.tex" \\dump This is LuaTeX, Version snapshot-0.20.2-2007121718 (Web2C 7.5.6) (INITEX) (/usr/share/texmf/tex/context/base/cont-en.tex (/home/adityam/texmf/tex/context/base/context.tex (/home/adityam/texmf/tex/context/base/syst-pln.tex) (/home/adityam/texmf/tex/context/base/syst-prm.tex) (/home/adityam/texmf/tex/context/base/luat-env.tex ! LuaTeX error [string "luas[0]"]:1: attempt to index global 'input' (a nil val ue). ...mf.instance,"luat-env.lua","tex")) } \startruntimeluacode ...everyloadluacode #1}\fi #1 This is not surprising since it is using /usr/share/texmf/tex/context/base/cont-en.tex and not /home/adityam/texmf/tex/context/base/cont-en.tex luatools cont-en.tex gives /usr/share/texmf/tex/context/base/cont-en.tex so something went wrong with luatools --generate. Since kpsewhich cont-en.tex gives the correct file while luatools cont-en.tex gives the incorrect file, is this a bug with the inbuild search engine in luatools, or is there something wrong in my configuration? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Hi, I reinstall Ubuntu, and unzipped cont-tmf.zip to $HOME/texmf, set TEXMFCNF to /usr/share/texmf/web2c (the ubuntu texmf.cnf directory), got the latest luatex binary from the minimal distribution, copied the latest helper scripts to the PATH, and tried again. well the reinstall of os was not for context ;) I have luatex -v This is LuaTeX, Version snapshot-0.20.2-2007121718 and LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT I tried luatools --generate and I get (comments with ***) LuaTools | loading /usr/share/texmf/web2c/texmf.cnf * This is ok LuaTools | preparing configuration in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/e027248d6557d124c703335e8a95ecd5.tma LuaTools | saving configuration in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/e027248d6557d124c703335e8a95ecd5.tma LuaTools | compiling configuration to ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/e027248d6557d124c703335e8a95ecd5.tmc * This all is ok LuaTools | locating list of /home/adityam/.texmf-config LuaTools | locating list of /home/adityam/.texmf-var LuaTools | locating list of /home/adityam/texmf LuaTools | locating list of /etc/texmf LuaTools | locating list of /var/lib/texmf LuaTools | locating list of /usr/local/share/texmf LuaTools | locating list of /usr/share/texmf * So far all texmf trees have been found LuaTools | locating list of /usr/share/texmf-{texlive LuaTools | locating list of tetex} * This is because there was -{texlive,tetex} line in texmf.cnf * seems to be a bug somewhere. LuaTools | scanning path /var/lib/texmf * Why were the earlier (that is user) texmf trees not scanned!! LuaTools | 80 files found on 20 directories with 0 uppercase remappings LuaTools | scanning path /usr/local/share/texmf LuaTools | 338 files found on 98 directories with 23 uppercase remappings LuaTools | scanning path /usr/share/texmf LuaTools | 6886 files found on 492 directories with 40 uppercase remappings LuaTools | preparing files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/b8a1cf189bc82d8722e834ba72af3440.tma LuaTools | saving files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/b8a1cf189bc82d8722e834ba72af3440.tma LuaTools | compiling files to ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/b8a1cf189bc82d8722e834ba72af3440.tmc LuaTools | preparing files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/c99fbb6307ce58c4c8d3687f791de5f6.tma LuaTools | saving files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/c99fbb6307ce58c4c8d3687f791de5f6.tma LuaTools | compiling files to ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/c99fbb6307ce58c4c8d3687f791de5f6.tmc LuaTools | preparing files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/9ea5cec901854e6fa728c2ba01c0bb52.tma LuaTools | saving files in ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/9ea5cec901854e6fa728c2ba01c0bb52.tma LuaTools | compiling files to ///home/adityam/luatex-cache/context/a3981189059392d4f49181866527fd3d/trees/9ea5cec901854e6fa728c2ba01c0bb52.tmc LuaTools | LuaTools | runtime: 0.164 seconds Why did luatools decide not to scan my user texmf trees? Since the new files are located at /home/adityam/texmf and this tree is not scanned, format generation does not work. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > On Fri, 14 Dec 2007, Hans Hagen wrote: > >> Aditya Mahajan wrote: >> >>> It looks like mtxrun is scanning the correct directories, but cannot find >>> the font files. On the other hand, >> mtxrun --script font --reload >> >> will create the font name database that mkiv will use > > Nothing seems to happen with reload. >mtxrun --script font MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT | font tools MtxRun | --reload generate new font database MtxRun | --listlist installed fonts MtxRun | --savesave open type font in raw table MtxRun | MtxRun | --pattern=str filter files MtxRun | --all provide alternatives MtxRun | >mtxrun --script font --reload report >> fontnames: identifying tree font files with suffix otf report >> fontnames: 190 tree files identified, 626 hash entries added, runtime 4.829237061 seconds report >> fontnames: identifying tree font files with suffix ttf report >> fontnames: 122 tree files identified, 477 hash entries added, runtime 4.181217987 seconds report >> fontnames: identifying tree font files with suffix ttc report >> fontnames: 0 tree files identified, 0 hash entries added, runtime 0.3059427795 seconds report >> fontnames: identifying tree font files with suffix afm report >> fontnames: 2360 tree files identified, 4161 hash entries added, runtime 35.863000154495 seconds report >> fontnames: identifying system font files with suffix otf report >> fontnames: 0 system files identified, 0 hash entries added, runtime 0.08914169312 seconds report >> fontnames: identifying system font files with suffix ttf report >> fontnames: 211 system files identified, 662 hash entries added, runtime 2.0610001087189 seconds report >> fontnames: identifying system font files with suffix ttc report >> fontnames: 10 system files identified, 98 hash entries added, runtime 0.18900012969971 seconds report >> fontnames: identifying system font files with suffix afm report >> fontnames: 0 system files identified, 0 hash entries added, runtime 0.06878201294 seconds - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Fri, 14 Dec 2007, Hans Hagen wrote: > Aditya Mahajan wrote: > >> It looks like mtxrun is scanning the correct directories, but cannot find >> the font files. On the other hand, > > mtxrun --script font --reload > > will create the font name database that mkiv will use Nothing seems to happen with reload. $mtxrun --scripts fonts --list --pattern=bonum MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT MtxRun | loading configuration for /usr/share/texmf/web2c from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/e027248d6557d124c703335e8a95ecd5 MtxRun | locating list of /home/adityam/.texmf-config MtxRun | locating list of /home/adityam/.texmf-var MtxRun | locating list of /home/adityam/texmf MtxRun | locating list of /etc/texmf MtxRun | locating list of /var/lib/texmf MtxRun | locating list of /usr/local/share/texmf MtxRun | locating list of /usr/share/texmf MtxRun | locating list of /usr/share/texmf-texlive MtxRun | loading files for /var/lib/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c99fbb6307ce58c4c8d3687f791de5f6 MtxRun | loading files for /usr/local/share/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/b8a1cf189bc82d8722e834ba72af3440 MtxRun | loading files for /usr/share/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/9ea5cec901854e6fa728c2ba01c0bb52 MtxRun | loading files for /usr/share/texmf-texlive from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c136f4d84c0b9fde8e19a42543a2e07d Adutya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Fri, 14 Dec 2007, Aditya Mahajan wrote: > On Fri, 14 Dec 2007, Hans Hagen wrote: > >> Aditya Mahajan wrote: >> >>> It looks like mtxrun is scanning the correct directories, but cannot find >>> the font files. On the other hand, >> >> mtxrun --script font --reload >> >> will create the font name database that mkiv will use > > Nothing seems to happen with reload. > > $mtxrun --scripts fonts --list --pattern=bonum Sorry, this is the output of mtxrun --scripts fonts --verbose --reload (actually this is what I get with both --list and --reload, so this is the output of --verbose) > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT > > MtxRun | loading configuration for /usr/share/texmf/web2c from > ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/e027248d6557d124c703335e8a95ecd5 > MtxRun | locating list of /home/adityam/.texmf-config > MtxRun | locating list of /home/adityam/.texmf-var > MtxRun | locating list of /home/adityam/texmf > MtxRun | locating list of /etc/texmf > MtxRun | locating list of /var/lib/texmf > MtxRun | locating list of /usr/local/share/texmf > MtxRun | locating list of /usr/share/texmf > MtxRun | locating list of /usr/share/texmf-texlive > MtxRun | loading files for /var/lib/texmf from > ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c99fbb6307ce58c4c8d3687f791de5f6 > MtxRun | loading files for /usr/local/share/texmf from > ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/b8a1cf189bc82d8722e834ba72af3440 > MtxRun | loading files for /usr/share/texmf from > ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/9ea5cec901854e6fa728c2ba01c0bb52 > MtxRun | loading files for /usr/share/texmf-texlive from > ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c136f4d84c0b9fde8e19a42543a2e07d > > Adutya > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > It looks like mtxrun is scanning the correct directories, but cannot find > the font files. On the other hand, mtxrun --script font --reload will create the font name database that mkiv will use Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
On Thu, 13 Dec 2007, Hans Hagen wrote: > Aditya Mahajan wrote: > >> However, mtxrun --script fonts --list --pattern=pagella gives >> MtxRun | unknown script: fonts > > i sometimes get that too on linux and am not sure why because it works > ok my vista machine; o need to look into it (actually, font is resolved > to (mtx-)font(s) Ok, I set TEXMFCNF explicitly, and I do not get an error. I regenerated the formats, and the simple hello world document compiles correctly. pdffonts test.pdf gives me name type emb sub uni object ID - --- --- --- - ZGSVCK+LMRoman12-Regular CID Type 0C yes yes yes 4 0 I think that this means that otf fonts are embedded (not sure). I start exploring mkiv more extensively. But something is still wrong with mtxrun. $ locate bonum gives me /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-bolditalic.otf /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-bold.otf /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-italic.otf /usr/share/texmf/tex/latex/tex-gyre/tgbonum.sty which means that the fonts are installed in /usr/share/texmf/ When I do $ mtxrun --scripts fonts --verbose --list --pattern=bonum I get MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT MtxRun | loading configuration for /usr/share/texmf/web2c from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/e027248d6557d124c703335e8a95ecd5 MtxRun | locating list of /home/adityam/.texmf-config MtxRun | locating list of /home/adityam/.texmf-var MtxRun | locating list of /home/adityam/texmf MtxRun | locating list of /etc/texmf MtxRun | locating list of /var/lib/texmf MtxRun | locating list of /usr/local/share/texmf MtxRun | locating list of /usr/share/texmf %--- /usr/share/texmf is %--- being read MtxRun | locating list of /usr/share/texmf-texlive MtxRun | loading files for /var/lib/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c99fbb6307ce58c4c8d3687f791de5f6 MtxRun | loading files for /usr/local/share/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/b8a1cf189bc82d8722e834ba72af3440 MtxRun | loading files for /usr/share/texmf from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/9ea5cec901854e6fa728c2ba01c0bb52 MtxRun | loading files for /usr/share/texmf-texlive from ///tmp/luatex-cache/context/e027248d6557d124c703335e8a95ecd5/trees/c136f4d84c0b9fde8e19a42543a2e07d It looks like mtxrun is scanning the correct directories, but cannot find the font files. On the other hand, luatools texgyrebonum-regular.otf works fine and gives me the correct location. If I use texexec to compile things, do I need mtxrun? If not, then I can just wait for things to get sorted at the distribution level, but still use (a possibly half-broken) mkiv in the meanwhile. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkIV on Ubuntu
Aditya Mahajan wrote: > However, mtxrun --script fonts --list --pattern=pagella gives > MtxRun | unknown script: fonts i sometimes get that too on linux and am not sure why because it works ok my vista machine; o need to look into it (actually, font is resolved to (mtx-)font(s) > This is strange. Because locate luat-env.lua gives > /usr/local/share/texmf/tex/context/base/luat-env.lua > /usr/share/texmf/tex/context/base/luat-env.lua > > and kpsewhich luat-env.lua gives > /usr/local/share/texmf/tex/context/base/luat-env.lua we don't use kpse at all in mkiv so there most be something with your 'luatools --generate' cq. cache path --verbose will report the cache paths Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MkIV on Ubuntu
Hi, I am trying to install mkiv on ubuntu. I installed luatex from Norbert Preinin's Debian sources and used ctxtools --update to get the latest version of ConTeXt. In order to get luatools --generate to work, I needed to TEXMFCACHE and SELFAUTOPARENT environmental variables. After that, format creation seemed to work. ctxtools --contextversion gives CtxTools | context version: 2007.12.11 22:14 (/usr/local/share/texmf/tex/context/base/context.tex) CtxTools | context version: 2007.12.11 22:14 (/usr/local/share/texmf/tex/context/base/cont-new.tex) luatools lmr10.afm gives /usr/share/texmf/fonts/afm/public/lm/lmr10.afm (which is ok, expcept that there is an extra new line). However, mtxrun --script fonts --list --pattern=pagella gives MtxRun | unknown script: fonts When I try to compile a simple \starttext hello world \stoptext document with luatex, I get. TeXExec | processing document 'test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 691 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is LuaTeX, Version snapshot-0.20.1-2007121112 (Web2C 7.5.6) (./test.tex ! LuaTeX error cannot open : No such file or directory. ...stance,"luat-env.lua","tex")) } \ctxlua {if not lua.byteda... \the \everyloadluacode \the \everyfinalizeluacode \the \everyjob l.1 \starttext This is strange. Because locate luat-env.lua gives /usr/local/share/texmf/tex/context/base/luat-env.lua /usr/share/texmf/tex/context/base/luat-env.lua and kpsewhich luat-env.lua gives /usr/local/share/texmf/tex/context/base/luat-env.lua I do not undestand what is happening. Any suggestions? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___