Re: [NTG-context] xml and lua again

2011-10-28 Thread Thomas A. Schmitz
On 10/27/11 13:05, Hans Hagen wrote: With “tex.dimen[…]” you get the value in scaled points but util-dim.lua provides some functions to convert the value in points, centimeter etc. \starttext \startluacode context.blackrule{ width = number.topoints(tex.dimen[textwidth]/2) } \stopluacode

Re: [NTG-context] xml and lua again

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 8:23 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On 10/27/11 13:05, Hans Hagen wrote: With “tex.dimen[…]” you get the value in scaled points but util-dim.lua provides some functions to convert the value in points, centimeter etc. \starttext \startluacode

Re: [NTG-context] xml and lua again

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 8:37 AM, luigi scarso luigi.sca...@gmail.com wrote: soryy, typos number.topoints(tex.dimen[textwidth]/2) gives XYZ.ABSpt number.topoints(tex.dimen[textwidth]/2) gives XYZ.ABCpt TeX reads XYZ.ABC.pt and convert to xyzsp and drops sp TeX reads XYZ.ABCpt and convert to

Re: [NTG-context] xml and lua again

2011-10-28 Thread Patrick Gundlach
context.blackrule{ width = number.topoints(tex.dimen[textwidth]/2) } or just tex.dimen[textwidth]/2 .. sp Wait, just so I understand: your solution would imply that tex.dimen[textwidth] holds a number, not a dimension, right? (Because you simply concatenate it with a dimension

Re: [NTG-context] xml and lua again

2011-10-28 Thread Thomas A. Schmitz
On 10/28/11 08:44, Patrick Gundlach wrote: context.blackrule{ width = number.topoints(tex.dimen[textwidth]/2) } or just tex.dimen[textwidth]/2 .. sp Wait, just so I understand: your solution would imply that tex.dimen[textwidth] holds a number, not a dimension, right? (Because you

Re: [NTG-context] xml and lua again

2011-10-28 Thread Wolfgang Schuster
Am 28.10.2011 um 08:55 schrieb Thomas A. Schmitz: Luigi, Patrick, thanks for your explanations! The point of my question was: can I feed the content of tex.dimen[textwidth] directly back to TeX, and the answer to this appears to be no; you need to add some unit to it (otherwise, you get

Re: [NTG-context] xml and lua again

2011-10-28 Thread Hans Hagen
Hi Thomas, thanks for your explanations! The point of my question was: can I feed the content of tex.dimen[textwidth] directly back to TeX, and the answer to this appears to be no; you need to add some unit to it (otherwise, you get an error message). Which was a bit confusing to me at first,

Re: [NTG-context] xml and lua again

2011-10-28 Thread Hans Hagen
On 28-10-2011 10:35, Wolfgang Schuster wrote: Am 28.10.2011 um 08:55 schrieb Thomas A. Schmitz: Luigi, Patrick, thanks for your explanations! The point of my question was: can I feed the content of tex.dimen[textwidth] directly back to TeX, and the answer to this appears to be no; you need

[NTG-context] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
The title page of a book of notes contains {\tfe This is the title of my book} where I have previously defined \definebodyfont[10pt,11pt,12pt][rm][tfe=Bold at 32pt] However, the title is long and is broken into two lines, which are squashed together vertically. How can I ensure that \tfe uses

Re: [NTG-context] Line spacing with a large font?

2011-10-28 Thread Thomas A. Schmitz
On 10/28/11 12:18, Alasdair McAndrew wrote: How can I ensure that \tfe uses more interline space? by adding a \par at the end. Thomas ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
Thanks, but it doesn't work: {\tfe This is the title of my book\par} still gives vertically squashed text. -Alasdair On Fri, Oct 28, 2011 at 9:19 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On 10/28/11 12:18, Alasdair McAndrew wrote: How can I ensure that \tfe uses more

Re: [NTG-context] Line spacing with a large font?

2011-10-28 Thread Thomas A. Schmitz
On 10/28/11 12:37, Alasdair McAndrew wrote: Thanks, but it doesn't work: {\tfe This is the title of my book\par} still gives vertically squashed text. Which means you should probably provide a complete example. Thomas

Re: [NTG-context] Line spacing with a large font?

2011-10-28 Thread Wolfgang Schuster
Am 28.10.2011 um 12:18 schrieb Alasdair McAndrew: The title page of a book of notes contains {\tfe This is the title of my book} {\tfe\setupinterlinespace …\par} where I have previously defined \definebodyfont[10pt,11pt,12pt][rm][tfe=Bold at 32pt] However, the title is long and is

Re: [NTG-context] Line spacing with a large font?

2011-10-28 Thread Alasdair McAndrew
Yes, that works fine - thanks very much! -Alasdair On Fri, Oct 28, 2011 at 9:41 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 28.10.2011 um 12:18 schrieb Alasdair McAndrew: The title page of a book of notes contains {\tfe This is the title of my book}

Re: [NTG-context] xml and lua again

2011-10-28 Thread Thomas A. Schmitz
On 10/28/11 10:56, Hans Hagen wrote: Just switch to philosopher mode for a while and ask yourself what implications that would have in the rather fuzzy world of printing. What is a 'real' dimension? What we call points (pt) is in other application also called points but happens to be basepoints

Re: [NTG-context] xml and lua again

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 10:56 AM, Hans Hagen pra...@wxs.nl wrote: Hi Thomas, thanks for your explanations! The point of my question was: can I feed the content of tex.dimen[textwidth] directly back to TeX, and the answer to this appears to be no; you need to add some unit to it (otherwise,

Re: [NTG-context] xml and lua again

2011-10-28 Thread Hans Hagen
i.e it's a Lua number -- a floating point. So a kind of conversion can happen between a floating point and a sp number (which has a limited range) Of course Lua has its routines, but probably they differs from TeX If I recall correctly, both use 32 bits, but if you extend to lets say 48 bit

[NTG-context] Recommended table environment?

2011-10-28 Thread Patrick Gundlach
Hello, I have a project where I think ConTeXt really fits well, so I have a first question (after a looong period of absence). Is there a recommended table environment? I give an example in the attached PDF. What I need: * have influence on the column width (2 columns, both same size) *

[NTG-context] announcing server change, possible downtime

2011-10-28 Thread Mojca Miklavec
Dear ConTeXt-ers, in the following days we will piecewise move parts of old server to a new machine (this will happen once again, but this time it might be slightly more dramatic change). Thus I would like to ask you to be patient if something stops working. The wiki has already been moved, so

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Henning Hraban Ramm
Am 2011-10-27 um 18:31 schrieb Aditya Mahajan: Personally, I am not a big fan of garden based analogy. I think that the advertisement should be of ConTeXt (with link to context garden) rather than of Contextgarden. Mojca asked for a contextgarden ad, not a generic ConTeXt ad. Am

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Henning Hraban Ramm
Am 2011-10-27 um 19:29 schrieb Hans Hagen: On 27-10-2011 18:31, Aditya Mahajan wrote: My vote is for something alone the lines of this year's graphic for the context meeting. Attached. Maybe I should commission Duane for a couple of small context lions so that we have some variation.

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Mojca Miklavec
On Fri, Oct 28, 2011 at 15:23, Henning Hraban Ramm wrote: Am 2011-10-27 um 18:31 schrieb Aditya Mahajan: Personally, I am not a big fan of garden based analogy. I think that the advertisement should be of ConTeXt (with link to context garden) rather than of Contextgarden. Mojca asked for a

[NTG-context] beta

2011-10-28 Thread Hans Hagen
Hi, I uploaded a new beta. The biggest new thing is that there is yet another table mechanism: extreme tables. There is a manual too: http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf It says in the introduction: This is a short introduction to yet another table mechanism built in

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Hans Hagen
On 28-10-2011 15:47, Mojca Miklavec wrote: PS: It is a pitty that Taco didn't send you the original high The scanning happened here, so I have the several resolution scans on my machine. On the other hand, you don't want too large images on a wiki (and there's also the issue of limiting the

Re: [NTG-context] beta

2011-10-28 Thread Thomas A. Schmitz
On 10/28/11 16:24, Hans Hagen wrote: I uploaded a new beta. The biggest new thing is that there is yet another table mechanism: extreme tables. Extreme tables - be careful, leave yourself some room for the next iteration; you might run out of superlatives. What will be next: supermongous

Re: [NTG-context] beta

2011-10-28 Thread Hans Hagen
On 28-10-2011 16:46, Thomas A. Schmitz wrote: On 10/28/11 16:24, Hans Hagen wrote: I uploaded a new beta. The biggest new thing is that there is yet another table mechanism: extreme tables. Extreme tables - be careful, leave yourself some room for the next iteration; you might run out of

Re: [NTG-context] beta

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 5:07 PM, Hans Hagen pra...@wxs.nl wrote: On 28-10-2011 16:46, Thomas A. Schmitz wrote: On 10/28/11 16:24, Hans Hagen wrote: I uploaded a new beta. The biggest new thing is that there is yet another table mechanism: extreme tables. Extreme tables - be careful, leave

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Aditya Mahajan
The only remaining problem is photoshoping the image to remove 2011 and Belgium if we want to create a generic add. Here you are: http://wiki.contextgarden.net/File:context_castle_2011.png Can you add wiki in the same style as ConTeXt from the space where 2011 was removed? Aditya

Re: [NTG-context] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV

2011-10-28 Thread Hans Hagen
On 27-10-2011 11:45, Alan Braslau wrote: \usemodule[graph] \starttext \startMPcode draw unitsquare scaled 1cm; \stopMPcode \stoptext fixed in next upload -- -

Re: [NTG-context] Recommended table environment?

2011-10-28 Thread Hans Hagen
On 28-10-2011 14:25, Patrick Gundlach wrote: Hello, I have a project where I think ConTeXt really fits well, so I have a first question (after a looong period of absence). Is there a recommended table environment? I give an example in the attached PDF. What I need: * have influence on the

Re: [NTG-context] Recommended table environment?

2011-10-28 Thread Pontus Lurcock
On Fri 28 Oct 2011, Patrick Gundlach wrote: I have a project where I think ConTeXt really fits well, so I have a first question (after a looong period of absence). Is there a recommended table environment? Indeed there is -- see http://wiki.contextgarden.net/Tables_Overview : * Tabulate

Re: [NTG-context] looking for volunteer to create a ConTeXt ad (220x250 px)

2011-10-28 Thread Henning Hraban Ramm
Am 2011-10-28 um 18:07 schrieb Aditya Mahajan: The only remaining problem is photoshoping the image to remove 2011 and Belgium if we want to create a generic add. Here you are: http://wiki.contextgarden.net/File:context_castle_2011.png Can you add wiki in the same style as ConTeXt from the

Re: [NTG-context] accessibility of PDF (inter word space

2011-10-28 Thread Hans Hagen
On 27-10-2011 11:22, Stefan Goßrau wrote: thanks for your answer Hans. Now i found some examples. Bot for me it doesnt work. I tried the documents in http://minimals.contextgarden.net/current/context/test/doc/context/tests/mkiv/tags/ but there are no spaces between words in reflow-mode. I am