Re: [NTG-context] Different os, different output (and other)

2008-04-01 Thread Aditya Mahajan
On Tue, 1 Apr 2008, Diego Depaoli wrote:

> 2008/4/1, Aditya Mahajan <[EMAIL PROTECTED]>:
>>  \defineenumeration[test][location=left,title=yes]
> title...
> I don't remember this option...

Title has been there since 2006 (I think), but it was experimental for a 
while, and not documented. Last summer, I modified some of the code so 
that enumerations can support titles (for theorems and such) and close 
symbols (for proofs). Unfortunately, did not really get enough time to 
write a My Way on it. I did write an article for this issue on MAPS about 
support for theorems which gives the details about titles. I do not know 
if the current MAPS has been published or not.

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


Re: [NTG-context] Different os, different output (and other)

2008-04-01 Thread Diego Depaoli
2008/4/1, Aditya Mahajan <[EMAIL PROTECTED]>:
> Are Opensuse and freebsd using an older version of ConTeXt? (ctxtools
>  --contextversion should tell the context version). There was a bug in
>  enumeration and conversions which was fixed around the middle of last
>  year.
You're right.
Ubuntu's version is dated september 2007, Opensuse january 2007 and
FreeBSD (tetex) 2005!


>  To get alignment you can do this
>
>  \starttest
>  {\switchtobodyfont[20pt]\bf Test} This is a test \input knuth
>  \stoptest
Many thanks, it works.

>  Hans, can \switchtobodyfont be modified so that it also works for relative
>  font size (a,b,c,x,xx)? Also something is wrong with location=left|right
>  and titles.
>
>  \defineenumeration[test][location=left,title=yes]
title...
I don't remember this option...

-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different os, different output (and other)

2008-03-31 Thread Aditya Mahajan
On Tue, 1 Apr 2008, Diego Depaoli wrote:

> Hi all,
> compiling these instructions
> \defineenumeration[parte][location=left,text=Titolo,headstyle=bold,stopper=.,width=broad,number=yes,conversion=Romannumerals]
> \defineenumeration[articolo][location=left,text=Articolo,stopper=.,width=broad,number=yes]
> \defineenumeration[subarticolo][after={\blank[small]},before={\blank[small]},text=,location=inleft,width=broad]
> \defineenumeration[altec][location=left,text=Allegato,headstyle=bold,stopper=.t,width=broad,conversion=Characters]
> \defineenumeration[subaltec][after={\blank[small]},before={\blank[small]},text=,location=inleft,width=broad]
> only under ubuntu the result is as expected:
> I,1,1,A,1
> while under opensuse and freebsd i get
> 1,1,1,1,1
> Why this?

Are Opensuse and freebsd using an older version of ConTeXt? (ctxtools 
--contextversion should tell the context version). There was a bug in 
enumeration and conversions which was fixed around the middle of last 
year.

> Another little question
> If in defineenumeration[anenumeration] I specify text={\bfc Title}
> and
> \startanenumeration{\bfc The History}\stopanenumeration
> Title and The History are not properly aligned (The History is in
> higher position).
> What's wrong?

\bfc does not correct interline spacing. If you notice, the Title is 
aligned at the top to the rest of the text.

\showmakeup
% \defineenumeration[test][location=left,text={\bfc Title}]
\defineenuemration[test][location=left,text={Title},headstyle={\bfc}]
\starttext
\starttest
{\bfc Test} This is a test \input knuth
\stoptest
\stoptext


To get alignment you can do this

\starttest
{\switchtobodyfont[20pt]\bf Test} This is a test \input knuth
\stoptest

Hans, can \switchtobodyfont be modified so that it also works for relative 
font size (a,b,c,x,xx)? Also something is wrong with location=left|right 
and titles.

\defineenumeration[test][location=left,title=yes]

\test {A very very long title string} \input knuth


The title is not taken into accound while calculating the hanging (mainly
because, I did not even consider this case while adding support for titles). I
am not sure how the output should look in this case. Should the width of title
be taken into account while calculating the hanging width, or should the title
be placed with the rest of the enumeration?

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


[NTG-context] Different os, different output (and other)

2008-03-31 Thread Diego Depaoli
Hi all,
compiling these instructions
\defineenumeration[parte][location=left,text=Titolo,headstyle=bold,stopper=.,width=broad,number=yes,conversion=Romannumerals]
\defineenumeration[articolo][location=left,text=Articolo,stopper=.,width=broad,number=yes]
\defineenumeration[subarticolo][after={\blank[small]},before={\blank[small]},text=,location=inleft,width=broad]
\defineenumeration[altec][location=left,text=Allegato,headstyle=bold,stopper=.t,width=broad,conversion=Characters]
\defineenumeration[subaltec][after={\blank[small]},before={\blank[small]},text=,location=inleft,width=broad]
only under ubuntu the result is as expected:
I,1,1,A,1
while under opensuse and freebsd i get
1,1,1,1,1
Why this?

Another little question
If in defineenumeration[anenumeration] I specify text={\bfc Title}
and
\startanenumeration{\bfc The History}\stopanenumeration
Title and The History are not properly aligned (The History is in
higher position).
What's wrong?

Thanks in advance
-- 
Diego Depaoli (very newbie)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___