Re: [NTG-context] Lilypond module

2008-08-06 Thread Wolfgang Schuster
On Tue, Aug 5, 2008 at 7:55 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 2008/8/5 Wolfgang Schuster [EMAIL PROTECTED]:
 On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello,

 It seem's that the lilypond module don't work.

 See this minimal exemple :

 \usemodule[lilypond]
 \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no]
 \starttext
\lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big]
 \stoptext

 It failed with :

 (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
 loading: LilyPond module
 )
 utilityfile | not present
 systems: begin file test-lilypond at line 6
 ! You can't use `the character 1' after \the.
 \lily!figures -1

 \dosavebuffer [#1]-\ctxlua {buffers.save(#1
 )}
 \dodostartlilypond ...ilypond-\the \lily!figures ]
  \fi \ifeof 18 \expanded 
 {\...
 l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} }
   \blank[1*big]


 My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500
 My context : MtxRun | main context file:
 /usr/share/texmf/tex/context/base/context.tex
MtxRun | current version: 2008.07.31 16:30

 Any idears ?

 Remove the \the before \lily!figures at line 259 in the module or use MkII.

 Thank's. No more error during the compilation, but no image. Look at the pdf !

Post the log file and the terminal messages.

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
___


[NTG-context] Default rule thickness

2008-08-06 Thread Oliver Buerschaper
Dear ConTeXters,

does someone know how to determine the current default_rule_thickness  
ConTeXt uses in math mode?

Cheerio,
Oliver
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Tue, Aug 5, 2008 at 1:16 PM, Wolfgang Schuster 
[EMAIL PROTECTED] 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=(x0)pt.

Best,
Alan
___
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
___


[NTG-context] modules

2008-08-06 Thread luigi scarso
New version of modules .

http://groups.foundry.supelec.fr/modules/

-- 
luigi
___
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
___


[NTG-context] hiding enumerations

2008-08-06 Thread Eric DÉTREZ
Hello  again

I wish to use the structure of block to hide somme of them.
Unfortunately reseting them doesn't seem to work.

Here is a minimal example :

**
\starttext

\defineenumeration[exercice][location=inleft]
\defineblock[titre,question,reponse]
\hideblocks[,reponse]

\begintitre
\exercice {\bf Facile}
\endtitre%
%
\beginquestion
$\displaystyle \sin\left(\pi \over 6\right)$

\endquestion

\beginreponse
$1 \over 2$
\endreponse

{\bf Réponses}

\reset[exercice]
\useblocks[titre,reponse]
\stoptext
**

I get an error with
**
! Undefined control sequence.
\currentdescriptionnumber ... \currentdescription
   \??dd \c!number  
