Re: [NTG-context] textext vs. btex ... etex
>> Now onto step two: how can I typeset each glyph in the formula individually >> such that it appears precisely in the right location? > > I must be misreading something here, but I cannot figure out what > 'the right location' means. Since textext() always returns a single picture that can't be decomposed into smaller building blocks mkiv3.pdf Description: Adobe PDF document Hans suggested to textext() each desired snippet individually. So I tried --- \setupbodyfont[10pt] \starttext \startMPinclusions pickup pencircle scaled 0.05pt; defaultpen := savepen; picture crosshair; crosshair := image(draw fullcircle scaled 2pt; draw (0,-2pt)--(0,2pt); draw (-2pt,0)--(2pt,0); ); bboxmargin := 0; \stopMPinclusions \startMPpage for item within rawtextext("$(h,g)$"): draw bbox item withcolor 0.8white; draw item; endfor; draw crosshair; \stopMPpage \startMPpage draw bbox rawtextext("$($") withcolor 0.8white; draw rawtextext("$($"); draw bbox rawtextext("$h$") withcolor 0.8white; draw rawtextext("$h$"); draw bbox rawtextext("$,$") withcolor 0.8white; draw rawtextext("$,$"); draw bbox rawtextext("$g$") withcolor 0.8white; draw rawtextext("$g$"); draw bbox rawtextext("$)$") withcolor 0.8white; draw rawtextext("$)$"); draw crosshair; \stopMPpage \stoptext --- Clearly, this gives me each glyph individually but stacked on top of each other. What I need though is that the second figure looks exactly like the first one (with all glyphs in the right location) except that the grey bounding boxes appear per glyph. Thanks for your help, Oliver___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] textext vs. btex ... etex
On 08/22/2010 09:53 AM, Oliver Buerschaper wrote: Clearly, this gives me each glyph individually but stacked on top of each other. What I need though is that the second figure looks exactly like the first one (with all glyphs in the right location) except that the grey bounding boxes appear per glyph. I know what you want now, but I have no idea how to go about doing it via this approach. It could be made to work from the other direction (by writing lua code to intercept tex nodes) but that is not trivial either. You could use standalone metapost with btex ... etex, that would work. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ubuntu and Context MKIV
I file a bug: https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253 Please, provide any comments you want. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt meeting Lua tutorials
Am 2010-08-21 um 13:48 schrieb Taco Hoekwater: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). I'm planning to work on my LilyPond module during the meeting and would like to replace the catcode tinkering with some clean Lua logic, if possible. Don't know what will be required for that. And I guess I could use some image/PDF analyzing, e.g. to finally get inline-music working. Another plan WRT the documentation subject: I'll try to make a ConTeXt "cheat sheet", but that won't need Lua ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ubuntu and Context MKIV
On Sun, 22 Aug 2010, Xan wrote: I file a bug: https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253 Please, provide any comments you want. What you have reported there is not a bug. After installing ConTeXt, you need to run (luatools --generate) as a normal user; only then mtx-contex.lua will be found. In your case, running luatools --generate does not help, and that is the bug. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Issues with MetaPost boxes
Taco Hoekwater wrote: > There were actually two metapost bugs from that single example. > Next week's luatex beta will have a fix for both. Since I need this fix pretty soon, I thought a svn checkout and build might be a good idea. Getting luatex 0.62 beta compiled and running wasn't a problem, but the error with metapost still persists. ("This is LuaTeX, Version beta-0.62.0-2010082217 (rev 3815)") Is there anything else I would need to get the fix in? Is it in a branch or is metapost even a lib on it's own? (It seemed to be statically linked, but I'm not completely sure if I missed something, so I better ask - which I hereby do.) Thanks in advance! Andreas. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] current head title and current number
Hi, I need to get the current *section/chapter title and number. I figured out that \fullstructureheadnumber gives the current number. But I can not figure out what gives the current head title. In strc-sec.mkiv I found this comment: \def\currentheadtext{obsolete, use marks} Is this a hint to use getmarking? I tried \getmarking[current] \getmarking[currentsection] \getmarking[currenthead] without success. Does anyone know how to access the current title? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] current head title and current number
Am 22.08.10 20:35, schrieb Peter Schorsch: Hi, I need to get the current *section/chapter title and number. I figured out that \fullstructureheadnumber gives the current number. But I can not figure out what gives the current head title. \fullstructureheadtitle There are also the two commands - \placeheadtext and - \placeheadnumber Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Issues with MetaPost boxes
Andreas Schneider wrote: Taco Hoekwater wrote: There were actually two metapost bugs from that single example. Next week's luatex beta will have a fix for both. The fix is still in the metapost repository. I'll release a new luatex beta tomorrow morning (with the fix). Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ubuntu and Context MKIV
On Fri, Aug 20, 2010 at 6:41 AM, Peter Schorsch wrote: > Hi, > > I am also using Context on ubuntu - and it works fine here. There is one > small change I like to do: > > luatools --generate > > is creating ~/luatex-cache. As this cache is not hidden it appears on the > desktop. Is it possible to change that directory into a hidden directory > e.g. ~/.luatex-cache? Yes -- see "/usr/share/doc/context/README.MarkIV" -- George N. White III Head of St. Margarets Bay, Nova Scotia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ubuntu and Context MKIV
On Sun, Aug 22, 2010 at 2:23 PM, Aditya Mahajan wrote: > On Sun, 22 Aug 2010, Xan wrote: > >> I file a bug: >> >> https://bugs.launchpad.net/ubuntu/+source/context/+bug/622253 >> >> Please, provide any comments you want. > > What you have reported there is not a bug. After installing ConTeXt, you > need to run (luatools --generate) as a normal user; only then mtx-contex.lua > will be found. The need to run "luatools --generate" is not sufficiently visible (it is in README.MarkIV). Any package that requires user configuration steps should have a mechanism to inform the user that such steps are required. I suspect the damage was already done by the time the OP tried "luatools --generate" , and was perhaps made worse by running the command from a root prompt. > In your case, running luatools --generate does not help, and that is the > bug. You are right, but with a system like context it is sometimes better to avoid stressing the tools by following standard procedures. The OP ended up with /etc/texmf/web2c/pdftex, which suggests that MkII and/or fmtutil tried to install formats under /etc/texmf/web2c. It may be too much to expect luatools to recover when things are not where they belong and files under $HOME are not owned by the user. -- George N. White III Head of St. Margarets Bay, Nova Scotia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___