Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


That was very useful !!
Again, thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 13:42:41 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
I do get with MkIV the first example like you expect but 
“style={\blank[0cm]}”is the wrong way. Such a layout can be easily done with 
your own list-commandfor chapter but the labeltext is tricky:
\setuplabeltext[chapter=CHAPTER~]
% \define[3]\ChapterList % no label!%   {#1\crlf#2\wordright{#3}}
% \define[3]\ChapterList % fixed label, wrong for appendices!%   
{\labeltext{chapter}#1\crlf#2\wordright{#3}}
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\wordright{#3}}
\setuplist[chapter][label=yes,alternative=command,command=\ChapterList]
\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new command, or somewhere 
else ?


Mathieu



From: mathieudup...@hotmail.com
To: ntg-context@ntg.nl
Date: Tue, 24 May 2011 09:09:39 -0400
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate lines)









That was very useful !!
Again, thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 13:42:41 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
I do get with MkIV the first example like you expect but 
“style={\blank[0cm]}”is the wrong way. Such a layout can be easily done with 
your own list-commandfor chapter but the labeltext is tricky:
\setuplabeltext[chapter=CHAPTER~]
% \define[3]\ChapterList % no label!%   {#1\crlf#2\wordright{#3}}
% \define[3]\ChapterList % fixed label, wrong for appendices!%   
{\labeltext{chapter}#1\crlf#2\wordright{#3}}
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\wordright{#3}}
\setuplist[chapter][label=yes,alternative=command,command=\ChapterList]
\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   

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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


Thank you !However, this resulted in something weird with my appendices, but 
adding \blank in the front fixes the problem :
\define[3]\ChapterList  
{\blank\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
I am starting to think there is something mysterious with this \blank command...


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 16:04:44 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 15:33 schrieb Mathieu DUPONT:If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new command, or somewhere 
else ?
\define[3]\ChapterList  {\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-24 Thread Mathieu DUPONT


Things are getting much clearer now.Thank you !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Tue, 24 May 2011 16:20:13 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Chapter title under its number (separate   
lines)




Am 24.05.2011 um 16:13 schrieb Mathieu DUPONT:Thank you !However, this resulted 
in something weird with my appendices, but adding \blank in the front fixes the 
problem :
\define[3]\ChapterList  
{\blank\currentlistsymbol\crlf#2\enspace\listdots\enspace#3}
I am starting to think there is something mysterious with this \blank command...
Not really, the commands just ends the last line and inserts a blank line.When 
you don’t want an empty line you can define the chapter entry as:
\define[3]\ChapterList  
{\par\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par}
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Current Mk IV doc?

2011-05-24 Thread Mathieu DUPONT


Here are some :

2009 Reference Manual :

http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf

2011 Commands :
http://doc.baidu.com/view/61f4691b227916888486d72a.html

2011 Metafun :
http://tex.loria.fr/formats/context/metafun-p.pdf



Mathieu



Date: Tue, 24 May 2011 10:47:52 -0400
From: p...@pfdstudio.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Current Mk IV doc?

Where can I find the most recent ConTeXt documentation?  The files I found here:

http://wiki.contextgarden.net/Main_Page


show November 2001 as the date.  Is there anything newer?

Thanks!

-pd
-- 
The Tech Curmudgeon
http://www.techcurmudgeon.com



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

[NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-24 Thread Mathieu DUPONT


Hi,
Is there a way to have, in the table of contents, the titles (of chapters, 
sections, subsections, etc.) with a different interline spacing than the rest 
of the TOC ?My TOC interline spacing is set at 1.5 (4.2ex), but I would like to 
have the long titles on multiples lines being only single interline spaced 
(2.8ex).Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !

\setupinterlinespace[line=4.2ex]   %  1.5 interline
\setuplabeltext[chapter=CHAPITRE~]\define[3]\ChapterList{   
\blank\par\noindent\currentlistsymbol\crlf  #2\enspace\listdots\enspace 
#3\par\blank[0.1cm]}\setupcombinedlist[content][level=3,alternative=c]\setuplist[chapter][
  label=yes,  alternative=command,command=\ChapterList,   ]
\starttext
\completecontent
\startbodymatter\chapter{THIS VERY VERY VERY VERY VERY VERY VERY VERY LONG 
TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)}\section{THIS VERY VERY 
VERY VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED 
(line=2.8ex)}\subsection{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE 
INTERLINE-SPACED (line=2.8ex)}\stopbodymatter
\stoptext 


Mathieu

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

Re: [NTG-context] Current Mk IV doc?

2011-05-24 Thread Mathieu DUPONT


Here :
http://www.pragma-ade.com/general/qrcs/setup-en.pdf



Mathieu



 Date: Tue, 24 May 2011 17:12:57 -0500
 From: derpay...@riseup.net
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Current Mk IV doc?
 
 On Tue, 24 May 2011 11:11:19 -0400
 Mathieu DUPONT mathieudup...@hotmail.com wrote:
 
  
  
  Here are some :
  
  2009 Reference Manual :
  
  http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/manuals/reference/en/contextref.pdf
  
  2011 Commands :
  http://doc.baidu.com/view/61f4691b227916888486d72a.html
 
 Is there a way to download the commands pdf without registering with Baidu? 
 It would help if one did not need to read Chinese to do so...
 
 Thanks,
 Marc Trius
 
  
  2011 Metafun :
  http://tex.loria.fr/formats/context/metafun-p.pdf
  
  
  
  Mathieu
  
  
  
  Date: Tue, 24 May 2011 10:47:52 -0400
  From: p...@pfdstudio.com
  To: ntg-context@ntg.nl
  Subject: [NTG-context] Current Mk IV doc?
  
  Where can I find the most recent ConTeXt documentation?  The files I found 
  here:
  
  http://wiki.contextgarden.net/Main_Page
  
  
  show November 2001 as the date.  Is there anything newer?
  
  Thanks!
  
  -pd
  -- 
  The Tech Curmudgeon
  http://www.techcurmudgeon.com
  
  
  
  ___
  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  : http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  ___
 
 
 -- 
 Marc Trius derpay...@riseup.net
 
 The enemy is the gramophone mind, whether or not one agrees with the record 
 that is being played at the moment. --- George Orwell
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Mathieu DUPONT


Actually, the \setuplocalinterlinespace[line=4.2ex] command allowed me to get 
what I wanted.Thank you very much !What I did (see below for the interested) is 
I putbefore={\setuplocalinterlinespace[line=2.8ex]\blank[halfline]to change the 
interline space of titles, but I also 
addedafter={\setuplocalinterlinespace[line=4.2ex]in order to put it back to the 
global setting of the page.That way, it interferes less with the rest of the 
layout, and I don't have to reajust interline spacing everywhere.
Again, thanks for your help, it is greatly appreciated.

\setupinterlinespace[line=4.2ex]  
\setuplabeltext[chapter=CHAPITRE~]\setupcombinedlist[content][level=3,alternative=c,]\define[3]\ChapterList{
\setuplocalinterlinespace[line=2.8ex]   \blank  
\par\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace #3\par  
\setuplocalinterlinespace[line=4.2ex]   }\setuplist[chapter][   label=yes,  
alternative=command,command=\ChapterList,   ]\setuplist[section][   
before={\setuplocalinterlinespace[line=2.8ex]\blank[halfline]}, margin=0cm, 
width=1.25cm,   distance=0cm,   after={\setuplocalinterlinespace[line=4.2ex]},  
]\setuplist[subsection][
before={\setuplocalinterlinespace[line=2.8ex]\blank[halfline]}, margin=1.25cm,  
after={\setuplocalinterlinespace[line=4.2ex]},  ]   \starttext
\completecontent
\startbodymatter\chapter{THIS VERY VERY VERY VERY VERY VERY LONG TITLE SHOULD 
BE SINGLE INTERLINE-SPACED (line=2.8ex)}\section{THIS VERY VERY VERY VERY LONG 
TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)}\subsection{THIS VERY VERY 
VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)}\stopbodymatter
\stoptext 



Mathieu



 From: cont...@st.estfiles.de
 Date: Wed, 25 May 2011 10:04:04 +0200
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] TOC : Changing the interline spacing of titles,
 for long titles on multiple lines
 
 
 Am 25.05.2011 um 00:18 schrieb Mathieu DUPONT:
 
  
  Hi,
  
  Is there a way to have, in the table of contents, the titles (of chapters, 
  sections, subsections, etc.) with a different interline spacing than the 
  rest of the TOC ?
  My TOC interline spacing is set at 1.5 (4.2ex), but I would like to have 
  the long titles on multiples lines being only single interline spaced 
  (2.8ex).
  Is there something I could add in the \setuplist[chapter] command ?
  
  Thanks for any hint !
 
 
 
 Something like this?
 
 \setuplist[chapter][
   label=yes,
   
 alternative=c,style={\switchtobodyfont[10pt]\bf\setuplocalinterlinespace[line=4.2ex]},
   before={\blank[line]},after={\blank[halfline]}
   ]
 
 \setuplist[section,subsection][
   label=yes,
   
 alternative=c,style={\switchtobodyfont[10pt]\setuplocalinterlinespace[line=2.8ex]},
   before={\blank[line]},after={\blank[halfline]}
   ]
 
 \starttext
 
 \completecontent
 
 \startbodymatter
 \chapter{THIS VERY VERY VERY VERY VERY VERY VERY VERY LONG TITLE\\SHOULD BE 
 BOLD INTERLINE-SPACED (line=4.2ex)}
 \section{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE 
 INTERLINE-SPACED (line=2.8ex)}
 \subsection{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE 
 INTERLINE-SPACED (line=2.8ex)}
 \stopbodymatter
 
 \stoptext 
 
 
 
 Steffen
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Mathieu DUPONT


Interesting command to know.Thank you.
However I only wanted the titles to be 2.8ex and the rest of the TOC to be 
4.2ex.Please see previous message for the solution I got.
Thanks Wolfgang.



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Wed, 25 May 2011 17:36:04 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Changing the interline spacing of titles,  
for long titles on multiple lines




Am 25.05.2011 um 00:18 schrieb Mathieu DUPONT:Hi,
Is there a way to have, in the table of contents, the titles (of chapters, 
sections, subsections, etc.) with a different interline spacing than the rest 
of the TOC ?My TOC interline spacing is set at 1.5 (4.2ex), but I would like to 
have the long titles on multiples lines being only single interline spaced 
(2.8ex).Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !

\setupinterlinespace[line=4.2ex]   %  1.5 interline
\setuplabeltext[chapter=CHAPITRE~]\define[3]\ChapterList{   
\blank\par\noindent\currentlistsymbol\crlf  #2\enspace\listdots\enspace 
#3\par\blank[0.1cm]}\setupcombinedlist[content][level=3,alternative=c]\setuplist[chapter][
  label=yes,  alternative=command,command=\ChapterList,   ]
\starttext
\completecontent
\start\setupinterlinespace[line=2.8ex]\completecontent\stop
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Mathieu DUPONT


When I run this code, every lines of the TOC become 2.8ex.What I needed is 
every lines to be 2.8ex, except for the last line of each title, which should 
be 4.2 ex.In other words, all short titles that fit on one line will be 4.2ex 
(they're all last lines), but, only for the long titles on multiple lines, 
their first lines will be 2.8ex and their last line will be 4.2ex.To resume the 
result I seek, the TOC is 4.2ex, but when a long title is on multiple lines it 
should stick together (2.8ex).



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Wed, 25 May 2011 17:49:18 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Changing the interline spacing of titles,  
for long titles on multiple lines




Am 25.05.2011 um 17:42 schrieb Mathieu DUPONT:Interesting command to know.Thank 
you.
However I only wanted the titles to be 2.8ex and the rest of the TOC to be 
4.2ex.Please see previous message for the solution I got.
This is the same as you do (the \blank’s in your example usethe reduced 
interlinespace too) but with less lineskip changes.
\define\PlaceContent  {\bgroup   \title{Contents}   
\setupinterlinespace[line=2.8ex]   \placecontent   \stop}
\starttext\PlaceContent...\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Mathieu DUPONT


That's interesting.
I am sure how to integrate it in my TOC though.
I would have to replace both \box0 and \box2 by something like 
\placecontent[current] or \placecurrentcontent.
Does such a thing exist ?



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Wed, 25 May 2011 18:12:37 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : Changing the interline spacing of titles,  
for long titles on multiple lines




Am 25.05.2011 um 18:02 schrieb Mathieu DUPONT:When I run this code, every lines 
of the TOC become 2.8ex.What I needed is every lines to be 2.8ex, except for 
the last line of each title, which should be 4.2 ex.In other words, all short 
titles that fit on one line will be 4.2ex (they're all last lines), but, only 
for the long titles on multiple lines, their first lines will be 2.8ex and 
their last line will be 4.2ex.To resume the result I seek, the TOC is 4.2ex, 
but when a long title is on multiple lines it should stick together (2.8ex).

You want something like this?
\starttext
\setbox0\vbox{\input ward\par}
\doloop  {\setupinterlinespace[line=2.8ex]   \ifdim\ht0\lineheight 
\setupinterlinespace[line=4.2ex] \box0 \exitloop   \else 
\setbox2\vsplit0 to \baselineskip \box2   \fi}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Mathieu DUPONT


In the following example, I set the margin for subsections to 1.25cm, in order 
for the subsection number to be aligned with the titles of sections.If the next 
section after a subsection is a section or another subsection, there is no 
problem.But if (as shown here) the next section (after a subsection) is a 
chapter, it becomes shifted to the right (its margin is 1.25cm).Is there 
something I could add to my command \ChapterList to reset the margin to 0cm 
?Thanks !

\setuplabeltext[chapter=CHAPTER~]
\define[3]\ChapterList{ \blank  \par\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace #3\par  }\setuplist[chapter][   margin=0cm, 
   % this line doesn't do anything  label=yes,  alternative=command,
command=\ChapterList,   
]\setuplist[section][margin=0cm,width=1.25cm]\setuplist[subsection][margin=1.25cm,width=1.25cm]
\starttext
\completecontent
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\stoptext 


Mathieu

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

Re: [NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Mathieu DUPONT


It bugs on the \leftskip command.Any idea why ?If I omit \leftskip, the problem 
doesn't get solved.

to be read again 
   \emptyargin 
\ChapterList ... \leftskip \listparameter {margin}
   \noindent \currentlistsym...
\processlistofstructure ...\fi \fi \fi \endcsname 
  \dostoptagged \processlist...
l.11 {}
   
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged 
\doplacecombinedlist ...edlistparameter \c!order }
  \doendoflist \stoplistrefe...
...
l.49 
 
? 


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Wed, 25 May 2011 20:51:14 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : margin size doesn't reset if next section  
is a chapter




Am 25.05.2011 um 20:21 schrieb Mathieu DUPONT:In the following example, I set 
the margin for subsections to 1.25cm, in order for the subsection number to be 
aligned with the titles of sections.If the next section after a subsection is 
a section or another subsection, there is no problem.But if (as shown here) the 
next section (after a subsection) is a chapter, it becomes shifted to the 
right (its margin is 1.25cm).Is there something I could add to my command 
\ChapterList to reset the margin to 0cm ?Thanks !

\setuplabeltext[chapter=CHAPTER~]
\define[3]\ChapterList{ \blank  \par\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace #3\par  }
\define[3]\ChapterList  {\par   \listparameter{before}%   
\leftskip\listparameter{margin}%   \noindent#2\enspace\listdots\enspace#3\par   
\listparameter{after}}
\setuplist[chapter][margin=0cm,% this line doesn't do anything  
label=yes,  alternative=command,command=\ChapterList,   ]
\setuplist  [chapter]  [alternative=command,   command=\ChapterList,   
label=yes,   before=\blank,   margin=0pt]
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-26 Thread Mathieu DUPONT


Until then, this works fine for me now.Thank you !


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Thu, 26 May 2011 06:23:08 +0200
To: ntg-context@ntg.nl
CC: pra...@wxs.nl
Subject: Re: [NTG-context] TOC : margin size doesn't reset if next section  
is a chapter




Am 25.05.2011 um 22:08 schrieb Mathieu DUPONT:It bugs on the \leftskip 
command.Any idea why ?
I forgot that \listparameter can’t handle arguments in braces(e.g. 
\listparameter{before}), this is a real limitation and i hopeHans is going to 
change this.
\unprotect\define[3]\ChapterList  {\par   \listparameter\c!before   
\leftskip\listparameter\c!margin   
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par   
\listparameter\c!after}\protect
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Removing page numbering on the first page of a list such as the TOC

2011-05-26 Thread Mathieu DUPONT


Hi,
I can't find out how to remove the header on the first page of a list, e.g the 
TOC.
\setuphead[content][header=empty]
won't do anything.
Anyone has an idea ?
Thanks.



Mathieu

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

Re: [NTG-context] Removing page numbering on the first page of a list such as the TOC

2011-05-26 Thread Mathieu DUPONT


Thank you !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Thu, 26 May 2011 13:29:46 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Removing page numbering on the first page of a   
list such as the TOC




Am 26.05.2011 um 11:10 schrieb Mathieu DUPONT:Hi,
I can't find out how to remove the header on the first page of a list, e.g the 
TOC.
\setuphead[content][header=empty]
won't do anything.
Anyone has an idea ?
There is no heading with the name “content”.
\definehead[content][title]
\setuphead[content][header=empty]
\starttext
\content{Contents}
\placecontent
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \definehead \setuphead new type included in a list such as TOC

2011-05-26 Thread Mathieu DUPONT


Hi,
In the following example, I define 2 new heads, and I want them to :
1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be 
counted (CHAPTER should be 1)
Is there an option I can put into \setuphead[Abstract][] so it gets included in 
the TOC ?That would be the easiest way of getting the three desired results.
Thanks !

\definehead[Abstract][title]\setuphead[Abstract][]\definehead[Intro][title]\setuphead[Intro][]
\starttext
\startfrontmatter\placecontent\Abstract{ABSTRACT}\stopfrontmatter
\startbodymatter\Intro{INTRODUCTION}\chapter{CHAPTER}\stopbodymatter
\stoptext 

Mathieu

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

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT


As for the interaction patching, in the following example I can't figure out 
how to have, for the chapter lines, only CHAPTER 1 being the interaction and 
not the title + the dots line + the page number, as it is the case with 
this code.The example is minimal, but I left everything I am afraid could be 
dropped by a solution.
Thanks for help !

\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]
\setupcombinedlist[content][level=3,alternative=c,  ]   
\unprotect\define[3]\ChapterList{\vbox{ \setuplocalinterlinespace[line=2.8ex]   
\listparameter\c!before \leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3   \par
\listparameter\c!after  \setuplocalinterlinespace[line=4.2ex]   }}\protect
\setuplist[chapter][label=yes,  alternative=vertical,   
command=\ChapterList,   interaction=all,]   \starttext
\startfrontmatter\placecontent\stopfrontmatter
\startbodymatter\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}\stopbodymatter
\stoptext 



Mathieu



 Date: Fri, 27 May 2011 11:14:26 +0200
 From: alan.bras...@cea.fr
 To: schuster.wolfg...@googlemail.com
 CC: ntg-context@ntg.nl
 Subject: Re: [NTG-context] TOC : Chapter title under its number (separate 
 lines)
 
 On Thu, May 26, 2011 at 08:16:21PM +0200, Wolfgang Schuster wrote:
  
  Am 26.05.2011 um 18:48 schrieb Alan Braslau:
  
   \setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all]
   
   Almost works. Almost in that all lines get indented by one level,
   and then the page number (and the title if it is long and multi-line)
   stick(s) out by this much on the right.
   
   The manual is a bit cryptic concerning horizontal and vertical:
 As an alternative for none, we can use horizontal and vertical.
 Both commands have their spacing tuned for typesetting lists in
 for instance menus.
  
  I don’t read the manual very often, so i missed this.
 
 Before asking for help, I always
 1) experiment
 2) look in the manual(s)
 3) search the mailing list
 4) consult the wiki
 5) try to understand the sources
 I'm sure that you start with the last step.
 
  
  There are two ways to have a interactive list:
  
  1. Patch the command alternative
  
  2. Introduce a new alternative which has interactive support
 plus a few more missing features (e.g. label support)
  
  Wolfgang
 
 In fact,
 \setuplist [chapter] [label=yes]
 should work out of the box.
 
 Currently, one must set:
 \setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
 \setuplabeltext [appendix=Appendix ]  % with trailing space; blank by default
 (This *should* be included in the language files, not redefined by the user. 
 Indeed, \setuphead [chapter] [label=no] could be the default, not blanking 
 out the labeltext.)
 Secondly, the spacing of the TOC is all wrong. This should not need patching 
 to yield an acceptable result.
 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Mathieu DUPONT


No, I had tried that.The problem is obviously caused by all the layers of 
patching, which I need though.



Mathieu



 Date: Fri, 27 May 2011 16:00:36 +0200
 From: alan.bras...@cea.fr
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] TOC : Chapter title under its number (separate 
 lines)
 
 interaction=sectionnumber
 rather than
 interaction=all
 doesn't seem to help here...
 
 Alan
 
 On Fri, May 27, 2011 at 09:33:53AM -0400, Mathieu DUPONT wrote:
  
  As for the interaction patching, in the following example I can't figure out
  how to have, for the chapter lines, only CHAPTER 1 being the interaction 
  and
  not the title + the dots line + the page number, as it is the case 
  with
  this code.
  The example is minimal, but I left everything I am afraid could be dropped 
  by a
  solution.
  
  Thanks for help !
  
  
  \setupinteraction[state=start]
  
  \setuplabeltext[chapter=CHAPITRE~]
  
  \setupcombinedlist[content][
  level=3,
  alternative=c,
  ]
  \unprotect
  \define[3]\ChapterList{\vbox{
  \setuplocalinterlinespace[line=2.8ex]
  \listparameter\c!before
  \leftskip\listparameter\c!margin
  \noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3
  \par
  \listparameter\c!after
  \setuplocalinterlinespace[line=4.2ex]
  }}
  \protect
  
  \setuplist[chapter][
  label=yes,
  alternative=vertical,
  command=\ChapterList,
  interaction=all,
  ]
  \starttext
  
  \startfrontmatter
  \placecontent
  \stopfrontmatter
  
  \startbodymatter
  \chapter{CHAPTER}
  \section{SECTION}
  \subsection{SUBSECTION}
  \stopbodymatter
  
  \stoptext 
  
  Mathieu
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC

2011-05-27 Thread Mathieu DUPONT


That was very useful.
Thanks again Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Thu, 26 May 2011 18:52:48 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] \definehead \setuphead new type included in a
list such as TOC




Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:Hi,
In the following example, I define 2 new heads, and I want them to :
1- inherits from Title (or Chapter would be fine)2- show in the TOC3- not be 
counted (CHAPTER should be 1)
Is there an option I can put into \setuphead[Abstract][] so it gets included in 
the TOC ?That would be the easiest way of getting the three desired results.
Your own headings aren’t shown in the TOC because you use \completecontentwhich 
lists only the default numbered headings (\part, \chapter etc.)
There are different solution:
1. Replace \completecontent with the following
  \title{Contents}  \placelist[part,chapter,Abstract,Intro, section,...]
2. Redefine \completecontent (it’s explained in the big manual):
  \definecombinedlist[content][part,chapter,Abstract,Intro, section,...]
3. Create your own combinedlist:
  \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...]
  \setupheadtext[mycontent=Contents]
  \starttext
  \completemycontent
  \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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT


Hi,
How can one modify the header of a Register, after it apparently inherited from 
Chapter ?In the following example, I try to have the title INDEX at the same 
height as the title CHAPTER,but neither the \setuphead nor \setupregister 
commands seem to do anything.Is there another command for that ?I couldn't find 
it.
Thanks for help !

\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][  align=middle,   
before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]},
after={\blank[3cm]},header=empty,   ]
\defineregister[MyIndex][MyIndexs]\setupheadtext[MyIndex=INDEX]
\setupregister[MyIndex][{\blank[0cm]}]  %% not 
working\setuphead[register][{\blank[0cm]}]  %% not working
\starttext
\startbodymatter\chapter{Chapter}\MyIndex{word}word\stopbodymatter
\startbackmatter\completeMyIndex\stopbackmatter
\stoptext 



Mathieu

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

Re: [NTG-context] Modifying the header of a Register : \setuphead or \setupregister not working

2011-05-27 Thread Mathieu DUPONT


This is fixing a lot of problems I had, thank you !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Fri, 27 May 2011 20:46:01 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Modifying the header of a Register : \setuphead  
or \setupregister not working




