[NTG-context] EuroTeX 2012 / 6th ConTeXt Meeting reminder
Hi all, Invitation == This is a reminder that EuroTeX 2012, the sixth ConTeXt meeting, the NTG najaarsbijeenkomst, and Dante's Herbsttagung will all be held together at the same time and place in Breskens, the Netherlands, on October 8 - October 12 The organisation of the conference is a joint effort of the NTG, Dante and the ConTeXt Group. Theme = Breskens is a small beach town that lives mostly off tourism, and people on vacation tend to do slightly odd, relaxing things that they do not normally have time for. Combining these two, the motto of this conference is: Recreational uses of TeX We already have quite some interesting talks, but we are still accepting new proposals. Registering === Please note that registration will be possible until SEPTEMBER 10, and that there can be no late registrations for this conference. So if you wish to attend, you have only three weeks left to fill in your registration! See http://www.ntg.nl/eurotex2012/ for additional details, including abstracts and the registration form. The programme promises to be quite interesting, so we hope to see you there! On behalf of the organising committee, Taco Hoekwater PS Please forward this message to whoever seems appropriate to you. ___ 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] Problem with SETUPTEX and KSH93
Hello, I'm new to ConTeXt, and I find it great! I've done the standalone installation on my Linux box. For many reasons, I don't use bash, but ksh since all my customers are using ksh as there shell. Nevertheless, the setuptex is not working for me. Of course it works if I say . ~/context/tex/setuptex ~/context/tex But I would like to have it in the short form: . ~/context/tex/setuptex So for that in ksh, I needed to correct the setuptex like that: line 99: if [ z$BASH_SOURCE != z ]; then SCRIPTPATH=$BASH_SOURCE else if [ z${.sh.version} != z ]; then SCRIPTPATH=${.sh.file} else SCRIPTPATH=$0 fi fi And now, it works for ksh93, and all the other shells should be unaffected. Would it be possible to correct it? Or if someone has a better idea, then I'm also ok, as long as it works for ksh. Sincerely yours, Alessandro Perucchi ___ 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] Problem with SETUPTEX and KSH93
On Mon, Aug 20, 2012 at 11:04 AM, Alessandro Perucchi wrote: Hello, I'm new to ConTeXt, and I find it great! I've done the standalone installation on my Linux box. For many reasons, I don't use bash, but ksh since all my customers are using ksh as there shell. Nevertheless, the setuptex is not working for me. Of course it works if I say . ~/context/tex/setuptex ~/context/tex But I would like to have it in the short form: . ~/context/tex/setuptex Can you please try again? 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] Runtime Error (TeXLive and ConTeXt )
TeXLive Version: 2012 (--all updated to August 20th, 2012) Platform: CYGWIN_NT-6.0 1.7.16(0.262/5/3) 2012-07-20 22:55 The attempted command which ends in an error is: texexec -o pdf 659-water-stations.tex This results in: PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.5, library: 1.2.7) However /usr/include/zlib.h is for version 1.2.7, not the 1.2.5 mentioned in the error message. Any idea of how to fix this, so I can run ConTexT? Thanks for any and all help. ___ 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] test for (negative) number
Hi, I used '\doifnumberelse' to validate some macro parameters (angle). Sadly it does not work with negative numbers. Is there a similar macro, that also supports negative values? Example: \doifnumberelse {45}{yes}{no}% yes \doifnumberelse{-45}{yes}{no}% no Greetings, Peter ___ 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] Stable versions of MkIV
Hi all, The current stable MkIV, the MkIV on the wiki, and the MkIV in TeX Live are quite different things. MkIV 2011.005.18 -- result of first-setup.sh --current MkIV 2011.10.008 -- version on the wiki MkIV 2012.005.29 -- version in TeX Live 2012, AFAICT (Mojca?) 1. Why not declare the version in TeX Live to be stable? I know Mojca puts some work into making it as bug-free as possible. 2. Perhaps have the MkIV on the wiki track the MkIV in TeXlive? We can show off reasonably-recent features, it looks more up-to-date, it's a nice clear answer to should we update already?, and it ensures that we update to reasonably bug-free versions. 3. Is there a list of past stable versions somewhere? I can't find one, and without it the ability to go to a specific stable version with `sh ./first-setup.sh --context=date` seems a bit useless. (Can't really imagine a use in general, though.) 4. (Less important.) context.mkiv defines \contextversion as e.g. `2012.08.11 14:11`, but \contextversionnumber in mult-ini.mkiv still prepends a zero to the month or day. (It checks whether 08 10, which is true even if the leading zero is present.) This causes the extra zeros you saw in the version numbers above. Can this be changed without breakage ensuing? I expect that nobody depends on it over the more direct \contextversion. (People that do use \contextversionnumber have a problem anyway, because the version strings it produces in October-December will always turn out 'earlier/older' than the ones produced in January-September, regardless of year.) Cheers, Sietse ___ 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] test for (negative) number
Hi Peter, I recommend using the following handy little idiom: \ctxlua{commands.doifelse(-45 0)}{big}{small} % small It lets you do all sorts of things that are tricky in TeX: \ctxlua{ commands.doifelse( string.len( -45 ) 5 ) }{long}{short} Cheers, Sietse ___ 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] How to know in which page I'm?
Hi, I want to print a message depending if the page is even or odd. In pseudocode: \if \inpage.\iseven { This page is even } \else { This page is odd } How can I do that in ConTeXt? Thanks in advance, Xan. PS: Please, CCme ___ 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] How to know in which page I'm?
On Mon, Aug 20 2012, Xan wrote: I want to print a message depending if the page is even or odd. In pseudocode: \if \inpage.\iseven { This page is even } \else { This page is odd } How can I do that in ConTeXt? \signalrightpage\doifrightpageelse{odd page}{even page} -- Peter ___ 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] How to know in which page I'm?
Am 20.08.2012 um 22:41 schrieb Xan dxpubl...@telefonica.net: Hi, I want to print a message depending if the page is even or odd. In pseudocode: \if \inpage.\iseven { This page is even } \else { This page is odd } How can I do that in ConTeXt? http://www.ntg.nl/pipermail/ntg-context/2012/067632.html 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 ___
[NTG-context] Problem with SETUPTEX and KSH93
On Mon, Aug 20, 2012 at 12:34 PM, Mojca Miklavec wrote: Can you please try again? Mojca Hello Mojca, thanks :-) it works wonderfully! Now, I don't have to patch setuptex each time I'm updating ConTeXt :-D Sincerely yours, Alessandro ___ 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] Struggling with ConTeXt
Many thanks for the enlightening answers. The explanations about xml solved question 1 and \startmatrix\stopmatrix solved question 4. I'm now crunching xml input and handling it half in lua and half in tex (and I'm verry happy about it). I'm still struggling with a few points though (with context standalone beta on ubuntu): 3) I'm flowing text around mathematical text with graphic ornaments (overlay) but the bounding box from metapost (red) and from TeX (black) on the following minimal example aren't the same which produce all kinds of flowing text issues. is there a way/an option for framedtexts with overlay to get the max width/height size of the main content + overlays ? \startusableMPgraphic{myFrame} numeric o, l, m ; path a, b ; pair c ; picture d; d = textext.rt(\MPstring{Content}) ; draw (unitsquare xyscaled (OverlayWidth,OverlayHeight) shifted (-OverlayWidth/2,-OverlayHeight/2)) withpen pencircle scaled 1pt withcolor green; draw (d enlarged 2cm) withcolor red withpen pencircle scaled 2pt; draw boundingbox currentpicture withpen pencircle scaled .1mm dashed evenly withcolor blue ; \stopusableMPgraphic \defineoverlay[myOverlay][\useMPgraphic{myFrame}] \defineframedtext[myStatement][frame=off] \setupframedtexts[myStatement][backgroundcolor=lightgray,background=myOverlay,width=\textwidth,autowidth=force] \starttext \framed[fit]{\startmyStatement TEST \stopmyStatement} \stoptext 3b) I found a dirty workaround by making metapost draw the texts and the graphics (through mpstring) but then, i can't embed graphics in my Tex-text. Is there a way to have graphics inside MPstrings that goes inside metapost ? About question 2, Context doesn't produce svg okey...but tikz and metapost can produce svg. So, is there a ConteXt setup/systems calls/a (simple or not) workaround to make metapost/tikz produce svg files ? Like some script that I could run on my snipets ? I would really like to produce svg from my metapost/tikz pictures Best regards, Olivier ___ 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] How to know in which page I'm?
On Mon, 20 Aug 2012 23:09:11 +0200 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 20.08.2012 um 22:41 schrieb Xan dxpubl...@telefonica.net: Hi, I want to print a message depending if the page is even or odd. In pseudocode: \if \inpage.\iseven { This page is even } \else { This page is odd } How can I do that in ConTeXt? http://www.ntg.nl/pipermail/ntg-context/2012/067632.html Wolfgang Will the plain text way still work? \ifodd\pageno foo \else bar \fi -- John Culleton ___ 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 ___