From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Different os, different output (and other)
Date: Mon, 31 Mar 2008 19:51:21 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.1.00.0803311918060.10872@nqv-yncgbc> (raw)
In-Reply-To: <83e5fb980803311537t3d478e3xc98d2131a9d003c@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-03-31 23:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 22:37 Diego Depaoli
2008-03-31 23:51 ` Aditya Mahajan [this message]
2008-04-01 19:39 ` Diego Depaoli
2008-04-02 4:21 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0803311918060.10872@nqv-yncgbc \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).