Am 27.05.2011 um 20:32 schrieb Mathieu DUPONT:Hi,
How can one modify the header of a Register, after it apparently inherited from 
Chapter ?In the following example, I try to have the title INDEX at the same 
height as the title CHAPTER,but neither the \setuphead nor \setupregister 
commands seem to do anything.Is there another command for that ?I couldn't find 
it.
Thanks for help !

\setupinteraction[state=start]
\setuplabeltext[chapter=CHAPITRE~]\setuphead[chapter][  align=middle,   
before={\crlf\blank[1cm-4.2ex]},style={\blank[2cm]},
after={\blank[3cm]},header=empty,   ]
\setuphead  [chapter]  [alternative=middle,   before={\blank[force,1cm]},   
numbercommand=\groupedcommand{}{\blank[2cm]},   after={\blank[3cm]},   
header=empty]
\defineregister[MyIndex][MyIndexs]\setupheadtext[MyIndex=INDEX]
\setupregister[MyIndex][{\blank[0cm]}]  %% not 
working\setuphead[register][{\blank[0cm]}]  %% not working
Invalid setup, the second argument expects assignments.
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Wiki Topics Menu

2011-06-03 Thread Mathieu DUPONT


Hi,
Is there a menu page on the wiki to see all the topics/pages there are, such as 
these few examples :
http://wiki.contextgarden.net/TABLEhttp://wiki.contextgarden.net/Layout
I really can't find it if it exits.Otherwise that would be very, very useful, 
rather that only hitting them when searching for something.
Thanks !



Mathieu

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

[NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-03 Thread Mathieu DUPONT


Hi,
How can one include a list into another list ?The \definecombinedlist command 
doesn't work.I tried to find other ways but didn't find anything that worked.
Thanks for help !

\definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure]
\setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures]
\starttext
\completeTOC\completeLOF
\chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]}
\stoptext 


Mathieu

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

Re: [NTG-context] No chapter prefixes in section numbers

2011-06-03 Thread Mathieu DUPONT


Is there an exhaustive list of all the parameters the \setuphead function can 
take ?
Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page 
mention this one (sectionsegments).
Where can I find all the parameters one ConTeXt command can take ?
Thanks for enlightenment !


Mathieu



 From: schuster.wolfg...@googlemail.com
 Date: Thu, 2 Jun 2011 05:28:02 +0200
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] No chapter prefixes in section numbers
 
 
 Am 02.06.2011 um 02:28 schrieb Aditya Mahajan:
 
  Hi,
  
  I do not want chapter number to be prefixed in section and subsection 
  numbers. Thus,
  
  \starttext
  \chapter{One}
  \section{Two}
  \subsection{Three}
  \stoptext
  
  should give:
  
  1 One
  1 Two
  1.1 Three
  
  How to achieve that? I tried
  
  \setuphead[section][prefixset=none]
  
  but to no affect.
 
 \setuphead[section]   [sectionsegments=section]
 \setuphead[subsection][sectionsegments=section:subsection]
 
 Prefixes are used from commands which show the section numbers
 in front of their own number, e.g. floats or enumerations.
 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-05 Thread Mathieu Dupont


