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 using adobe reader 9 for Linux and
ConTeXt  version: 2011.10.14


Ah, there is a typo in the code that deals with it (went noticed as I 
seldom look at the tagged output) .. I'll upload a fix.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 space where  
"2011" was removed?


No, sorry, I cannot draw.

BTW: The retouched pic wasn’t meant as ad itself, I wanted only to  
provide a base for one.
I find Bibby’s style a bit too oldfashioned for ConTeXt or LuaTeX,  
even if it might fit TeX or LaTeX.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 (tabulation, recommended for simple requirements)
* TABLE (natural tables, HTML tables, recommended)

I tend to use TABLE for everything, and I believe it will meet all
your stated requirements.

Pont
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 column width (2 columns, both same size)
* automatic split with repeating headers
* more than one paragraph (with fill in rules) in a cell possible (but this 
simulated by invisible cells)
* some borders (not so sure about that...)


tables like the example can best be made with bTABLE .. eTABLE or with 
the new startxtable .. stopxtable mechanism


for multi par content set align=flushleft for the cell

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 5:07 PM, Hans Hagen  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 yourself some room for the next
>> iteration; you might run out of superlatives. What will be next:
>> supermongous tables? monster tables? awesome tables? :-)
>
> Well, I needed a temporary name for the commands so I ended up with
> \startxtable and didn't want to change the namespace and macro names etc so
> the x became eXtreme. A next table mechanism will use a different character
> so then I have to make up something, like \startwtable which will then
> become 'weird tables' or so.
You can use context user names, i.e.
\startwtable is
Willi's table


ok, a dirty trick to promote the group.


-- 
luigi
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 superlatives. What will be next:
supermongous tables? monster tables? awesome tables? :-)


Well, I needed a temporary name for the commands so I ended up with 
\startxtable and didn't want to change the namespace and macro names etc 
so the x became eXtreme. A next table mechanism will use a different 
character so then I have to make up something, like \startwtable which 
will then become 'weird tables' or so.


Maybe I'll make you a

\starttabularasa
  ...
\stoptabularasa

... the ultimate minimalistic table mechanism, implemented as ...

\unexpanded\def\starttabularasa#1\stoptabularasa{}
\let\stoptabularasa\relax

... which is then also the smallest module.

Concerning the xml ... I'll probably redo cals tables in this mechanism 
and maybe even provide a bTABLE -> xtable mapping (btu I'm not sure 
about that one).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 tables? monster tables? awesome tables? :-)


I just had a look at the manual, and this looks very very nice - clean 
syntax, and might be easier to map from xml than the other models. 
Thanks Hans, I'm looking forward to playing with those!


Thomas
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 distribution somewhat in 
order to prevent misusage).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 \CONTEXT. It is a variant of the so called natural tables but
it has a different configuration. Also, the implementation is
completely different. The reason for writing it is that in one of
our projects we had to write styles for documents that had tables
spanning 30 or more pages and apart from memory constraints this
is quite a challenge for the other mechanisms, if only because
splitting them into successive floats is not possible due to
limitations of \TEX. The extreme table mechanism can handle pretty
large tables and split them too. As each cell is basically a \type
{\framed} and as we need to do two passes over the table, this
mechanism is not the fastest but it is some two times faster than
the natural tables mechanism, and in most cases can be used
instead. <<

There will probably a few additions but it's already pretty complete.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 contextgarden ad, not a generic ConTeXt ad.
>
>
> Am 2011-10-27 um 20:59 schrieb Mojca Miklavec:
>
>> I like the design by Hraban a lot, but the problem is that when a
>> LaTeX user comes to the site and sees an advertisment for a garden,
>> with a photo of garden and CTOETNT title, he has absolutely no idea
>> what the advertisment is about. My first association would be some
>> gardening tools. Even though it is visually nice, I would probably not
>> click on it unless I was interested in flowers.
>
> I thought the advertising would only appear on a TeX related site.
> Perhaps my use of Zapf Dingbats wasn’t typographical enough.
> But I don’t insist. Just delete my files on the garden.
>
>> The attachment by Hans is very nice, but doesn't tell anything, while
>> the picture of a castle is really nice and does tell some story even
>> to someone unfamiliar with ConTeXt: MathML, Metapost, XML, Lua, ...
>>
>> 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

