ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: goto(box) and setuplist questions
Date: Wed, 6 Aug 2008 17:03:03 +0200	[thread overview]
Message-ID: <115224fb0808060803u24e8f9c5rcf9c0f485d0fb3ad@mail.gmail.com> (raw)
In-Reply-To: <326847810808060715ibda42d9i82c32362a121119a@mail.gmail.com>

On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone
<software.list.1es9s@gmail.com> wrote:
> On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> 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
>>
> I just tried with
>
> style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]}
>
> 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...

Was the empty line also in your source, if your answer is yes remove it.

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
___________________________________________________________________________________


  parent reply	other threads:[~2008-08-06 15:03 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-04 11:06 Alan Stone
2008-08-04 12:23 ` Hans Hagen
2008-08-04 14:44   ` Alan Stone
2008-08-04 14:52     ` Wolfgang Schuster
2008-08-04 20:57       ` Alan Stone
2008-08-05  8:29         ` Wolfgang Schuster
2008-08-05 11:07           ` Alan Stone
2008-08-05 11:16             ` Wolfgang Schuster
2008-08-06  7:12               ` Alan Stone
2008-08-06  8:45                 ` Wolfgang Schuster
2008-08-06 10:16                   ` Alan Stone
2008-08-06 13:26                     ` Wolfgang Schuster
2008-08-06 14:15                       ` Alan Stone
2008-08-06 14:59                         ` Wolfgang Schuster
2008-08-06 16:07                           ` Alan Stone
2008-08-06 18:45                             ` Alan Stone
2008-08-07  6:26                               ` Wolfgang Schuster
2008-08-07  7:48                               ` Wolfgang Schuster
2008-08-07  6:24                             ` Wolfgang Schuster
2008-08-06 15:03                         ` Wolfgang Schuster [this message]
2008-08-06 15:13                           ` Alan Stone
2008-08-06 10:25                   ` Alan Stone
2008-08-06 11:03                     ` Wolfgang Schuster
2008-08-06 12:09                       ` Alan Stone

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=115224fb0808060803u24e8f9c5rcf9c0f485d0fb3ad@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).