Yes, I would like to obtain :(page 1)Table of ContentList of Figures1 
Chapter(page 2)List of Figures1.1 Cow.I could use, instead of \completeLOF, 
something like :\chapter{List of Figures}\placeLOFbut then I would have to 
adjust many other things and it becomes very messy.



Mathieu



 Date: Fri, 3 Jun 2011 22:55:28 +0200
 From: pra...@wxs.nl
 To: ntg-context@ntg.nl
 CC: mathieudup...@hotmail.com
 Subject: Re: [NTG-context] Include a list in a list, for example, a List of 
 Figures in a Table of Content
 
 On 3-6-2011 7:10, Mathieu DUPONT wrote:
 
 
  Hi,
  How can one include a list into another list ?The \definecombinedlist 
  command doesn't work.I tried to find other ways but didn't find anything 
  that worked.
  Thanks for help !
 
  \definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure]
  \setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures]
  \starttext
  \completeTOC\completeLOF
  \chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]}
  \stoptext
 
 What do you expect? Can you give some ascii art example?
 
 Hans
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Wiki Topics Menu

2011-06-05 Thread Mathieu Dupont


Yes, actually your help led me to the following page, which is exactly what I 
was looking for:
http://wiki.contextgarden.net/Special:Categories

I think it would be useful to have an obvious link to it on the Wiki main page.
Thanks a lot Pont !


Mathieu



 Date: Sat, 4 Jun 2011 12:28:01 +1200
 From: p...@talvi.net
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Wiki Topics Menu
 
 On Fri 03 Jun 2011, Mathieu DUPONT wrote:
 
  Is there a menu page on the wiki to see all the topics/pages there
  are, such as these few examples :
 
 Do you mean something like http://wiki.contextgarden.net/Special:AllPages ?
 http://wiki.contextgarden.net/Special:SpecialPages has some
 other resources of a similar nature.
 
 Pont
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] No chapter prefixes in section numbers

2011-06-05 Thread Mathieu Dupont


