Re: [NTG-context] Ubuntu and Context MKIV
Al 22/08/10 23:43, En/na George N. White III ha escrit: On Sun, Aug 22, 2010 at 2:23 PM, Aditya Mahajanadit...@umich.edu 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. Thanks George of confirming the bug. In my opinion, the context package has to be ready for running. No intervention of user should be needed. For the other hand, I have problems running luatools, so we have a bug: or the first or the second. Xan. ___ 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] My mtx-fonts.lua script is broken?
It may have happened a long time ago. I just updated my context and could not compile my document with \setupbodyfont[lucida], something like: === define fonts forced type afm of stmary10 not found define fonts font with name stmary10 is not found load otf loading: d:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroma n8-bold.otf (hash: lmroman8-bold) load otf font loaded okay load otf file size: 112404 load otf enhancing ... load otf saving in cache: d:/ConTeXt/tex/texmf/fonts/opentype/public/l m/lmroman8-bold.otf report | lua: compiling d:/ConTeXt/tex/texmf-cache/luatex-cache/context/04a4119 fb83ff6c1c1b215f165317af6/fonts/otf/lmroman8-bold.tma into d:/ConTeXt/tex/texmf -cache/luatex-cache/context/04a4119fb83ff6c1c1b215f165317af6/fonts/otf/lmroman8 -bold.tmc virtual math font LMMath8-Regular, no parameters set ! TeX capacity exceeded, sorry [parameter stack size=60]. \xdodefinebodyfont [#1][#2][#3]- \checkrelativefontsize {#2}\ifcsname #2\end... \dododododefinedefaultbodyfont ...csname {4pt}{rm} \fi \next7 #1,-\dododododefinedefaultbodyfont {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \next6 #1,-\dodododefinedefaultbodyfont {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.22 \setupbodyfont[lucida] ! == Fatal error occurred, no output PDF file produced! MTXrun | fatal error: return code: 1 === Last time I saw this message, I was preparing a document in a hurry so I just download an old cont-tmf.zip and it's okay again. I got a font AdobeSongStd-Light.otf and after == mtxrun --script fonts --reload == I still could not find it: == zhi...@zhichu-pc /context/tex $ mtxrun --locate AdobeSongStd-Light.otf tree:///d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/Adobe/AdobeSongStd-Light.otf zhi...@zhichu-pc /context/tex $ mtxrun --script fonts --list --pattern=Adobe* zhi...@zhichu-pc /context/tex $ == Well, can you give me a hint what's wrong here? -- Best Regards Chen ___ 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
Thanks Wolfgang, that helped :-) Only one additional question occured with that solution: I am trying to use unnumbered chapters/sections and recognized that \fullstructureheadnumber gives the number of the chapter/section before instead of giving back and empty string: \chapter{abc} \fullstructureheadnumber - 1 \chapter{abc} \fullstructureheadnumber - 2 \title{abc} \fullstructureheadnumber - 2 (instead of an empty string) \chapter{abc} \fullstructureheadnumber - 3 (\placeheadnumber only returns (chapter and title) an empty string) Is there a way to solve this? ___ 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] My mtx-fonts.lua script is broken?
On 08/23/2010 10:33 AM, Zhichu Chen wrote: virtual math font LMMath8-Regular, no parameters set ! TeX capacity exceeded, sorry [parameter stack size=60]. == Well, can you give me a hint what's wrong here? Wild guess: you installed a zip from the website, but did not copy contextcnf.lua to the name texmfcnf.lua (should be next to texmf.cnf). The context minimals does this for you automatically. 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] My mtx-fonts.lua script is broken?
On Mon, Aug 23, 2010 at 5:26 PM, Taco Hoekwater t...@elvenkind.com wrote: On 08/23/2010 10:33 AM, Zhichu Chen wrote: virtual math font LMMath8-Regular, no parameters set ! TeX capacity exceeded, sorry [parameter stack size=60]. == Well, can you give me a hint what's wrong here? Wild guess: you installed a zip from the website, but did not copy contextcnf.lua to the name texmfcnf.lua (should be next to texmf.cnf). The context minimals does this for you automatically. Yea, you're right. I copy the file to where you suggested to put and it works just fine. Interesting. Thank you very much and may I suggest that it's time for the ctxtools update script to be updated. Best wishes, Taco -- Best Regards Chen ___ 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] Fwd: Troubles with indentation in ConTeXt
Hi, Forwarded to the context mailing list. Best wishes, Taco Original Message Subject: Troubles with indentation in ConTeXt Date: Mon, 23 Aug 2010 12:17:55 +0200 From: Ogam Géry maggy...@gmail.com To: i...@bittext.nl Dear Mr Hoekwater, I'm a French ConTeXt user and I've found an issue with the ConTeXt command “\setupindenting[yes,medium]” which removes usual spacing between formulas. Mr Mahajan reported the same problem on a post from 2007 (http://www.mail-archive.com/ntg-context@ntg.nl/msg20692.html), so I'm wondering if it has been solved now in 2010 (it doesn't seem so, but maybe there's a trick or something). Yours faithfully. Géry Ogam ___ 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 Mon, Aug 23, 2010 at 4:53 AM, Xan dxpubl...@telefonica.net wrote: Thanks George of confirming the bug. In my opinion, the context package has to be ready for running. No intervention of user should be needed. For the other hand, I have problems running luatools, so we have a bug: or the first or the second. Many packages require some user configuration before they can be used. Some hide this and do the configuration in the background the first time they are run, which assumes that the configuration is very robust (as you can see, luatools may not yet qualify as a robust tool). I do think the requirement to run luatools should be made more visible to users, e.g., by having the context wrapper script make some checks before attempting to run mtxrun, or by changing mtxrun itself (the advantage of making changes in the wrapper is that they can be more distro specific and point to /usr/share/doc/context/README.MarkIV). As for the 2nd part of the problem, we don't have enough information to know why luatools --generate isn't working for you. I'm not sure exactly what you have tried to get it working, but it would be helpful if you can do the following: 1. document the current status: run (as normal user) luatools --variables, then use the value of TEXMFCACHE for: ls -lR TEXMFCACHE (e.g., paste in the value shown for TEXMFCACHE) 2. check that the luatex caches have suitable permissions, or just delete them and try to recreate using a normal user login. -- George N. White III aa...@chebucto.ns.ca 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 ___
[NTG-context] public SCM repositories and how to contribute (was: [PATCH] small corrections for the ConTeXt-correspondence manual)
Dear Taco, Am Mittwoch, den 18.08.2010, 23:16 +0200 schrieb Taco Hoekwater: Paul Menzel wrote: What is the reason? Because it is too much work to set it up or because it is not wanted? Speaking for myself (and I have only one or two small modules, so I am not a 'big daddy'): the lettrine module is indeed in subversion locally just as almost anything I do is these days. But I have the repository to make sure I do not accidentally delete file and/or so I can go back to previous incarnations to check for abnormal mutations. But for now, the module is my private illegitimate child, and I do not really want other people teaching it new tricks until I am ready to kick it out of the house. Since the source is public anyway in the form of on CTAN or tarballs(?) I do not see the point in not publishing the repository. And if you do not like the patch you do not need to apply it. You are still the only one with write access. It would just make it easier for others to work with the source and to not double work, since they always see your latest work. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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
I figured out that \fullstructureheadnumber returns inside a backmatter nil. So it works for my own needs. I do not know if the reported return behavior inside a bodymatter or appendices is correct. But I leave this discussion to the context devs. Anyways @devs: Thanks for your work! Context became real cool stuff! ___ 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
On 22-8-2010 4:37, Henning Hraban Ramm wrote: 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 ;-) didn't you once made a math cheat sheet? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: Troubles with indentation in ConTeXt
Am 23.08.10 12:47, schrieb Taco Hoekwater: Hi, Forwarded to the context mailing list. Best wishes, There is no way for me to fix the problem but i was able to identify the \donoindentation macro as the culprit. \def\noindentation % made global {\ifinpagebody \else \global\indentationfalse \gdef\checkindentation {%\donoindentation \gdef\checkindentation{\global\indentationtrue}}% \fi} \setupindenting [medium,yes] \starttext \startformula Z^i_1 = f^{i,*}(X^i_1,U) \tracingmacros1 \stopformula \startformula \tracingmacros0 Z^i_t = f^{i,*}(X^i_t,U, P^i_{M_{t-1}}) \qquad t=2,3,\dots,T \stopformula \stoptext 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] ConTeXt meeting Lua tutorials
2010/8/23 Hans Hagen pra...@wxs.nl: Another plan WRT the documentation subject: I'll try to make a ConTeXt cheat sheet, but that won't need Lua ;-) didn't you once made a math cheat sheet? Who, me? ;-) I made a formulary for the printing industry (including basic algebra, geometry, statistics etc.), but that was a bit more than a sheet, and it was my only LaTeX project. Greetlings, Hraban ___ 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
[the following is just some brainstorming] On Sat, Aug 21, 2010 at 13:48, Taco Hoekwater wrote: 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? For fonts, agreed with Luigi, it would be nice to see some lua code that a) takes a bunch of fonts as input (like: regular/italic/bold/bolditalic/script) and writes some simple sentence with all variants; switching options on and off (after thinking a bit, this can just as well be done in almost-plain-TeX in LuaTeX, so maybe it's not such a good idea) b) takes a font as input and makes a really nice graphical representation: - font name (under different OS systems?), file name, ... - available features - glyph repertoire (index/Unicode point/name/big drawing) - alternatives of the same glyph (under small caps or when alternative styles play some role), ... [i know it's incomplete] - ... - takes some input string and writes out that sentence under different permutations of available features (with some user's help) c) shows some OpenType math tricks (visually?) or even does the same as showttf/poin b, but for math (challenge :) :) :) One of possible ideas for an advanced example (just brainstorming; you need to judge whether it makes sense or not; it might be too long complicated, but it would be instructive to see both parsing and drawing at the same time): - parse some very simple text input - draw the image with mplib For example, one could try to parse: http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html (but with some strict restrictions, like: no cycles allowed, no reactions, ... only element names, =, # and parenthesis with at most one branch; no nested ones) and then try to draw a full circle for every element and connect the circles with single/double/triple lines (no attempt for optimal placement and nothing complicated). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Summary of user wishes for streams
Hi, We have rather few suggestions and they are not coming anymore. So I am summarizing what we have so far. Since my typesetting vocabulary is meager I choose to present it graphically. Then again my apologies for poor graphics as I did not attempt it in metapost. Below is the collection of the posts and attached is a pdf of a drawing generated in inkscape. I can send the original svg if needed. Best regards, Salil__ Salil:Being able to flow multiple texts in parallel. A simple case is a translation of the same text running on opposite page while the original runs on left/right page. In my thesis these are not translations, but correlated texts written for different audiences. (think of levels in a CG game) So the texts need to be designed differently. To extrapolate this facility, if columns on one page can run such parallel texts then we can have multiple translations running together. Khaled:Old Arabic book, essentially all early Bulaq Press books used to typesettwo books in one, one is the main book running on the body of the page,while the other is a loosely related book running in the margins of thepage, the second book can be a commentary on the main book, but oftenthey just discuss the same subject with no direct correlation (not acritical edition). I'd like to be able to reproduce such layout. Taco:I would like to do something slightly more general: it would be nice ifcolumnset blocks could take their input from streams, even if the blockis not a full column (or multiple columns). Philipp:three items I'd like to add: * horizontal split page layout (upper and lower parts instead of columns), * asymmetric stream combinations (e.g. two streams on the left page, another stream on the facing page), and * easy reprinting (i.e. a photographic reproduction as one stream on the left and a text stream on the right page).I've seen all of this in printed books so it would be a pity to live ina world where the best typesetting system can't do that. Some of this Ialready mentioned to Hans a while ago, maybe he remembers. Kevin:I second the request to support horizontally split page layouts with one stream typeset above another on each page. Hans:it would help to see mockups for such requests Salil:I think this is good example of this function. http://books.google.com/books?id=qdltz8N9qSEClpg=PP1dq=the%20body%20multiplepg=PA4#v=onepageqf=false Philipp:I got a less complex example from the library, in contrast to Salil'sexample this one is a translation: http://bayimg.com/oaoPpaaChhttp://bayimg.com/PAOpAAaChhttp://bayimg.com/pAopbaAchhttp://bayimg.com/pAOpDAaCHhttp://bayimg.com/PaoPeAAch Shows clearly that the streams are synced at every section (and thattranslation to English is a good compression for German…). streams-user-wishes-round-one.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Summary of user wishes for streams (Salil Sayed)
This reminds me. Two columns of text over three columns of footnotes. Is it possible? ___ 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] [***SPAM***] Re: Summary of user wishes for streams (Salil Sayed)
On Mon, 23 Aug 2010 12:49:05 -0500 Michael Saunders odrad...@gmail.com scribit: This reminds me. Two columns of text over three columns of footnotes. Is it possible? ___ preformatted with 1. Ibidem| 2. Ibidem |3. Ibidem ? ;-) -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/ ___ 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] [***SPAM***] Re: Summary of user wishes for streams (Salil Sayed)
On 08/23/2010 07:55 PM, R. Bastian wrote: On Mon, 23 Aug 2010 12:49:05 -0500 Michael Saundersodrad...@gmail.com scribit: This reminds me. Two columns of text over three columns of footnotes. Is it possible? ___ preformatted with 1. Ibidem| 2. Ibidem |3. Ibidem That would be pretty straightforward :) ___ 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
On 08/23/2010 06:37 PM, Mojca Miklavec wrote: [the following is just some brainstorming] For fonts, agreed with Luigi, it would be nice to see some lua code that a) takes a bunch of fonts as input (like: regular/italic/bold/bolditalic/script) and writes some simple sentence with all variants; switching options on and off (after thinking a bit, this can just as well be done in almost-plain-TeX in LuaTeX, so maybe it's not such a good idea) This teaches nothing that really needs the lua font interface, so I do not think that is such a good idea either. b) takes a font as input and makes a really nice graphical representation: - font name (under different OS systems?), file name, ... - available features - glyph repertoire (index/Unicode point/name/big drawing) - alternatives of the same glyph (under small caps or when alternative styles play some role), ... [i know it's incomplete] - ... - takes some input string and writes out that sentence under different permutations of available features (with some user's help) This sounds interesting (and, also important, doable up to a reasonable point within the available time). c) shows some OpenType math tricks (visually?) or even does the same as showttf/poin b, but for math (challenge :) :) :) OpenType Math really uses next to no lua code, it is almost all coded in the executable proper, so it would be hard to do something illustrative that is not overly complex on purpose at the same time. As a beginner's tutorial, that is probably a step too far. Myself, I was thinking of how to create a virtual font on the fly. but b) definitely sounds interesting. One of possible ideas for an advanced example (just brainstorming; you need to judge whether it makes sense or not; it might be too long complicated, but it would be instructive to see both parsing and drawing at the same time): - parse some very simple text input - draw the image with mplib For example, one could try to parse: http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html (but with some strict restrictions, like: no cycles allowed, no reactions, ... only element names, =, # and parenthesis with at most one branch; no nested ones) and then try to draw a full circle for every element and connect the circles with single/double/triple lines (no attempt for optimal placement and nothing complicated). Should be ok, if I cheat a bit on the creation of metapost macros. I had a somewhat similar idea myself, for parsing turtle graphics, but that needed quite a bit of lpeg for which we may not have enough time, so I had almost given up on parsing stuff. this chemistry stuff is doable within the time constraints, I think. 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 ___
[NTG-context] text looseness-tightness
hello all I have a 2 column A4 document, each 71,5mm wide. text is CMR 9pt. there is a paragraph 12 lines long. the 12th are the 3 last letters from the word procesos, or sos. I really need that 3 letters go up. I need 11 lines. they are just 3 characters in 11 lines. a single syllable. \looseness=-1 is not enough. I also tried inserting discretional hyphens where they can be more usefull, some times helps me but not now. How can I FORCE spacing bettween characters, words (or both). I don't care if it looks too tight. I know that this can seems sacrilegious, but nobody will notice it! thankyou in advance for you generous people. Horacio Suarez ___ 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
On Mon, Aug 23, 2010 at 8:22 PM, Taco Hoekwater t...@elvenkind.com wrote: On 08/23/2010 06:37 PM, Mojca Miklavec wrote: b) takes a font as input and makes a really nice graphical representation: - font name (under different OS systems?), file name, ... - available features - glyph repertoire (index/Unicode point/name/big drawing) - alternatives of the same glyph (under small caps or when alternative styles play some role), ... [i know it's incomplete] - ... - takes some input string and writes out that sentence under different permutations of available features (with some user's help) This sounds interesting (and, also important, doable up to a reasonable point within the available time). Just to add that I have compiled showttf for linux (gcc, 32 bit) windows seven (mingw, 32bit) -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] graphics styles
Hi! In tikz I can say \draw[help lines] (0, 0) circle (1cm); and setup what does help lines mean (color, linewidth etc.) in the environment file with \tikzset{help lines/.style={...}}. Is there any way to do something similar with ConTeXt+MetaPost? Should I add drawoptions(\MPvar{another-style-name}) before each draw/fill command, and drawoptions() after it? ___ 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
On Sat, 21 Aug 2010, Taco Hoekwater wrote: 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). Some things that took a lot of trial and error for me to learn: * Write a macro that passes its argument as a string to a lua function * Write a macro that passes its argument as a function to a lua function * Write a macro that passes a lua function to another lua function. * Write a macro that passes an anonymous function to another lua function. For example, I should be able to do: \ToString{ABC with all sorts ' of [[ weird [=[ characters [==[ [===[ [[} \ToTable{ ['A'] = B, ['B'] = A } \ToFunction{ table.merge } \ToFunction{ function (a, b) do return (a+b) end } Slightly more advanced is how write a \setup command that can take these as an argument and pass it to a luafunction. For example \setupwhatever [ string={ABC with all sorts ' of [[ weird [=[ charactes [===[ [[, table={ ['A'] = B, ['B'] = A }, function = {table.merge}, anon={funcion (a,b) do return (a+b) end}, ] On hindsight, these are simple. But there is no documentaion on how lua sees the TeX arguments, and you need to understand how \directlua expands its arguments...something that can be very frustrating in the beginning. 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] [***SPAM***] Re: Summary of user wishes for streams (Salil Sayed)
On 23-8-2010 8:06, Taco Hoekwater wrote: On 08/23/2010 07:55 PM, R. Bastian wrote: On Mon, 23 Aug 2010 12:49:05 -0500 Michael Saundersodrad...@gmail.com scribit: This reminds me. Two columns of text over three columns of footnotes. Is it possible? ___ preformatted with 1. Ibidem | 2. Ibidem |3. Ibidem That would be pretty straightforward :) indeed, just multicolumns with page notes in 3 columns Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] graphics styles
On Tue, 24 Aug 2010, Yury G. Kudryashov wrote: Hi! In tikz I can say \draw[help lines] (0, 0) circle (1cm); and setup what does help lines mean (color, linewidth etc.) in the environment file with \tikzset{help lines/.style={...}}. Is there any way to do something similar with ConTeXt+MetaPost? Currently, no. Should I add drawoptions(\MPvar{another-style-name}) before each draw/fill command, and drawoptions() after it? One option is to define two macros: definestyle (or perhaps newstyle, which is more in line with metapost naming conventions) and withstyle so that you can say definestyle(helplines, withpen pencircle scaled 1bp withcolor 0.5white) ; and then draw fullcircle xyscaled 1cm withstyle helplines ; It should be possible to do this in metapost, but if not (I am really bad at metapost programming), then it is straightforward to do this in TeX so that you write \startMPcode \defineMPstyle[helplines][withpen pencircle scaled 1bp withcolor 0.5white] draw fullcircle xyscaled 1cm \withstyle{helplines} ; \stopMPcode but the first solution will be more cleaner. 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] ConTeXt meeting Lua tutorials
* Taco Hoekwater t...@elvenkind.com [2010-08-23 20:22]: On 08/23/2010 06:37 PM, Mojca Miklavec wrote: [the following is just some brainstorming] For fonts, agreed with Luigi, it would be nice to see some lua code that a) takes a bunch of fonts as input (like: regular/italic/bold/bolditalic/script) and writes some simple sentence with all variants; switching options on and off (after thinking a bit, this can just as well be done in almost-plain-TeX in LuaTeX, so maybe it's not such a good idea) This teaches nothing that really needs the lua font interface, so I do not think that is such a good idea either. This brings up a possible point: Some introductory matter on What lua is and is not good for/needed for. -- Thanks David ___ 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] OT: map of the world
Hi, Check this out: http://nmap.org/favicon/ contextgarden.net is at (29.353, 29.233) and is 8 × 8 pixels. tug.org is at (4.520, 21.067) and is 32 × 32 pixels. 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 ___