Re: [NTG-context] texmfstart texexec
Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Idris Samawi Hamid ادريس سماوي حامد wrote: Could there be something screwy in cscite.bat? Or setuptex.bat? what does echo %PATH% report? \testecho %PATH% C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin; [followed by the rest of my global environment variables, including the presets following] C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin; C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby; ^ old C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\; i wonder if c:\ruby\bin is the problem; can you run ruby texmfstart,rb ? (this while script becoming a exe is quite painful and fragile, which is why i always run things by stub) also, if you use luatex ... you can adapt the scite properties files (user ones) to use 'context' instead of 'texexec' 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] texmfstart texexec
On Thu, 14 Aug 2008 02:15:39 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Idris Samawi Hamid ادريس سماوي حامد wrote: Could there be something screwy in cscite.bat? Or setuptex.bat? what does echo %PATH% report? \testecho %PATH% C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin; [followed by the rest of my global environment variables, including the presets following] C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin; C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby; ^ old Those are some old aleph utilites for making ocp's, ofm's etc. cobbled from ancient versions of miktex and fptex -- sometimes the miktex binary would work but not the fptex binary and vice versa -) C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\; i wonder if c:\ruby\bin is the problem; can you run ruby texmfstart,rb ? ruby: No such file or directory -- texmfstart.rb (LoadError) (this while script becoming a exe is quite painful and fragile, which is why i always run things by stub) there is no texmfstart.bat in \scripts\context\stubs\mswin Is there another way? also, if you use luatex ... you can adapt the scite properties files (user ones) to use 'context' instead of 'texexec' luatex/context.cmd is working, it's just that I want to be able to compile the pdftex format for testing, legacy files, etc. Otherwise I am gradually moving everything over to luatex. For the record, going back to my backup context works. texmfstart.exe and the scripts seem the same. The only difference I can see is going from texmf-local to -context. I wonder what's triggering this. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Hi Mojca, On Thu, 14 Aug 2008 02:06:59 -0600, Mojca Miklavec [EMAIL PROTECTED] wrote: But for texmfstart.exe texexec I keep getting ruby: no such file to load -- ubygems (LoadError) texmfstart --locate texexec.rb gives me /texmf-context/scripts/context/ruby/texexec.rb Any ideas on what's wrong? I would say it's a broken ruby installation, or some other file is broken, but I cannot find anything in ConTeXt, maybe in standalone ConTeXt environment ... I tried moving all setuptex.bat variables to the global XP environment variables. Then I could make a pdftex format without cscite.bat. But I could not run any pdftex files because texexec keeps looking for the format in -local/web2c/pdftex instead of -mswin\web2c\pdftex. I've removed those global variables and again trying to get setuptex/cscite.bat/pdftex working. Can you try to find a string ubygems in some .rb file? It should be rubygems at most, but I have no idea where this is comming from. That is weird indeed. Thnx and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Hi Hans, Mojca, and all, I uninstalled ruby and reinstalled: no joy. Then I uninstalled ruby and reinstalled without installing RubyGems. Believe it or not that worked! I can compile the format and run mkii now. This still leaves open the question as to how RubyGems and cscite.bat (which is the source of npp.bat for notepad++) are interfering with each other in the new minimals/maximal (what is ubygems without the r anyway?). Might be worth investigating at some point... Thnx and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, Mojca, and all, I uninstalled ruby and reinstalled: no joy. Then I uninstalled ruby and reinstalled without installing RubyGems. Believe it or not that worked! I can compile the format and run mkii now. This still leaves open the question as to how RubyGems and cscite.bat (which is the source of npp.bat for notepad++) are interfering with each other in the new minimals/maximal (what is ubygems without the r anyway?). Might be worth investigating at some point... it's because those gems packages overload some library location mechanisms (they kind of dictate a structure and ignore the fact that one might want to ship script with libs in a different way); texexec cus coul dnot operate in such an environment without installers which would add another level of complexity the same is true for lua and luarocks which also can sit in the way; however, this does not hurt luatex because we have an isolated environment here 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] texmfstart texexec
Dear gang, On Tue, 12 Aug 2008 15:59:20 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Idris Samawi Hamid ? ? wrote: Dear gang, I am upgrading my system to the latest mswincontext distro. After some hiccups, context.cmd finds its target script, so I can generate the mkiv format But for texmfstart.exe texexec I keep getting ruby: no such file to load -- ubygems (LoadError) hm, some rubygems interaction; i really dislike these 'package managers overloading the module loaders' texmfstart --locate texexec.rb gives me /texmf-context/scripts/context/ruby/texexec.rb Any ideas on what's wrong? some messy ruby in your path you can make a small bat file that starts texmfstart @echo off setlocal ruby c:\pathtoscript\texmfstart.rb %* endlocal might work or (what i have here) just add scripts/context/ruby to your PATH variable and associate .rb with ruby Still no luck. Here is some info: ruby 1.8.4 (2005-12-24) [i386-mswin32] \texmf-context\scripts\context\rubytexmfstart texexec ruby: no such file to load -- ubygems (LoadError) I ran the above in the directory with the scripts. Is there a setup or ini file where I need to change the path? I compared my old setuptex.bat with the new one. No real clues yet. \texmf-context\scripts\context\ruby is in the PATH, rebooted Any ideas? What has changed since the last mswincontext, other that the switch from -local/ to -context/? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Hi Hans, I think I found a clue: If I start a command shell (no scite or npp or other editor) and do setuptex c:\context\tex texmfstart texexec I get TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD TeXExec | --checkcheck versions TeXExec | --figures generate overview of figures TeXExec | --listing list of file content TeXExec | --make make formats TeXExec | --modules generate module documentation TeXExec | --mpgraphicprocess mp file to stand-alone graphics TeXExec | --mpstatic process mp/ctx file to stand-alone graphics TeXExec | --mptexprocess mp file TeXExec | --mpxtex process mpx file TeXExec | --pdfarrange impose pages (booklets) TeXExec | --pdfcombine combine multiple pages TeXExec | --pdfcopy copy pages from file(s) TeXExec | --pdfselectselect pages from file(s) TeXExec | --pdfsplit split file in pages TeXExec | --pdftrim trim pages from file(s) TeXExec | --process process file TeXExec | TeXExec | --help --all shows all switches If I click on cscite.bat scite opens. Then I do CTRL-6 for a window. then I do texmfstart texexec getting ruby: no such file to load -- ubygems (LoadError) Even setuptex c:\context\tex texmfstart texexec in scite gives me ruby: no such file to load -- ubygems (LoadError) Could there be something screwy in cscite.bat? Or setuptex.bat? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Idris Samawi Hamid ادريس سماوي حامد wrote: Could there be something screwy in cscite.bat? Or setuptex.bat? what does echo %PATH% report? - 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] texmfstart texexec
On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Idris Samawi Hamid ادريس سماوي حامد wrote: Could there be something screwy in cscite.bat? Or setuptex.bat? what does echo %PATH% report? \testecho %PATH% C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin; [followed by the rest of my global environment variables, including the presets following] C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin; C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby; C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\; ... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart texexec
Idris Samawi Hamid ? ? wrote: Dear gang, I am upgrading my system to the latest mswincontext distro. After some hiccups, context.cmd finds its target script, so I can generate the mkiv format But for texmfstart.exe texexec I keep getting ruby: no such file to load -- ubygems (LoadError) hm, some rubygems interaction; i really dislike these 'package managers overloading the module loaders' texmfstart --locate texexec.rb gives me /texmf-context/scripts/context/ruby/texexec.rb Any ideas on what's wrong? some messy ruby in your path you can make a small bat file that starts texmfstart @echo off setlocal ruby c:\pathtoscript\texmfstart.rb %* endlocal might work or (what i have here) just add scripts/context/ruby to your PATH variable and associate .rb with ruby - 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] texmfstart texexec
Hi Hans, On Tue, 12 Aug 2008 15:59:20 -0600, Hans Hagen [EMAIL PROTECTED] wrote: texmfstart --locate texexec.rb gives me /texmf-context/scripts/context/ruby/texexec.rb Any ideas on what's wrong? some messy ruby in your path you can make a small bat file that starts texmfstart @echo off setlocal ruby c:\pathtoscript\texmfstart.rb %* endlocal might work $C:\ConTeXt\tex\texmf-context\scripts\context\ruby\texmfstart.rb texexec ruby: no such file to load -- ubygems (LoadError) This makes no sense: texexec.rb and texmfstart.rb are in the same directory! I wonder why texmfstart can't find texexec... $texmfstart --path C:\ConTeXt\tex\texmf-context\scripts\context\ruby\texexec.rb test.tex gives no error but does nothing else but return the command prompt. or (what i have here) just add scripts/context/ruby to your PATH did that and relogged in: does not work. variable and associate .rb with ruby XP already associates .rb files with the ruby interpreter. Stumped Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! 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] texmfstart/pdftex parameters
Hi all, is there a way to pass parameters from texmfstart texexec to pdftex? I'd like to call pdftex with -file-line-error and -halt-on-error. Just for the record: I've found a simple solution, which works OK here on MacOS X (should be the same on any unix): texmfstart texexec --pass=\'-file-line-error -halt-on-error\' hello this way (internally) the command looks like --pass='.' which will be the way it gets passed to texmfstart. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart/pdftex parameters
texmfstart texexec --pass=\'-file-line-error -halt-on-error\' hello Very sly. And the short form also worked: texexec --pass=\'-file-line-error -halt-on-error\' hello -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart/pdftex parameters
Hi Aditya is there a way to pass parameters from texmfstart texexec to pdftex? I'd like to call pdftex with -file-line-error and -halt-on-error. --passon=-file-line-error There was a recent thread where Sanjoy had trouble passing two parameters to --passon. I do not remember if that was resolved or not. Thanks. From reading the mails I can't see a solution. Perhaps Sanjoy knows one. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart/pdftex parameters
Thanks. From reading the mails I can't see a solution. Perhaps Sanjoy knows one. I don't know, unfortunately. Hans sent me a proposed fix, but it didn't work. One problem is that passing multiple options is working on Hans's setup, so the problem is elusive. I need to learn a bit of ruby. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem (long time spend somewhere)
On 12/12/06, Denis Pinsard wrote: Hello, For near two years I use ConTeXt under the MiTeX distribution. Last weekend I installed the last version of ConTeXt (2006-07-21) available on MikTeX. Try to install MikTeX 2.5. Since the move from 2.4 to 2.5 when the author made our wish true (to move from the old perl scripts to new ruby texmfstart), new releases of ConTeXt don't work any more on MikTeX 2.4. (texmfstart requires a feature that is not present in MikTeX 2.4) I had other problems than the ones you describe, but try to see if upgrading helps. The standalone version should not be influenced by MikTeX by any means and should work. I suspect that MikTeX executables might be called if environment is not initialized properly ... Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem (long time spend somewhere)
Mojca Miklavec wrote: On 12/12/06, Denis Pinsard wrote: Hello, For near two years I use ConTeXt under the MiTeX distribution. Last weekend I installed the last version of ConTeXt (2006-07-21) available on MikTeX. Try to install MikTeX 2.5. Since the move from 2.4 to 2.5 when the author made our wish true (to move from the old perl scripts to new ruby texmfstart), new releases of ConTeXt don't work any more on MikTeX 2.4. (texmfstart requires a feature that is not present in MikTeX 2.4) I had other problems than the ones you describe, but try to see if upgrading helps. alternatively, if you don't want to update to 2.5, copy a kpsewhich from texlive to your miktex bin path 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem (long time spend somewhere)
Mojca Miklavec a écrit : Try to install MikTeX 2.5. ... The standalone version should not be influenced by MikTeX by any means and should work. Same behaviour with MikTeX 2.5 I have renamed the MikTeX directory and suppressed the reference to MikTeX in the PATH; then the stand alone version had the same behaviour : The command texexec --version takes about one minute before producing the result : TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem (long time spend somewhere)
Denis Pinsard wrote: -- see mojca's answer -- LONG TIME (about 1 min) usually this means that the only way left to locate the script is to scan the whole texmf 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart not recognizing $page
Aditya Mahajan wrote: Hi Hans, In the latest beta texmfstart --page=1 --file=metafun-p.pdf does not work. This is the verbose output weird texmfstart version 2.0.0 locating 'metafun-p.pdf' in current path '.' locating 'metafun-p.pdf' in caller path 'f:/Research/Feedback/AC' kpse : direct (forced) using 'kpsewhich' to locate 'metafun-p' in suffix space 'pdf' (2) checking E:\isoimage\usr\local\context\tex\texmf-mswin\BIN for metafun-p checking E:\isoimage\usr\local\context\bin for metafun-p checking E:\Ruby\bin for metafun-p checking E:\Python24\ for metafun-p checking E:\Perl\bin for metafun-p checking E:\Program Files\R\R-2.3.1\bin for metafun-p checking E:\bin for metafun-p checking for metafun-p checking E:\Vim\vim70 for metafun-p aggressively locating 'metafun-p' in document trees locating 'metafun-p' in document tree 'e:/isoimage/usr/local/context/doc*' registering 'metafun-p' as 'e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf' registering 'THREAD' as 'e:/isoimage/usr/local/context/docroot/documents/general/manuals' starting metafun-p.pdf using 'system' call: e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf using 'system' call: pdfopen --page --file e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf using 'system' call: acroread eird e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf Even the simple texmfstart metafun-p.pdf fails with texmfstart version 2.0.0 locating 'metafun-p.pdf' in current path '.' locating 'metafun-p.pdf' in caller path 'f:/Research/Feedback/AC' kpse : direct (forced) using 'kpsewhich' to locate 'metafun-p' in suffix space 'pdf' (2) checking E:\isoimage\usr\local\context\tex\texmf-mswin\BIN for metafun-p checking E:\isoimage\usr\local\context\bin for metafun-p checking E:\Ruby\bin for metafun-p checking E:\Python24\ for metafun-p checking E:\Perl\bin for metafun-p checking E:\Program Files\R\R-2.3.1\bin for metafun-p checking E:\bin for metafun-p checking for metafun-p checking E:\Vim\vim70 for metafun-p aggressively locating 'metafun-p' in document trees locating 'metafun-p' in document tree 'e:/isoimage/usr/local/context/doc*' registering 'metafun-p' as 'e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf' registering 'THREAD' as 'e:/isoimage/usr/local/context/docroot/documents/general/manuals' starting metafun-p.pdf using 'system' call: e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf using 'system' call: pdfopen --page --file e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf using 'system' call: acroread e:/isoimage/usr/local/context/docroot/documents/general/manuals/metafun-p.pdf The first system call fails since ruby uses / rather than \ as the directory separator and windows does not like that. The second system call fails since $page is '' (I don't know why). A pdfopen --page --file filename always fails. The third system call fails since acroread is not present. I fail to understand why $page is expanding to '' rather than 2 (or 0 in the second case). because page in not known when the str is set; i'll change 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
Hello Gerben, [texmfstart on OS X not in PATH] I will fix (but I have no idea if I can do it before my vacation) the ConTeXt updater such that texmfstart is supported out of the box. If you write instructions, make sure you remove them after I have fixed this. are you back from your vacation? Any news on this one? Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart with figure library
David Arnold wrote: All, I have a file figlibSection3.xml which starts like this: ?xml version='1.0'? ?context-directive job module fig-make ? ?context-directive job mode letter ? figurelibrary language=en description organizationCollege of the Redwoods Mathematics Department/ organization projectIntermediate Algebra Text/project productChapter 1/product commentFigures for Section 3/comment /description figure filesection3figs-mpgraph.1/file labelxeqy2a/label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure ... When I used to run texexec figlibSection3.xml, I would get my figures, then the gui screens with figure embedded. Now, with texmfstart texexec figlibSection3.xml, I get my figures, the gui screens, then duplicates of all the figures after that. Thus, two copies of every figure is embedded in the figure library. Is this new behavior correct? no, an dit only fails with the processing instruction; i'll fix it 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On 6/27/06, David Arnold wrote: OK, I've updated to the latest context via Gerben's i-installer on my mac osx 10.4.6. I have no idea what texmfstart is nor do I understand its purpose. I imagine the first thing I have to do is configure, because it is certainly not found on my system. ... For example: tmp $ texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.06.23 20:39 cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: english cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: dutch total run time : 3 seconds warning : use 'texmfstart texexec' instead Now for questions: 1. How do I configure my system to use texmstart? Under windows it comes as an executable, under linux I sometimes created an executable file named texexec (in the bin folder of course) with the content ruby path-to-context-ruby-scripts/texmfstart.rb Here's a citation from a mac user: On 5/25/06, Hans van der Meer wrote: I did some digging in the .../context/ruby script directory and found a small problem with the script, at least for some users. On my MacOSX system the script file(s) needed the execute bits set, so I did: cd /context/ruby (sudo) chmod -R a+x *.rb And of course an alias texmfstart=texmfstart.rb comes in handy. I hope this helps others who might be struggling to get texmfstart running. Hans van der Meer Something should be automated here I suppose. The MikTeX guy wasn't extremely responsive to it, tetex isn't maintained any more, perhaps at least you Mac guys could/should do something about it. Can someone write a note to the contextgarden about how to do configure the texmfstart properly? 2. What are some of the usual uses I should be employing of texmfstart? As a regular user you shouldn't note it's presence once you set it up properly. But generally you can use it to run stuff such as texmfstart mptopdf without having to worry whether mptopdf is a perl or ruby program, you can use it to edit config files, open documentation and so on, but the list is way to long (and I don't know it all/don't know how to use all its features) ... Most notable the modern modules which call external programs are written in such a way that they execute texmfstart name-of-the-script, for example texmfstart pstopdf some-ps-file instead of pstopdf some-ps-file. This means that the user doesn't need pstopdf to be present on the system as an executable command and means better portability. How will it improve performance? Just as George N. White said: performance in terms of how-many-seconds-per-run is not really the question, but I guess that it might improve performance since it might use more clever methods to execute things. I know that Hans has somehow rewritten the kapathsea and mpto, but I don't really know which scripts are responsible for calling them and for faster execution. However: you don't need to worry about performance. Hans does. If you care about performance in mp labels, you can improve it considerable by using texexec.rb (and texmfstart to start it) an by switching from btex ... etex to textext(...) and \sometxt (aproximately ten times faster on my examples and able to do some crazy things that have never been possible with btex ... etex or textext). But well ... the presence of texmfstart is essential in this case. How will it simplify my work? Etc? I.e what are the advantages? Portability. Support: sooner or later you'll figure out that the old texexec.pl doesn't do what it's supposed to do (mp labels being one of the problems for example). Hans is willing to work on improving the texexec.rb, but not on fixing the old stuff that will become obsolete one day anyway. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
Mojca Miklavec wrote: with the content ruby path-to-context-ruby-scripts/texmfstart.rb What I have is this simple script (and it should work on MacOSX just as well). Name it 'texfmstart', make it executable, fill in the correct path and put it in a binaries directory. #!/bin/sh ruby path-to-context-ruby-scripts/texmfstart.rb $@ Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
Taco, Mojca, Thanks, on my Mac OSX 10.4.6 with Gerben's TeX, I: cd /usr/local/teTeX/share/texmf.local/scripts/context/ruby/ sudo chmod -R a+x *.rb Then I wrote in .bash_profile: alias texmfstart='/usr/local/teTeX/share/texmf.local/scripts/context/ ruby/texmfstart.rb' Now I have: chapter1 $ texmfstart --help version : 2.0.0 - 2003/2006 - www.pragma-ade.com usage: texmfstart [switches] filename [optional arguments] switches : --verbose --report --browser --direct --execute --locate -- iftouched --ifchanged --program --file --page --arguments --batch --edit -- report --clear --make --lmake --wmake --path --stubpath --indirect -- before --after --tree --autotree --environment --showenv example : texmfstart pstopdf.rb cow.eps texmfstart --locate examplex.rb texmfstart --execute examplex.rb texmfstart --browser examplap.pdf texmfstart showcase.pdf texmfstart --page=2 --file=showcase.pdf texmfstart --program=yourtex yourscript.rb arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart --direct ruby rel:wn-cleanup-1.rb oldfile.xml newfile.xml texmfstart bin:xsltproc env:somepreset path:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres texmfstart --ifchanged=somefile.dat --direct processit somefile.dat texmfstart bin:scite kpse:texmf.cnf texmfstart --exec bin:scite *.tex texmfstart --edit texmf.cnf texmfstart --edit kpse:texmf.cnf texmfstart --serve texmfstart --stubpath=/usr/local/bin [--make --remove] -- verbose all texmfstart --stubpath=auto [--make --remove] all I can now run: chapter1 $ texmfstart texexec section1.tex Is there anything else I should do now? On Jun 28, 2006, at 6:11 AM, Taco Hoekwater wrote: Mojca Miklavec wrote: with the content ruby path-to-context-ruby-scripts/texmfstart.rb What I have is this simple script (and it should work on MacOSX just as well). Name it 'texfmstart', make it executable, fill in the correct path and put it in a binaries directory. #!/bin/sh ruby path-to-context-ruby-scripts/texmfstart.rb $@ Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On 6/28/06, David Arnold wrote: Taco, Mojca, Thanks, on my Mac OSX 10.4.6 with Gerben's TeX, I: cd /usr/local/teTeX/share/texmf.local/scripts/context/ruby/ sudo chmod -R a+x *.rb Then I wrote in .bash_profile: alias texmfstart='/usr/local/teTeX/share/texmf.local/scripts/context/ ruby/texmfstart.rb' Now I have: chapter1 $ texmfstart --help version : 2.0.0 - 2003/2006 - www.pragma-ade.com ... Is there anything else I should do now? 1. either alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ context/stubs/unix/texexec or copy the content of that folder somewhere to PATH. Just make sure that texexec resolves to texmfstart texexec unless you really like writing it the long way. 2. write a page on the wiki about how you did it (or at least one of the mac users should do that) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On Jun 28, 2006, at 20:24, Mojca Miklavec wrote: 1. either alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ context/stubs/unix/texexec or copy the content of that folder somewhere to PATH. Just make sure that texexec resolves to texmfstart texexec unless you really like writing it the long way. 2. write a page on the wiki about how you did it (or at least one of the mac users should do that) I will fix (but I have no idea if I can do it before my vacation) the ConTeXt updater such that texmfstart is supported out of the box. If you write instructions, make sure you remove them after I have fixed this. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
G, Nah, I'll hold of on instructions. Much better your way. Thanks. On Jun 28, 2006, at 2:46 PM, Gerben Wierda wrote: On Jun 28, 2006, at 20:24, Mojca Miklavec wrote: 1. either alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ context/stubs/unix/texexec or copy the content of that folder somewhere to PATH. Just make sure that texexec resolves to texmfstart texexec unless you really like writing it the long way. 2. write a page on the wiki about how you did it (or at least one of the mac users should do that) I will fix (but I have no idea if I can do it before my vacation) the ConTeXt updater such that texmfstart is supported out of the box. If you write instructions, make sure you remove them after I have fixed this. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On 6/27/06, David Arnold [EMAIL PROTECTED] wrote: OK, I've updated to the latest context via Gerben's i-installer on my mac osx 10.4.6. I have no idea what texmfstart is nor do I understand its purpose. I imagine the first thing I have to do is configure, because it is certainly not found on my system. tmp $ which texmfstart tmp $ texmfstart -bash: texmfstart: command not found Here is my path: tmp $ echo $PATH /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ local/teTeX/bin/powerpc-apple-darwin-current:/opt/local/bin:/usr/ local/mysql/bin:/usr/X11R6/bin For example: tmp $ texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.06.23 20:39 cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: english cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: dutch total run time : 3 seconds warning : use 'texmfstart texexec' instead tmp $ which texexec /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec Which appears to be some sort of shell script. Yes, it is a wrapper that uses kpsewhch to search for what.pl and then fires up perl with the full path to the script. The same trick works for ruby (.rb) and java (.jar). I've made 3 scripts, called runtexmfXX, where XX={pl,rb,jar}: - runtexmfrb #! /bin/sh # runtexmfrb -- run ruby scripts with ruby pathtexmfstart.rb .. # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link (ln -s) to the names of ConTeXt scripts in your tex bin # directory. # cd .../bin/arch # for f in texmfstart texexec pstopdf textools texutil ctxtools pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done # # requires: # ruby, sed, kpsewhich what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts texmfstart.rb` { test -n $p test -f $p; } \ || { echo \`texmfstart.rb' not found.; exit 1; } # for texmfstart just case $what in texmfstart) exec ruby $p ${1+$@} ;; *) q=`kpsewhich -format=texmfscripts $what.rb` { test -n $q test -f $q; } \ || { echo \`$what.rb' not found.; exit 1; } exec ruby $p $what.rb ${1+$@} ;; esac - end runtexmfrb -- - runtexmfjar #!/bin/sh # runtexmfjar -- run texmf Java app # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link to the names of the apps: # e.g., ln -s runtexmfjar JabRef java=/usr/java/jre1.5.0/bin/java what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.jar` { test -n $p test -f $p; } \ || { echo \`$what.jar' not found.; exit 1; } exec $java -jar $p ${1+$@} - end runtexmfjar -- - runtexmfpl #!/bin/sh # runtexmfpl -- run texmf perl script # to use: link to the names of the apps: # e.g., ln -s runtexmfpl epstopdf what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.pl` { test -n $p test -f $p; } \ || { echo \`$what.pl' not found.; exit 1; } exec perl $p ${1+$@} - end runtexmfpl -- [...] Ruby is installed: tmp $ which ruby /usr/bin/ruby tmp $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] And here is the location of texmfstart: /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/texmfstart /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base/kpse Now for questions: 1. How do I configure my system to use texmstart? in the bin directory with texexec, rename texexec to texexec.orig, create the 2 or 3 scripts you want to use, do chmod +x runtexmf*, and decide which names are perl (.pl) and which are ruby (.rb). Create symbolic links: ln -s runtexmfrb texmfstart, etc. for the ruby scripts. You can also do this for other perl scripts such as epstopdf, but be careful, as the bin directory may contain newer versions than the texmf trees. 2. What are some of the usual uses I should be employing of texmfstart? How will it improve performance? How will it simplify my work? Etc? I.e what are the advantages? Performance for scripts like this is not much af an issue these days -- if you want performance, buy better hardware. What is an issue is the ability of the developers to find and fix bugs. Perl is old and tricky. There are lots of old buggy perl versions installed. Hopefully ruby will turn out to be more robust (lessons learned, etc.). The advantages to us are that you will use it and report bugs before we do.
Re: [NTG-context] texmfstart trouble
On Jun 14, 2006, at 12:35, Hans van der Meer wrote:Recently I reported 2 problems related to metapost usage:1. the loss of transparent color handling2. textext not being able to handle %'s as in textext("15\%")The first problem seems to be solved by Taco's remark:Believe it or not, but this is a known problem within web2c.It is triggered by an interaction between the new texexecand having two different entries in texmf.cnf for Metapostsmemory size, for example like this: main_memory.mpost = 50 main_memory.metafun = 300Now, the metafun format is generated as "mpost", but thegraphics are created as "metafun", and the different memorysizes make the specials go disappear.I checked my texmf.cnf in teTeX's main directory ../teTeX/share/texmf (the one I use) and to my surprise found the complete absence there of main_memory.metafun although context itself is present. Addding and regenerating metafun repared the "broken transparency" problem. I have further to investigate why apparently context.cnf seems not to have been read or being effective, because there main_memory.metafun is present!Thanks Taco for your remark, although it took some time before I realised that this remark of yours could be the key to the problem.However the breaking of the handling of "\%"'s in textext was not solved by this repair.Will there be a fix in the forseeable future?Taco wrote in reply to my first signalling the problem:Hans van der Meer wrote:I am afraid a serious error has been introduced into textext in the lastupdate(s).This used to work in metapost for typesetting text with a %-sign:label(textext("66\%"), origin);Now the % somewhere ends a line prematurely because the job aborts with:! mpx file ended unexpectedly.Can Hans please repair this, suddenly a lot of my typesetting is broken.Verified.Thanks for analizing this, I was wondering where those ! mpx file ended unexpectedly.messages came from in a document Mojca sent me.Taco Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart trouble
Hans van der Meer wrote: However the breaking of the handling of \%'s in textext was not solved by this repair. Will there be a fix in the forseeable future? i'll check it, for the moment use: \percent\ - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart trouble
Hans van der Meer wrote: 2. The mpgraph.1 files differ only slightly, except for a few roundoff differences: new format extra lines: (but not a problem, I would guess) %%MetaPostSpecials: 2.0 123 1000 %%HiResBoundingBox: -5.66927 -5.66927 359.9991 119.05481 %%MetaPostSpecial: 7 1 1 1 1 0.94118 1 3 Believe it or not, but this is a known problem within web2c. It is triggered by an interaction between the new texexec and having two different entries in texmf.cnf for Metaposts memory size, for example like this: main_memory.mpost= 50 main_memory.metafun = 300 Now, the metafun format is generated as mpost, but the graphics are created as metafun, and the different memory sizes make the specials go disappear. Strangely, I thought Hans and I had fixed by that a few weeks back by changing the mpost commandlines, but apparently we didn't. A workaround (while we sort this out) is to make sure that the .mpost and .metafun settings use the same (highest) number. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
Hans van der Meer wrote: In order to purge the temporary context files I did (throught an alias) texutil --purge This worked fine. Since the introduction of the ruby scripts this call now tells me: remark: 'texutil' is now part of 'texexec' warning: use 'texmfstart texutil' instead So I obediently call: texmfstart.rb texutil --purge This silently does nothing. Neither does work texmfstart texexec --version the same as did texexec --version. The former giving the TeXExec version, the latter gave the installed ConTeXt formats. It is not texmfstart texexec --purge because I tried that too. On the other hand, replacing texexec --silent --pdf --autopdf file.tex by the same preceded with texmfstart does work as expected. What happened? texutil will go away (i.e. be a wrapper only); the functionality has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb etc it's now: ctxtools --purge - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
Richard Gabriel wrote: I'd like to confirm this, i tried texmfstart texutil.rb test.tui or texmfstart texutil.rb --references test.tui and nothing happened! Although, texutil is called correctly when processing a file with texexec (maybe texexec calls methods from texutil.rb directly...) indeed, texexec.rb therefore does not need to start another script (so we're faster now) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
Of course I understand, I'd solve it the same way...But, I'd suggest to print some warning, if some functionality is moved or removed.E.g. if I try texmfstart texutil.rb --figuresit also doesn't work but I'm informed what has happened.. ;-)Thanks,RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Jun 2006 12:50:45 +0200Subject: Re: [NTG-context] texmfstart texutilRichard Gabriel wrote: I'd like to confirm this, i tried texmfstart texutil.rb test.tui or texmfstart texutil.rb --references test.tui and nothing happened! Although, texutil is called correctly when processing a file with texexec (maybe texexec calls methods from texutil.rb directly...) indeed, texexec.rb therefore does not need to start another script (so we're faster now) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
On Jun 9, 2006, at 11:43, Richard Gabriel wrote: Note: To check the installed formats and their version, use now: texmfstart texexec --check Yes, but is so much more verbose. While previously a neat, short summary of the currently installed formats was printed. Just what I wanted. met vriendelijke groet Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
On Jun 9, 2006, at 12:49, Hans Hagen wrote: Hans van der Meer wrote: In order to purge the temporary context files I did (throught an alias) texutil --purge This worked fine. texutil will go away (i.e. be a wrapper only); the functionality has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb etc it's now: ctxtools --purge For those on UNIX(-like) systems that have only texmfstart.rb enabled as executable (chmod a+x texmfstart.rb) this will not work as none the ruby scripts in the distribution seem to have their execution bits set. The next seems mandatory if only texmfstart is enabled: texmfstart ctxtools --purge Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
Hans van der Meer wrote: For those on UNIX(-like) systems that have only texmfstart.rb enabled as executable (chmod a+x texmfstart.rb) this will not work as none the ruby scripts in the distribution seem to have their execution bits set. The next seems mandatory if only texmfstart is enabled: texmfstart ctxtools --purge There is a whole bunch of shell stubs in the distribution, in scripts/context/stubs/unix but currently you always have to redo the chmod +x after each update because the execution permission bit is not kept in the zip, so it gets trashed during the unzip operation. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
Hans van der Meer wrote: On Jun 9, 2006, at 12:49, Hans Hagen wrote: Hans van der Meer wrote: In order to purge the temporary context files I did (throught an alias) texutil --purge This worked fine. texutil will go away (i.e. be a wrapper only); the functionality has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb etc it's now: ctxtools --purge For those on UNIX(-like) systems that have only texmfstart.rb enabled as executable (chmod a+x texmfstart.rb) this will not work as none the ruby scripts in the distribution seem to have their execution bits set. The next seems mandatory if only texmfstart is enabled: texmfstart ctxtools --purge on unix, one needs to copy texmfstart.rb to texmfstart and copy it to some bin path -- - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texutil
On Jun 9, 2006, at 17:21, Hans Hagen wrote: Hans van der Meer wrote: On Jun 9, 2006, at 12:49, Hans Hagen wrote: Hans van der Meer wrote: In order to purge the temporary context files I did (throught an alias) texutil --purge This worked fine. texutil will go away (i.e. be a wrapper only); the functionality has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb etc it's now: ctxtools --purge For those on UNIX(-like) systems that have only texmfstart.rb enabled as executable (chmod a+x texmfstart.rb) this will not work as none the ruby scripts in the distribution seem to have their execution bits set. The next seems mandatory if only texmfstart is enabled: texmfstart ctxtools --purge on unix, one needs to copy texmfstart.rb to texmfstart and copy it to some bin path Copying is imho not necessary. As long as the execution bits are set any file can be made to execute by a shell. What to do is determined by the shebang line. I am working in MacOSX which is UNIX under the hood and texmfstart.rb is excuted without the need for copying. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
Aditya Mahajan wrote: 2) Is whitespace not allowed before or after when defining with or using the = sign? Parially, space after = is fine, space before = is ignored silently. changing that would break things (esp when a space is set this way, and not using \space) This is because with \dosetvalue {one}{a}{ b} \onea is defined, while with \dosetvalue {one}{a }{ b} \onea is undefined. Hans, can \dosetvalue be defined to ignore the space of #2, something like \unprotect \def\dosetvalue#1#2#3% {\dodosetvalue{#1}[#2]#3} \def\dodosetvalue#1[#2#3]#4% {\doifelse{#3}{\space} [EMAIL PROTECTED] [EMAIL PROTECTED] With this \dosetvalue {one}{a }{ b} (\onea) works, but this does not work for \definestartstop [abstract] [before = {{\bf Abstract}}] indeed; if supported, this would have to take place in the comma list parser and the base assignment which would slow down things a lot I do not know the implication in terms of speed. In case there is a heavy penality, one can have a switch to ignore spaces in value assignments. hm, maybe some day (such changes would demand much testing) and will be easier to do once we have lua enhanced tex (end of year) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
Aditya Mahajan wrote: Hi, when I try texmfstart whatever nothing happens. Shouldn't a warning or an error be given to say that texmfstart could not find 'whatever'. This will make it easier to detect typos while trying out commands by hand. I do get such a message when using texmfstart --verbose whatever, but I think that such a behaviour should be default. Hans, is it reasonable to define a method report_error(str) in class KpseRemote def report_error(str) $stderr.puts(str) end end and modify line 2110 of texmfstart.rb to def run(fullname) if ! fullname || fullname.empty? then %%%report(the file '#{$filename}' is not found) report_error(the file '#{$filename}' is not found) . Maybe there are other places also where an error report will be useful. there is the non-verbose checking def output(str) $stdout.puts(str) end so we can use output(the file '#{$filename}' is not found) (i dislike stderr -) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
On Mon, 5 Jun 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, when I try texmfstart whatever nothing happens. Shouldn't a warning or an error be given to say that texmfstart could not find 'whatever'. This will make it easier to detect typos while trying out commands by hand. I do get such a message when using texmfstart --verbose whatever, but I think that such a behaviour should be default. Hans, is it reasonable to define a method report_error(str) in class KpseRemote def report_error(str) $stderr.puts(str) end end and modify line 2110 of texmfstart.rb to def run(fullname) if ! fullname || fullname.empty? then %%%report(the file '#{$filename}' is not found) report_error(the file '#{$filename}' is not found) . Maybe there are other places also where an error report will be useful. there is the non-verbose checking def output(str) $stdout.puts(str) end so we can use output(the file '#{$filename}' is not found) this will be fine. (i dislike stderr -) Any particular reason? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
Aditya Mahajan wrote: On Mon, 5 Jun 2006, Hans Hagen wrote: Aditya Mahajan wrote: Hi, when I try texmfstart whatever nothing happens. Shouldn't a warning or an error be given to say that texmfstart could not find 'whatever'. This will make it easier to detect typos while trying out commands by hand. I do get such a message when using texmfstart --verbose whatever, but I think that such a behaviour should be default. Hans, is it reasonable to define a method report_error(str) in class KpseRemote def report_error(str) $stderr.puts(str) end end and modify line 2110 of texmfstart.rb to def run(fullname) if ! fullname || fullname.empty? then %%%report(the file '#{$filename}' is not found) report_error(the file '#{$filename}' is not found) . Maybe there are other places also where an error report will be useful. there is the non-verbose checking def output(str) $stdout.puts(str) end so we can use output(the file '#{$filename}' is not found) this will be fine. (i dislike stderr -) Any particular reason? mostly that it takes more work to collect both when piping (to a log file) and so, either i want to see messages or not and verbose can control that Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
Hi all. Just a quick note regarding silentness in Context. I have on two occasions had problems with silent errors: 1) When using the bib module and putting spaces between citation variables and their value. For example, doing: \startpublication[k = ArcticCorsairTrawling, t = misc] instead of \startpublication[k=ArcticCorsairTrawling, t=misc] 2) When trying to define an abstract command: \definestartstop [abstract] [before={\midaligned{\bf Abstract} \startnarrower[2*middle]}, after={\stopnarrower \blank[big]}] In this case the command was defined when I used ...before = ... but did not alter the text in any way. So after all this rambling I have two questions: 1) Is this silent mode intended? 2) Is whitespace not allowed before or after when defining with or using the = sign? Best regards/Kær kveðja, Guðmundur J. Kristjánsson [EMAIL PROTECTED] | [EMAIL PROTECTED] | Tel. +354-893-. Aditya Mahajan wrote: Hi, when I try texmfstart whatever nothing happens. Shouldn't a warning or an error be given to say that texmfstart could not find 'whatever'. This will make it easier to detect typos while trying out commands by hand. I do get such a message when using texmfstart --verbose whatever, but I think that such a behaviour should be default. Hans, is it reasonable to define a method report_error(str) in class KpseRemote def report_error(str) $stderr.puts(str) end end and modify line 2110 of texmfstart.rb to def run(fullname) if ! fullname || fullname.empty? then %%%report(the file '#{$filename}' is not found) report_error(the file '#{$filename}' is not found) . Maybe there are other places also where an error report will be useful. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart fails silently on incorrect input
On Mon, 5 Jun 2006, Guðmundur J. Kristjánsson wrote: Just a quick note regarding silentness in Context. I have on two occasions had problems with silent errors: 1) When using the bib module and putting spaces between citation variables and their value. For example, doing: \startpublication[k = ArcticCorsairTrawling, t = misc] instead of \startpublication[k=ArcticCorsairTrawling, t=misc] 2) When trying to define an abstract command: \definestartstop [abstract] [before={\midaligned{\bf Abstract} \startnarrower[2*middle]}, after={\stopnarrower \blank[big]}] In this case the command was defined when I used ...before = ... but did not alter the text in any way. So after all this rambling I have two questions: 1) Is this silent mode intended? No, this is the usual behaviour. 2) Is whitespace not allowed before or after when defining with or using the = sign? Parially, space after = is fine, space before = is ignored silently. This is because with \dosetvalue {one}{a}{ b} \onea is defined, while with \dosetvalue {one}{a }{ b} \onea is undefined. Hans, can \dosetvalue be defined to ignore the space of #2, something like \unprotect \def\dosetvalue#1#2#3% {\dodosetvalue{#1}[#2]#3} \def\dodosetvalue#1[#2#3]#4% {\doifelse{#3}{\space} [EMAIL PROTECTED] [EMAIL PROTECTED] With this \dosetvalue {one}{a }{ b} (\onea) works, but this does not work for \definestartstop [abstract] [before = {{\bf Abstract}}] I do not know the implication in terms of speed. In case there is a heavy penality, one can have a switch to ignore spaces in value assignments. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart?
On May 23, 2006, at 11:05, Mojca Miklavec wrote: On 5/21/06, Hans van der Meer [EMAIL PROTECTED] wrote: Since installing the last ConTeXt update I am aware of the message from texexec: warning : use 'texmfstart texexec' instead Good, I call: texmfstart texexec --version instead of texexec --version Result: -bash: texmfstart: command not found Is my system suddenly incomplete? I am using Mac OS X 10.4.6, the most recent development I would think. What happened and how can I get to the level of system support ConTeXt seems to expect of me? I don't know how it is on Mac. Under windows I have a binary (cont-win on pragma download site), under Linux I create a file texmfstart with ruby /path-to-tex/texmfstart.rb $* (or something similar) see also the new scripts/context/stubs/mac folder (I didn't check, I only suppose that it's there) if anything there can help you. Mojca Putting the ruby script in the right path and giving it executing permissions solved most of the problem. However there is a warning message left: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 metapost : test-mpgraph format : metafun This is MetaPost, Version 0.901 (Web2C 7.5.3) (/usr/local/teTeX/share/texmf-local/web2c/natural.tcx) total run time : 0 seconds warning : use 'texmfstart texexec' instead [MP to PDF] (./test-mpgraph.1) (./test.tuo) Since this message results from the internals of texmfstart texexec it might be a leftover lonely texexec in the scripts. I tried to find it, but could not find my way around the ruby scripts. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texexec --pdf --pages=1:2 = empty PDF
Hello, Tobias Burnus schrieb: I freshly switched to the ruby script and have now a problem: texmfstart texexec --pdf --pages=1:2 produces: No pages of output. texmfstart texexec --pdf however, works: Output written on tmp_.pdf (3 pages, 103204 bytes) I do not know what that option does. It seems to do something, but not the right thing. Actually, looking at texexec.rb I get the impression that --pages= is not supported. One finds there - # so far for compatibility @@extrastringvars = [ 'pages', 'background', 'backspace', 'topspace', 'boxtype', 'tempdir', - Could the --pages option made to work in texexec.rb? In texexec.pl I find the following. I probably should learn ruby [and python for that matter] ... Tobias if ($Pages) { if ( lc $Pages eq odd ) { print OPT \\chardef\\whichpagetoshipout=1\n; } elsif ( lc $Pages eq even ) { print OPT \\chardef\\whichpagetoshipout=2\n; } else { my @Pages = split( /\,/, $Pages ); $Pages = ''; foreach my $page (@Pages) { if ( $page =~ /\:/ ) { my ( $from, $to ) = split( /\:/, $page ); foreach ( my $i = $from ; $i = $to ; $i++ ) { $Pages .= $i . ','; } } else { $Pages .= $page . ','; } } chop $Pages; print OPT \\def\\pagestoshipout\{$Pages\}\n; } } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart texexec --pdf --pages=1:2 = empty PDF
Tobias Burnus wrote: Hello, Tobias Burnus schrieb: I freshly switched to the ruby script and have now a problem: texmfstart texexec --pdf --pages=1:2 produces: No pages of output. texmfstart texexec --pdf however, works: Output written on tmp_.pdf (3 pages, 103204 bytes) I do not know what that option does. It seems to do something, but not the right thing. Actually, looking at texexec.rb I get the impression that --pages= is not supported. One finds there - # so far for compatibility @@extrastringvars = [ 'pages', 'background', 'backspace', 'topspace', 'boxtype', 'tempdir', - Could the --pages option made to work in texexec.rb? In texexec.pl I find the following. I probably should learn ruby [and python for that matter] ... actually, the code is there ... scripts/context/ruby/tex.rb but there is a buglet in there: opt \\def\\pagestoshipout\{pagelist.join(',')\}\n; should be: opt \\def\\pagestoshipout\{#{pagelist.join(',')}\}\n; #{..} evaluates inside a string 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart?
Matt Gushee wrote: Probably you just need either to put the Ruby script directory ($TEXMF/scripts/context/ruby) on your PATH, or create links from the scripts you want to use to a directory in your current PATH. Maybe just link texmfstart--it seems to be a front end for all the Ruby scripts. P.S.: I just came across this manual: http://www.pragma-ade.com/general/manuals/mtexmfstart.pdf -- Matt Gushee The Reluctant Geek: http://matt.gushee.net/rg/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem
Yes, texexec --format=cont-cz test.tex also works for me, buttexmfstart texexec --format=cont-cz test.texdoesn't! In such a case, the format cont-en gets always used.texmfstart texexec --interface=cz test.texworks well and the format cont-cz is used.Got TeXLive 2005 on Windows XP and ConTeXt 2006-05-17.-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 19 May 2006 15:26:00 +0200Subject: Re: [NTG-context] texmfstart problemRichard Gabriel wrote: Thanks Hans, this way it works! here texexec --interface=cz test.tex texexec --format=cz test.tex texexec --format=cont-cz test.tex all work ok 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart?
Hans van der Meer wrote: Since installing the last ConTeXt update I am aware of the message from texexec: warning : use 'texmfstart texexec' instead Good, I call: texmfstart texexec --version instead of texexec --version Result: -bash: texmfstart: command not found I've been away from ConTeXt for a while, so I don't have full knowledge of the recent changes. But it seems that many of the original Perl scripts are being replaced by Ruby scripts (of which texmfstart is one), which are in a different directory. Is my system suddenly incomplete? I am using Mac OS X 10.4.6, the most recent development I would think. What happened and how can I get to the level of system support ConTeXt seems to expect of me? Probably you just need either to put the Ruby script directory ($TEXMF/scripts/context/ruby) on your PATH, or create links from the scripts you want to use to a directory in your current PATH. Maybe just link texmfstart--it seems to be a front end for all the Ruby scripts. Oh, and of course you have to have Ruby itself. I don't know where you would get an OS X package, but the Ruby language Web site is: http://www.ruby-lang.org/ -- Matt Gushee The Reluctant Geek: http://matt.gushee.net/rg/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem
Thanks Hans, this way it works!Anyway, I'd suggest to list this option in the command line help (texmfstart texexec --help). I find it one of the most important texexec options...Another issue: 'texexec --version' also lists versions of TeXUtil, pdfTeX and the particular ConTeXt formats.'texmfstart texexec --version' shows only the version of texexec itself... :-(I've attached a small Czech test file (utf-8 encoded).-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 19 May 2006 10:39:13 +0200Subject: Re: [NTG-context] texmfstart problemRichard Gabriel wrote: Hello Hans and others, I've got the following problem... I used to use such a command to compile my documents: texexec --format=cont-cz --mode=print file.tex After upgrade to latest ConTeXt (2006-05-17), I got a warning "Use 'texmfstart texexec' instead!". So I've changed my batch to call: texmfstart texexec --format=cont-cz --mode=print file.texmaybe --interface=cz works But it seems the --format switch is not processed correctly because the cont-en format is always used. On the other hand, the mode is passed correctly. Where's the problem?can you send me a small czech test file? 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-___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context test.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem
Richard Gabriel wrote: Thanks Hans, this way it works! Anyway, I'd suggest to list this option in the command line help (texmfstart texexec --help). I find it one of the most important texexec options... Another issue: 'texexec --version' also lists versions of TeXUtil, pdfTeX and the particular ConTeXt formats. 'texmfstart texexec --version' shows only the version of texexec itself... :-( Use: texmfstart texexec --check Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart problem
Richard Gabriel wrote: Thanks Hans, this way it works! here texexec --interface=cz test.tex texexec --format=cz test.tex texexec --format=cont-cz test.tex all work ok 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart and scite installation problems
David Arnold wrote: All, F:\miktex\scripts\context\rubyver Windows 95. [Version 4.00.] F:\miktex\scripts\context\rubyruby --version ruby 1.8.2 (2004-11-06) [i386-mswin32] F:\miktex\scripts\context\rubytexmfstart --version Bad command or file name F:\miktex\scripts\context\rubytexmfstart.rb --version Bad command or file name F:\miktex\scripts\context\rubyruby texmfstart.rb --version texmfstart.rb:32:in `initialize': GetProcAddress: GetLongPathName or GetLongPath NameA (RuntimeError) from texmfstart.rb:32:in `new' from texmfstart.rb:32 Any suggestions? strange, it works here; can you try texmfstart.exe? 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 - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context