Thank you very much, I added it to SX, feel free to vote:
 


I'm missing a clear message to the user, but I'm not sure what that
could be. I only wrote "ConTeXt" for "mouse over". Suggestions for
better text are welcome.

Mojca

PS: It is a pitty that Taco didn't send you the original high
resolution before you started, but this one is just fine. I have
chosen to do exact 0.5x magnification in order to avoid weird
artifacts, so one foot is missing now :) Something is missing in the
part where 2011 was written, but well ... we will figure something
out. I can still edit the post.
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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. Or we could build a  
collection (each conference an extra one).


I retouched this one, too:
http://wiki.contextgarden.net/File:context_knight_2011.png


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 2011-10-27 um 20:59 schrieb Mojca Miklavec:


I like the design by Hraban a lot, but the problem is that when a
LaTeX user comes to the site and sees an advertisment for a garden,
with a photo of garden and CTOETNT title, he has absolutely no idea
what the advertisment is about. My first association would be some
gardening tools. Even though it is visually nice, I would probably not
click on it unless I was interested in flowers.


I thought the advertising would only appear on a TeX related site.
Perhaps my use of Zapf Dingbats wasn’t typographical enough.
But I don’t insist. Just delete my files on the garden.


The attachment by Hans is very nice, but doesn't tell anything, while
the picture of a castle is really nice and does tell some story even
to someone unfamiliar with ConTeXt: MathML, Metapost, XML, Lua, ...

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


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 this should not be a problem. Some
sites will be reorganized, but I will inform you about details. In
particular, minimals will also change, but details will follow.

One thing that might be a tiny bit problematic are SVN repositories.
We need to upgrade them from SVN 1.5 to 1.7, so anyone using SVN
repositories from garden *might* need to do a fresh checkout. I didn't
test anything yet though, I only know that I had problems with the
client on my machine now that MacPorts upgraded SVN. (I have also
found a weird bug in 1.7.1 client.) I have no idea how server-side
upgrades behave on clients. This should more or less affect only me,
Taco and those who build binaries for minimals. Plus those who work on
meeting/group website occasionally.

Mojca
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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)
* automatic split with repeating headers
* more than one paragraph (with fill in rules) in a cell possible (but this 
simulated by invisible cells)
* some borders (not so sure about that...)


Thanks!

Patrick

(a sample is at http://i.imgur.com/ePHdn.png )

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 then the TeX routines are not good anymore.

Well, I'm not sure it's right, of course.


The lua numbers have enough precision to cast on the tex numbers (with 
rounding) but in practice I don't care too much. As we have standardized 
floats the behaviour is predictable. We could probably go completely 
float at the tex end but too many datastructures expect an integer so 
it's not worth the trouble.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] xml and lua again

2011-10-28 Thread luigi scarso
On Fri, Oct 28, 2011 at 10:56 AM, Hans Hagen  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, you get an error message). Which was a bit confusing to me
>> at first, because the name tex.dimen implies that it holds a "real"
>> dimension, like \newdim does.
>
> 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 in our universe (bp). Also,
> imagine that in good american tradition the dimension would have been inches
> while we all moved on to meters ...
>
> So, Knuth foresaw this (and also wanted predictable calculations and wanted
> to avoid unportable floating points) so he came up with his own unit: scaled
> points.
just to see the floating point in action:
\starttext
\startluacode
context(collectgarbage('count')," KB are ",collectgarbage('count')*1024," byte")
\stopluacode
\stoptext


collectgarbage('count')  returns the total memory in use by Lua (in Kbytes).

>
> At the lua end all are just integers (with some limited size but that might
> change as Taco and I want to play a bit with adding a couple of bytes and
> see to what extent that will break things).
hm, I'm bit loss here.
In CWEB I see
define max_dimen0x3FFF
so I suppose that it's a kind of int
But the type of tex.dimen is number as is the type of math.sqrt(2) as
we can see in
context(type(tex.dimen['textwidth']))
context(type(math.sqrt(2)))

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 then the TeX routines are not good anymore.

