[NTG-context] Firstline mechanism broken

2013-09-21 Thread Marco Patzer
Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] Firstline mechanism broken

2013-09-21 Thread Hans Hagen
On 9/21/2013 10:33 AM, Marco Patzer wrote: Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext fyi: i simplified some node processing code and when keeping

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Hans Hagen
On 9/21/2013 7:50 AM, Thangalin wrote: Hi, The attached file does not compile in ConTeXt. However, if the \placeindex is substituted for \completeindex, then the document compiles. Any idea how to use a deeptextcommand and firstcharacter as shown in the attachment while also using the

[NTG-context] Missing { inserted using placefigure and postponing

2013-09-21 Thread Marco Patzer
Hi, I get a “Missing { inserted.” error under certain circumstances. Here is an example: \starttext \blackrule [height=8cm] \startpostponing \placefigure [] {foo}{bar} \stoppostponing \blackrule [height=15cm] \startlines a b \stoplines \stoptext I used black rules

Re: [NTG-context] startitemize bad with columns

2013-09-21 Thread Xan
By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column. How can I force that number of itemize and the formula will be in the same column: Simplifiqueu (potser sigui conveninent factoritzar el nombres més

Re: [NTG-context] startitemize bad with columns

2013-09-21 Thread Hans Hagen
On 9/21/2013 1:14 PM, Xan wrote: By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column. How can I force that number of itemize and the formula will be in the same column: Simplifiqueu (potser sigui

Re: [NTG-context] Missing { inserted using placefigure and postponing

2013-09-21 Thread Hans Hagen
On 9/21/2013 12:01 PM, Marco Patzer wrote: Hi, I get a “Missing { inserted.” error under certain circumstances. Here is an example: \starttext \blackrule [height=8cm] \startpostponing \placefigure [] {foo}{bar} \stoppostponing \blackrule [height=15cm] \startlines

Re: [NTG-context] startitemize bad with columns

2013-09-21 Thread Xan
\startformula goes into displaymode so is used in cases like \startmixedcolumns[balance=yes] \placeformula\startformula 5^{-3} \colon 5^4 \stopformula \placeformula\startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \placeformula\startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula

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

2013-09-21 Thread Xan
Hi, I have this \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] %

[NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Xan
hi, In LaTeX: http://osl.ugr.es/CTAN/info/symbols/comprehensive/symbols-a4.pdf \diameter produces a diameter symbol. What is the equivalent in ConTeXt? Is there any compilation of symbols avaliable in ConTeXt? I can't find no references. Xan.

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Aditya Mahajan
On Sat, 21 Sep 2013, Marco Patzer wrote: Is there any compilation of symbols avaliable in ConTeXt? Not that I'm aware of. In ConTeXt you have easy access to all characters of any font¹. Either input the character directly if it's present in the current font or you can create a symbol: Or

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Xan
On 2013–09–21 Xan wrote: \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Really varnothing is not the same as diameter (see the reference of LaTeX I posted before) Have a look at char-def.lua for a list of context names for various

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: On 2013–09–21 Xan wrote: \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Really varnothing is not the same as diameter (see the reference of LaTeX I posted before) \def\diameter{\char2300} How can I

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Xan
Really varnothing is not the same as diameter (see the reference of LaTeX I posted before) \def\diameter{\char2300} This (\char2300) is really what I want. Sorry if I don't understand you. Xan. ___ If

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Aditya Mahajan
On Sat, 21 Sep 2013, Marco Patzer wrote: On 2013–09–21 Xan wrote: \diameter really is U+2300 I think. Diameter is U+2300, indeed. And that's exactly what I wrote in my previous mail ⌀ or \varnothing. Hans, could you add the following to char-def.lua [0x2300]={ category=so,

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Wolfgang Schuster
Am 21.09.2013 um 18:25 schrieb Marco Patzer li...@homerow.info: On 2013–09–21 Xan wrote: On 2013–09–21 Xan wrote: \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Really varnothing is not the same as diameter (see the reference of LaTeX I

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

2013-09-21 Thread Wolfgang Schuster
Am 21.09.2013 um 16:22 schrieb Xan dxpubl...@telefonica.net: Hi, I have this \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}]

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Hi, Most programming languages allow extraction of a character or substring from a string. For example, if I wanted to stylize the word Index: *I...* Index *...X* It would be handy to do something like: \bold{\getcharacter[1]{#!}}... #1 ...\bold{\getcharacter[\stringlength{#!}]} That is a

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Sorry, I missed a {#1}: \bold{\getcharacter[1]{#1}}... #1 ...\bold{\getcharacter[\ stringlength{#1}{#1}]} Best regards. ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] ConTeXt Manual Errata

2013-09-21 Thread Marco Patzer
On 2013–09–18 Thangalin wrote: Hi Dave, During a recent plane ride, I started to read the ConTeXt manual to get a better understanding: http://www.ctex.org/documents/context/cont-enp.pdf A more recent manual can be found at http://pmrb.free.fr/contextref.pdf If anyone has plans to

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Wolfgang Schuster
Am 21.09.2013 um 19:11 schrieb Thangalin thanga...@gmail.com: Hi, Most programming languages allow extraction of a character or substring from a string. For example, if I wanted to stylize the word Index: I... Index ...X It would be handy to do something like:

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Hi, Wolfgang. I tried dropping in the Lua code, but it does not extract the text: \define[1]\StyleChapter{% \StyleChapterFramed{% \framed[align=right, frame=off]{% \startoverlay \color[ColourSecondaryLightest]{% \cldcontext{string.sub(#1,0,1)} }

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Ah, I think this does it: \cldcontext{string.sub(#1,0,1)}% Automatically expands the macro. Nice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Wolfgang Schuster
Am 21.09.2013 um 20:46 schrieb Thangalin thanga...@gmail.com: Hi, Wolfgang. I tried dropping in the Lua code, but it does not extract the text: \define[1]\StyleChapter{% \StyleChapterFramed{% \framed[align=right, frame=off]{% \startoverlay

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Hans Hagen
On 9/21/2013 7:11 PM, Thangalin wrote: Hi, Most programming languages allow extraction of a character or substring from a string. For example, if I wanted to stylize the word Index: *I...* Index *...X* It would be handy to do something like: \bold{\getcharacter[1]{#!}}... #1

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Hans Hagen
On 9/21/2013 5:14 PM, Marco Patzer wrote: On 2013–09–21 Xan wrote: \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing