Re: [NTG-context] How to know in which page I'm?

2012-08-21 Thread Wolfgang Schuster
Am 21.08.2012 um 01:56 schrieb john Culleton j...@wexfordpress.com: 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

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš
On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com wrote: 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(

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Mojca Miklavec
On Mon, Aug 20, 2012 at 6:26 PM, Sietse Brouwer wrote: 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

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Wolfgang Schuster
Am 21.08.2012 um 08:32 schrieb Procházka Lukáš l...@pontex.cz: On Mon, 20 Aug 2012 20:11:32 +0200, Sietse Brouwer sbbrou...@gmail.com wrote: Hi Peter, I recommend using the following handy little idiom: \ctxlua{commands.doifelse(-45 0)}{big}{small} % small It lets you do all

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Wolfgang Schuster
Am 21.08.2012 um 08:42 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: On Mon, Aug 20, 2012 at 6:26 PM, Sietse Brouwer wrote: 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

Re: [NTG-context] How to know in which page I'm?

2012-08-21 Thread Xan
Al 20/08/12 23:09, En/na Wolfgang Schuster ha escrit: 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

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Peter Rolf
Thanks for all the answers so far. The 'doifelse' should do the trick. I was hoping for a system macro, but if there is none, I have to program it myself. :-) Peter Am 21.08.2012 08:56, schrieb Wolfgang Schuster: Am 21.08.2012 um 08:32 schrieb Procházka Lukáš l...@pontex.cz: On Mon, 20

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Hans Hagen
On 20-8-2012 18:26, Sietse Brouwer wrote: 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

Re: [NTG-context] Runtime Error (TeXLive and ConTeXt )

2012-08-21 Thread Hans Hagen
On 20-8-2012 17:21, Hrothgar Boyce wrote: 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

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Hans Hagen
On 21-8-2012 08:42, Mojca Miklavec wrote: Some time ago a new stable version came out at least once per week and betas were rare, for testing features. I think that we asked Hans not to release current versions with testing features so often, so that people don't end up with broken ConTeXt. As

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Hans Hagen
On 21-8-2012 09:04, Wolfgang Schuster wrote: That's for Hans or Wolfgang … \ifx\contextversion\undefined \def\contextversion {unknown} \def\contextversionnumber{0} \else %\def\contextversionnumber#1.#2.#3 #4:#5\relax{#1\ifnum#210 0\fi#2\ifnum#310 0\fi#3 #4:#5}

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Procházka Lukáš
... I also found another solution reposter before: \ctxlua{commands.testcase(condition)} { If true...} {If false} Note that both blocks (if-true and if-false) are mandatory. Considering Wolfgang's last answer, it would be better to write: \ctxcommand{testcase(condition)}

Re: [NTG-context] test for (negative) number

2012-08-21 Thread Hans Hagen
On 21-8-2012 17:13, Procházka Lukáš wrote: I also found another solution reposter before: \ctxlua{commands.testcase(condition)} { If true...} {If false} yes, but testcase is an unfortunate name and sort of obsolete (so best use doifelse)

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Sietse Brouwer
On Tue, Aug 21, 2012 at 11:41 AM, Hans Hagen pra...@wxs.nl wrote: I know .. the problem is that I am cleaning up all the code (the status can be seen in status-mkiv.pdf) and have to find a moment of stability as such a cleanup is often leading to temporsry issues (due to renaming) no

Re: [NTG-context] subformulas: error in latest beta

2012-08-21 Thread Andreas Mang
Am Aug 19, 2012 um 11:55 AM schrieb Hans Hagen: You can put this in cont-new.mkiv (after \unprotect): \def\strc_formulas_handle_sub_numbering {\let\strc_formulas_handle_sub_numbering\relax % else error \doiftextelse\currentsubformulasuffix

Re: [NTG-context] Struggling with ConTeXt

2012-08-21 Thread Aditya Mahajan
On Tue, 21 Aug 2012, Olivier Binda wrote: 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