Ok, thank you very much for the great work Wolfgang !
For now I guess I could look at the source code of a command to find out its 
properties (I am not familiar with TeX but maybe I can figure out a few things).
I tried http://source.contextgarden.net/ but I can't find out how to find the 
script of a command.
Can you help me out ?
Thanks !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Sat, 4 Jun 2011 14:35:04 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] No chapter prefixes in section numbers




Am 03.06.2011 um 21:43 schrieb Mathieu DUPONT:Is there an exhaustive list of 
all the parameters the \setuphead function can take ?
Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page 
mention this one (sectionsegments).
Where can I find all the parameters one ConTeXt command can take ?
I’m working on a update for the command reference but it will stilltake some 
time unless i have looked in all source files. Even wheni have the list it 
won’t always help you because the reference isonly a list with all valid keys 
and values but it doesn’t explainthe meaning of them and how they need to be 
combined to havea certain output.
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-06 Thread Mathieu Dupont


No, not at all.I'm sorry, I realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to 
be listed in it, just such as a chapter or a section.So my TOC would look like 
this :
TABLE OF CONTENTList of Figures . page 1Chapter 1 ... page 
2Chapter 2 ... page 3



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 6 Jun 2011 07:21:16 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,   a List 
of Figures in a Table of Content




Am 06.06.2011 um 01:19 schrieb Mathieu Dupont:Yes, I would like to obtain 
:(page 1)Table of ContentList of Figures1 Chapter(page 2)List of Figures1.1 
Cow.I could use, instead of \completeLOF, something like :\chapter{List of 
Figures}\placeLOFbut then I would have to adjust many other things and it 
becomes very messy.
You want this?
\setuplist[chapter][after={\placelist[figure]}]
\setuplist[figure][label=figure,width=6em]
\starttext
\completecontent
\chapter{One}
\placefigure{Two}{2}
\section{Three}
\placefigure{Four}{4}
\chapter{Five}
\placefigure{Six}{6}
\section{Seven}
\placefigure{Eight}{8}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content

2011-06-06 Thread Mathieu Dupont


Great, thank you !
That works just perfect.


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 6 Jun 2011 22:30:47 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Include a list in a list, for example,   a List 
of Figures in a Table of Content




Am 06.06.2011 um 14:57 schrieb Mathieu Dupont:No, not at all.I'm sorry, I 
realize I wasn't clear at all.
What I want is simply the List of Figures to figure in my Table of Content, to 
be listed in it, just such as a chapter or a section.So my TOC would look like 
this :
TABLE OF CONTENTList of Figures . page 1Chapter 1 ... page 
2Chapter 2 ... page 3

\definehead[topic][chapter]\setuphead [topic][number=no]
\starttext
\title{Table of Content}
\placelist[chapter,topic,section]
\topic{List of Figures}
\placelist[figure][criterium=all]
\chapter{One}
\placefigure{Two}{2}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont


