[NTG-context] Unable to generate fonts
Hi, I've been running into trouble in both the alpha and beta versions of Mark IV when trying to work with the fonts script: $ mtxrun --script fonts --list MTXrun | font table: accessing the data table failed MTXrun | font table: accessing the data table failed ...text/tex/texmf-context/tex/context/base/font-syn.lua:333: attempt to index field 'data' (a nil value) Also, using the "reload" option does nothing (it prints a blank line and immediately exits). Without the fonts script I can't install or use any custom fonts. It's a fresh installation. I tried deleting the ConTeXt installation and reinstalling both the alpha and beta versions with the first-setup.sh script. Thanks in advance for any help. Patrick ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LuaTeX 64bit
Mojca Miklavec wrote: On Sat, Apr 18, 2009 at 23:09, Mohamed Bana wrote: One more question, how do I only create the formats for British English only? No Dutch, American English etc.. I'm going to argue on the list that the en_GB should be the default ;), but I'll save that for another day. There is only one English format that you can generate with "texexec --make en". If you're speaking about how to generate only that one with first-setup.sh, then you should be, at least in theory, able to generate only the chosen formats with --formats switch or my modifying the lua file that gets generated, but I imagine that it doesn't work or at least I have never tested it so far. do you know if first-setup.sh only downloads the files /only if/ they're are changes? i mean could a simple checksum do the job? Yes, it only downloads the modified files, but it doesn't use checksums since using them is much slower. You could add an additional -c switch, but you will not notice any difference (apart from a few files that Hans recreates every time when he uploads a new zip, but that's neglectable). Rsync checks for date+size. Only if these two are different it fetches the file. You could add checksum checking, but I guess that you don't gain anything. The only critical component where I really do need to change this are luatex and metapost source, but this only concerns binary builders, not users. there has been a time that this was possible, but inpractice it's not that handy ... specifying the language should be part of the document preamble; in that time we had no gyre and as language is related to patterns + font encodings in mkii it was even more tricky one thing that you can do is add \mainlanguage[gb] to cont-sys.tex default to brittish english so that on your system it always starts that way; the overhead is nil 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] new beta
Wei-Wei Guo wrote: Hans Hagen 写道: Wei-Wei Guo wrote: And I have a further question. Is it possible to put the footnote of table head under the table instead of at the bottom of the page? I think it would be more reasonable of putting the footnote under the table. in principle yes, but then i need to add something to the float mechanism so it's not a quick hack (and it will not happen before i have completely spit the code in mkii/mkiv) Thanks! BTW, when will you finish the splitting? will take a while (happens currently) .. as we need to remain backward compatible dev of mkiv costs much more time than starting from scratch - 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] \section and luatex
\section Current Activities displays 1 C urrent Activities could you please allow \section Other to use the entire word not just the first Letter. And how do I tell if LuaTeX is 64bit? $ luatex --version This is LuaTeX, Version snapshot-0.39.0-2009041607 luatex.web v2298 $ context --version MTXrun | main context file: /home/mbana/context.distro/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.04.18 13:47 Many thanks Mohamed ___ 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] \section and luatex
On zo, 2009-04-19 at 11:36 +0100, Mohamed Bana wrote: > \section Current Activities > > displays > > 1 C > urrent Activities > > > could you please allow \section Other to use the entire word not just > the first Letter. \section is like any other command. All commands take the first character as parameter. If you want to have a longer parameter you have to put {}'s around it, like: \section{Current Activities} Regards, Alex ___ 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] \section and luatex
Am 19.04.2009 um 12:53 schrieb Alex Lubberts: \section is like any other command. All commands take the first character as parameter. Not in MkII, it was also possible to use the end of the paragraph as delimiter. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Footnotes number can not be reset by "way=bychapter"
Hi, "\setupfootnotes[way=bychapter]" can not work. This is minimal example: \setupfootnotes[way=bychapter] \starttext \chapter{The Bare Basics} In this\footnote{CAGD} first chapter, we cover some basic geometry\footnote{CAGD}. \chapter{Lines and Planes} Next, we cover\footnote{CAGD} the basics of lines and planes\footnote{CAGD}. \stoptext However, I can get expected result with "\setupnumber[footnote][way=bychapter,start=0]". If I set "start=1", footnotes number will begin with "2" but not "1". What's wrong with it? -- Best wishes, Li Yanrui * Gentoo Linux (~x86) * ConTeXt Minimals Beta (2009.04.18 13:47) ___ 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] Producing dvi
Dear All, is it possible to produce dvi in mkiv? What is the command line? Are there limitations (like no opentype, no unicode math)? DVI has to be fit for dvips use. The reason for my question - Asymptote vector drawing tool sets labels by processing PS output of LaTeX and relies on the PS being made by dvips. Sincerely, Michail ___ 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] Producing dvi
Michail Vidiassov wrote: Dear All, is it possible to produce dvi in mkiv? What is the command line? Are there limitations (like no opentype, no unicode math)? DVI has to be fit for dvips use. The reason for my question - Asymptote vector drawing tool sets labels by processing PS output of LaTeX and relies on the PS being made by dvips. you can produce dvi when you force the pdfoutput mode but you will probably get errors reported best convert that ps to pdf than and include the pdf 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] \section and luatex
Wolfgang Schuster wrote: Am 19.04.2009 um 12:53 schrieb Alex Lubberts: \section is like any other command. All commands take the first character as parameter. Not in MkII, it was also possible to use the end of the paragraph as delimiter. indeed, and i dropped it in mkiv, where we have: \chapter [ref] {title} \chapter {title} and, when ownnumbers are used: \chapter [ref] {nr} {title} \chapter {nr} {title} and, when structure is wanted (at least that is the idea): \startchapter [settings] [userdata] where the first argument sets the title, reference, bookmark, etc and the second is up to the user who then can request that info; userdata is carried around also in lists (an example of userdata can be an image name that is used in typesetting the title as well has to show up in the toc; examples of usage will show up in due time) the mkiv mechanism is also more clever in the sense that it deals with roundtrip xml and such - 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] Producing dvi
Dear Hans, On Sun, 19 Apr 2009, Hans Hagen wrote: is it possible to produce dvi in mkiv? DVI has to be fit for dvips use. The reason for my question - Asymptote vector drawing tool sets labels by processing PS output of LaTeX and relies on the PS being made by dvips. you can produce dvi when you force the pdfoutput mode but you will probably get errors reported best convert that ps to pdf than and include the pdf No, no, no! I have been misunderstood! The problem is not how to include Asymptote output into ConTeXt. If it is 2D - then it is just normal PDF, that can be included as usual. If it is 3D - I have the code, modeled after movie inclusion (thanks Hans, you fixed it when I have mentioned that it was broken in mkiv). What I am talking about now is how to typeset labels within Asymptote by ConTeXt. Asymptote takes label text, wraps it into a minimal document and feeds to a TeX engine, gets DVI, processes it with dvips, redefines some PS commands (here it relies on the dvips specifics) so that the information on the resulting path is being printed and runs the PS file through ghostscript. Thus Asymptote gets the information of the curves the label consists of. So if it is possible to feed ConTeXt output to dvips, than it'll be easy to adopt Asymptote to use ConTeXt. If mkiv does not produce dvi (now? never will? not intended to?), what about mkii? Sincerely, Michail PS. The black side of mirgation from another system - you are both a novice and need to setup/modify your new tool in unevident ways to translate your existing work into new terms... You barely drive but need to fit that trusty Gatling on the car's roof :( ___ 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] Font table
Hans Hagen Sat, 18 Apr 2009 21:21:37 +0200 Eythan Weg wrote: > > Hi, > > I tried this > > mtxrun --verbose --reload --script fonts > > but it fails with: > > MTXrun | using script: /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua > > cannot open : No such file or directory > > I think that this line in mtx-fonts.lua is the culprit: > dofile(resolvers.find_file("font-syn.lua")) > > although this file: > font-syn.lua > > exists. > > Any hints it should just work ok did you run luatools --generate to make a file database? Yes. And I find no errors in doing so. I have no problems using context with the standard fonts defined otf-type.tex. Note that luatools font-syn.lua shows nothing. Eythan ___ 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] Producing dvi
Michail Vidiassov wrote: If mkiv does not produce dvi (now? never will? not intended to?), what about mkii? Sincerely, Michail sure, mkii can produce dvi for several drivers \setupoutput[dvips] - 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] Producing dvi
Dear Hans, On Sun, 19 Apr 2009, Hans Hagen wrote: If mkiv does not produce dvi (now? never will? not intended to?), what about mkii? sure, mkii can produce dvi for several drivers And what about the first part of the question? The (negative?) answer is implied in your other post, but what is the official position (if any)? Sincerely, Michail ___ 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] Producing dvi
On Sun, 19 Apr 2009 07:39:58 -0600, Michail Vidiassov wrote: If mkiv does not produce dvi (now? never will? not intended to?), what about mkii? sure, mkii can produce dvi for several drivers And what about the first part of the question? mkiv does not now, probably never will, and is not intended, to support dvi ;-) dvi is considered obsolete. Maybe newer technologies like xps -- which claims better integration with opentype etc -- will be supported sometime down the road... no time soon. 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] Font table
Eythan Weg 写道: Hans Hagen Sat, 18 Apr 2009 21:21:37 +0200 Eythan Weg wrote: > > Hi, > > I tried this > > mtxrun --verbose --reload --script fonts > > but it fails with: > > MTXrun | using script: /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua > > cannot open : No such file or directory > > I think that this line in mtx-fonts.lua is the culprit: > dofile(resolvers.find_file("font-syn.lua")) > > although this file: > font-syn.lua > > exists. > > Any hints it should just work ok did you run luatools --generate to make a file database? Yes. And I find no errors in doing so. I have no problems using context with the standard fonts defined otf-type.tex. Note that luatools font-syn.lua shows nothing. Eythan The same with Eythan here. Wei-Wei ___ 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] Font table
Am Sun, 19 Apr 2009 09:17:06 -0400 schrieb Eythan Weg: >> I tried this >> >> mtxrun --verbose --reload --script fonts >> >> but it fails with: >> >> MTXrun | using script: > /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua >> >> cannot open : No such file or directory >did you run luatools --generate to make a file database? > > Yes. And I find no errors in doing so. I have > no problems using context with the standard fonts > defined otf-type.tex. > > Note that > >luatools font-syn.lua > > shows nothing. I had this problem too. In my case it was an error in my texmf.cnf. What does kpsewhich --show-path=tex return? And where exactly is font-syn.lua? -- Ulrike Fischer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Producing dvi
On Sun, Apr 19, 2009 at 15:39, Michail Vidiassov wrote: > Dear Hans, > > On Sun, 19 Apr 2009, Hans Hagen wrote: > >>> If mkiv does not produce dvi (now? never will? not intended to?), >>> what about mkii? >> >> sure, mkii can produce dvi for several drivers > > And what about the first part of the question? > The (negative?) answer is implied in your other post, > but what is the official position (if any)? The problem is not writing DVI file per se, but conversion from DVI to some reasonable format (both ps and pdf are problematic). As soon as you want to use OpenType fonts and their features, dvips will not be able to convert the DVI to valid PS any more unless someone writes extension for it (which is very unlikely to happen). If you insist in DVI and OpenType fonts, you could just as well take a look at ConTeXt+XeTeX that is able to generate xdv files (extended dvi), but I can guarantee you problems. dvips is not able to handle XDV files. If Asymptote is not able to handle PDF files, maybe Asymptote itself would need extensions. (When I last tried to use Asymptote I gave up since I was not able to figure out how to install it and started using other tools.) But as far as I know, if the only critical step is conversion of font outlines into curves, gs is able to read PDF files as well. I see no reason why one would require PS unless one uses very basic techniques for document manipulation (it's a bit easier to parse and work with PS than it is to work with PDF, but when it's done inside a bigger project it probably pays off to support both; I guess that the overhead should not be that big). If you would like asymptote to handle ConTeXt labels you should start with mkii. But honestly: I don't really see when LaTeX for typesetting labels would not suffice. ConTeXt is extremely good at page formatting, but when it comes to typeset "$A$" for point labels, I would not mind using LaTeX (If it's only about OpenType you cannot do anything unless Asymptote gets extended, but even then you could use XeTeX.) There definitely are few exceptions and there's definitely an extremely good feeling if you're aware that the tool uses ConTeXt in the background ... but that's about all about it. But the answer to your question about mkiv and dvi remains: no, it won't be supported, unless someone provides sufficient funding or writes amazing/extremely useful tools that could cope with XDV format and do something useful with it. Feel free to search dev-luatex archives for lenghty discussions about the issue. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \section and luatex
On Sun, 19 Apr 2009, Mohamed Bana wrote: \section Current Activities displays 1 C urrent Activities could you please allow \section Other to use the entire word not just the first Letter. And how do I tell if LuaTeX is 64bit? $ luatex --version This is LuaTeX, Version snapshot-0.39.0-2009041607 luatex.web v2298 $ context --version MTXrun | main context file: /home/mbana/context.distro/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.04.18 13:47 Add this somewhere (old code, not tested with latest beta) \def\dodohandlestructureheadnop[#1][#2]% {\dowithpargument{\dododohandlestructureheadnop[#1][#2]}} \def\dododohandlestructureheadnop[#1][#2]#3% {\setfalse\currentstructureown \dohandlestructurehead{#1}{\c!reference=#2,\c!title={#3}}{}} % name ref nr title -- 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] Font table
Ulrike Fischer Sun, 19 Apr 2009 15:57:05 +0200 Am Sun, 19 Apr 2009 09:17:06 -0400 schrieb Eythan Weg: >> I tried this >> >> mtxrun --verbose --reload --script fonts >> >> but it fails with: >> >> MTXrun | using script: /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua >> >> cannot open : No such file or directory >did you run luatools --generate to make a file database? > > Yes. And I find no errors in doing so. I have > no problems using context with the standard fonts > defined otf-type.tex. > > Note that > >luatools font-syn.lua > > shows nothing. I had this problem too. In my case it was an error in my texmf.cnf. What does kpsewhich --show-path=tex return? And where exactly is font-syn.lua? -- Ulrike Fischer The file is in the base directory of context. In fact luatools cannot find any *.lua that I tried in the base directory. Other files are ok. Eythan ___ 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] Producing dvi
Dear Mojca, On Sun, 19 Apr 2009, Mojca Miklavec wrote: If Asymptote is not able to handle PDF files, maybe Asymptote itself would need extensions. (When I last tried to use Asymptote I gave up since I was not able to figure out how to install it and started using other tools.) This (installation problems) is part of the question why typesetting in Asymptote with ConTeXt is desirable - no need to maintain separate LaTeX installation, avoiding mixup with older version of ConTeXt that comes with it, etc. And at this moment Asymptote is (almost) the only tool that makes 3D PDF directly (without Windows-only converter like Acrobat), is Metapost-like and not some CAD monster or VRML fossil. If you would like asymptote to handle ConTeXt labels you should start with mkii. But honestly: I don't really see when LaTeX for typesetting labels would not suffice. ConTeXt is extremely good at page formatting, but when it comes to typeset "$A$" for point labels, I would not mind using LaTeX (If it's only about OpenType you cannot do anything unless Asymptote gets extended, but even then you could use XeTeX.) Apart from maintenance problems with the zoo of tools, Asymptote aspires for high quality of labels (and has invested considerable effort to preserve it in 3D mode), that implies that labels are to be in the same font as the main text and/or follow some predetermined style. That requirement is not easy to follow consistently if different tools are used to typeset body of the article and labels on pics. http://tug.org/pracjourn/2005-1/levine/levine.pdf But as far as I know, if the only critical step is conversion of font outlines into curves, gs is able to read PDF files as well. I see no reason why one would require PS unless one uses very basic techniques for document manipulation (it's a bit easier to parse and work with PS than it is to work with PDF, but when it's done inside a bigger project it probably pays off to support both; I guess that the overhead should not be that big). As a side note - PS is a programming language very well suited for just this kind of problems. ;) Sincerely, Michail ___ 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] Appendix receives number instead of letter
Hi, Previously, \startappendices switched the numbering to letters, but with the latest beta appendices receive a number. Numbering does restart from 1, however. Example: \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Normal chapter} This chapter receives a number. \stopbodymatter \startappendices \chapter{Appendix} This chapter should receive a letter A, but gets number 1 \stopappendices \stoptext Regards, Alex ___ 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] Font table
Am Sun, 19 Apr 2009 11:00:54 -0400 schrieb Eythan Weg: > I had this problem too. In my case it was an error in my texmf.cnf. >What does kpsewhich --show-path=tex return? And where exactly is >font-syn.lua? > The file is in the base directory of context. In > fact luatools cannot find any *.lua that I tried > in the base directory. Other files are ok. What does kpsewhich --show-path=tex return? -- Ulrike Fischer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font table
Eythan Weg wrote: Ulrike Fischer Sun, 19 Apr 2009 15:57:05 +0200 Am Sun, 19 Apr 2009 09:17:06 -0400 schrieb Eythan Weg: >> I tried this >> >> mtxrun --verbose --reload --script fonts >> >> but it fails with: >> >> MTXrun | using script: /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua >> >> cannot open : No such file or directory >did you run luatools --generate to make a file database? > > Yes. And I find no errors in doing so. I have > no problems using context with the standard fonts > defined otf-type.tex. > > Note that > >luatools font-syn.lua > > shows nothing. I had this problem too. In my case it was an error in my texmf.cnf. What does kpsewhich --show-path=tex return? And where exactly is font-syn.lua? -- Ulrike Fischer The file is in the base directory of context. In fact luatools cannot find any *.lua that I tried in the base directory. Other files are ok. luatools --show-path tex luatools --show-path lua - 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] Files for verbatim output of Python source, zc.buildout and Apache config files
Hello, I'm using MKIV and needed syntax highlighting for a few source and config files. I read on the Wiki and on this list that it should be pretty easy to do this in Lua and although I never wrote anything in Lua I just tried it. Maybe the result will be of use for somebody so I tried to post them to this list a few days ago but the mail never showed up. Maybe because of the attachment size. I read on the Wiki that the best place for putting custom formatter files would be the context distribution or http://modules.contextgarden.net but as I'm pretty sure that some stuff is missing and I'm sure there are some bugs included I tried to post them here. Would it be OK to put the files in a section on the Wiki to start something like a repository for verb-*.lua files where it would be easy to extend and correct them? The verb-*.lua files I created are for syntax highlighting of Python source code, Apache http.conf and zc.buildout config files. For the zc.buildout files I used a simple solution and just defined the keywords that appear in a standard Plone buildout.cfg file as I didn't need more. I hope to finish two additional verbatim files for XML and Shell scripts in the next days. As I don't have any experience in writing Lua code I chose to use the tex/context/base/verb-*.lua and the verb-cpp.lua files posted by Shen Chen in http://archive.contextgarden.net/message/20081002.173802.460c46fe.en.html) for a start. Additionally I used the vim syntax files and the official Apache documentation. Here is an overview of what is covered: The verb-apa.lua file distinguishes between the following five states: - declarations - strings - sections (like and ) - comments - options The verb-py.lua file distinguishes between the following five states: - all statements, repeats, conditionals and operators - strings (multi line comment wit ''' or """ are supported) - preconditions (import, from, as) - comments - builtins The verb-py.cfg file distinguishes between the following four states: - sections - variables - keywords - comments Regards, Drazen ___ 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] Files for verbatim output of Python source, zc.buildout and Apache config files
Drazen Baic wrote: Would it be OK to put the files in a section on the Wiki to start something like a repository for verb-*.lua files where it would be easy to extend and correct them? sure, just go ahead - 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] Font table
Ulrike Fischer Sun, 19 Apr 2009 18:02:45 +0200 Am Sun, 19 Apr 2009 11:00:54 -0400 schrieb Eythan Weg: > I had this problem too. In my case it was an error in my texmf.cnf. >What does kpsewhich --show-path=tex return? And where exactly is >font-syn.lua? > The file is in the base directory of context. In > fact luatools cannot find any *.lua that I tried > in the base directory. Other files are ok. What does kpsewhich --show-path=tex return? What does it has to do with lua files? -- Ulrike Fischer Eythan ___ 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] \section and luatex
If it isn't too much trouble, please just add it back. I'm sure it was working in LuaTeX one point in time. -- Mohamed 2009/4/19 Aditya Mahajan > On Sun, 19 Apr 2009, Mohamed Bana wrote: > > \section Current Activities >> >> displays >> >> 1 C >> urrent Activities >> >> >> could you please allow \section Other to use the entire word not just the >> first Letter. >> And how do I tell if LuaTeX is 64bit? >> >> $ luatex --version >> This is LuaTeX, Version snapshot-0.39.0-2009041607 luatex.web v2298 >> >> $ context --version >> MTXrun | main context file: >> /home/mbana/context.distro/tex/texmf-context/tex/context/base/context.tex >> MTXrun | current version: 2009.04.18 13:47 >> > > Add this somewhere (old code, not tested with latest beta) > > \def\dodohandlestructureheadnop[#1][#2]% > {\dowithpargument{\dododohandlestructureheadnop[#1][#2]}} > > \def\dododohandlestructureheadnop[#1][#2]#3% > {\setfalse\currentstructureown > \dohandlestructurehead{#1}{\c!reference=#2,\c!title={#3}}{}} % name ref > nr title -- > > > Aditya > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Producing EPDF
Dear All, is it possible to and howdoi produce EPDF (in mkiv if it matters). By EPDF I mean EPS like PDF, pagesize == bounding box of what is really printed with minimal or no white border. Reason to do that - produce with ConTeXt one-two line short labels for another program (Asymptote). Sincerely, Michail ___ 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] Producing EPDF
Am 19.04.2009 um 19:28 schrieb Michail Vidiassov: Dear All, is it possible to and howdoi produce EPDF (in mkiv if it matters). By EPDF I mean EPS like PDF, pagesize == bounding box of what is really printed with minimal or no white border. \startTEXpage foobar \stopTEXpage Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font table
Hans Hagen Sun, 19 Apr 2009 18:15:34 +0200 Eythan Weg wrote: > Ulrike Fischer > Sun, 19 Apr 2009 15:57:05 +0200 > >Am Sun, 19 Apr 2009 09:17:06 -0400 schrieb Eythan Weg: > >> I tried this>> >>> mtxrun --verbose --reload --script fonts >>> >>> but it fails with: >>> >>> MTXrun | using script: /usr/local/share/texmf/scripts/context/lua/mtx-fonts.lua >>> >>> cannot open : No such file or directory > >did you run luatools --generate to make a file database? >>> Yes. And I find no errors in doing so. I have >> no problems using context with the standard fonts >> defined otf-type.tex. >> Note that>> > luatools font-syn.lua >> shows nothing. > I had this problem too. In my case it was an error in my > texmf.cnf. >What does kpsewhich --show-path=tex return? And where exactly is >font-syn.lua? -- >Ulrike Fischer > > The file is in the base directory of context. In > fact luatools cannot find any *.lua that I tried > in the base directory. Other files are ok. luatools --show-path tex luatools --show-path lua This is only for the lua path (with line breaks introduced) .:.:/home/weg/.texmf-config/tex/context//: /home/weg/.texmf-config/tex/generic//:/home/weg/.texmf-config/tex///: /home/weg/.texmf-var/tex/context//: /home/weg/.texmf-var/tex/generic//: /home/weg/.texmf-var/tex///: /home/weg/texmf/tex/context//:/home/weg/texmf/tex/generic//: /home/weg/texmf/tex///:/etc/texmf/tex/context//: /etc/texmf/tex/generic//: /etc/texmf/tex///:!!/var/lib/texmf/tex/context//:!!/var/lib/texmf/tex/generic//: !!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex/context//: !!/usr/local/share/texmf/tex/generic//:!!/usr/local/share/texmf/tex///: !!/usr/share/texmf/tex/context//:!!/usr/share/texmf/tex/generic//: !!/usr/share/texmf/tex///:!!/usr/share/texmf-texlive/tex/context//: !!/usr/share/texmf-texlive/tex/generic//:!!/usr/share/texmf-texlive/tex/// :/home/weg/.texmf-config/scripts/luatex//:/home/weg/.texmf-config/scripts/context// :/home/weg/.texmf-config/scripts///:/home/weg/.texmf-var/scripts/luatex//: /home/weg/.texmf-var/scripts/context//:/home/weg/.texmf-var/scripts///: /home/weg/texmf/scripts/luatex//:/home/weg/texmf/scripts/context//: /home/weg/texmf/scripts///:/etc/texmf/scripts/luatex//: /etc/texmf/scripts/context//:/etc/texmf/scripts///: !!/var/lib/texmf/scripts/luatex//:!!/var/lib/texmf/scripts/context// :!!/var/lib/texmf/scripts///:!!/usr/local/share/texmf/scripts/luatex//: !!/usr/local/share/texmf/scripts/context//: !!/usr/local/share/texmf/scripts///:!!/usr/share/texmf/scripts/luatex//: !!/usr/share/texmf/scripts/context//:!!/usr/share/texmf/scripts///: !!/usr/share/texmf-texlive/scripts/luatex//: !!/usr/share/texmf-texlive/scripts/context//:!!/usr/share/texmf-texlive/scripts/// It contains: !!/usr/local/share/texmf/scripts/context// and !!/usr/local/share/texmf/tex/context// And the lua scripts in the first directories are found but not in the second. I miss something... Eythan ___ 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] Producing EPDF
On Sun, Apr 19, 2009 at 09:28:18PM +0400, Michail Vidiassov wrote: > Dear All, > > is it possible to and howdoi produce EPDF (in mkiv if it matters). > By EPDF I mean EPS like PDF, pagesize == bounding box of what is really > printed with minimal or no white border. try: \startTEXpage \stopTEXpage -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer signature.asc Description: Digital signature ___ 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] Producing EPDF
On Sun, 19 Apr 2009, Wolfgang Schuster wrote: Am 19.04.2009 um 19:28 schrieb Michail Vidiassov: Dear All, is it possible to and howdoi produce EPDF (in mkiv if it matters). By EPDF I mean EPS like PDF, pagesize == bounding box of what is really printed with minimal or no white border. \startTEXpage foobar \stopTEXpage For a pre-generated pdf, there is also a perl(?) script pdftrimwhite, that removes extra white space from a pdf file. 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 ___
[NTG-context] Layout module
Hi Patrick, I have two points which should be changed in your module: 1. Use simplecolumns for the text and 2. limit the width for the two columns to the width of the figure because this looks better in a float and the complete graphic can be centered on the page or you change this only inside floats. \usemodule[t][layout] \starttext \placefigure{}{\ShowLayout} \stoptext Can you add the module also to the minimals? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Producing dvi
On Sun, Apr 19, 2009 at 17:03, Michail Vidiassov wrote: > Dear Mojca, > > On Sun, 19 Apr 2009, Mojca Miklavec wrote: > >> If Asymptote is not able to handle PDF files, maybe Asymptote itself >> would need extensions. (When I last tried to use Asymptote I gave up >> since I was not able to figure out how to install it and started using >> other tools.) > > This (installation problems) is part of the question why typesetting in > Asymptote with ConTeXt is desirable - no need to maintain separate LaTeX > installation, avoiding mixup with older version of ConTeXt that comes with > it, etc. I was mostly talking about dependency problems on libraries when compiling asymptote (I have no idea what libraries it depends on, but there are definitely many of them). If I want to install asymptote with packaging system (like macports), then I *have to* install some ancient version of TeX Live (which is great since I now need to have three copies of TeX Live on hard-drive and without ever using it). If I want to compile asymptote myself, I would drive me crazy before I would figure out all the library dependencies. It would be really nice if someone would be ready to spend time to include asymptote in TeX Live. That would make installation thousand times easier. > And at this moment Asymptote is (almost) the only tool that makes 3D PDF > directly (without Windows-only converter like Acrobat), is > Metapost-like and not some CAD monster or VRML fossil. No doubt about it. I'm trying to survive by using some random mixture of tools like gnuplot, povray, matlab, mathematica, raw EPS, ... Mathematica has become really impressive recently and is able to export 3D figures, but it's not free. I wanted to use asymptote, but I had to finish something until the deadline and didn't have the necessary time left to install and learn it. >> If you would like asymptote to handle ConTeXt labels you should start >> with mkii. But honestly: I don't really see when LaTeX for typesetting >> labels would not suffice. ConTeXt is extremely good at page >> formatting, but when it comes to typeset "$A$" for point labels, I >> would not mind using LaTeX (If it's only about OpenType you cannot do >> anything unless Asymptote gets extended, but even then you could use >> XeTeX.) > > Apart from maintenance problems with the zoo of tools, Asymptote aspires > for high quality of labels (and has invested considerable effort to preserve > it in 3D mode), that implies that labels are to be in the > same font as the main text and/or follow some predetermined style. True, but usually setting the right font is doable. > As a side note - PS is a programming language very well suited for just this > kind of problems. ;) I agree, but PS is easy to write, while parsing someone else's code automatically is challenging, not to say impossible. In any case, I would recommend you to contact asymptote developers. There's a bunch of LaTeX commands that are being harcoded in asymptote source, and those would have to be rewritten and made configurable. Next, you'll probably need some switch to trigger executing ConTeXt instead of LaTeX. There is some split betwen plain TeX and LaTeX, but you'll need a bit more work to include ConTeXt support as well. I don't know how exactly Asymptote works. You said that it uses dvi, but I have seen the word "xelatex" in the source, so there's no reason why you couldn't use LuaTeX. XeLaTeX doesn't generate dvi files either. Ask the developers if it is possible to use PDF. It will be much much easier if you could use PDF since you could have all the three engines supported in a single move. If you'll start with dvi, you'll have to reconfigure everything later to make it work with XeTeX and/or LuaTeX. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files
On Sun, Apr 19, 2009 at 7:09 PM, Hans Hagen wrote: > Drazen Baic wrote: > >> Would it be OK to put the files in a section on the Wiki to start >> something like >> a repository for verb-*.lua files where it would be easy to extend and >> correct >> them? > > sure, just go ahead > > - > 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 > - thanks. I have created a page under http://wiki.contextgarden.net/Verbatim_with_LuaTeX ___ 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] Layout module
Hi Wolfgang, > I have two points which should be changed in your module: > > 1. Use simplecolumns for the text and > 2. limit the width for the two columns to the width of the figure Thanks for the suggestions, I'll have a look this week. I will report back. > Can you add the module also to the minimals? I will ask Mojca for that, but only if she has time. Patrick -- ConTeXt wiki and more: 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] Layout module
On Sun, Apr 19, 2009 at 22:23, Patrick Gundlach wrote: > >> Can you add the module also to the minimals? > > I will ask Mojca for that, but only if she has time. I don't have time, but adding a module is not a problem (I overlooked the request before Patrick mentioned it). Though the module is so simple that you could almost bribe Hans to add it to the core. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Layout module
Am 19.04.2009 um 22:34 schrieb Mojca Miklavec: Can you add the module also to the minimals? I will ask Mojca for that, but only if she has time. I don't have time, but adding a module is not a problem (I overlooked the request before Patrick mentioned it). No problem, I installed it now in texmf-local by hand. Though the module is so simple that you could almost bribe Hans to add it to the core. I think this is wasted effort because ConTeXt comes with layout module and it's sometimes very hard to convince Hans to include user code. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Layout module
Am 19.04.2009 um 22:23 schrieb Patrick Gundlach: Hi Wolfgang, I have two points which should be changed in your module: 1. Use simplecolumns for the text and 2. limit the width for the two columns to the width of the figure Thanks for the suggestions, I'll have a look this week. I will report back. Don't hesitate, it's nothing I need at the moment. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Layout module
On Sun, Apr 19, 2009 at 22:23, Patrick Gundlach wrote: > > Thanks for the suggestions, I'll have a look this week. I will report > back. And since you'll definitely have lots of problems to upload a new version of your module to the garden, you can try to figure out how to set up git server on the garden at the same time (or at least we could switch to svn). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Layout module
Am 19.04.2009 um 22:47 schrieb Mojca Miklavec: On Sun, Apr 19, 2009 at 22:23, Patrick Gundlach wrote: Thanks for the suggestions, I'll have a look this week. I will report back. And since you'll definitely have lots of problems to upload a new version of your module to the garden, you can try to figure out how to set up git server on the garden at the same time (or at least we could switch to svn). or hg :) WOlfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] no executesystemcommand any more?
Ahoi, with the latest beta I can't get my LilyPond module to work. It seems that it's not possible to execute any command. I tried \executesystemcommand, \write18 and the old \installprogram. What should work? As far as I can see, shell_escape is enabled. (And it worked before.) Additionally I tried to replace the texmfstart call with mtxrun. While this works: texmfstart --ifchanged="foo-lilypond-1.tmp" --exec bin:lilypond "foo- lilypond-1.tmp" this doesn't: mtxrun --ifchanged="foo-lilypond-1.tmp" --execute lilypond "foo- lilypond-1.tmp" probably because mtxrun doesn't create a md5 file. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Producing dvi
Dear Mojca and All, On Sun, 19 Apr 2009, Mojca Miklavec wrote: (When I last tried to use Asymptote I gave up since I was not able to figure out how to install it and started using other tools.) It would be really nice if someone would be ready to spend time to include asymptote in TeX Live. That would make installation thousand times easier. There seems to be a feud between grand wizzards of Asymptote and TeXLive http://groups.google.com/group/comp.text.tex/browse_thread/thread/37143f0885a4d884?hl=en# Sincerely, Michail ___ 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] missing command and wrong lists (index, ToC) in MkIV
With the latest beta, ConTeXt doesn't know "\setupsectionblock" any more (don't know if it actually worked before, but ConTeXt didn't complain). Previously the lists stuff (ToC) didn't work, but that seems fixed now. But indexes are still a mess: Instead of page numbers I get some strange entries like "62.13.13", where the entry is on page 12: """ Inhalt 1.3.3, 2.4.4, 3.5.5, 4.6.6, 5.8.8, 6.9.9, 61.10.10, 62.12.12, 63.14.14, 64.15.15, 65.16.16, 66.17.17, 67.18.18, 68.20.20, 69.21.21, 1.23.23 Allen die willen naar Island gaan 4.7.7 Der Störtebeker 65.16.16 There were two lofty ships 62.13.13 """ This setup worked before: \def\TitelFrame#1{% \framed[width=\textwidth, height=7.5mm, frame=off, align={right,high}, after={}, before={}]% {\index{#1}\tfa #1}} \setuphead[Titel][page=yes, number=no, deeptextcommand=\TitelFrame] I.e. \Titel{Blah} should output the title "Blah" and also write it to the index. Instead I those entries seem collected in a "Inhalt" entry - I guess that's somehow caused by my combined list "inhalt": \definecombinedlist [inhalt] [Titel, TitelKlein, TitelNoPage] [level=Titel, placehead=yes, criterium=all, alternative=b, offset=none] \setupcombinedlist [inhalt] [partnumber=no] What can I do? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] missing command and wrong lists (index, ToC) in MkIV
Am 19.04.2009 um 23:32 schrieb Henning Hraban Ramm: With the latest beta, ConTeXt doesn't know "\setupsectionblock" any more (don't know if it actually worked before, but ConTeXt didn't complain). \let\setupsectionblock\setupstructureblock Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] no executesystemcommand any more?
Henning Hraban Ramm wrote: Ahoi, with the latest beta I can't get my LilyPond module to work. It seems that it's not possible to execute any command. I tried \executesystemcommand, \write18 and the old \installprogram. What should work? As far as I can see, shell_escape is enabled. (And it worked before.) Additionally I tried to replace the texmfstart call with mtxrun. While this works: texmfstart --ifchanged="foo-lilypond-1.tmp" --exec bin:lilypond "foo-lilypond-1.tmp" this doesn't: mtxrun --ifchanged="foo-lilypond-1.tmp" --execute lilypond "foo-lilypond-1.tmp" probably because mtxrun doesn't create a md5 file. in luat-cnf add the shell_escape line texconfig.kpse_init = false texconfig.shell_escape = 't' also delete the font cache so that you will get the speedier tmc files (recent luatex has more paranoid behaviour and it seems that we need to be real soon in enabling system commands) 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] no executesystemcommand any more?
Am 2009-04-20 um 00:14 schrieb Hans Hagen: Henning Hraban Ramm wrote: Ahoi, with the latest beta I can't get my LilyPond module to work. It seems that it's not possible to execute any command. I tried \executesystemcommand, \write18 and the old \installprogram. What should work? in luat-cnf add the shell_escape line Which file do you mean? Where should it be? texconfig.kpse_init = false texconfig.shell_escape = 't' also delete the font cache so that you will get the speedier tmc files (recent luatex has more paranoid behaviour and ok, deleted all caches it seems that we need to be real soon in enabling system commands) I don't understand? As far as I can see, shell_escape is enabled. (And it worked before.) Additionally I tried to replace the texmfstart call with mtxrun. While this works: texmfstart --ifchanged="foo-lilypond-1.tmp" --exec bin:lilypond "foo-lilypond-1.tmp" this doesn't: mtxrun --ifchanged="foo-lilypond-1.tmp" --execute lilypond "foo- lilypond-1.tmp" probably because mtxrun doesn't create a md5 file. What's the matter mit mtxrun's md5 generation? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] no executesystemcommand any more?
Henning Hraban Ramm wrote: Am 2009-04-20 um 00:14 schrieb Hans Hagen: Henning Hraban Ramm wrote: Ahoi, with the latest beta I can't get my LilyPond module to work. It seems that it's not possible to execute any command. I tried \executesystemcommand, \write18 and the old \installprogram. What should work? in luat-cnf add the shell_escape line Which file do you mean? Where should it be? luat-cnf.lua What's the matter mit mtxrun's md5 generation? dunno, anything wrong then? - 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] no executesystemcommand any more?
Am 20.04.2009 um 00:31 schrieb Henning Hraban Ramm: Am 2009-04-20 um 00:14 schrieb Hans Hagen: in luat-cnf add the shell_escape line Which file do you mean? Where should it be? /Users/wolf/context/tex/texmf-context/tex/context/base/luat-cnf.lua Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] missing command and wrong lists (index, ToC) in MkIV
Am 2009-04-19 um 23:51 schrieb Wolfgang Schuster: With the latest beta, ConTeXt doesn't know "\setupsectionblock" any more (don't know if it actually worked before, but ConTeXt didn't complain). \let\setupsectionblock\setupstructureblock Thank you, I simply replaced my few calls, and it works again (at least it doesn't complain). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] no executesystemcommand any more?
Am 2009-04-20 um 00:36 schrieb Hans Hagen: in luat-cnf add the shell_escape line Which file do you mean? Where should it be? luat-cnf.lua Sorry, I searched after luat-conf, of course grep couldn't find it... But the two lines were already there. What's the matter mit mtxrun's md5 generation? dunno, anything wrong then? "texmfstart --ifchanged=foo.tmp" wrote a .md5 file for foo.tmp, "mtxrun --ifchanged=foo.tmp" doesn't - maybe it saves them anywhere else? Since \executesystemcommand doesn't do anything, I can't check if it works without that file. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] missing command and wrong lists (index, ToC) in MkIV
Henning Hraban Ramm wrote: With the latest beta, ConTeXt doesn't know "\setupsectionblock" any more (don't know if it actually worked before, but ConTeXt didn't complain). Previously the lists stuff (ToC) didn't work, but that seems fixed now. But indexes are still a mess: Instead of page numbers I get some strange entries like "62.13.13", where the entry is on page 12: """ Inhalt 1.3.3, 2.4.4, 3.5.5, 4.6.6, 5.8.8, 6.9.9, 61.10.10, 62.12.12, 63.14.14, 64.15.15, 65.16.16, 66.17.17, 67.18.18, 68.20.20, 69.21.21, 1.23.23 Allen die willen naar Island gaan 4.7.7 Der Störtebeker 65.16.16 There were two lofty ships 62.13.13 """ What can I do? make a small test file where the funny index shows up; 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 ___