Re: [NTG-context] calculating with dimension unit

2013-04-21 Thread Wolfgang Schuster
Am 22.04.2013 um 01:13 schrieb Jan Heinen : > In a book I produced with ConTeXt last year, I did a lot of calculation to be > able to change the layout dynamicaly. > > With the actual version of ConTeXt I can't compile the book. I have tried a > lot of things today ... without success. > I hop

Re: [NTG-context] calculating with dimension unit

2013-04-21 Thread luigi scarso
\starttext \setupexternalfigures[location={local,global,default}] \defineexpandable\ColumnA{30mm} \defineexpandable\ColumnB{40mm} \defineexpandable\ColumnABi{\the\dimexpr(\ColumnA + \ColumnB)} \defineexpandable\ColumnABii {\ctxlua{context([==[\ColumnA + \ColumnB]==])}} \newdimen\Colum

[NTG-context] calculating with dimension unit

2013-04-21 Thread Jan Heinen
In a book I produced with ConTeXt last year, I did a lot of calculation to be able to change the layout dynamicaly. With the actual version of ConTeXt I can't compile the book. I have tried a lot of things today ... without success. I hope my minimal-example helps you to understand, what I wan

Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Hans Hagen
On 4/21/2013 7:27 PM, Sietse Brouwer wrote: Hi Wolfgang, hi Hans, Thanks, I've updated the documentation accordingly. You have to use type 5 to create a rule for this, do you have a example where this is needed besides the one mentioned in the duden [1] example for a closing bracket. No, thi

Re: [NTG-context] csname not applicable?

2013-04-21 Thread Sietse Brouwer
> Why doesn't it seem possible to have the following macro > \def\docall#1{\csname xmlprocess#1\encsname{}{}} > and use it with \docall{buffer}? > How then accomplish this? encsname --> endcsname might do the trick. Cheers, Sietse

Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Sietse Brouwer
Hi Wolfgang, hi Hans, Thanks, I've updated the documentation accordingly. > You have to use type 5 to create a rule for this, > do you have a example where this is needed besides > the one mentioned in the duden [1] example for a > closing bracket. No, this was just a gut reaction. I can see the

[NTG-context] select setups

2013-04-21 Thread Meer, H. van der
If I have various setups like: \startxmlsetups xam:setups \xmlsetsetup{\xmldocument}{..{xam:*} \stopxmlsetups \xmlregistersetup{xam:setups} \startxmlsetups xbm:setups \xmlsetsetup{\xmldocument}{..{xbm:*} \stopxmlsetups \xmlregistersetup{xbm:setups} Is it then possible to have \xm

[NTG-context] csname not applicable?

2013-04-21 Thread Meer, H. van der
Why doesn't it seem possible to have the following macro \def\docall#1{\csname xmlprocess#1\encsname{}{}} and use it with \docall{buffer}? How then accomplish this? Runaway argument? \def \sourcenode {exam::15}\edef \currentsource {\xmlattdef {exam::15\ETC. ! File ended while scanning use of \bu

[NTG-context] xml path

2013-04-21 Thread Meer, H. van der
Having for example xml-structure: .. /node3/> With the path expression \xmlall{#1}{!node1} the should be suppressed, as happens in case. However, nodes under like should be suppressed because is suppressed. But that is not the case, these nodes do appear. Apparen

[NTG-context] setuppagenumber--start at page xy

2013-04-21 Thread H. Özoguz
Minimal example: \setuppagenumber[number=3] \starttext \input tufte \stoptext I'm using today's context version. Thanks, Jörg You could use \setcounter[userpage][2] \starttext \input tufte \stoptext Huseyin ___

[NTG-context] setuppagenumber--start at page xy

2013-04-21 Thread Jörg Hagmann
Has the code for starting pagenumbering at a given number changed? I'm using last year's template for an annual report, but can't get it to work. Minimal example: \setuppagenumber[number=3] \starttext \input tufte \stoptext I'm using today's context version. Thanks, Jörg -- Prof. Jörg Hagman

Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Hans Hagen
On 4/21/2013 10:26 AM, Wolfgang Schuster wrote: > No, you have to use \hbox too but I think a command with a speaking name would be better. \unexpanded\def\unhyphenated {\groupedcommand{\lefthyphenmin\maxdimen}\donothing} I'll add that. Hans --

Re: [NTG-context] Hyphenation documentation

2013-04-21 Thread Wolfgang Schuster
Am 20.04.2013 um 22:05 schrieb Sietse Brouwer : > Hello all, > > I've just pulled together some questions of mine and their answers, > and written them up into a hyphenation Q&A. > http://wiki.contextgarden.net/Hyphenation > http://wiki.contextgarden.net/Command/definebreakpoint > > Unfortunate