This following code works, except that the first random is always the same 
(Analysis) for some reason.
Anyone knows why ?
\enableregime[il1]\starttext\startluacode   userdata = userdata or {}   
math.randomseed( os.time() )function userdata.random(...)   
context(arg[math.random(1, #arg)])  
end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{Maths,
 Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
Schrödinger equation}\par}\stoptext


Mathieu



 From: ota...@gmail.com
 Date: Wed, 8 Jun 2011 18:52:36 +0200
 To: ntg-context@ntg.nl
 Subject: [NTG-context] Random selection of a word in a set with lua and mkiv
 
 Hi all,
 
 Assuming that we have a set of words or expressions, say
   {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
 Schrödinger equation}
 is it possible to write a lua function, named for instance
   randomselectword
 which returns one of the words or expressions selected at random in the above 
 set?
 Indeed this is intended to be used in a TeX file processed with mkiv.
 
 Thanks in advance for any idea and help.
 
 Best regards: OK
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont


I see.So it can be fixed by simply adding the first line before the second 
:\CHOOSERANDOM{}\CHOOSERANDOM{Maths, Physics, Algebra, Analysis, 
Chemistry, Geometry, Wave equation, Schrödinger equation}Thanks, that 
fixes one of my problems !


Mathieu



 Date: Wed, 8 Jun 2011 19:07:50 +0200
 From: pra...@wxs.nl
 To: ntg-context@ntg.nl
 CC: mathieudup...@hotmail.com
 Subject: Re: [NTG-context] Random selection of a word in a set with lua and 
 mkiv
 
 On 8-6-2011 7:00, Mathieu Dupont wrote:
 
 
  This following code works, except that the first random is always the same 
  (Analysis) for some reason.
  Anyone knows why ?
  \enableregime[il1]\starttext\startluacode   userdata = userdata or {}   
  math.randomseed( os.time() )function userdata.random(...)   
  context(arg[math.random(1, #arg)])  
  end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{Maths,
   Physics, Algebra, Analysis, Chemistry, Geometry, Wave 
  equation, Schrödinger equation}\par}\stoptext
 
 Because context remembers the seed (is reported in the log). Delete the 
 tuc file and you will get another value. We could get oscillation 
 otherwise.
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Letter module : pdf not created

2011-06-17 Thread Mathieu Dupont


Hi,
I work with MkIV (ConTeXt Minimals) on a Mac (64).
I just installed the Letter module with :
./first-setup.sh --extras=t-letter

It runs with no error, but no .pdf file is created (in fact, only .log and .tuc 
are created), even though the .log file says :
mkiv lua stats   result saved in file  - Letter.pdf
Could it be due to an intel somewhere in some file of the Letter module that 
I should change for 64 ?
Anyone has an idea, or has encountered the same problem ?
Thanks for any help !

\usemodule[letter]\starttext\startletter\input knuth
\stopletter\stoptext


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

Re: [NTG-context] Letter module : pdf not created

2011-06-17 Thread Mathieu Dupont


I just realized I got the following message :
correspondence   your context is too old, you need at last version '2009.09.21'
system   forcing quit: correspondence
and I installed the Minimals about a month ago...


Mathieu

From: mathieudup...@hotmail.com
To: ntg-context@ntg.nl
Date: Fri, 17 Jun 2011 14:14:43 -0400
Subject: [NTG-context] Letter module : pdf not created









Hi,
I work with MkIV (ConTeXt Minimals) on a Mac (64).
I just installed the Letter module with :
./first-setup.sh --extras=t-letter

It runs with no error, but no .pdf file is created (in fact, only .log and .tuc 
are created), even though the .log file says :
mkiv lua stats   result saved in file  - Letter.pdf
Could it be due to an intel somewhere in some file of the Letter module that 
I should change for 64 ?
Anyone has an idea, or has encountered the same problem ?
Thanks for any help !

\usemodule[letter]\starttext\startletter\input knuth
\stopletter\stoptext


Mathieu   

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

Re: [NTG-context] Letter module : pdf not created

2011-06-18 Thread Mathieu Dupont


Great, it works now, thank you very much Wolfgang and Mojca !
However, I get 3 dashes in the left margin, one about half-way the paper 
height, one about 2 inches above it and one about 3 inches below it.
No matter what I put in the letter, their positions don't change, and they 
appear on every pages.



Mathieu

 From: schuster.wolfg...@googlemail.com
 Date: Sat, 18 Jun 2011 06:42:35 +0200
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Letter module : pdf not created
 
 
 Am 18.06.2011 um 01:06 schrieb Mojca Miklavec:
 
  On Fri, Jun 17, 2011 at 21:18, Mathieu Dupont wrote:
  
  I just realized I got the following message :
  
  correspondence   your context is too old, you need at last version
  '2009.09.21'
  
  I tested a bit and it seems that
 \doifolderversionelse\contextversion
  is not too reliable.
 
 I noticed this too and uploaded a new version where i removed the version 
 test.
 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] No chapter prefixes in section numbers

2011-06-19 Thread Mathieu Dupont


Thanks !
It's done, except for \startchapter, as I did not figure out how to create a 
new page...



Mathieu

Subject: Re: [NTG-context] No chapter prefixes in section numbers
From: schuster.wolfg...@googlemail.com
Date: Sun, 19 Jun 2011 10:02:34 +0200
CC: mathieudup...@hotmail.com
To: ntg-context@ntg.nl




Am 03.06.2011 um 21:43 schrieb Mathieu DUPONT:Is there an exhaustive list of 
all the parameters the \setuphead function can take ?
Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page 
mention this one (sectionsegments).
Where can I find all the parameters one ConTeXt command can take ?
I attached a updated list with a valid parameters for \setuphead and 
\startchapter, you can use it to update the wiki.
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Letter module : \enableregime for accents not working within the letter environment

2011-06-19 Thread Mathieu Dupont


Hi,
In the following example, accents between \startletter and \stopletter only are 
not working.
How could this be fixed ?
Thank you in advance !

\usemodule[letter]
\enableregime[il1]
\setupletterstyle[reference][list=reference]\setupletter[reference=\leftaligned{Montréal}]
\setupletter[   fromname={Montréal},fromaddress={Montréal}, 
toname={Montréal},  toaddress={Montréal},   subject={Montréal}, 
opening={Montréal}, closing={Montréal}, signature={Montréal},   ]
\starttext
Montréal
\startletter
(startletter)
Montréal Montréal Montréal Montréal
(stopletter)
\stopletter
Montréal
\stoptext


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

[NTG-context] \placenamedformula \placelist MKIV \endgraf

2012-01-17 Thread Mathieu Dupont

Hi everyone,
With MKIV, the names of formulas don't get written in the List Of Formulas 
anymore.The following example works fine for me in MKII, but not in MKIV.The 
only bug is that the names of formulas don't appear in the LOF.Anyone knows a 
way around ?
Thank you very much !
Oh, and also, what is the use/necessity of \endgraf ?

\starttext
\subsubject{List of Formulas}\placelist[formula][criterium=text,alternative=c] 
\subsubject{Formulas}\placenamedformula[one]{First listed Formula}\startformula 
a = 1 \stopformula \endgraf
\placeformula\startformula a = 2 \stopformula \endgraf
\placenamedformula{Second listed Formula}{b}\startformula a = 3 \stopformula 
\endgraf
\stoptext

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

[NTG-context] LuaTeX Function Arguments Variables Parameters List ConTeXt Lua \startluacode

2012-01-27 Thread Mathieu Dupont

Hi List,
I am trying to program with Lua but there are concepts I must not understand, 
and the documentation is somewhat lacking.
The only useful thing I could use is Hans' manual, thanks to him.
If someone could help me just understanding the concept I must me missing in 
this simple example I would appreciate it.
So here it is.
Running the following code, variable a should not be modified by my function, 
and stay (1,2), but it does get modified and becomes (4,2) like the new 
variable b I am creating.
What is wrong with my code ?
Thank you for any hint !
Mathieu

\starttext

\startluacode

function myFunc(arg)
local var = arg
var[1] = var[1] + 3
return var
end

local a = {1,2}

context(a = \\{)
context(a[1])
context(,\\;)
context(a[2])
context(\\}\\par)
context(\\blank)

local b = myFunc(a)

context(a = \\{)
context(a[1])
context(,\\;)
context(a[2])
context(\\}\\par)
context(\\blank)

context(b = \\{)
context(b[1])
context(,\\;)
context(b[2])
context(\\}\\par)

\stopluacode

\stoptext






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

Re: [NTG-context] LuaTeX Function Arguments Variables Parameters List ConTeXt Lua \startluacode

2012-01-27 Thread Mathieu Dupont

Great, thank you very much Philipp.
I will also read this page you pointed and I should understand better Lua then.
http://wiki.contextgarden.net/table_manipulation

Mathieu

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

[NTG-context] Changing math font - sansserif - sans serif

2012-06-05 Thread Mathieu Dupont

Hi mailing list,
Could someone help me figuring out what is the simplest way to have all my math 
font without serif, in the small example below, without losing anything, such 
as my \tau parameter ?
Thank you very much for any hint !
\enableregime[il1]
\setupbodyfont[sansserif,11pt]
\starttext
\startformula \startalign   \NC Q_{x_T}(H_0)\equiv 
Q(H_0)\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\;P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR 
  \NC\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\prod_{\tau=0}^{\tau^*-1}P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR
  \NC\NC=\Epsilon_{P_{x_{T_0}}}\left[\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\right]\NR\stopalign \stopformula
\stoptext

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

Re: [NTG-context] Changing math font - sansserif - sans serif

2012-06-06 Thread Mathieu Dupont
Ok, I can do with serif then.

Thank you Hans !


Mathieu

Le 2012-06-06 à 03:45, Hans Hagen a écrit :

 On 6-6-2012 00:56, Mathieu Dupont wrote:
 
 Hi mailing list,
 Could someone help me figuring out what is the simplest way to have all my 
 math font without serif, in the small example below, without losing 
 anything, such as my \tau parameter ?
 Thank you very much for any hint !
 \enableregime[il1]
 \setupbodyfont[sansserif,11pt]
 \starttext
 \startformula \startalign\NC Q_{x_T}(H_0)\equiv 
 Q(H_0)\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
 h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\;P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR  
  \NC\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
 h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\prod_{\tau=0}^{\tau^*-1}P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR
   \NC\NC=\Epsilon_{P_{x_{T_0}}}\left[\prod_{\tau=0}^{\tau^*-1} 
 h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\right]\NR\stopalign \stopformula
 \stoptext
 
 There is no sans math font (unless you have installed hvmath). It is still 
 under discussion if there will ever be a (complete) sans math font as part of 
 the tex gyre project.
 
 In principle it's not that hard to fake one. You can for instance take one of 
 the *-math.lfg files and choose other font files and hope for the best. Math 
 and sans simply don't go well. Of course the sans math alphabets work with 
 most fonts so one can always go that route with a regular math font.
 
 (I will probably cook up some simple variant some day suitable for elementary 
 math but that's easier as it uses less symbols.)
 
 Hans
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Roman numbers for chapters in chapter lines but not in section lines

2011-05-22 Thread Mathieu DUPONT


Hi,
I am trying to obtain the following result :
CHAPITRE I Title of chapter1.1  Title of section1.1.1   Title of subsection
In other words, I need my chapter numbers to be in roman number, but not in the 
numbers of the sections and subsections (1.1.1 and not I.1.1).
Here is the base code :
\setuplist [chapter] 
[label=yes,style={\blank[0cm]}]\setupsection[section-2][conversion=Romannumerals]\setuplabeltext[chapter=CHAPITRE~]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of 
subsection}
\stoptext 
which results in :
CHAPITRE I Title of chapterI.1  Title of sectionI.1.1   Title of subsection
Any idea ?All help is greatly appreciated.
Thanks a bunch,

Mathieu

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

Re: [NTG-context] Appendix label in TOC (Table of Contents) : APPENDIX instead of CHAPTER

2011-05-23 Thread Mathieu DUPONT


Effectively, now that I've installed MkIV, I get the output I expected.
Thank you very much, Wolfgang !



Mathieu

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

Re: [NTG-context] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Mathieu DUPONT


This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of 
subsection}
\stoptext
results in :
CHAPITRE I Title of chapterI.I  Title of sectionI.I.I   Title of subsection
Now everything is in Roman !

Mathieu

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

[NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Mathieu DUPONT


I followed all these steps to install MkIV on a Mac and to run it with either 
Smultron or TexShop :
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

However it works fine with Smultron (but I am more used to TexShop to run TeX 
files), with TexShop I get :
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Even after running the following command line :
luatools --generate
it doesn't help at all.

Thanks for any hint,

Mathieu

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

Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

2011-05-23 Thread Mathieu DUPONT


Awsome !
It entirely solved my problem !
Thank you very much !!



Mathieu



From: matwe...@indiana.edu
Date: Mon, 23 May 2011 15:06:55 -0400
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] MkIV : MTXrun | unknown script 'context.lua' or  
'mtx-context.lua'



I ran into the exact same problem. Aditya resolved the issue as follows:

The wiki info to create  an executable  file ConTeXt-MKIV.engine containing
#!/bin/bashexport 
PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATHexport 
TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cachecontext $1
in ~/Library/TeXShop/Enginesis slightly but catastrophically outdated. The file 
needs to read
#!/bin/bashexport 
PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:$PATHexport 
TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cachecontext $1
Matthias


On May 23, 2011, at 2:13 PM, Mathieu DUPONT wrote:I followed all these steps to 
install MkIV on a Mac and to run it with either Smultron or TexShop :
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation

However it works fine with Smultron (but I am more used to TexShop to run TeX 
files), with TexShop I get :
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Even after running the following command line :
luatools --generate
it doesn't help at all.

Thanks for any hint,

Mathieu

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

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

Re: [NTG-context] Roman numbers for chapters in chapter lines but not in section lines

2011-05-23 Thread Mathieu DUPONT


Ok, me too, now that MkIV is correctly installed with TexShop...
Thank you very much Wolfgang !



Mathieu



From: schuster.wolfg...@googlemail.com
Date: Mon, 23 May 2011 20:07:25 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Roman numbers for chapters in chapter lines but  
not in section lines




Am 23.05.2011 um 20:02 schrieb Mathieu DUPONT:This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of 
subsection}
\stoptext
results in :
CHAPITRE I Title of chapterI.I  Title of sectionI.I.I   Title of subsection
Now everything is in Roman !
Not for me, i tested my example and got the output you described in your mail.
ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.23  int: english/english
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-23 Thread Mathieu DUPONT


Hi,
Is there a simple way to obtain the following result in the table of content :
ContentsCHAPTER 1Title of chapter21.1Title of 
section2
(the chapter title underneath its number and left aligned, just like everything 
else)
The following code used to do the job with MkII but it doesn't anymore with 
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes, 
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of 
section}\stopbodymatter
\stoptext 
Instead, I get something like this (I hope it turns out readable through the 
email) :
ContentsCHAPTER 1  Title of chapter21.1Title of 
section2
where the 2 lines of the chapter, together with their alignment with the frame, 
get tossed to the right...
Thanks in advance !

Mathieu

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