[NTG-context] Add new unit to \unit comand

2013-10-04 Thread Giuseppe Fierro
Hi, I'm a civil engineer and I like to use ConTeXt to write my report etc. As engineer i use a lot of units in my writing and the \unit command works nice with this. What I need is a new unit, a quadratic unit like this: Area Moment of Inertia - Metric units mm4 cm4 m4 This kind of units are

Re: [NTG-context] Add new unit to \unit comand

2013-10-04 Thread luigi scarso
On Thu, Oct 3, 2013 at 2:19 PM, Giuseppe Fierro giuse...@fierro.org wrote: Hi, I'm a civil engineer and I like to use ConTeXt to write my report etc. As engineer i use a lot of units in my writing and the \unit command works nice with this. What I need is a new unit, a quadratic unit like

[NTG-context] Lua \let

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello all, how to call \let from within Lua? I'd need to \let\T=4 using Lua. The following code doesn't work (not so surprisingly): \startluacode a = 4 \stopluacode \expandafter\let\expandafter\T=\cldcontext{a} \starttext Test \T. \stoptext What's the correct way? TIA.

Re: [NTG-context] Lua \let

2013-10-04 Thread Hans Hagen
On 10/4/2013 10:47 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello all, how to call \let from within Lua? I'd need to \let\T=4 using Lua. The following code doesn't work (not so surprisingly): \startluacode a = 4 \stopluacode \expandafter\let\expandafter\T=\cldcontext{a}

Re: [NTG-context] Lua \let

2013-10-04 Thread Wolfgang Schuster
Am 04.10.2013 um 10:47 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello all, how to call \let from within Lua? I'd need to \let\T=4 using Lua. The following code doesn't work (not so surprisingly): \startluacode a = 4 \stopluacode

[NTG-context] \setupTABLE strangeness

2013-10-04 Thread Peter Münster
Hi, Is this wanted or a bug? If it's wanted, then why? --8---cut here---start-8--- \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm,

Re: [NTG-context] Lua \let

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Oct 2013 10:54:37 +0200, Hans Hagen pra...@wxs.nl wrote: On 10/4/2013 10:47 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello all, how to call \let from within Lua? I'd need to \let\T=4 using Lua. The following code doesn't work (not so surprisingly): \startluacode

Re: [NTG-context] \setupTABLE strangeness

2013-10-04 Thread Wolfgang Schuster
Am 04.10.2013 um 10:57 schrieb Peter Münster pmli...@free.fr: Hi, Is this wanted or a bug? If it's wanted, then why? --8---cut here---start-8--- \starttext \section{Why is

Re: [NTG-context] \setupTABLE strangeness

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Peter, two more ways which work OK (my preferred ways): \section{Alt 1} \bTABLE \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE... \bTR \bTD bla \eTD \eTR \eTABLE \section{Alt 2} \bTABLE[width=3cm, height=3cm, align={middle,

[NTG-context] passvariable(); path problem

2013-10-04 Thread Peter Rolf
Hi, I played around with the new passvariable() option and ran into errors when passing a path. Used the latest beta (01.10.2013). Can someone confirm this? Peter \starttext \startMPcode passvariable(path,fullcircle scaled 1cm) ; \stopMPcode \stoptext

[NTG-context] Sectioning from 0?

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to force a section command to have its own number, e.g. 0? E.g.: \section{A} \subsection{B} \subsection[ownnumber=0]{C} \subsection[ownnumber=XX]{D} to produce: 1 A 1.1 B 1.0 C 1.XX D Maybe \start/stop-subsection would be better for this case... But how?

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Peter Münster
On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \subsection[ownnumber=0]{C} Maybe \start/stop-subsection would be better for this case... But how? Did you try this: \starttext \startsection[ownnumber=123, title=A] bla \stopsubsection \stoptext ? ;) -- Peter

Re: [NTG-context] passvariable(); path problem

2013-10-04 Thread Hans Hagen
On 10/4/2013 2:52 PM, Peter Rolf wrote: Hi, I played around with the new passvariable() option and ran into errors when passing a path. Used the latest beta (01.10.2013). Can someone confirm this? in mp-mlib.mpiv: vardef mfun_path_to_string(expr p) = mfun_point_to_string(p,1) for i=2

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Oct 2013 16:11:10 +0200, Peter Münster pmli...@free.fr wrote: On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \subsection[ownnumber=0]{C} Maybe \start/stop-subsection would be better for this case... But how? Did you try this: \starttext

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Mari Voipio
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote: \startsection[ownnumber=123, title=A] bla \stopsubsection ? (They should be a pair, shouldn't they? Just in case somebody tries to cut-and-paste the code...) Mari

Re: [NTG-context] error when installing ConTeXt Standalone

2013-10-04 Thread Schmitz Thomas A.
On Oct 3, 2013, at 8:57 PM, Pablo Rodríguez oi...@gmx.es wrote: Installing zsh gives the same error, but I don’t have zsh installed (I removed after installing it to test this). I play around with quite a few linux distributions and use them on a regular basis. The error only crops up on

Re: [NTG-context] Sectioning from 0?

2013-10-04 Thread Peter Münster
On Fri, Oct 04 2013, Mari Voipio wrote: \startsection[ownnumber=123, title=A] bla \stopsubsection (They should be a pair, shouldn't they? Why should we bother? It just works... ;-)) -- Peter ___

Re: [NTG-context] Alignment table with comma, and long long space after

2013-10-04 Thread Hans Hagen
On 9/23/2013 8:11 PM, Wolfgang Schuster wrote: Am 23.09.2013 um 15:45 schrieb Xan dxpubl...@telefonica.net: On Sun, 22 Sep 2013 19:31:33 +0200 Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit: You can show us a *complete* minimal example. Wolfgang What is at final? It’s a bug in

[NTG-context] ownnumber and incrementing

2013-10-04 Thread Peter Münster
Hi, After using ownnumber=N, how can I continue incrementing the sectionnumbers with (N + 1) please? Example: --8---cut here---start-8--- \starttext \startsection[title=number 1] bla \stopsection \startsection[title=number 5, ownnumber=5]

[NTG-context] flowchart: \comment does not work with background

2013-10-04 Thread Peter Münster
Hi, The flowchart disappears when using background=mytest here: --8---cut here---start-8--- \usemodule[chart] \startuniqueMPgraphic{mytest} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; fill p withcolor green ; \stopuniqueMPgraphic

Re: [NTG-context] Alignment table with comma, and long long space after

2013-10-04 Thread hwitloc
I'd like to try out the new experimental mechanism for tables mentioned below. Is it correct that I need the standalone version to do this? If standalone, are there differenct versions that I must select between? For example a stable standalone, verses experimental by date or name. Thanks