On Wed, Aug 6, 2008 at 12:16 PM, Alan Stone
On Wed, Aug 6, 2008 at 10:45 AM, Wolfgang Schuster
wrote: It works.
Ahaa! Now it does. I misunderstood. Thanks.
What's the reason for this Wolfgang ? From what I understood from the main manual, it logically should be distance=(x>0)pt.
'width' is the width of the box for the number and 'distance' is the distance between the numberbox and the text.
Indeed, so normally you should be setting distance=(x>0)pt instead of the width trickery. Hence my question.
Depends on the situation, for left aligned numbers it didn't matter because you can't see where the space comes from (1) but for right aligned numbers you need a postive value for distance (2). (1) Left aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext (2) Right aligned number: \starttext \bTABLE[frame=off] \bTR\bTD[width=1cm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \bTABLE[frame=off,distance=5mm] \bTR\bTD[width=5mm,align=flushright] 1 \eTD\bTD header \eTD\eTR \eTABLE \stoptext
The result is something like:
\hbox to 1em{1\hfil}\hskip 0pt{chapter title ...} ^^ ^^ width distance
Sorry, TeX is currently still like Klingon to me. Thanks anyway.
But TeX is turing complete ;-)
Hans wrote:
- maxwidth ?
just try it on long entries .. it prevents too long lines
this is a very long entry this is a very ...
Ok I see. Now, in \placecontent or \setuplist, which parameter allows to influence where long lines are cut off in two (or more) ?
Like...
(number) This long long chapter title (pagenumber)
vs.
(number) This long long chapter title (pagenumber)
Using the brute force tactic I tried setting width and textwith which didn't work. It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ?
The effect for maxwidth (3cm in my example) is this: \starttext \limitatetext {This long long chapter title} {3cm} {\unknown} \stoptext Wolfgang