On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
> On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>>
>> 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
>
> I'm impressed...
>
> So you really have an MBA in Klingon!  :O)
>
>> > 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
>
> I just tried with
>
> style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]}

\starttext

\framed{text}

\thinrule

\setuplinewidth[small]

\framed{text}

\thinrule

\setuplinewidth[1cm]

\framed{text}

\thinrule

\stoptext

> and several values for (x) in
>
> \startinteractionmenu[myMenu]
>  \placecontent[
>     criterium=all,
>     alternative=b,
> %    style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]},
> style={\switchtobodyfont[small]\setuplinewidth[150pt]\setupinterlinespace[line=2.4ex]},
>     interaction=all,
>     before={\blank[small]\startnarrower[left,right]},
>     after={\stopnarrower\blank[medium]}]
> \stopinteractionmenu
>
> but that generates a compile error. Grrr...


You could try


style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},

or

style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},

The better way is to define you own list alternative.

\define[3]\ChapterList
  {\hbox
     {\hbox to .5em{#1}\hskip.5em
      \vtop{\hsize150pt\relax#2}%
      \hfil#3}}

\setuplist[chapter][alternative=command,command=\ChapterList]

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

Reply via email to