\endcsname
\@@ddresetsubsubsubnumber ...entdescriptionnumber
   }\resetnumber [\v! 
sub \v!s...

\@@ddresetsubsubnumber ...b \v!sub \c!number }{#1}
   \resetnumber [\v! 
sub \v!su...

\@@ddresetsubnumber ...!sub \v!sub \c!number }{#1}
   \resetnumber [\v! 
sub \@@de...

\@@ddresetnumber ...s!reset \v!sub \c!number }{#1}
   \resetnumber  
[\@@descripti...

\next1 #1,-\dodoreset{#1}
   \doprocesscommaitem
…
1.47 \reset[exercice]
**

The line (47) is not the correct one here I deleted comments.

___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 9:12 AM, Alan Stone
[EMAIL PROTECTED] wrote:
 On Tue, Aug 5, 2008 at 1:16 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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=(x0)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
___
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
___


Re: [NTG-context] hiding enumerations

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote:
 Hello  again

 I wish to use the structure of block to hide somme of them.
 Unfortunately reseting them doesn't seem to work.

 Here is a minimal example :

 **
 \starttext

 \defineenumeration[exercice][location=inleft]
 \defineblock[titre,question,reponse]
 \hideblocks[,reponse]

 \begintitre
 \exercice {\bf Facile}
 \endtitre%
 %
 \beginquestion
 $\displaystyle \sin\left(\pi \over 6\right)$

 \endquestion

 \beginreponse
 $1 \over 2$
 \endreponse

 {\bf Réponses}

 \reset[exercice]
 \useblocks[titre,reponse]
 \stoptext

Use \resetnumber[exercice] for the moment.

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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
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
___
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
___


Re: [NTG-context] hiding enumerations

2008-08-06 Thread Eric DÉTREZ

Le 6 août 08 à 11:02, Wolfgang Schuster a écrit :

 On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote:


 Unfortunately reseting them doesn't seem to work.


 Use \resetnumber[exercice] for the moment.

Thank's it works fine.

___
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
___


Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 12:21 PM, Bruno Voisin [EMAIL PROTECTED] wrote:
 Le 6 août 08 à 09:34, Oliver Buerschaper a écrit :

 does someone know how to find out the current value of
 default_rule_thickness in a (La)TeX document? TeX uses it to determine the
 line width of fraction bars and roots in math mode …

 The short story: 0.4 pt.

 The long story: LaTeX defines \frac in terms of the TeX primitive \over, and
 \sqrt in terms of the TeX primitive \radical (a primitive being a command
 defined in the source code of TeX itself). Hence the only way to get an
 answer for sure would be to inspect the source code of TeX.

 The TeXbook has an appendix G Generating boxes from formulas mentioning in
 several places (for \overline, \underline, \radical, ...) a
 default_rule_thickness called either $\theta$ or $\xi_8$, but not giving its
 value. Being a mere mortal, I must admit I can't make much sense of this
 appendix.

 My feeling is that TeX uses the same default rule thickness for all rules
 (in \overline, \underline, \over, \sqrt, \footnote, ...) and that it is the
 thickness given at the beginning of chapter 21 Making Boxes:

 \hrule width=depends on contest, height=0.4pt, depth=0.0pt
 \vrule width=0.4pt, height=depends on contest, depth=depends on contest

The rule is between 0.4pt and 0.5pt

\starttext
\dontleavehmode
\scale[factor=200]{$1 \over 2$}
\scale[factor=200]{$1 \above .47pt 2$}
\stoptext

 Now, if you want to specify the rule thickness yourself for a fraction, say
 to 1pt, I see two solutions:

 - In plain TeX, replace \over by \above. For example, replace {a\over b} by
 {a\above1pt b}.

 - In LaTeX, use the amsmath package and replace \frac by \genfrac. For
 example, replace \frac{a}{b} by \genfrac{}{}{1pt}{}{a}{b}.

 I don't know what can be done for square roots.

 Bruno Voisin

 PS Normally, such a question which has nothing Mac-specific would be better
 posted to a general LaTeX forum such as comp.tex.text. However,
 comp.tex.text may be quite intimidating to the novice (chances are you'll
 either get your question ignored or be flamed for asking a stupid question),
 and as a result I have myself asked general questions here more than once
 and avoid comp.tex.text whenever possible.

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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 12:25 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Wed, Aug 6, 2008 at 1:03 PM, Wolfgang Schuster 
[EMAIL PROTECTED] 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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Wed, Aug 6, 2008 at 10:45 AM, Wolfgang Schuster 
[EMAIL PROTECTED] 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=(x0)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=(x0)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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 12:16 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 On Wed, Aug 6, 2008 at 10:45 AM, Wolfgang Schuster
 [EMAIL PROTECTED] 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=(x0)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=(x0)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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
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]}

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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
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

 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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Wed, Aug 6, 2008 at 5:03 PM, Wolfgang Schuster 
[EMAIL PROTECTED] 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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster 
[EMAIL PROTECTED] 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
___
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
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread 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 ?

Best,
Alan
___
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
___


Re: [NTG-context] Lilypond module

2008-08-06 Thread Olivier Guéry
 Post the log file and the terminal messages.

So, you can find the log file join to this mail, and here is the
terminal output :

# context test-lilypond.tex
MtxRun | loading configuration for /usr/share/texmf/web2c from
/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
MtxRun | run 1: luatex
--fmt=/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en
--lua=/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.lua
./test-lilypond.tex
(test-lilypond.tex

ConTeXt  ver: 2008.07.31 16:30 MKIV  fmt: 2008.8.4  int: english/english

language   : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkiv
lua: used config path - /usr/share/texmf/web2c/texmf.cnf
lua: used cache path -
/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
) (/usr/share/texmf/tex/context/base/cont-mtx.tex))
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(/usr/share/texmf/tex/context/user/cont-sys.tex
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex))
bodyfont   : 12pt rm is loaded
specials   : tex loaded
system : test-lilypond.top loaded
(test-lilypond.top
specials   : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkiv))
specials   : fdf loaded
(/usr/share/texmf/tex/context/base/spec-tpd.mkiv))
specials   : fdf loaded
)
system : module lilypond loaded
(/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex
loading: LilyPond module
) (test-lilypond.tuo) (test-lilypond.tuo)
systems: begin file test-lilypond at line 6
color  : mpcmyk color space is supported
color  : mpspot color space is supported
color  : system rgb is local activated
color  : mpcmyk color space is supported
color  : mpspot color space is supported
color  : system rgb is local activated
fonts  : resetting map file list
{/usr/share/texmf/fonts/map/pdftex/context/original-empty.map}
fonts  : using map file: original-base
{/usr/share/texmf/fonts/map/pdftex/context/original-base.map}
fonts  : using map file: lm-math
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}
fonts  : using map file: lm-rm
{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts  : using map file: original-ams-base
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}
fonts  : using map file: original-ams-euler
{/usr/share/texmf/fonts/map/pdftex/context/original-ams-euler.map}
fonts  : using map file: original-public-lm
{/usr/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1]
systems: end file test-lilypond at line 10
 
)/usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  - /usr/share/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   - /home/nemo/.context-tmp
mkiv lua stats : modules/dumps/instances   - 89/23/1
mkiv lua stats : input load time   - 0.096 seconds
mkiv lua stats : fonts load time   - 1.651 seconds
mkiv lua stats : xml load time - 0.000 seconds, lpath
calls: 0, cached calls: 0
mkiv lua stats : lxml load time- 0.000 seconds
preparation, backreferences: 0
mkiv lua stats : mps conversion time   - 0.000 seconds
mkiv lua stats : node processing time  - 0.000 seconds including kernel
mkiv lua stats : kernel processing time- 0.000 seconds
mkiv lua stats : attribute processing time - 0.002 seconds
mkiv lua stats : language load time- 0.084 seconds, n=2
mkiv lua stats : graphics processing time  - 0.220 seconds including tex, n=2
mkiv lua stats : metapost processing time  - 0.000 seconds, loading:
0.000 seconds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage  - 50047179 bytes
mkiv lua stats : cleaned up reserved nodes - 21 nodes, 8 lists of 100
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : loaded patterns   - us:us:pat:exc:2
mkiv lua stats : loaded fonts  - file:lmmono12-regular:otf
file:lmmono8-regular:otf file:lmroman10-bolditalic*default:otf
file:lmroman10-italic*default:otf 

[NTG-context] release

2008-08-06 Thread Hans Hagen
Hi,

We have a new release (unless severe problems show up, this release will 
stay for a while). If possible, the next release (oktober) will have an 
alternative vertical spacing (mkiv only) and a reimplmented 
sectioning/list/numbering mechanism (mkiv only).

There are also new zips of mininmals and cdwincontext. These now match 
the minimals on the garden. Of course you're strongly advised to use the 
garden.

Of course there will be the usual lot of betas.

Hans


-
   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
-
___
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
___