Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Natural tables have “odd” and “even” keywords for \setupTABLE but none in the way you like it. What I would do is to use a overlay in combination with metapost to create the background but there is no global register to access the current column/row of a cell, e.g. \currenttablecolumn (this

[NTG-context] Wiki example compilation failure

2012-09-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, maybe the known problem with the wiki and the current Ctx versions. The following code: \setuppapersize[A5] \starttext \definedelimitedtext[mydt] \setupdelimitedtext[mydt][left=\leftguillemot,right=\rightguillemot] \quotation{Clancy of the Overflow}, by Banjo Paterson \startmydt

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Sietse Brouwer
Hi Lukáš, (CC Mojca, Taco) [\setupdelimitedtext example] is successfully compiled by the current Ctx version whilst the same example on http://wiki.contextgarden.net/Command/setupdelimitedtext is not. Yes, the wiki's ConTeXt installation is about a year old, as you can see at

Re: [NTG-context] Darwin x86_64 is not supported yet error.

2012-09-03 Thread Mojca Miklavec
On Mon, Sep 3, 2012 at 6:51 AM, Jeong Dalyoung wrote: Dear all, Today I tried to update ConTeXt using first setup and got an error message: Error: your system Darwin x86_64 is not supported yet. first setup worked well before I upgrade Mac OS to Mountain Lion from snow leopard two weeks

Re: [NTG-context] Darwin x86_64 is not supported yet error.

2012-09-03 Thread Sietse Brouwer
Hi Jeong, Like Mojca says, this is very strange. I've attached a trimmed-down version of first-setup.sh with some debug print statements sprinkled in; could you run that and post its output here? The output should be something like this, possibly without the two 'branch' lines. === system branch

[NTG-context] Czech typographic speciality

2012-09-03 Thread Mikoláš Štrajt
___ 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 /

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 03 Sep 2012 10:01:25 +0200, Sietse Brouwer sbbrou...@gmail.com wrote: http://wiki.contextgarden.net/Help:Context BTW: Which of the following specifications is correct [for wiki]: context mode=mkiv source=yes or context mode=mkiv source=yes? The former is used in the prelast example

Re: [NTG-context] About Chapter head definition and FunnyFrame

2012-09-03 Thread dalyoung
Dear Wolfgang, Both of your methods are working fine. \define[2]\Myheader{?} with a recent beta or \unexpanded\def\Myheader#1#2{?} I also find out a new method '\defineheadalternative' too. Thank you so much. Best regards, Dalyoung

Re: [NTG-context] Darwin x86_64 is not supported yet error.

2012-09-03 Thread dalyoung
Dear Mojca and Sietse, Thank for your concern. I have tried to update ConTeXt installed in a MacBook which was upgraded to Mountain Lion a week ago too. First-setup.sh runs very well without any errors. Tomorrow, I will run your first-setup.sh in a iMac which had a problem to update. I'll

[NTG-context] underbar/margin text

2012-09-03 Thread Daniel Schopper
Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Sietse Brouwer
Procházka Lukáš wrote: BTW: Which of the following specifications is correct [for wiki]: context mode=mkiv source=yes or context mode=mkiv source=yes? Both work. Because both work, we have no way to force future edits to be XHTML compliant, so I don't think it is productive to try to enforce

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 03 Sep 2012 14:18:14 +0200, Sietse Brouwer sbbrou...@gmail.com wrote: context mode=mkiv source=yes or context mode=mkiv source=yes? Both work. Because both work, we have no way to force future edits to be XHTML compliant, so I don't think it is productive to try to enforce XHTML

[NTG-context] Page number in the edge

2012-09-03 Thread Marco Patzer
Hi, moving the page number into the edge in the following way seems straightforward, but fails. “edge” is not recognised as “margin” or “header” is. I wonder why. Is this intended or am I misusing the command? \setuplayout [backspace=5cm, width=10cm, edge=1cm] \setuppagenumbering

Re: [NTG-context] \setupdelimitedtext not working in TeXLive 2012

2012-09-03 Thread Bill Meahan
On 09/03/2012 12:31 AM, Wolfgang Schuster wrote: Am 03.09.2012 um 04:14 schrieb Bill Meahan subscribed_li...@meahan.net: The syntax changed in MkIV, you need now \setupdelimitedtext[quotation:1][..,..=..,..] etc. Thanks, Wolfgang! Super-helpful as always and much appreciated. -- Bill

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-03 Thread Aditya Mahajan
On Mon, 3 Sep 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Natural tables have “odd” and “even” keywords for \setupTABLE but none in the way you like it. What I would do is to use a overlay in combination with metapost to create the background but there is no global register to access

[NTG-context] ConTeXt color to text

2012-09-03 Thread Peter Rolf
Hi, for a batch command (ImageMagick) I need to convert ConTeXt colors to a text representation (e.g. rgb 'red' - 'rgb(255,0,0)'; same for color models cmyk and gray). What is the best way to get (read only) access to the color channels of a defined color? Peter

Re: [NTG-context] ConTeXt color to text

2012-09-03 Thread Hans Hagen
On 3-9-2012 18:59, Peter Rolf wrote: Hi, for a batch command (ImageMagick) I need to convert ConTeXt colors to a text representation (e.g. rgb 'red' - 'rgb(255,0,0)'; same for color models cmyk and gray). What is the best way to get (read only) access to the color channels of a defined color?

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-03 Thread Michael Rogers
If you know the width of the first column and total width, then you can use arithmetic, as in the example below. But perhaps this already occurred to you, and you were wondering if the widths and stretching can be handled automatically -- the short answer is I don't know. \starttext

[NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Marco Patzer
Hi, how do I include the chapter number in the figure numbering? The following example used to produce (as of November 2011) “Figure 1.1”. A current beta yields merely “Figure 1”. \starttext \startchapter [title=Foo] \startplacefigure [title=Bar] \stopplacefigure \stopchapter

Re: [NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Sietse Brouwer
Marco Patzer wrote: how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] or \setupcaption[figure][prefixsegment=chapter] should both work. (The former should affect table captions, too.) Slightly more at

Re: [NTG-context] Darwin x86_64 is not supported yet error.

2012-09-03 Thread dalyoung
Dear Sietse, I run your code and got the following result: === system branch is Darwin: Darwin === cpu branch is x86_64: x86_64 === system: Darwin === cpu: x86_64 === platform: osx-64 It seems to me that the system is OK. But first-setup.sh issues the same error message. After

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-03 Thread Aditya Mahajan
On Mon, 3 Sep 2012, Michael Rogers wrote: On Sep 2, 2012, at 12:24 PM, Aditya Mahajan wrote: Is it possible to stretch the widths of each column in natural TABLEs, so that the widths are in a certain propotion? For example, suppose I have a table with three columns and I want to set the

[NTG-context] Weird result for autowidth=force in framed

2012-09-03 Thread Aditya Mahajan
Hi, autowidth=force only works if I also set align=something. Is this a bug or a feature? \starttext \framed[width=5cm, autowidth=force, align=normal]{Small} \framed[width=5cm, autowidth=force, align=]{Small} \framed[width=5cm, autowidth=force,]{Small} \stoptext Aditya

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-03 Thread Aditya Mahajan
On Sun, 2 Sep 2012, Aditya Mahajan wrote: Hi, Is it possible to stretch the widths of each column in natural TABLEs, so that the widths are in a certain propotion? For example, suppose I have a table with three columns and I want to set the width of the first column to a fixed amount, and

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-03 Thread Rogers, Michael K
On Sep 3, 2012, at 9:39 PM, Aditya Mahajan wrote: On Mon, 3 Sep 2012, Michael Rogers wrote: On Sep 2, 2012, at 12:24 PM, Aditya Mahajan wrote: Is it possible to stretch the widths of each column in natural TABLEs, so that the widths are in a certain propotion? For example, suppose I have

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-03 Thread Aditya Mahajan
On Tue, 4 Sep 2012, Rogers, Michael K wrote: On Sep 3, 2012, at 9:39 PM, Aditya Mahajan wrote: On Mon, 3 Sep 2012, Michael Rogers wrote: On Sep 2, 2012, at 12:24 PM, Aditya Mahajan wrote: Is it possible to stretch the widths of each column in natural TABLEs, so that the widths are in a

Re: [NTG-context] Darwin x86_64 is not supported yet error.

2012-09-03 Thread dalyoung
Dear Sietse, I download first-setup.sh and run it. It runs well and updates everything. the updated version is ConTeXt ver: 2012.08.28 20:00 MKIV fmt: 2012.9.4 Thank you for your help. Best regards, Dalyoung