Well, I'm not sure it's right, of course.



-- 
luigi
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 in our
universe (bp). Also, imagine that in good american tradition the
dimension would have been inches while we all moved on to meters ...

So, Knuth foresaw this (and also wanted predictable calculations and
wanted to avoid unportable floating points) so he came up with his own
unit: scaled points. So, a \dimen is just a \count but consider it
tagged to show you pt for convenience when printed (\the) and the parser
permits you to enter these numbers as pt/bp/dd/cc/cm/mm etc.

At the lua end all are just integers (with some limited size but that
might change as Taco and I want to play a bit with adding a couple of
bytes and see to what extent that will break things).

In metapost the internal unit is bp (because it targets at postscript)
and there cm, mm etc are just variables that one multiplies with so
there you can change the universe by just saying "in := cm".

Skips are another story (not to speak of boxes as we do have a dimendef
but not a boxdef of inserts which are yet another class of animals).


Thanks for this philosophical explanation - I guess I'll have to reread 
these passages in the TeX book. I'm looking forward to your experiments :-)


Thomas
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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}
>
> {\tfe\setupinterlinespace …\par}
>
> > 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 more
> interline space?
>
> When you use \tfe only for the title of the book there is a simple method
> for which you don’t need the \definebodyfont setting:
>
> {\definedfont[Serif at 32pt]\setupinterlinespace …\par}
>
> Wolfgang
>
>
> ___
> 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 / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 broken into two lines, which are squashed 
> together vertically.  How can I ensure that \tfe uses more interline space?

When you use \tfe only for the title of the book there is a simple method for 
which you don’t need the \definebodyfont setting:

{\definedfont[Serif at 32pt]\setupinterlinespace …\par}

Wolfgang

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 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
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
> listinfo/ntg-context 
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : 
> http://foundry.supelec.fr/**projects/contextrev/
> wiki : http://contextgarden.net
> __**__**
> ___
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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 more interline space?

Thanks,
Alasdair
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 to add some unit to it (otherwise, you get an error message). Which was a bit confusing to me at 
first, because the name tex.dimen implies that it holds a "real" dimension, like \newdim does.



You can get the same value in TeX when you print the value of a dimension with 
\number:

\starttext

\scratchdimen=3pt

\number\scratchdimen

\ctxlua{context(tex.dimen["scratchdimen"])}

\stoptext


which also means that you can say \scratchcounter=\scratchdimen and test 
dimens as if they are numbers ... this is why we can have


\let\ifzeropt\ifcase

which probably no one ever noticed in the source.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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, because the name tex.dimen implies that it holds a "real"
dimension, like \newdim does.


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 in our 
universe (bp). Also, imagine that in good american tradition the 
dimension would have been inches while we all moved on to meters ...


So, Knuth foresaw this (and also wanted predictable calculations and 
wanted to avoid unportable floating points) so he came up with his own 
unit: scaled points. So, a \dimen is just a \count but consider it 
tagged to show you pt for convenience when printed (\the) and the parser 
permits you to enter these numbers as pt/bp/dd/cc/cm/mm etc.


At the lua end all are just integers (with some limited size but that 
might change as Taco and I want to play a bit with adding a couple of 
bytes and see to what extent that will break things).


In metapost the internal unit is bp (because it targets at postscript) 
and there cm, mm etc are just variables that one multiplies with so 
there you can change the universe by just saying "in := cm".


Skips are another story (not to speak of boxes as we do have a dimendef 
but not a boxdef of inserts which are yet another class of animals).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 
> an error message). Which was a bit confusing to me at first, because the name 
> tex.dimen implies that it holds a "real" dimension, like \newdim does.


You can get the same value in TeX when you print the value of a dimension with 
\number:

\starttext

\scratchdimen=3pt

\number\scratchdimen

\ctxlua{context(tex.dimen["scratchdimen"])}

\stoptext

Wolfgang

___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___