Hi, (1) \goto(box) (1a) What's the difference between - goto and gotobox ? (1b) With \goto{Table of Contents}[contents] each word separately is interactive, not the whole word. How do you make so ? (3) \setuplist (3a) what is - depth ? - maxwidth ? (3b) margin=xpt sets the left margin to xpt How to set the right margin to xpt ? Thanks, Alan
Alan Stone wrote:
Hi,
(1) \goto(box)
(1a) What's the difference between
- goto and gotobox ?
(1b) With \goto{Table of Contents}[contents] each word separately is interactive, not the whole word. How do you make so ?
gotobox does not split, just try both commands on a combination of words; also, gotobox does not check if the area is comfortable clickable (so you might need to add struts) (in a lists there are optins like interaction-all which makes the whole toc entry clockable)
(3) \setuplist
(3a) what is
- depth ?
detail .. sometimes you need to manipulat ethe depth of lines; seldom needed
- maxwidth ?
just try it on long entries .. it prevents too long lines this is a very long entry this is a very ...
(3b) margin=xpt sets the left margin to xpt
How to set the right margin to xpt ?
depends, sometimes setting the width works ok, otherwise wrap the whole in narrower ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
(3b) margin=xpt sets the left margin to xpt
How to set the right margin to xpt ?
depends, sometimes setting the width works ok, otherwise wrap the whole in narrower
I'm out of inspiration... \setupnarrower[left=.6pt,right=.6pt] \startinteractionmenu[right] % \startnarrower % sets a wide right margin, whatever \setnarrower left/right settings \placecontent[ % criterium=all, criterium=chapter, alternative=b, style=\tfx, % offset=5pt, % no effect at all % margin=5pt, % only sets left margin % width=.90\rightedge, % no effect at all % before=\startnarrower, % no effect at all % after=\stopnarrower, % no effect at all interaction=all] % \stopnarrower \stopinteractionmenu % \startnarrower % blank menu \setupinteractionmenu[right][ % offset=5pt, % no effect at all % width=.95\rightedge, % no effect at all % before=\startnarrower, % sets a wide right margin, % after=\stopnarrower, % whatever \setnarrower left/right settings distance=overlay] % \stopnarrower Alan
On Mon, Aug 4, 2008 at 4:44 PM, Alan Stone
(3b) margin=xpt sets the left margin to xpt
How to set the right margin to xpt ?
depends, sometimes setting the width works ok, otherwise wrap the whole in narrower
I'm out of inspiration...
\setupnarrower[left=.6pt,right=.6pt]
\startinteractionmenu[right] % \startnarrower % sets a wide right margin, whatever \setnarrower left/right settings \placecontent[ % criterium=all, criterium=chapter, alternative=b, style=\tfx, % offset=5pt, % no effect at all % margin=5pt, % only sets left margin % width=.90\rightedge, % no effect at all % before=\startnarrower, % no effect at all % after=\stopnarrower, % no effect at all interaction=all] % \stopnarrower \stopinteractionmenu
% \startnarrower % blank menu \setupinteractionmenu[right][ % offset=5pt, % no effect at all % width=.95\rightedge, % no effect at all % before=\startnarrower, % sets a wide right margin, % after=\stopnarrower, % whatever \setnarrower left/right settings distance=overlay] % \stopnarrower
Make a real example. Wolfgang
I'm looking to have in the menu... - chapter title centered - section title left aligned - for long chapter/section titles split over more than 1line, vertical space between these chapter/section lines to be smaller - left and right margin of (x)pt \setuppapersize[S6][S6] \setupbodyfont[14.4pt] %\showframe \setuppagenumbering[alternative=singlesided] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][ criterium=all, aligntitle=yes, interaction=all] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] %\setupnarrower[left=5pt,right=5pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, % distance=2pt, % no effect style=\tfx, % \tfxx is too small to read % offset=5pt, % no effect % margin=5pt, % only sets left margin % width=.9\rightedgewidth, % chapter title gets whacked out of rightedge % maxwidth=.9\rightedgewidth, % no effect interaction=all, before=\startnarrower, % sets a default left and right margin, i.e. independent after=\stopnarrower] % of left/right setting % before=, % after=] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][ % offset=5pt, % no effect % width=.9\rightedgewidth, % no effect % maxwidth=.9\rightedgewidth, % no effect % before=\startnarrower, % no effect % after=\stopnarrower, % no effect distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext
On Mon, Aug 4, 2008 at 10:57 PM, Alan Stone
I'm looking to have in the menu...
- chapter title centered - section title left aligned - for long chapter/section titles split over more than 1line, vertical space between these chapter/section lines to be smaller - left and right margin of (x)pt
\setuppapersize[S6][S6]
\setupbodyfont[14.4pt]
%\showframe
\setuppagenumbering[alternative=singlesided]
\setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt]
\setuplist[chapter,section][ criterium=all, aligntitle=yes, interaction=all]
\setuphead[chapter][number=yes] \setuphead[section][number=no]
\setupbackgrounds[text][rightedge][frame=on]
\setupinteraction[ state=start, menu=on, page=yes]
\setupnarrower[left=1pt,right=1pt] %\setupnarrower[left=5pt,right=5pt]
\defineinteractionmenu[myMenu][right]
\startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, % distance=2pt, % no effect style=\tfx, % \tfxx is too small to read % offset=5pt, % no effect % margin=5pt, % only sets left margin % width=.9\rightedgewidth, % chapter title gets whacked out of rightedge % maxwidth=.9\rightedgewidth, % no effect interaction=all, before=\startnarrower, % sets a default left and right margin, i.e. independent after=\stopnarrower] % of left/right setting % before=, % after=] \stopinteractionmenu
\setupinteractionmenu[myMenu][state=start]
\setupinteractionmenu[right][ % offset=5pt, % no effect % width=.9\rightedgewidth, % no effect % maxwidth=.9\rightedgewidth, % no effect % before=\startnarrower, % no effect % after=\stopnarrower, % no effect distance=overlay]
\starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext
Slightly modfied: \setuppapersize[S6][S6] \setupbodyfont[14.4pt] \setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt] \setuplist[chapter,section][aligntitle=yes,criterium=all] \setuplist[chapter][align=middle] \setuphead[chapter][number=yes] \setuphead[section][number=no] \setupbackgrounds[text][rightedge][frame=on] \setupinteraction[ state=start, menu=on, page=yes] \setupnarrower[left=1pt,right=1pt] \defineinteractionmenu[myMenu][right] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower}, after={\stopnarrower\blank[medium]}, ] \stopinteractionmenu \setupinteractionmenu[myMenu][state=start] \setupinteractionmenu[right][distance=overlay] \starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext Wolfgang
Thanks for these finishing touches Wolfgang. I'm troubled by the following though... - whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same - when setting for example \setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title ConTeXt ver: 2008.07.10 08:40 MKIV fmt: 2008.7.10 int: english/english Alan On Tue, Aug 5, 2008 at 10:29 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Slightly modfied:
\setuppapersize[S6][S6]
\setupbodyfont[14.4pt]
\setuplayout [width=360pt, headerheight=7pt, footerheight=7pt, margin=0pt, backspace=25pt, topheight=7pt, bottomheight=7pt, rightedgedistance=20pt, rightedge=180pt]
\setuplist[chapter,section][aligntitle=yes,criterium=all] \setuplist[chapter][align=middle]
\setuphead[chapter][number=yes] \setuphead[section][number=no]
\setupbackgrounds[text][rightedge][frame=on]
\setupinteraction[ state=start, menu=on, page=yes]
\setupnarrower[left=1pt,right=1pt]
\defineinteractionmenu[myMenu][right]
\startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower}, after={\stopnarrower\blank[medium]}, ] \stopinteractionmenu
\setupinteractionmenu[myMenu][state=start]
\setupinteractionmenu[right][distance=overlay]
\starttext \chapter{This Long Chapter Title} \section{This Long Section Title A} \input knuth \section{This Long Section Title B} \input zapf \stoptext
Wolfgang
On Tue, Aug 5, 2008 at 1:07 PM, Alan Stone
Thanks for these finishing touches Wolfgang.
I'm troubled by the following though...
- whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same
Use \startnarrower[left,right].
- when setting for example \setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title
\setuplist[chapter][align=middle,distance=0pt,width=1em] Wolfgang
On Tue, Aug 5, 2008 at 1:16 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
- whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same
Use \startnarrower[left,right].
Used it, still doesn't work.
- when setting for example
\setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title
\setuplist[chapter][align=middle,distance=0pt,width=1em]
This works. What's the reason for this Wolfgang ? From what I understood from the main manual, it logically should be distance=(x>0)pt. Best, Alan
On Wed, Aug 6, 2008 at 9:12 AM, Alan Stone
On Tue, Aug 5, 2008 at 1:16 PM, Wolfgang Schuster
wrote: - whatever the dimension (number and/or unit) I set for \setupnarrower[left=1pt,right=1pt] the left and right margin remain the same
Use \startnarrower[left,right].
Used it, still doesn't work.
It works. \setupnarrower[left=1em,right=1em] \startinteractionmenu[myMenu] \placecontent[ criterium=all, alternative=b, style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, interaction=all, before={\blank[small]\startnarrower[left,right]}, after={\stopnarrower\blank[medium]}, ] \stopinteractionmenu
- when setting for example \setuplist[chapter][align=middle,distance=1em] ( or whatever else for distance ) it has no effect upon the distance between the chapter number and the chapter title
\setuplist[chapter][align=middle,distance=0pt,width=1em]
This works.
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. The result is something like: \hbox to 1em{1\hfil}\hskip 0pt{chapter title ...} ^^ ^^ width distance Wolfgang
On Wed, Aug 6, 2008 at 10:45 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> 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.
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. 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 ) ? Best, Alan
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
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
Wolfgang
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... Best, Alan
On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone
On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster
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
On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
\starttext
\framed{text}
\thinrule
\setuplinewidth[small]
\framed{text}
\thinrule
\setuplinewidth[1cm]
\framed{text}
\thinrule
\stoptext
I don't see the output difference between \framed{text} \thinrule \setuplinewidth[small] \framed{text} \thinrule \setuplinewidth[big] \framed{text} while \setuplinewidth[1cm] \framed{text} is "fascinating". You could try
style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},
or
style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},
These work, however not entirely to my satisfaction because then the right margin setting is modified due to text/head and pagenumber being grouped ( re: drawing, manual pg 150 ).
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]
I'll try that... Alan
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]
I'll try that...
#1, #2, #3 being parameters which can be passed to \ChapterList, aka \ChapterList[#1,#2,#3]. Is that correct ? Best, Alan
On Wed, Aug 6, 2008 at 8:45 PM, Alan Stone
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]
I'll try that...
#1, #2, #3 being parameters which can be passed to \ChapterList, aka \ChapterList[#1,#2,#3]. Is that correct ?
No, \define[3]\ChapterList == \def\ChapterList#1#2#3. Wolfgang
On Wed, Aug 6, 2008 at 8:45 PM, Alan Stone
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]
I'll try that...
#1, #2, #3 being parameters which can be passed to \ChapterList, aka \ChapterList[#1,#2,#3]. Is that correct ?
Each lis entry has three argument: #1: The section number #2: The header text #3: The page number To define your own format for the list entry in the ToC you need a new command with three argument like \def\MyCommand#1#2#3 and use it in \setuplist with \setuplist[...][command=\MyCommand]. Wolfgang
On Wed, Aug 6, 2008 at 6:07 PM, Alan Stone
On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster
wrote: \starttext
\framed{text}
\thinrule
\setuplinewidth[small]
\framed{text}
\thinrule
\setuplinewidth[1cm]
\framed{text}
\thinrule
\stoptext
I don't see the output difference between
small = 0.2pt medium = 0.4pt (TeX default value and also ConTeXt default) big = 0.6pt no big difference on the screen with 100% magnification but you can zoom into the page and you see the difference.
\framed{text}
\thinrule
\setuplinewidth[small] \framed{text}
\thinrule
\setuplinewidth[big] \framed{text}
while
\setuplinewidth[1cm] \framed{text}
is "fascinating".
You could try
style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},
or
style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},
These work, however not entirely to my satisfaction because then the right margin setting is modified due to text/head and pagenumber being grouped ( re: drawing, manual pg 150 ).
This is why you could define your own alternatives.
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]
I'll try that...
Wolfgang
On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone
On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster
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
On Wed, Aug 6, 2008 at 5:03 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Was the empty line also in your source, if your answer is yes remove it.
No, it wasn't in my sauce, correction: source. Although... My source sometimes looks like a messed up sauce. :O) Alan
correction... Using the brute force tactic I tried setting textwidth which didn't work. It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ? Alan
On Wed, Aug 6, 2008 at 12:25 PM, Alan Stone
correction...
Using the brute force tactic I tried setting textwidth which didn't work.
textwidth for what and why, you're in the right edge
It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ?
\define[1]\SectionList {\framed{#1}} \setuplist[section][textcommand=\SectionList] \starttext \placelist[section] \section{Section} \stoptext Wolfgang
On Wed, Aug 6, 2008 at 1:03 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
textwidth for what and why, you're in the right edge
Something undocumented. ;O)
It could be textcommand. If so what does \command#1 mean ( see main manual pg 150 ) ?
\define[1]\SectionList {\framed{#1}}
\setuplist[section][textcommand=\SectionList]
\starttext \placelist[section] \section{Section} \stoptext
Vielen dank. Best, Alan
participants (3)
-
Alan Stone
-
Hans Hagen
-
Wolfgang Schuster