Re: [NTG-context] Unable to generate fonts
On Apr 20, 2009, at 9:58 AM, Hans Hagen wrote: what version of mtxrun ? should be 1.20+ MTXrun | Version 1.20 (after --selfupdate) Thomas ___ 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] Bib module in mkiv
On Apr 20, 2009, at 12:55 PM, Taco Hoekwater wrote: Hans replied to Thomas Schmitz with: as i'm clueless about what the code does, can you add this to t- bib.mkiv \def\preparebibreflist#1% {\let\bibreflist\empty} and see if it solves the problem? Thomas has not reported back yet, so can you try that please? Best wishes, Taco Oh, I'm very sorry, I was under the impression that this had been superseded by newer developments... So: with this \def, the success is striking: no more error messages - and no bibliography either :-) All best Thomas ___ 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] Unable to generate fonts
On Apr 20, 2009, at 3:03 PM, Drazen Baic wrote: I had the same problem with LuaTeX, Version snapshot-0.39.0-2009041623, ConTeXt ver: 2009.04.18 13:47 MKIV and mtxrun Version 1.20 after a new installation. After copying the files name.tma and names.tmc from my old installation directory to tex/texmf-cache/luatex-cache/context//fonts/data/ it worked again. Regards, Drazen Yes, you're right; if I copy these two files over, I don't get these errors, and my fonts work again. Which probably means that the latest beta fails to generate the font database... Thanks Thomas ___ 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] Bib module in mkiv
On Apr 17, 2009, at 9:55 AM, Taco Hoekwater wrote: Hi, Hans sent me a patch for the bib module so that it now should work with the latest mkiv once again, but the code needs testing before being included in the context distribution, so please do so. You can get the new version of the module from http://modules.contextgarden.net/bib Note: you need the latest context beta, because the bib module required a small extension to the core. Best wishes, Taco Hi Taco, just to clarify things: on the download site in the garden, you write: This release has support for the new mkiv structure code, but it needs a very new beta (2009.04.16 23:52) The latest beta I could find was 2009.04.16 22:27, and with this, I still get the error ! Undefined control sequence. argument ... [\bibrefprefix ][\sectionseparator ] \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \preparebibreflist ...refix ][\sectionseparator ]} \storeitem \expandrefs ...ibrefprefix \preparebibreflist {#1} \global \bibreffoundfalse ... \next2 #1,-\expandrefs {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.182 ...lications[criterium=cite,option=continue] Should we wait for a still newer beta, or is this a typo and I need to dig deeper? Thomas ___ 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] transparent colors in latest beta
Hi Hans, the bad news is that transparent colors don't work at all in the latest beta with mkiv (they worked on and off with the beta before that). The good news is that this makes it easier to build a minimal example :-) Here comes: \setupcolors[state=start] \starttext \startuseMPgraphic{test} pair a, b, c, d ; a = (0,0) ; b = (0,5cm) ; c = (5cm,5cm) ; d = (5cm,0) ; path p ; p = a -- b -- c -- d -- cycle ; draw a -- c withcolor black ; fill p withcolor transparent (1,0.25,red) ; \stopuseMPgraphic \useMPgraphic{test} \stoptext All best Thomas ___ 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] context mkiv nomenclature problem (bug)
On Apr 15, 2009, at 11:18 AM, Hans Hagen wrote: Thomas A. Schmitz wrote: Yes, I get a similar error too; the latest beta doesn't like t-bib. well, you were warned ... as no one came up with a test i decided that it was harmless to merge xp -) Hans Let's not fight and agree on blaming Taco ;-) Thomas ___ 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] transparent colors in latest beta
On Apr 15, 2009, at 11:46 AM, Hans Hagen wrote: has to do with a confused page state (side effect of new numbering code) you can try the beta (maybe other bugs were introduced now) Yes, looks like a file was forgotten: I can't find file `trac-lmx.tex'. to be read again \relax l.77 \loadmkivfile{trac-lmx.tex} All best Thomas ___ 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] context mkiv nomenclature problem (bug)
On Apr 14, 2009, at 2:23 PM, Thomas Prochaska wrote: ok, i deleted all files except my .tex .bib files. now this error occurs. structure : section @ level 3 : (0.1.1) .. - Biometrische Systeme ! Undefined control sequence. \preparebibrefprefix ...lltoclevels \alltoclevels \let \savedcurrentlevel \c... \expandrefs #1-\bgroup \preparebibrefprefix \preparebibreflist {#1}\global ... \next1 #1,-\expandrefs {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \bibnumref ...y \processcommalist [#1]\expandrefs \sortcommacommand [\theref... \docite ...alue {bib\@@currentalternative ref}[#2] \else \processcommalist [#... l.46 ...System\cite[extras={, vgl. S. 3-11}][hbio] setzt sich generell ? ups, sorry, the last posts and this error occurs on my real document and not on the simple testcase provided in the first post. the simple nomenclature test now works, thanks!! but this new error remains on my master thesis. thomas Yes, I get a similar error too; the latest beta doesn't like t-bib. Thomas ___ 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] transparent colors in latest beta
On Apr 15, 2009, at 12:15 PM, Hans Hagen wrote: ah, indeed some reshuffing of code ... new beta in 10 min Great, transparency now works in the 12:17 beta, thanks Hans! All best Thomas ___ 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] hyphenation in latest
On Apr 9, 2009, at 3:46 PM, Hans Hagen wrote: in lang-grk ... \installlanguage [\s!agr] [\s!default=\s!gr, \s!patterns=\s!agr, \s!mapping=\s!agr, \s!encoding=\s!agr] there are no gr patterns so you need to specify another set Thanks Hans, it works again in the latest beta! All best Thomas ___ 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
On Apr 10, 2009, at 1:05 PM, Hans Hagen wrote: Hi, I uploaded a new beta, one that needs luatex beta 0.38, which has just been released. The most important things: - some fixes in the new structure code - bookmarks are now supported in the new structure - otf math kerning is supported (neat) - some cleanup of lua code - the usual bug fixes as said ... you need luatex 0.38 there will be a current when luatex 0.40 is available Hans Hi Hans, minimal example: \setuphead [section] [page=yes] \setuppagenumbering[state=start,way=bysection] \setupfootertexts[{\getmarking[sectionnumber]} – \pagenumber] \starttext \section{First} one \page two \section{Second} one \page two \stoptext Page numbers are not reset at section break. I also get some weird and inconsistent results with shaded colors in metapost, but can't yet narrow it down to a minimal example. All best Thomas ___ 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
On Apr 13, 2009, at 1:09 PM, Hans Hagen wrote: originally we had only one pagenumber but in the end we got realpage, userpage and subpage; as a result \setuppagenumbering and \setuppagenumber got somewhat fuzzy in mkiv we have a more clear split: \setuprealpagenumber \setupuserpagenumber \setupsubpagenumber with \setuppagenumber being equivalent to \setupuserpagenumber so, these are the commands to control the numbers; \setuppagenumbering remains for setting the other properties (alternative and so) this is one of the few areas where mkiv is not going to be downward compatible with mkii anyhow, there still was a bug ... renumbering started at 0 so i fixed that (you can try the beta on the ftp) OK, I see, it (almost) works with \setupuserpagenumber. The ftp beta complains about ! LuaTeX error ...ntal/tex/texmf-context/tex/context/base/lxml-ini.lua: 342: attempt to call field 'loadtexfile' (a nil value) stack traceback: ...ntal/tex/texmf-context/tex/context/base/lxml-ini.lua:342: in function 'load' ...ntal/tex/texmf-context/tex/context/base/lxml-ini.lua:353: in function 'load' main ctx instance:1: in main chunk. \xmlload #1#2-\ctxlua {lxml.load(#1,#2)} maybe it's missing some script file. I'll wait for your next beta. All best Thomas ___ 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] hyphenation in latest
On Apr 9, 2009, at 12:00 AM, Hans Hagen wrote: maybe somethign with the greek patterns then? \starttext \definedfont[cambria] \language[agr] % try different ones \the\normallanguage \input tufte \stoptext I have looked at the Greek patterns, and there's nothing wrong with them; I also tried with older patterns from 2007 which I know worked a while ago - nothing, no hyphenation at all. Language like fr and de work, but I would need another example with a non-Latin script. Can anybody test with Russian or Ukrainian? Thomas ___ 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] hyphenation in latest
On Apr 9, 2009, at 8:35 AM, Vyatcheslav Yatskovsky wrote: I can. Please, explain what have to be tested in Russian and Ukrainian, and what result are expected? Vyatcheslav Great. Just run a simple test file like this \usetypescriptfile[type-gentium] % or any other typescript that has Cyrillic \usetypescript[gentium] \setupbodyfont[gentium,12pt] \starttext {\language[agr] \the\normallanguage φιλοσοφία \hyphenatedword{φιλοσοφία}} {\language[XXX] \the\normallanguage \hyphenatedword{YYY}} \stoptext where XXX is the language code for Russian (ru, I assume?) or Ukrainian (uk?), and YYY is a Russian/Ukrainian word long enough to allow hyphenation. The output should show you the word with the proper hyphenation (whereas here, there is no hyphenation in the Greek word. Thanks! Thomas ___ 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] hyphenation in latest
On Apr 9, 2009, at 12:18 PM, Thomas A. Schmitz wrote: On Apr 9, 2009, at 12:11 PM, Hans Hagen wrote: weird, as the catcodes look ok Hmm, I'll do some more tests later; I'll be offline until Sunday night. But it doesn't work in mkii either, so the bug probably is with the pattern file. OK, just one more detail before I leave: I get proper hyphenation with luatex version 0.35.0 and ConTeXt version 2009.02.24 (had this older version still on my linux box). lang-agr.pat in this version and the most recent beta is identical. So it's not the pattern file itself which is at fault; in between, something must have changed in the way the patterns are loaded and used, either in luatex itself or in ConTeXt. Thomas ___ 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] hyphenation in latest
On Apr 9, 2009, at 12:11 PM, Hans Hagen wrote: weird, as the catcodes look ok Hmm, I'll do some more tests later; I'll be offline until Sunday night. But it doesn't work in mkii either, so the bug probably is with the pattern file. Thomas ___ 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] hyphenation in latest
Hi all, Hans, I get no hyphenation for ancient Greek with the latest beta (and, as I have seen, a couple of betas before that). Test file (I hope this doesn't get butchered in the mail): \usetypescriptfile[type-gentium] \usetypescript[gentium] \setupbodyfont[gentium,12pt] \starttext \language[agr] φιλοσοφία \hyphenatedword{φιλοσοφία} \stoptext Interestingly, the log file says: mkiv lua stats : loaded patterns - agr:gr:pat:exc:3 us:us:pat:exc:2 but there is no hyphenation. Any pointers? All best Thomas ___ 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
On Apr 6, 2009, at 3:11 PM, Mojca Miklavec wrote: This has nothing to do with Hans' beta. See http://thread.gmane.org/gmane.comp.tex.context/48892 but I'm clueless. The binaries have been compiled on Debian Etch. Does pdfTeX work on your machine? Mojca Hi Mojca, I usually run a luatex binary I have compiled myself, but when I simply tried to run the script to update the minimals, I got the same error as Luigi, on Debian lenny. Etch is really dated now, any chance to update? I assume the libstdc++ version on most Linux distros will be more recent: Debian is never on the cutting edge, and using an ancient version of Debian is unlikely to make things better... All best Thomas ___ 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] latest beta, xp interface
Hi all, is this a known problem with interface=xp? If so, sorry for the noise... \starttext This is \pagenumber\ of \lastpage \page This is \pagenumber\ of \lastpage \stoptext All best Thomas ___ 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] Perfect Mac OS X Installation?
On Apr 4, 2009, at 11:35 AM, Markus Hubig wrote: Hi @all, i've done a fresh install of ConTeXt Minimals on my Mac OS X box. Now I like to put my setup steps into a small script so my brother can use it. It wold be nice if someone can give me some comments ... maybe I missed something, maybe I did something stupid! - Markus Your script is clever, but in my experience, you can simplify the process. I have a TeXLive install and the ConTeXt minimals on my OS X box. In order to use them, I have two configuration files. Here's the one for the minimals (which is named .minicontext): PATH=/Users/tas/context/tex/texmf-osx-intel/bin:$PATH export PATH export TEXMFCACHE=/Users/tas/context/tex/texmf-cache export TEXMFCNF=/Users/tas/context/tex/texmf/web2c export TEXMF={/Users/tas/texmf,/Users/tas/context/tex/texmf-project,/ Users/tas/context/tex/texmf-fonts,/Users/tas/context/tex/texmf-local,/ Users/tas/context/tex/texmf-context,/Users/tas/context/tex/texmf- extra,/Users/tas/context/tex/texmf} export LUAINPUTS={/Users/tas/context/tex/texmf-context/scripts/ context/lua,/Users/tas/context/tex/texmf-context/tex/context/base,/ Users/tas/texmf/scripts/context/lua} I simply run source ~/.minicontext, and my system is set up. The syntax is for zsh; if you're running bash or (heaven forbid!) tcsh, you may have to adapt it slightly; and of course, adapt the path variables to your own needs. Best Thomas ___ 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] Strange extra page with xetex ...
On Apr 3, 2009, at 10:05 AM, Markus Hubig wrote: Hmm, don't know what's the latest 'zip'. I'm using Ubuntu 8.10 and installed and updated ConTeXt Minimals using the first-setup.sh script. The included XeTeX says: 'This is XeTeX, Version 3.1415926-2.2-0.999.7 (Web2C 7.5.6)' This is irrelevant. Hans wanted to know if you're using the latest ConTeXt version. The answer is in your log file: ConTeXt ver: 2009.03.24 17:07 MKII fmt: 2009.4.3 int: english/english so this isn't the latest version The same error had been reported here: http://archive.contextgarden.net/message/20090330.110905.eaa721c3.en.html and has been fixed. Please update your minimals to the latest version. Thomas ___ 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] New module simpleslides
Dear list members, We're happy to announce the initial release of the simpleslides module. It has taken us somewhat longer than we anticipated, but now it's there! simpleslides is a module that facilitates the creation of presentations in ConTeXt. It provides a few macros to position titles, text, and images on slides, some typescripts to make use of LatinModern and the TeXGyre fonts, and a few pre-defined styles that should make your presentations visually appealing. We guarantee that this release is absolutely bug-free; whoever finds a bug has the inalienable right to buy us a beer at the next ConTeXt meeting! Seriously: we are aware that some things are not working as expected. Our biggest and most embarrassing problem for the time being is that the module refuses to work with XeTeX. Neither of us uses XeTeX on a regular basis, and we're not familiar with its innards, so we're at a loss here. If you can offer help, you will be most welcome! We would of course welcome feedback, bug reports, feature suggestions, etc., so download the module at http://modules.contextgarden.net/module/detail?name=simpleslides and give it a whirl! Aditya and Thomas ___ 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 module simpleslides
On Mar 31, 2009, at 9:57 PM, Wolfgang Schuster wrote: Can you remove the date from the filename. No, I'm afraid it doesn't let me change this any more. This looks realy strange - if I create the zip with textools, I get a filename t- XXXt-2009.03.31.zip, and when I upload this to the garden, it will append the date and the extension again! Sorry for this Thomas ___ 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] latext beta + xetex
Hi all, there's a bug somewhere in the latest beta when using it with XeTeX (which I normally don't use, but I have a stubborn pdf file which luatex refuses to embed...). Simple testfile \starttext Hello world \stoptext produces a spurious sss in the output. All best Thomas ___ 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] latext beta + xetex
Hi Willi, On Mar 30, 2009, at 11:44 AM, Willi Egger wrote: Is your file also containing Metapost/Metafun code? Nope, and it turned out the pdf file does embed, I had a typo in one of the module files... But the bug in XeTeX is still real! All best Thomas ___ 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] colored labels in mp
On Mar 27, 2009, at 1:58 PM, Lutz Haseloff wrote: 2009/3/27 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 27.03.2009 um 13:37 schrieb Eythan Weg: Hi, the following does not seem to use color. Am I missing something? Never used this feature before... I use mkiv with luatex 0.36. \startMPcode draw thelabel(btex RED etex, (0,0)) withcolor blue; label(\textext{\red RED},origin) ; gives: Undefined control sequence. argument label(\textext {\red RED},origin) ; \processMPgraphic ...zations ;\theMPrandomseed ;#1 ;\!!es , \...@ea \...@ea \...@ea \!... l.7 \stopMPcode I think what Wolfgang meant was label(textext(\red RED), origin) Thomas ___ 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] Problem creating a typescript for Adobe Avenir
Hi Markus, you're on the right track; just two or three small corrections, and you should be in business: On Mar 25, 2009, at 8:21 PM, Markus Hubig wrote: My map file looks like this (texnansi-adobe-avenir.map): texnansi-AVENI17 Avenir-Heavy 4 AVENI17.ttf texnansi.enc texnansi-AVENI18 Avenir-HeavyOblique 4 AVENI18.ttf texnansi.enc texnansi-AVENI23 Avenir-Oblique 4AVENI23.ttf texnansi.enc texnansi-AVENI24 Avenir-Roman 4 AVENI24.ttf texnansi.enc I'm not sure if you can have a space after the \starttypescript [map] [avenir] [textansi] \loadmapfile [texnansi-adobe-avenir.map] \stoptypescript \starttypescript [sans] [avenir] [texnansi] \definefontsynonym [Avenir-Heavy] [texnansi-AVENI17] [encoding=texnansi] \definefontsynonym [Avenir-HeavyOblique] [texnansi-AVENI18] [encoding=texnansi] \definefontsynonym [Avenir-Oblique] [texnansi-AVENI23] [encoding=texnansi] \definefontsynonym [Avenir-Roman][texnansi-AVENI24] [encoding=texnansi] \stoptypescript \starttypescript [sans] [avenir] [name] \definefontsynonym [Sans] [Avenir-Roman] \definefontsynonym [SansItalic][Avenir-Oblique] \definefontsynonym [SansBold][Avenir-Heavy] \definefontsynonym [SansBoldItalic] [Avenir-HeavyOblique] \stoptypescript \starttypescript [Avenir] \definetypeface [Avenir] [rm] [sans] [avenir] [default] \stoptypescript Two things here: you're defining a sans font, so change [rm] into [ss]. And for mkii (old-fashioned pdftex), I think you'll need to add the encoding to the typescript: \starttypescript [Avenir] [texnansi] \definetypeface [Avenir] [ss] [sans] [avenir] [default] [encoding=texnansi] \stoptypescript When I try to use my typescript in my environment file like this: \usetypescriptfile[type-adobe-avenir] \usetypescript[Avenir] \setupbodyfont[Avenir,10pt] Yes, you have defined a sans font, but you're not setting sans as your bodyfont. ConTeXt defaults to serif (i.e. rm), and since your typescript doesn't define a rm font, it defaults to latin modern. So simply write: \setupbodyfont[Avenir,ss,10pt] HTH Thomas ___ 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] Updating minimals
Hi Willi, On Mar 26, 2009, at 9:23 AM, Willi Egger wrote: Hi, While running the first-setup.sh script I get the following error: receiving file list ... done sent 37 bytes received 132 bytes 112.67 bytes/sec total size is 5749572 speedup is 34021.14 dyld: Symbol not found: _close$UNIX2003 Referenced from: /Applications/lua36/bin/texlua Expected in: /usr/lib/libSystem.B.dylib ./first-setup.sh: line 69: 394 Trace/BPT trap mtxrun -- verbose --script ./bin/mtx-update.lua --update --make --force -- engine=all --context=beta --texroot=$PWD/tex $@ I am working on a Mac OSX 10.4 and Intel hardware See this thread: http://archive.contextgarden.net/message/20090324.103928.f8ed7a7f.en.html So now we know it's a problem with 10.4, regardless of the architecture. We need someone on 10.4 to compile and commit the binaries for the minimals. So Willi, Hraban, you should try and look at this page on the wiki: http://wiki.contextgarden.net/ConTeXt_Minimals/Implementation You'll need svn access in order to commit the binaries, but I'm sure Patrick will be happy to grant that (if you hand him a sufficient bribe...). Most of us are running 10.5, so we can't reproduce the problem. Thomas ___ 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] Stable broken, beta works
On Mar 25, 2009, at 9:43 AM, Henning Hraban Ramm wrote: Sorry, I tested only on my Intel Mac at home this morning. texlua on OSX-PPC is still broken. It works with my self-compiled LuaTeX 0.36.0 Should I send my luatex/texlua binary to anyone? Greetlings, Hraban Hmm, it's broken on your computer, but it's working (with one exception) on mine. You're still using 10.4, right? Maybe we should use binaries compiled on 10.4, if they are upwards compatible with 10.5. Mojca, Arthur? Thomas ___ 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] Stable broken, beta works
On Mar 25, 2009, at 10:03 AM, Henning Hraban Ramm wrote: Sorry again, I should really test before I post :-( Running mtx-update (--context=beta) I get: ./bin/mtx-update.lua:432: attempt to index global 'statistics' (a nil value) Have you tried mtxrun --selfupdate ? I know I got this error about a week or so ago, and I believe that solved it here. same on line 509. commented those lines, update seems to work (with my binary). But when I try to make formats I get: run | luatools --generate dyld: Symbol not found: _close$UNIX2003 Referenced from: /usr/local/ConTeXt/tex/texmf-osx-ppc/bin/texlua Expected in: /usr/lib/libSystem.B.dylib Hmm, this may be a difference between 10.4 and 10.5. Or... do you, by any chance have a fink or macports install? Thomas ___ 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] texlua fails on OSX-PPC
On Mar 24, 2009, at 11:54 AM, Arthur Reutenauer wrote: Sorry, I updated the binaries, but compiled on 10.5 Intel; that's probably the problem. Can anyone compile OS X PPC binaries natively? Thomas? Arthur Yes, though - I compiled luatex from trunk yesterday and am experiencing problems myself. I'm trying to find a minimal example, but have failed so far. But I'll try and update the minimals. Thomas ___ 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] texlua fails on OSX-PPC
On Mar 24, 2009, at 11:54 AM, Arthur Reutenauer wrote: Sorry, I updated the binaries, but compiled on 10.5 Intel; that's probably the problem. Can anyone compile OS X PPC binaries natively? Thomas? Arthur Hi, I was just updating the binaries when the server at contextgarden went belly-up; my computer couldn't finish uploading, so I guess I'll have to redo everything, and now the garden is down )-:. Thomas ___ 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] Itemize symbol
On Mar 24, 2009, at 4:54 PM, Vyatcheslav Yatskovsky wrote: Hello, How can I get a symbol used in itemize, mode 2 (bold dash)? Best, Vaytcheslav You want to read chapter 10.6 of the ConTeXt manual; your question is answered on the second page of that chapter. Thomas ___ 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] texlua fails on OSX-PPC
On Mar 24, 2009, at 2:07 PM, Thomas A. Schmitz wrote: On Mar 24, 2009, at 11:54 AM, Arthur Reutenauer wrote: Sorry, I updated the binaries, but compiled on 10.5 Intel; that's probably the problem. Can anyone compile OS X PPC binaries natively? Thomas? Arthur Hi, I was just updating the binaries when the server at contextgarden went belly-up; my computer couldn't finish uploading, so I guess I'll have to redo everything, and now the garden is down )-:. Thomas If I interpret the messages from the build script correctly, my computer managed to upload all binaries before the server died this afternoon: pdftex SVN #534 is at the latest version already xetex SVN #820 is at the latest version already luatex beta-0.36.0 is at the latest version already metapost 1.102 is at the latest version already Arthur, will these new binaries be propagated automatically to the minimals, or is manual intervention required? Hraban, can you test these new binaries? Thomas ___ 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] texlua fails on OSX-PPC
On Mar 24, 2009, at 10:43 PM, Mojca Miklavec wrote: This means that your version of LuaTeX is not any newer than the one already present in the binaries, so nothing gets compiled at all. You need to compile manually (stepping into the folder, running build.sh), copy the resulting binary to the repository and commit manually. Hmm, but when I ran the script this morning, it compiled a lot of binaries and tried to commit the new files; it got stuck somewhere in the svn commit. If it says now that my version isn't newer than the binaries in the repository, doesn't that mean that everything is up to date? Sorry for being obtuse, but these scripts are just too complex for me... Thomas ___ 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] latest beta (MKII/Greek module)
On Mar 22, 2009, at 3:38 PM, Hans Hagen wrote: i need a small test file ... It doesn't get smaller than that: :-) \starttext \language[ancientgreek] Hello World! \stoptext Thomas ___ 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] latest beta (MKII/Greek module)
On Mar 22, 2009, at 4:56 PM, Hans Hagen wrote: ok, new beta for testing Works here! Thanks Thomas ___ 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
On Mar 17, 2009, at 11:49 AM, Hans Hagen wrote: Hi, In the process of a major cleanup and code split I uploaded a beta. Some important changes are: - initialization code is ready for upcoming luatex - language files have been cleaned up - core-table stuff is renamed to tabl-table stuff - several changes in file names and splits of files - for those using helpers, in mkiv now syst-aux is the place to look - some non used files removed - some speedup of helper macros (only in mkiv) On Taco and my machine test docs come out right but there might be problems left (no tricky new things so solvable fast). Hans Hi Hans, trying to make the xp format, I get this error: (/Users/tas/context/tex/texmf-context/tex/context/base/mult-ini.mkiv loading : Context Multilingual Macros / Initialization ! Undefined control sequence. l.824 {\the\normalyear .\the\normalmonth.\the\normalday} with the beta from 2009.03.18 21:58 Thomas ___ 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] Module taspresent
On Mar 19, 2009, at 4:50 AM, Curious Learn wrote: \usemodule[taspresent][style=bluegray] BlueGray which is the way it is explained in the manual \starttext A presentation \stoptext Does anyone have an idea why this is happening? Thanks very much. Thomas ___ 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
On Mar 19, 2009, at 10:08 AM, Hans Hagen wrote: hm, works ok here i uploaded a new beta ... once this one is installed, successive upgrades (unzipping tmf file) should trigger auto-format generation at a next run ... only tested here Hans Yup, works here too now; thanks! Oh, and it's a very nice spring day here in Germany, sun is shining, birds are singing - wouldn't it be the perfect day to implement --pdfarrange and --pdfcombine switches into the context script :-) Thomas ___ 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] Module taspresent
On Mar 19, 2009, at 9:01 AM, Lutz Haseloff wrote: Hi Thomas, Hi all, Curious is right, no colors here too, with [style=BlueGray], even with the demo.tex from the module archive. (using last beta 2009.03.18 21:58 MKIV , LuaTeX, Version snapshot-0.36.0-2009031820) Greetings Lutz Yes you're right, and I'm very sorry for spreading misinformation: I have now looked at it, and for a reason I cannot see, the bluegray style is loaded, but doesn't work. AFAICS, the other styles work. Since the taspresent module is being phased out, I can only say: use the styles that work, and switch to the new simpleslides module as soon as it comes out (or even now if you can live with it). Thomas ___ 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] inclusion of pdf figures
Excuse me if this has been reported before, but I couldn't find anything in the archive: has inclusion of pdf figures been broken in mkiv for longer or just in the most recent release? This works in mkii and fails in mkiv: \starttext \externalfigure[~/context/tex/texmf-context/tex/context/sample/cow] [type=pdf,width=5cm] \stoptext Thomas ___ 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] inclusion of pdf figures
On Mar 14, 2009, at 10:32 PM, Hans Hagen wrote: it's luatex itself, hartmut is working on it right now so expect a new version after the weekend Hans OK, I see, thanks! Maybe I'll drive over to Schwetzingen and yell at Hartmut to motivate him... Thomas ___ 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
On Mar 12, 2009, at 2:20 AM, Jesse Alama wrote: Why not local command = string.format(luatex --fmt=%s --lua=%s %s, string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) Good catch! Looks like this fixed it for me! ok, fixed I just re-ran first-setup.sh to update the minimals, but the problem persists: $ context slides.tex MtxRun | loading configuration for /Users/alama/context/tex/texmf/ web2c from /Users/alama/context/tex/texmf-cache/luatex-cache/context/ 61795f339930e48e135cbda2bb1b1ded/trees/ f0b428a6867a004b015f446bf6f0bb6e /Users/alama/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) Jesse I don't know what's going wrong, but I also get the problem again. It worked the other day, but today, even with the fixed mtx-metatex.lua, I get the error again. Hans? Thomas ___ 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
On Mar 13, 2009, at 12:00 PM, Thomas A. Schmitz wrote: I don't know what's going wrong, but I also get the problem again. It worked the other day, but today, even with the fixed mtx- metatex.lua, I get the error again. Hans? Thomas Hi Hans, in latest: context/tex/texmf-context/tex/context/base/syst-aux.tex ! Undefined control sequence. l.490 \suppressifcsnameerror = 1 Thomas ___ 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
On Mar 13, 2009, at 3:37 PM, Hans Hagen wrote: ah .. new luatex needed, i'll make a tem pworkaround Hmm, OK, I took today's trunk and now can generate the formats, but still no joy: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) Thomas ___ 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
On Mar 13, 2009, at 3:58 PM, Hans Hagen wrote: hard to trace that one ... can you oatch that function to function input.report(fmt,...) -- for scripts too print(fmt,...) if input_locate or input.verbose then logs.report(input.banner or report,format(fmt,...)) end end and see what is printed just before the error Sure, here comes: loading %s for %s from %s configuration /Users/tas/context/tex/texmf/ web2c /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 locating list of %s /Users/tas/texmf locating list of %s /Users/tas/context/tex/texmf-project locating list of %s /Users/tas/context/tex/texmf-fonts locating list of %s /Users/tas/context/tex/texmf-local locating list of %s /Users/tas/context/tex/texmf-context locating list of %s /Users/tas/context/tex/texmf-extra locating list of %s /Users/tas/context/tex/texmf loading %s for %s from %s files /Users/tas/texmf /Users/tas/context/ tex/texmf-cache/luatex-cache/context/408a90c432ceda2c1e4a80ad5d0e5350/ trees/6c6d363ba334cc9643ab529fdff3dfbb loading %s for %s from %s files /Users/tas/context/tex/texmf-context / Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/c7d6f21309753a25b2c2a7daaf686e02 loading %s for %s from %s files /Users/tas/context/tex/texmf /Users/ tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/a96a2abbf6ced6f6e8f835b0c3751892 loading %s for %s from %s configuration /Users/tas/context/tex/texmf/ web2c /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 error, no format found with name: %snil /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8439: bad argument #2 to 'format' (string expected, got nil) ___ 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
On Mar 13, 2009, at 3:56 PM, Hans Hagen wrote: since you're in 'latest mode' ... here is an experimental feature that you can test in the mkiv version of your modules I'm always in latest mode, I'm a classicist :-) But just so I can plan ahead (as soon as I have a working mkiv again): in 4 weeks, I will have to write and print my lecture notes every week again; they're written in xml. Compiling with texexec --lua --env=foo bar.xml was broken. Compiling with context --environment=foo bar.xml works, but doesn't give me all the functionality I need, in particular arranging. What is easier, i.e. for what should I pester you more: fixing texexec or adding that functionality to context? Thomas ___ 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] betas
On Mar 13, 2009, at 6:54 PM, luigi scarso wrote: ok here too This is LuaTeX, Version snapshot-0.35.0 ConTeXt ver: 2009.03.13 17:35 MKIV fmt: 2009.3.13 int: english/ english OK here too, on OS X! (I'll check linux later) Thomas ___ 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] New beta
Hi all, the new beta has been so quietly accepted that I'm wondering if I'm the only one who can't use it. With every file, I get this error: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 ...ex/texmf-context/scripts/context/lua/mtx-metatex.lua:64: invalid option '%%' to 'format' All the others are having success using this beta? Thomas ___ 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
On Mar 10, 2009, at 8:45 PM, Wolfgang Schuster wrote: No problems on my side so far, did it help to update the scripts. Wolfgang Interesting. I just checked, and I get the same error on linux and OS X. Minimals, updated to 2009.03.08 23:41. Thomas ___ 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
On Mar 10, 2009, at 11:03 PM, Hans Hagen wrote: mtxrun --selfupdate luatools --selfupdate OK, for a change, I now get a different error: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) but the format has been successfully created, AFAICS. Btw, I just compiled luatex --version This is LuaTeX, Version snapshot-0.36.0-2009031020, build 1979 Thomas ___ 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
On Mar 10, 2009, at 11:32 PM, Hans Hagen wrote: OK, for a change, I now get a different error: MtxRun | loading configuration for /Users/tas/context/tex/texmf/ web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/ 168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx- intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) but the format has been successfully created, AFAICS. Btw, I just compiled luatex --version This is LuaTeX, Version snapshot-0.36.0-2009031020, build 1979 i uploaded a new zip Still the same error. Thomas ___ 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
On Mar 11, 2009, at 12:17 AM, luigi scarso wrote: Is local command = string.format(luatex --fmt=%s --lua=% %s, string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) correct ? Why not local command = string.format(luatex --fmt=%s --lua=%s %s, string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) Good catch! Looks like this fixed it for me! Thanks Luigi. Thomas ___ 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] modife the style of taspresent
On Mar 9, 2009, at 3:36 AM, Bill Long wrote: Thanks! The grammar is right, but it still can't work. Since I wrote that module... Your description is not very descriptive. What do you mean it can't work? Any error messages, what's going wrong? Moreover: taspresent was my first attempt at providing something; Aditya and I have now been working towards a better module called simpleslides. So if you're really thinking about doing presentations in ConTeXt, better get the git repository at http://github.com/adityam/simple-slides/tree/master . The module is functional; it's lacking documentation... Thomas ___ 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] Bib module...
On Mar 7, 2009, at 10:47 PM, Willi Egger wrote: Hi Taco, thanks for your reply. Unfortunately correcting/changing the example file does not result in what I would expect. I purged all files first, then compiled the example. Hi Willi, I don't know why, but if you correct lines 22-23 \startpublication[% k=Allan80, to look like this \startpublication [k=Allan80, you get the expected result. (Is there a reason why you write your entries manually and don't use bibTeX and let that handle such stuff for you? On OS X, you can use Bibdesk, which is a very nice editor for bibTeX files; it'll make your life much easier.) All best Thomas ___ 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] overarc
On Mar 5, 2009, at 2:39 PM, Aditya Mahajan wrote: Currently, there is no such feature. Are you looking at the functionality of the arcs package of latex? If so, it will be easy to add it to ConTeXt. The main trouble is that the glyph for \overarc is missing from the fonts. Arcs.sty takes the glyphs for \frown and \smile, and scales them appropriately. An ugly solution, but it looks ok if you are just placing it over one or two letters. I had a similar wish a while ago and hacked something with a MPpositiongraphic. It is certainly not very elegant, but IMHO better than the LaTeX code you posted (scaling a glyph like that will look ugly when you want to span more than just two letters). Wolfgang Schuster supplied the neat trick with the counter. It is quite fast when run with mkiv, but I suspect would be slow with mkii (and leave quite a few .mp files behind). Maybe this can help: \newcount\arcnumber \startMPpositiongraphic{placeoverarc} StartPage ; begingroup ; initialize_box(\MPpos{\MPvar{self}}) ; numeric c ; c = ExHeight/6 ; z1 = llxy ; z2 = lrxy ; z7 = 1/2[z1,z2] ; z4 = ((x1 + 2*c), (y1 + 2*c)) ; z5 = (x7, (y7 + 4*c)) ; z6 = ((x2 - 2*c), (y2 + 2*c)) ; path syn ; syn := z4 .. z5 .. z6 ; pickup pencircle scaled (0.75*c) ; draw syn ; anchor_box(\MPanchor{\MPvar{self}}) ; endgroup ; save c ; StopPage ; \stopMPpositiongraphic% \define[1]\overarc {\advance\arcnumber\plusone% \setMPpositiongraphic{POS-\number\arcnumber}{placeoverarc}% \hpos{POS-\number\arcnumber}{#1}} Maybe that can be the starting point for some better code... Thomas ___ 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] 1/2 symbol
On Mar 4, 2009, at 10:26 AM, Vyatcheslav Yatskovsky wrote: Hello, Easy question: how to get 1/2 symbol without entering math mode (using Minion Pro font)? Best, Vyatcheslav Have you tried \onehalf or ½ (in mkiv)? Thomas ___ 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] 1/2 symbol
On Mar 4, 2009, at 10:40 AM, Wolfgang Schuster wrote: What the combination to get ½ on a mac? Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via the Character Palette. Thomas ___ 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] latest beta - Math error
On Mar 3, 2009, at 9:09 AM, Hans Hagen wrote: Yes, unfortunately it does... strange, since it works ok here; maybe deleting the font cache helps I meant, unfortunately it does work since this made finding the error much harder... Anyway, I have now found a minimal file that shows one error. I couldn't make the error appear with a buffer, only when I had xml + environment file. Here comes: ?xml version=1.0 encoding=utf-8? auth sectioncontentHello lt;/content/section /auth teststyle.tex Description: Binary data Hope this is reproducible All best Thomas___ 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] latest beta - Math error
On Mar 2, 2009, at 11:32 PM, Hans Hagen wrote: does this work at your end? \starttext $\approx$ \stoptext Yes, unfortunately it does... Thomas ___ 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] \usemodule question
On Feb 26, 2009, at 11:55 AM, Alan Stone wrote: Doesn't \usemodule issue a search in parent directories when the module is not found in the working directory ? Why should it? Look at the variable TEXINPUTS in texmf.cnf. In TL2008: TEXINPUTS.tex = .;$TEXMF/tex/{plain,generic,}// So: the current directory + the texmf-trees. Letting it climb the directory hierarchy is a potential security risk. Thomas ___ 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] Can't compile LuaTeX beta 0.35.0 (on OS X)
On Feb 24, 2009, at 8:48 PM, Andreas Harder wrote: Hello, if I try to compile the actual LuaTeX beta, the compilation ends with the following error: ld: in ../../libs/luasocket/src/socket.a, archive has no table of contents collect2: ld returned 1 exit status make: *** [luatex] Error 1 I'm on Mac OS X 10.5.6 (Intel) and checked out the source from svn:// scm.foundry.supelec.fr/svn/luatex/tags/beta-0.35.0 Du I miss something? Or is there another way to get the current binaries for OS X? Thank you in advance, Andreas It compiles normally here (10.5.6, Intel). Hasn't Mojca added the binary to the minimals? We really should cut her bonus at the end of the year :-) If it isn't in the minimals, I'll see if I can upload it to the garden. Thomas ___ 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] Can't compile LuaTeX beta 0.35.0 (on OS X)
On Feb 25, 2009, at 12:24 PM, Taco Hoekwater wrote: She surely would have done so already if we hadn't all told her to 'brake a leg' in Bohinj. :) Best wishes, Taco Oops, is Mojca ill? Anyway, I see that the linux minimals now have the 0.35 luatex. Would anything speak against updating the osx binaries as well? I could do it today, if need be (and if my access works). Thomas ___ 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] basic luatex/minimals problem
On Feb 25, 2009, at 3:19 PM, Alan Bowen wrote: Now that the debris on my computer from determining the right way to reset LM, let me restate what my luatex problems are: Note: I have moved the contents of my personal texmf folder into Applications/ConTeXtMinimals/tex/texmf-project 1. When I run first-setup.sh, the installation stops with the line (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/ patterns/lang-agr. pat ! Duplicate pattern. l.38 ῃ1 This must be a leftover from an earlier installation, probably in your personal tree. run kpsewhere lang-agr.pat and move the offending file out of the way 2. If remove texmf-project from my ConTeXtMinimals, then installation works. 3. Since this installation will cannot find ~texmf, I have to restore texmf-project in my ConTeXtMinimals/tex. I would rather adjust texmf.cnf, but it doesn't matter much. 4. When I process a file (see below), I get the error message: Two remarks on that: A. As you have seen this morning, the minimals, betas, and luatex betas are in a flux this week. If you don't have access to the most recent luatex binary, just wait for a couple of days till things have settled down. \localgreek{'alfa ka`i b~hta} B. As I had written before, this will not work with mkiv. ASCII input is mkii only. Thomas ___ 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] LM typsescript problem
On Feb 24, 2009, at 1:43 PM, Alan Bowen wrote: The minimals (both the stable and the beta versions) in contextgarden.net/minimals/setup/$platform/bin seem to be frozen at 2009.01.18 14;39. I vaguely recall that there was going to be a mismatch between the minimals on the Garden and the minimals at Pragma, but thought that had been fixed, well, sort of. In any case, my journal is being derailed by the fact that ConTeXt 2009.01.18 has a bug affecting the use of Latin Modern with Thomas’ Greek module. Alan mkdir ~/myminimal cd ~/myminimal rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --context=current [lots of output snipped] ctxtools --contextversion CtxTools | context version: 2008.11.10 21:40 It's all explained at http://wiki.contextgarden.net/ConTeXt_Minimals Thomas ___ 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] LM typsescript problem
When I add this at the beginning of the file: \definebodyfontenvironment[10.5pt] \starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript \definebodyfontenvironment[9.5pt] \starttypescript [serif] [default] [size] \definebodyfont [9.5pt] [rm] [default] \stoptypescript the file compiles normally. Thomas On Feb 24, 2009, at 2:54 PM, Alan Bowen wrote: This file will produce the problem: \enableregime[mac] \mainlanguage[en] \usetypescript[lmodern][\defaultencoding] \starttypescript[serif][default][size] \definebodyfont[9.5pt,10.5pt][rm][default] \definebodyfont[9.5pt,10.5pt][mm][default] \stoptypescript \setupbodyfont[lmodern,rm,10.5pt] \usemodule[ancientgreek] [font=GreekDioxipe,scale=2.15,altfont=GreekCanonica,altscale=0.9] \setupfootnotes [conversion =numbers,way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal] \starttext This Greek should be scaled at 2.15 its design size \localgreek{'alfa ka`i b~hta} This is more sample text.% \footnote{This is a sample footnote} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LM typsescript problem
On Feb 24, 2009, at 3:46 PM, Alan Bowen wrote: Thanks, Thomas! Its does indeed compile. But the font size for the Greek is still wrong. Alan With your test file, I get properly scaled Greek output both in text and footnotes. So what is wrong with your output? Thomas ___ 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] LM typsescript problem
On Feb 24, 2009, at 4:13 PM, Alan Bowen wrote: The Greek is not scaled at 2.15 See the attachment. Alan Here's my output: test.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LM typsescript problem
On Feb 24, 2009, at 4:42 PM, Alan Bowen wrote: Well, that is what it should be. So the problem is definitely on my box. But where? I have no idea right now about how to test this further. Alan I'm aware we have made you install lots of versions, in vain. Nevertheless, I would suggest trying the current beta version. It is broken wrt mkiv, but you are still using mkii, right? So from my earlier mail: mkdir ~/alphaminimal cd ~/alphaminimal rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --context=alpha You will get errors when the installation tries to create the luatex formats; just ignore them; mkii should be fine. At least, that's what I used here to produce the pdf. Be sure to adapt your environment variables and $PATH so you use this new version, not the older ones on your system. Thomas ___ 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] LM typsescript problem
On Feb 24, 2009, at 4:53 PM, Alan Bowen wrote: Thomas— Did you test this on a Mac? Alan Yes: sw_vers ProductName:Mac OS X ProductVersion: 10.5.6 BuildVersion: 9G55 ctxtools --contextversion CtxTools | context version: 2009.02.17 18:50 (/Users/tas/context/tex/ texmf-context/tex/context/base/context.tex) CtxTools | context version: 2009.02.17 18:50 (/Users/tas/context/tex/ texmf-context/tex/context/base/cont-new.tex) Thomas ___ 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] LM typsescript problem
On Feb 24, 2009, at 6:36 PM, Alan Bowen wrote: Thomas— I updated my original ConTeXtMinimals with --context=alpha (ConTeXt ver: 2009.02.24 16:36 MKII) and tried the test file. By the way, I got the same errors as before when the install script came to luatex, so I guess that is still broken. Anyway, no joy: the Greek is still the wrong size using \usemodule[ancientgreek]. Alan Yes, because you haven't added the lines \definebodyfontenvironment[10.5pt] \starttypescript [serif] [default] [size] \definebodyfont [10.5pt] [rm] [default] \stoptypescript \definebodyfontenvironment[9.5pt] \starttypescript [serif] [default] [size] \definebodyfont [9.5pt] [rm] [default] \stoptypescript I get the expected output here. Thomas ___ 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] Making necessary OpenType features on by default
On Feb 23, 2009, at 1:09 PM, Khaled Hosny wrote: For scaling, we can specify a size, some thing like: \setupbodyfont[arabic=foo,20pt,latin=bar,18pt] or so. I don't know Arabic, but I've done similar things for Greek, and that is not a good interface. You want a scaling factor, so users won't have to worry about scaling in footnotes, titles, etc., an absolute size is not a viable alternative. Thomas ___ 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] LM typsescript problem
This is a problem with math support in a particular beta version a few weeks ago. It has been fixed in the meantime; the latest beta works normally, but in order to install it, you will have to either wait for Taco to make a new snapshot of luatex available at supelec.fr or compile luatex from trunk. Or you can go back to the stable version of ConTeXt from 2008-10-31. Thomas On Feb 23, 2009, at 6:22 PM, Alan Bowen wrote: Please forgive my resending this. The problem is acute since it concerns a journal that I publish. As I understand it right now, the problem is that Thomas's latest Greek module and my installation of Latin Modern in MKII are not playing nicely together. (The module works well when I use other fonts). Is there a better diagnosis of the problem or even a fix for it? I would really hate to have to change the bodyfont for the journal at this point in the current volume. Alan ___ 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] basic luatex/minimals problem
On Feb 21, 2009, at 12:07 AM, Alan Bowen wrote: Aditya— luatools --expand-var TEXMF gets {/Applications/ConTeXtMinimals/tex/texmf-project,/Applications/ ConTeXtMinimals/tex/texmf-fonts,/Applications/ConTeXtMinimals/tex/ texmf-local,/Applications/ConTeXtMinimals/tex/texmf-osx-intel,/ Applications/ConTeXtMinimals/tex/texmf-context,/Applications/ ConTeXtMinimals/tex/texmf-extra,!!/Applications/ConTeXtMinimals/tex/ texmf} and kpsewhich --expand-var $TEXMF gets {/Applications/ConTeXtMinimals/tex/texmf-project,/Applications/ ConTeXtMinimals/tex/texmf-fonts,/Applications/ConTeXtMinimals/tex/ texmf-local,/Applications/ConTeXtMinimals/tex/texmf-osx-intel,/ Applications/ConTeXtMinimals/tex/texmf-context,/Applications/ ConTeXtMinimals/tex/texmf-extra,!!/Applications/ConTeXtMinimals/tex/ texmf} Alan This is a problem we discussed in Bohinj, and it's good that you remind us of its existence - we need to take a decision about this. The file which defines the texmf-paths for the minimals on Unixoid systems is ~/context/tex/setuptex. If you look into it, you'll see on l. 143 export HOMETEXMF=/nonexist Hans explained that he didn't want to have HOMETEXMF set on his machine. Unfortunately, many users will expect HOMETEXMF to work with the minimal installation. The normal place for it is ~/texmf (Alan, you should move it out of ~/Library). So what can we do? Hans, is there any workaround for you? Most users will be as baffled as Alan when the stuff they have installed in their personal trees isn't found. Personally, I have set up all my stuff in a personal .miniluatex file which I source whenever I want to run context, but I don't know how this would work with TeXShop. IMHO, the normal ~/texmf should be included out of the box. What do others think - Mojca? All best Thomas ___ 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] question for the xml-experts
On Feb 19, 2009, at 3:10 PM, luigi scarso wrote: see http://codespeak.net/lxml/tutorial.html#namespaces Luigi, thanks so much for your patient replies. I have now begun to play with python's lxml. It offers a lot, maybe too much for a beginner. One advantage for my immediate needs that I see is that it offers the possibility to use Python's regular expressions and control structures, so this may make coding easier to maintain and adapt that in the rather clumsy xslt syntax; it may be a big help for the rather messy OpenOffice xml that I want to process. I had already tried w2latex a while ago. I found it very limited and lacking documentation, so I haven't pursued this track. Again, thanks for getting me started! Thomas ___ 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] question for the xml-experts
On Feb 19, 2009, at 11:39 AM, luigi scarso wrote: FOO = etree.Element(FOO) emph = etree.Element(emph) [child.tag for child in foo.iterdescendants(tag = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0 }span' ) ] ['{urn:oasis:names:tc:opendocument:xmlns:text:1.0}span'] span = [child for child in foo.iterdescendants(tag = '{urn:oasis:names:tc:opendocument:xmlns:text:1.0 }span' ) ][0] emph.text = span.text FOO.append(emph) etree.tostring(FOO) 'FOOemphfoo/emph/FOO' Excuse me for being dense: you mean all namespaces have to be explicitly expanded? Thomas ___ 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] Cyrillic in most simple way
Vyatcheslav, excellent that you need Cyrillic, you will be our beta-tester and guinea pig! We have now included a typescript for the Gentium font in the minimals. You can just say \uestypescriptfile [type-gentium] % don't know if it is enabled by default \usetypescript [gentium] \setupbodyfont [gentium, 12pt] Please try this and give us feedback. Thomas On Feb 19, 2009, at 9:52 PM, Vyatcheslav Yatskovsky wrote: Hi all, I just downloaded and setup latest context beta on my new machine.I made a simple script file for my teaching schedule in UTF-8 encoding and with %engine=luatex prefix. But.. the default font is LMRoman12, and it has no Cyrrilic letters. I need simple document and I don't care about fonts at all. how can I get Cyrillic in most simple way? (Without writing a typescript for Times New Roman.. oh, not again) Maybe there are some Cyrillic fonts/ typescripts already shipped with context? Best, regards, Vyatcheslav ___ 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] question for the xml-experts
Luigi and Khaled, thanks a lot for your replies! Luigi: I had a look at python lxml; it looks very powerful and interesting, and I will try and see if can make use of it. Why do you translate your xml sources into tex instead of using the mkiv mechanism for processing xml, is it because of speed? Khaled: I have to see if I can tweak the OpenOffice docbook converter to keep more of the formatting; in its default state, it drops too much important stuff... Right now, I have followed Patrick's advice. I've installed saxon9 and am writing a xslt stylesheet to translate the openoffice xml into a cleaner and easier to handle format. I'm making progress... Maybe we should put something like this on the wiki and make it a collaborative effort - I can only write rules for stuff that occurs in my documents, and that is of course only a subset of what OpenOffice has, so it would be good to add rules as people find interesting features. All best Thomas On Feb 15, 2009, at 10:39 AM, luigi scarso wrote: If you know python http://wiki.services.openoffice.org/wiki/PyUNO_bridge http://opendocumentfellowship.com/projects/odfpy For xml the choice is http://codespeak.net/lxml/ A native xml db, with XQuery and python binding http://www.oracle.com/technology/products/berkeley-db/xml/index.html And this is my experience : I'm programming in TeX (with context) , lua / python (they are similar) and xslt . For every project if I can I use lxml to manage xml sources, because it includes xslt but not viceversa. The goal is to translate xml in tex in the quickest way, and let mkiv to do the hard word. I have not a good feeling with xslt, because is not so powerful as lxml, and clearly is not a competitor of TeX . If I need storage, dbxml is good, and XQuery+lxml is powerful enought . OO has also docbook exporter http://www.docbook.org/ docbook is rich and with a good collection of xsl stylesheets to translate xml to html but maybe is ...too much . -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : 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] question for the xml-experts
Hi all, this is not a question about direct technical details, but more of a conceptual problem, and I would love to have your input and ideas on this. I will be editing several edited volumes in my field (humanities, classics). From experience, I know that it's impossible to make scholars in the humanities adhere to standards. Each and every one of them will turn in a paper (most of them written in half a dozen different versions of Word) with its own idiosyncracies. At my last conference, I asked them to please use Unicode for their Greek passages, and I got blank looks and the question What the hell is Unicode? So: I want to extract the content of these papers and process it with ConTeXt. I thought the easiest route might be convert them to OpenOffice odt and then use the content.xml as a starting point. Since the formatting will be unusable anyways, it doesn't make sense to process the odt directly; instead, I want to transform the xml via xslt to a simplified format and then process that with ConTeXt. I have just discovered the tool xalan ( http://xml.apache.org/xalan-c/index.html ) which allows me to use an xslt style sheet and direct the output to a new file. I will then need to clean up these xml files and write a mkiv xml setup for them. So for those who know much more about this sort of workflow: does that make sense? Is there any better way to achieve these results, i.e., have the content of a couple of papers in Word and/or rtf format and typeset it in a consistent ConTeXt environment? Is there any tool better than xslt to convert the OpenOffice xml than xslt (anything in lua that can parse xml)? Anything better than xalan to convert xm - xml? I'm just beginning to plan this, so I'd be most grateful for any pointers. Thanks for reading this long message, all best Thomas ___ 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] question for the xml-experts
On Feb 14, 2009, at 7:25 PM, Wolfgang Schuster wrote: Hi Thomas, why don't you take a look at the OpenOffice export function, I saw it's possible to convert a document to xhtml and this could be a start for you. Wolfgang Hi Wolfgang, thanks for the suggestion! I had, in fact, tried the export functions (docbook and xhtml), but both drop too much formating: all italics etc. are silently dropped, and dynamical references are replaced with their values. So unless I can manage to hack the export xslt files, this doesn't seem possible. All best Thomas ___ 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] question for the xml-experts
On Feb 14, 2009, at 7:31 PM, Patrick Gundlach wrote: Yes, it does. At my company we clean up (and reorganize) XML data with XSLT all the time. We are happy users of saxon 9 (http://saxon.sourceforge.net/) which is an xslt 2.0 engine. Learning XSLT is not trivial (but not too hard either), but once you get an understanding of it nobody can stop you using XSLT for 'everything'. Patrick Great, I will look into saxon and xslt! Best Thomas ___ 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] interesting arrange effect with interface=xp
Hi all, I just stumbled upon an interesting, if unwanted effect with the xp interface. Minimal document: \setuppapersize[A6][A4] \setuparranging[2*4] \starttext \dorecurse{8}{\input knuth \par \page} \stoptext Please compile with texexec --lua --interface=xp --arrange and enjoy :-) Best Thomas ___ 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] interesting arrange effect with interface=xp
On Feb 9, 2009, at 11:11 AM, Wolfgang Schuster wrote: Nothing new, see: http://archive.contextgarden.net/message/20090113.193821.22c66787.en.html Wolfgang Shoot! Sorry for the noise... Thomas ___ 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] interesting arrange effect with interface=xp
On Feb 9, 2009, at 11:23 AM, Jan-Erik Hägglöf wrote: Setting /home/djsameman/context/tex as TEXROOT. djsame...@lundby:~$ cd Dokument/context/funwith_xp_iface/ djsame...@lundby:~/Dokument/context/funwith_xp_iface$ texexec --lua --interface=xp --arrange ^^ you need to add the name of your document here Thomas ___ 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] latest beta
Hi, with the latest beta of this morning and the latest luatex, a call like texexec --lua --env=mystyle myfile.xml fails, the environment file is not read (there is no error about not finding it in the log). Thomas ___ 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] latest beta
On Feb 5, 2009, at 4:25 PM, Hans Hagen wrote: ah .. in core-def.tex ... \appendtoks \directsetup{*runtime:modules}\to \everyjob 's' missing in modules OK, but now I get: ! LuaTeX error main ctx instance:1: attempt to index global 'ptbs' (a nil value) stack traceback: main ctx instance:1: in main chunk. \actualshipout ... \box \postponedcontent \box 0}} \else \message {[\ifarrang... \myshipout ... \fi {\thisisrealpage \realfolio #1} \gotonextrealpage \aftersh... \dofinaloutput ...agebody #1#2\setpagecounters }}} \fi \the \everyaftershipou... \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 \resetselectiepagina \incr... \sidefloatoutput ...e \else \finalsidefloatoutput \global \sidefloatvsize \n... argument ...\fi \else \the \defaultstreamoutput \fi ... l.330 \xmlprocess{main}{\inputfilename}{} ___ 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] latest beta
On Feb 5, 2009, at 5:19 PM, Wolfgang Schuster wrote: Do you use the last LuaTeX version? I tried a example you send me and it works without problems. This is LuaTeX, Version snapshot-0.33.1-2009020413, build unknown Wolfgang This is LuaTeX, Version snapshot-0.33.1-2009020508, build 1856 I'll try with an older version of luatex, maybe the trunk version (which I compiled today) has a problem. Thomas ___ 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] latest beta
On Feb 5, 2009, at 5:36 PM, Thomas A. Schmitz wrote: This is LuaTeX, Version snapshot-0.33.1-2009020508, build 1856 I'll try with an older version of luatex, maybe the trunk version (which I compiled today) has a problem. Thomas Nope, I get exactly the same error with luatex 0.33.0; not with all of my xml files, however. I'll have to see if I can isolate the error. Thanks for your reply, Wolfgang. Best Thomas ___ 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] latest beta
On Feb 5, 2009, at 5:59 PM, Thomas A. Schmitz wrote: Nope, I get exactly the same error with luatex 0.33.0; not with all of my xml files, however. I'll have to see if I can isolate the error. Thanks for your reply, Wolfgang. Best Thomas OK, one problem is math support. Here's a minimal file that compiles with 2009.01.18 and fails with 2009.02.04: \definebodyfontenvironment[18pt] \usetypescriptfile[type-otf] \usetypescript[palatino] \setupbodyfont[palatino,18pt] \starttext test $\approx$ \stoptext Thomas ___ 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] ConTeXt en presentations
On Feb 4, 2009, at 8:07 PM, Wolfgang Schuster wrote: Am 04.02.2009 um 18:50 schrieb Cecil Westerhof: I am still a novice with ConTeXt en TeX. I have suddenly to make a presentation. I am thinking about doing this with ConTeXt. I saw the articles in the wiki. Someone some other good pointers? o http://www.tug.org/pracjourn/2006-2/schmitz/ o http://pragma-ade.nl/articles/art-pres.pdf o http://pragma-ade.nl/show-pre.pdf Wolfgang One more hint: Aditya and I have been working on a module for presentations. The code is not 100 % finished, but it works very well (I have been using it for my own slides the entire semester, you can see the finished pdfs here: http://www.uni-bonn.de/www/Philologie/Personal/Schmitz/Dateien.html ). There are lots of different styles and a unified interface for using them. The main focus is on easy placement of text and pictures and a nice, sober look. What it lacks right now is documentation, but we're working on it. The module is in a git repository, so if you're interested, drop me a line, and I'll give you the link. (Aditya, I hope you don't mind this plug, but we were going to release soon anyway, right?) Thomas ___ 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] ConTeXt en presentations
On Feb 4, 2009, at 9:36 PM, Wolfgang Schuster wrote: You mean the link which is mentioned in the wiki? http://wiki.contextgarden.net/Presentations#Additional_modules Wolfgang Oh yes, I hadn't seen that Aditya put up a link! Thanks for the hint. Thomas ___ 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] ConTeXt en presentations
On Feb 4, 2009, at 9:44 PM, Peter Münster wrote: And then, it would be nice to get it included into the minimals! Cheers, Peter That was our secret plan, and after that, world domination and profit! Thomas ___ 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] combination
On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote: Hello, I searched the mailing archive but found nothing about my problem. I have 3 figures to put into combination 2*2. The way it is handle it that the third figure is place below the first one, which is quite logical. I'd rather have it centered in the second row. Is there any mean to do this ? I didn't find a clue anywhere. Thank you. Nicolas As long as 2*2~=3, this will not be possible. I would do (pseudo-code, untested) \startcombination[1*2] \startcombination[2*1] figure 1 figure 2 \stopcombination figure 3 \stopcombination Thomas ___ 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] lua questions
On Jan 23, 2009, at 12:13 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: it uses the syntax lpeg.Ca which my lpeg doesn't recognize and which I can't find in the lpeg manual. [useful information snipped] just run such script using mtxrun --script yourscript.lua as luatex (texlua) has the latest lpeg built in) Just one remark: my lpeg is /* ** $Id: lpeg.c,v 1.98 2008/10/11 20:20:43 roberto Exp $ and doesn't have the lpeg.Ca pattern. The lpeg that comes with luatex is /* ** $Id: lpeg.c,v 1.86 2008/03/07 17:20:19 roberto Exp $ so it's older, and it does have the lpeg.Ca pattern accumulator. And can I ask one more question about lpeg? Suppose I have the string {\em This string is \quotation{heavily} emphasized.} and want to transform that into something like \color[red]{This string is \quotation{heavily} emphasized.} How would I go about this using lpeg? I must use a lpeg.V somewhere, but I can't figure out where and how. Thanks, and all best Thomas ___ 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] installing fonts pdftex
On Jan 27, 2009, at 12:28 AM, Mohamed Bana wrote: Hi Thomas, Hi, please address questions to the mailing-list, not to me personally. 1. when is the last time you tried to install a font manually using texfont? i've been trying to get install warnockpro and cronospro - both of which are .otf - but i've had no lack. texfont --makepath --install --fontroot=`pwd` --vendor=adobe -- co=warnockpro --en=texnansi --lcdf --preproc -- variant=liga,kern,smcp,onum the last time i checked texfont was generating an empty map file. texfont is really old, it predates opentype fonts, so you can't expect it to handle such fonts. It was a brave and wonderful effort to automate installation of fonts, but I gave up using it - not because texfont itself is bad, but because so many fonts are just faulty and/ or idiosyncratic, and automatization just can't handle all these eceptions. I always had to double-check and edit files by hand, so I decided to go for a manual process. The --lcdf switch was added by Adam Lindsay, who also wrote a short article about otf and ConTeXt: http://www.tug.org/pracjourn/2005-2/lindsay/lindsay.pdf Too bad Adam isn't active anymore, he was a great help in ConTeXt development. If you search the mailing list archive for texfont lcdf, you will see that the problem with the empty map file is common and was never really solved, AFAIK. So you have several options: 1. install the fonts manually 2. use texfont and write the map file manually 3. try Patrick's otfinst http://wiki.contextgarden.net/otfinst 4. I have a set of support files for using Cronos and Warnock with pdftex; if you want, I can make a zip and send them to you (not before Thursday, however). the free version of lucida (.ttf) that ship with Java files worked fine 2. is there someone i must do to get to dashes working properly? as in, --- doesn't generate the right dash nor does --. These are defined as ligatures in the tfm/vf files. Doesn't texfont produce vpl-files as an intermediate format? You could open those and check whether the ligature is defined. It probably isn't, and then you have to hunt down the reason or add it manually... Good luck Thomas ___ 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] lua questions
On Jan 23, 2009, at 12:13 PM, Hans Hagen wrote: here is a variant that implements a function (and does not use the env trick) do local add = function (x,y) return x+y end local P,Ca,Cc= lpeg.P,lpeg.Ca,lpeg.Cc local symbols = { I=1,V=5,X=10,L=50,C=100,D=500,M=1000,IV=4,IX=9,XL=40,CD=400,CM=900} local adders = { } for s,n in pairs(symbols) do adders[s] = P(s)*Cc(n)/add end local MS = adders.M^0 local CS = (adders.D*adders.C^(-4)+adders.CD+adders.CM +adders.C^(-4))^(-1) local XS = (adders.L*adders.X^(-4)+adders.XL+adders.X^(-4))^(-1) local IS = (adders.V*adders.I^(-4)+adders.IX+adders.IV +adders.I^(-4))^(-1) local p = Ca(Cc(0)*MS*CS*XS*IS) function string:romantonumber() return p:match(self:upper()) end end print(string.romantonumber(MMIX)) print(string.romantonumber(MMIIIX)) just run such script using mtxrun --script yourscript.lua as luatex (texlua) has the latest lpeg built in) Brilliant! This one does work when I use it with luatex (not with my system lua though, even though I have the latest released version of lpeg 0.9 installed. Bizarre... 2. How can I check if a string begins with a class of words (Der | Die |Das |The |An ) etc. and strip these words from the string? I do it with a compiled regexp in python, but Programming in lua has this to say: Unlike some other systems, in Lua a modifier can only be applied to a character class; there is no way to group patterns under a modifier. For instance, there is no pattern that matches an optional word (unless the word has only one letter). Usually you can circumvent this limitation using some of the advanced techniques that we will see later. I haven't found these techniques yet. local stripped = { Der, Die, Das } local p = lpeg.P(false) for k, v in ipairs(stripped) do p = p + lpeg.P(v) end local w = p * local stripper = lpeg.Cs(((w/) + lpeg.C(1))^0) lpeg.print(stripper) str = Germans somehow always talk about Der Thomas and Der Hans print(stripper:match(str)) Brilliant again! I can run with that, looks great! And who doesn't want a local stripper in his code? 3. How can I compare strings with utf8 characters? My naive approach if string.find(record, Résumé) doesn't appear to work (while the same method does work if the string has only ASCII characters). since lua is 8 bit clean utf should just work OK, then the problem must be somewhere else. I'll investigate. Thanks a lot, and best wishes Thomas ___ 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] lua questions
Hi all, this is a bit OT and should probably go to a lua list, but since some people here are very proficient in lua and I feel less embarrassed about noob questions here... I have a half-functioning python script to convert entries from a classics database into the bibtex format. I want to rewrite it in lua and make it more functional. Three little problems/questions: 1. I found a script to convert Roman numerals via lpeg here: http://lua-users.org/wiki/LpegRecipes but it uses the syntax lpeg.Ca which my lpeg doesn't recognize and which I can't find in the lpeg manual. According to a talk by Roberto Ierusalimschy, lpeg.Ca(patt) - accumulates the nested captures. (http://www.inf.puc-rio.br/~roberto/lpeg/slides-lpeg-workshop2008.pdf ) Is this obsolete, has it been replaced by anything? 2. How can I check if a string begins with a class of words (Der |Die |Das |The |An ) etc. and strip these words from the string? I do it with a compiled regexp in python, but Programming in lua has this to say: Unlike some other systems, in Lua a modifier can only be applied to a character class; there is no way to group patterns under a modifier. For instance, there is no pattern that matches an optional word (unless the word has only one letter). Usually you can circumvent this limitation using some of the advanced techniques that we will see later. I haven't found these techniques yet. 3. How can I compare strings with utf8 characters? My naive approach if string.find(record, Résumé) doesn't appear to work (while the same method does work if the string has only ASCII characters). Sorry if this is OT, and I'll be grateful for any pointers. Thomas ___ 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] gfs neohellenic typescript
On Jan 21, 2009, at 5:41 PM, Antoine Junod wrote: Hello list, Has anyone already written a typescript for the beautiful gfs neohellenic (for mkii)? A+ -AJ If you want to use this font with mkii, you'll need much more than just a typescript, at the least tfms + encodings + mapfiles. That's the reason why luatex so much more convenient. Also depends on how you want to use the font: which parts are you interested in, Greek, Latin, ? Thomas ___ 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] Adobe ArnoPro in mkiv
On Aug 24, 2008, at 9:56 AM, Thomas A. Schmitz wrote: On Aug 20, 2008, at 8:59 PM, abbg...@city.ac.uk wrote: Thomas A. Schmitz thomas.schmitz at uni-bonn.de writes: Hi all, I'm trying to use the Adobe ArnoPro font (just testing if it will work with ConTeXt). The font does work with ConTeXt/XeTeX, but not in mkiv. Hi, Did you manage to fix it? LuaTeX goes into (what I think is) an endless cycle --- I haven't allowed it to terminate naturaly, as it takes far too long even on a quad core. Yes, I get a segmentation fault here on OS X as well. I talked to Hans in Bohinj (I'm back earlier than the rest, who are still working hard in Slovenia), and he thinks we'll just have to wait a bit till luatex integrates code from fontforge v.3. So for the time being, Arno Pro is unfortunately no go. Just for the record and in case anybody else is interested: with the latest luatex and the latest beta, ArnoPro now works in mkiv! Best Thomas ___ 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 ___