Re: [NTG-context] man pages for ConTeXt: looking for volunteers

2013-03-26 Thread Hans Hagen

On 3/26/2013 1:15 AM, Sietse Brouwer wrote:

Sietse wrote:

5. Lastly, I think it would be good to include a standard SEE ALSO
block at the end of each man page, to list all the scripts we have man
pages for.


Hans wrote:

sure, we can add stuff


How about this?


and where should that go into?


seealsos
  seealso name=contextCompile a ConTeXt file or recompile ConTeXt./seealso
  seealso name=mtx-babelConvert LaTeX Babel codes for Greek into
   UTF-8/seealso
  seealso name=mtx-baseConTeXt TDS Management Tool (aka luatools)/seealso
  seealso name=mtx-cacheManage the ConTeXt and MetaTeX cache/seealso
  seealso name=mtx-charsGenerate MkII character tables/seealso
  seealso name=mtx-checkCheck ConTeXt file for syntax errors/seealso
  !-- FIXME what sort of color file? Example invocation (with
   existing file) would help. --
  seealso name=mtx-colorsShow International Color Consortium table for
   a file/seealso
  seealso name=mtx-context (See `context`)/seealso
  seealso name=mtx-epubCreate ePub zip file/seealso
  seealso name=mtx-fcdConvenience script for fast
directory-changing/seealso
  seealso name=mtx-flacCollect Flac albums in XML file/seealso
  seealso name=mtx-fontsInspect and manage the ConTeXt font
database/seealso
  seealso name=mtx-grepA simple Lua-based grep/seealso
  seealso name=mtx-interfaceLists of ConTeXt commands (for text
editors)/seealso
  seealso name=mtx-metapostCompile MetaPost to PDF/seealso
  !-- FIXME what sort of processes? --
  seealso name=mtx-metatexMetaTeX process management/seealso
  seealso name=mtx-modulesExtract `%D`-style documentation from
   ConTeXt module source files/seealso
  seealso name=mtx-packageMerge: replace loadmodule(...) calls
   with module contents/seealso
  seealso name=mtx-patternsProduce files for ConTeXt describing
   hyphenation patters/seealso
  seealso name=mtx-pdfInspect metadata and font info of PDFs/seealso
  !-- FIXME needs better description? --
  seealso name=mtx-profileLuaTeX profiler/seealso
  seealso name=mtx-rsyncRsync helper script/seealso
  seealso name=mtxrunMetaTeX factotum: run scripts and get info/seealso
  seealso name=mtx-sciteConvert spelling dictionaries to SciTE Lua
   format/seealso
  seealso name=mtx-serverSimple webserver/seealso
  seealso name=mtx-texworksTeXworks startup script/seealso
  seealso name=mtx-timingProcess timing data after
   `context --timing` run/seealso
  seealso name=mtx-toolsTools to glob directories into XML/seealso
  seealso name=mtx-unzipSimple unzipper/seealso
  seealso name=mtx-updateUpdating script for ConTeXt minimals,
   used by first-setup.sh/seealso
  !-- FIXME check mtx-watch description --
  seealso name=mtx-watchWatch a file for changes/seealso
/seealsos




--

-
  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] \setupheadertexts [section]

2013-03-26 Thread Alan BRASLAU
Hello,

\setupheadertexts [chapter]

will center the current chapter title (or abbreviated version using
marking=) in the running page headers.

However, how can one also put unnumbered chapter-level titles
(\starttitle\stoptitle) in the running headers?

\setupheadertexts [chapter,title]
seems natural but does not work.


Also, what seems to be a bug, the running text does *not* get reset to
empty upon leaving the chapter. Below is a minimal illustration
(nonworking as it is incomplete, only a snippet)

\setupheadertexts [chapter]

\starttext

\startpart % lets have some structure...

Some introductory text...

\startchapter [title=Getting started]

Some text...

\stopchapter

\page [yes]

Some trailing remarks...
% the header here still contains Getting started

\stoppart

\stoptext


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
___


Re: [NTG-context] \setupheadertexts [section]

2013-03-26 Thread Otared Kavian
Hi Alan,

I think the reason is that ConTeXt expects any text to be part of a certain 
structure as in
Chapter  Section  Subsection
and therefore what you add after your chapter, that is

 \page [yes]
 
 Some trailing remarks…

should be part of a new chapter (or maybe an unnumbered chapter).

Best regards: OK

On 26 mars 2013, at 11:37, Alan BRASLAU alan.bras...@cea.fr wrote:

 Hello,
 
 \setupheadertexts [chapter]
 
 will center the current chapter title (or abbreviated version using
 marking=) in the running page headers.
 
 However, how can one also put unnumbered chapter-level titles
 (\starttitle\stoptitle) in the running headers?
 
 \setupheadertexts [chapter,title]
 seems natural but does not work.
 
 
 Also, what seems to be a bug, the running text does *not* get reset to
 empty upon leaving the chapter. Below is a minimal illustration
 (nonworking as it is incomplete, only a snippet)
 
 \setupheadertexts [chapter]
 
 \starttext
 
 \startpart % lets have some structure...
 
 Some introductory text...
 
 \startchapter [title=Getting started]
 
 Some text...
 
 \stopchapter
 
 \page [yes]
 
 Some trailing remarks...
 % the header here still contains Getting started
 
 \stoppart
 
 \stoptext
 
 
 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] man pages for ConTeXt: looking for volunteers

2013-03-26 Thread Sietse Brouwer
Sietse wrote:
 How about this See Also block

Hans wrote:
 and where should that go into?

At the end of each man page, as a standard footer --- so that people
may discover the mtx scripts and their capabilities. You can also
reduce it to just a list of script names without descriptions:

context  mtx-flac   mtx-profile
mtx-babelmtx-fonts  mtx-rsync
mtx-base mtx-grep   mtxrun
mtx-cachemtx-interface  mtx-scite
mtx-charsmtx-metapost   mtx-server
mtx-checkmtx-metatexmtx-texworks
mtx-colors   mtx-modulesmtx-tools
mtx-context  mtx-packagemtx-unzip
mtx-epub mtx-patterns   mtx-update
mtx-fcd  mtx-pdfmtx-watch

--Sietse

On 26 March 2013 10:38, Hans Hagen pra...@wxs.nl wrote:
 On 3/26/2013 1:15 AM, Sietse Brouwer wrote:

 Sietse wrote:

 5. Lastly, I think it would be good to include a standard SEE ALSO
 block at the end of each man page, to list all the scripts we have man
 pages for.


 Hans wrote:

 sure, we can add stuff


 How about this?


 and where should that go into?


 seealsos
   seealso name=contextCompile a ConTeXt file or recompile
 ConTeXt./seealso
   seealso name=mtx-babelConvert LaTeX Babel codes for Greek into
UTF-8/seealso
   seealso name=mtx-baseConTeXt TDS Management Tool (aka
 luatools)/seealso
   seealso name=mtx-cacheManage the ConTeXt and MetaTeX cache/seealso
   seealso name=mtx-charsGenerate MkII character tables/seealso
   seealso name=mtx-checkCheck ConTeXt file for syntax errors/seealso
   !-- FIXME what sort of color file? Example invocation (with
existing file) would help. --
   seealso name=mtx-colorsShow International Color Consortium table for
a file/seealso
   seealso name=mtx-context (See `context`)/seealso
   seealso name=mtx-epubCreate ePub zip file/seealso
   seealso name=mtx-fcdConvenience script for fast
 directory-changing/seealso
   seealso name=mtx-flacCollect Flac albums in XML file/seealso
   seealso name=mtx-fontsInspect and manage the ConTeXt font
 database/seealso
   seealso name=mtx-grepA simple Lua-based grep/seealso
   seealso name=mtx-interfaceLists of ConTeXt commands (for text
 editors)/seealso
   seealso name=mtx-metapostCompile MetaPost to PDF/seealso
   !-- FIXME what sort of processes? --
   seealso name=mtx-metatexMetaTeX process management/seealso
   seealso name=mtx-modulesExtract `%D`-style documentation from
ConTeXt module source files/seealso
   seealso name=mtx-packageMerge: replace loadmodule(...) calls
with module contents/seealso
   seealso name=mtx-patternsProduce files for ConTeXt describing
hyphenation patters/seealso
   seealso name=mtx-pdfInspect metadata and font info of PDFs/seealso
   !-- FIXME needs better description? --
   seealso name=mtx-profileLuaTeX profiler/seealso
   seealso name=mtx-rsyncRsync helper script/seealso
   seealso name=mtxrunMetaTeX factotum: run scripts and get
 info/seealso
   seealso name=mtx-sciteConvert spelling dictionaries to SciTE Lua
format/seealso
   seealso name=mtx-serverSimple webserver/seealso
   seealso name=mtx-texworksTeXworks startup script/seealso
   seealso name=mtx-timingProcess timing data after
`context --timing` run/seealso
   seealso name=mtx-toolsTools to glob directories into XML/seealso
   seealso name=mtx-unzipSimple unzipper/seealso
   seealso name=mtx-updateUpdating script for ConTeXt minimals,
used by first-setup.sh/seealso
   !-- FIXME check mtx-watch description --
   seealso name=mtx-watchWatch a file for changes/seealso
 /seealsos



 --

 -
   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] \setupheadertexts [section]

2013-03-26 Thread Alan BRASLAU
On Tue, 26 Mar 2013 12:00:49 +0100
Otared Kavian ota...@gmail.com wrote:

 I think the reason is that ConTeXt expects any text to be part of a
 certain structure as in Chapter  Section  Subsection
 and therefore what you add after your chapter, that is
 
  \page [yes]
  
  Some trailing remarks…  
 
 should be part of a new chapter (or maybe an unnumbered chapter).
 
 Best regards: OK

It is part of a certain structure: part...
No logic should require chapter or lower structure. After all, what is
the point of \stopchapter in that case?
The same can occur within a chapter, when one leaves a section.
One should just go back up one level, as is the case for the
introductory remarks.


Also, I tried putting a unnumbered chapter
(\starttitle\stoptitle). Indeed, this corresponds to the first part of
my question concering \setupheadertexts [chapter,title].

I supposed that one can try to cheat:
\startchapter [title=,placehead=no,incrementnumber=no,...]
but this is not very elegant.

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] \setupenumerations, alternative=serried is ignored when setting up multiple enumerations

2013-03-26 Thread Sietse Brouwer
Hi Tobias,

 When I try to use \setupenumerations in the latest beta
 (2013.03.22 12:06) for multiple enumerations, the
 alternative=... is ignored for all but the first enumeration.

It's not just the enumeration; e.g. the color key, too is applied to
only to the first enumeration class named.

I haven't seen the idiom
\setupenumerations[a,b][...]
before; I have always used
\setupenumerations[a][...]
\setupenumerations[b][...]
which works fine. Does the manual you were using mention anywhere that
the [a,b] idiom should work? If it doesn't, perhaps you simply made a
misassumption; if it does, someone more knowledgeable should tell us
whether it is the manual or the code that is wrong. Thanks anyhow for
bringing this up on the mailing list, of course. And have fun learning
ConTeXt!

Cheers,
Sietse

(Slightly changed MWE below, which shows the behaviour of serried)

\defineenumeration[a] [text=a]
\defineenumeration [b] [text=b]

% This only sets up a
\setupenumerations [a,b][alternative=serried, color=red]

% This sets up both a and b
% \setupenumerations [a][alternative=serried, color=red]
% \setupenumerations [b][alternative=serried, color=red]


\starttext
\starta
\input ward
\stopa
\startb
\input ward
\stopb
\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
___


[NTG-context] userpagenumber

2013-03-26 Thread Thomas A. Schmitz

Hi,

shouldn't this work?

\setupuserpagenumber[number=34]

\starttext

\dorecurse{20}{\userpagenumber \page}

\stoptext

I must admit that I'm pretty confused about pagenumbering; there are too 
many options of \setup...pagenumber and \setup...pagenumbering for my 
simple brain now, and I often don't know which is supposed to do what.


All best

Thomas
___
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] userpagenumber

2013-03-26 Thread Marco Patzer
On 2013–03–26 Thomas A. Schmitz wrote:

 shouldn't this work?
 
 \setupuserpagenumber[number=34]

I don't know if that's the recommended way, but I set the page
number as follows:

  \setcounter [userpage] [34]


Marco


signature.asc
Description: Digital signature
___
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] Rebuilding font cache fails

2013-03-26 Thread Marco Patzer
Hi,

rebuilding the font cache fails in the latest beta. I didn't check
the last few beta, though.

mtxrun --script fonts --reload
..beta/tex/texmf-context/scripts/context/lua/mtx-fonts.lua:173: attempt to 
index global 'arguments' (a nil value)


Marco


signature.asc
Description: Digital signature
___
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] userpagenumber

2013-03-26 Thread Thomas A. Schmitz

On 03/26/2013 01:54 PM, Marco Patzer wrote:

I don't know if that's the recommended way, but I set the page
number as follows:

   \setcounter [userpage] [34]


Thank you. Yes that works, but I thought that \setupuserpagenumber was 
the proper way to do those things.


Thomas
___
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] userpagenumber

2013-03-26 Thread Wolfgang Schuster

Am 26.03.2013 um 18:03 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 On 03/26/2013 01:54 PM, Marco Patzer wrote:
 I don't know if that's the recommended way, but I set the page
 number as follows:
 
   \setcounter [userpage] [34]
 
 Thank you. Yes that works, but I thought that \setupuserpagenumber was the 
 proper way to do those things.

1. \setuppagenumber is a synonym for \setupuserpagenumber

2. The “number=XX” setting doesn’t work in MkIV and you have to use 
\setupcounter.

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
___


Re: [NTG-context] \setupenumerations, alternative=serried is ignored when setting up multiple enumerations

2013-03-26 Thread Wolfgang Schuster

Am 26.03.2013 um 12:52 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Hi Tobias,
 
 When I try to use \setupenumerations in the latest beta
 (2013.03.22 12:06) for multiple enumerations, the
 alternative=... is ignored for all but the first enumeration.
 
 It's not just the enumeration; e.g. the color key, too is applied to
 only to the first enumeration class named.
 
 I haven't seen the idiom
\setupenumerations[a,b][...]
 before; I have always used
\setupenumerations[a][...]
\setupenumerations[b][...]
 which works fine. Does the manual you were using mention anywhere that
 the [a,b] idiom should work? If it doesn't, perhaps you simply made a
 misassumption; if it does, someone more knowledgeable should tell us
 whether it is the manual or the code that is wrong. Thanks anyhow for
 bringing this up on the mailing list, of course. And have fun learning

It’s a bug in the command handler, I will post a detailed description of error 
on the developer list.

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
___


Re: [NTG-context] \setupenumerations, alternative=serried is ignored when setting up multiple enumerations

2013-03-26 Thread Tobias Columbus
Hi Sietse, Wolfgang,

Thanks for your replies!

Indeed, I do not have a reference to some manual. However, there is this
old thread http://www.ntg.nl/pipermail/ntg-context/2010/046090.html and reading
\setupenumerations in plural form, I just supposed that it should work for
multiple enumerations, too.

Tobias

On Tue, Mar 26, 2013 at 6:09 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 26.03.2013 um 12:52 schrieb Sietse Brouwer sbbrou...@gmail.com:

  Hi Tobias,
 
  When I try to use \setupenumerations in the latest beta
  (2013.03.22 12:06) for multiple enumerations, the
  alternative=... is ignored for all but the first enumeration.
 
  It's not just the enumeration; e.g. the color key, too is applied to
  only to the first enumeration class named.
 
  I haven't seen the idiom
 \setupenumerations[a,b][...]
  before; I have always used
 \setupenumerations[a][...]
 \setupenumerations[b][...]
  which works fine. Does the manual you were using mention anywhere that
  the [a,b] idiom should work? If it doesn't, perhaps you simply made a
  misassumption; if it does, someone more knowledgeable should tell us
  whether it is the manual or the code that is wrong. Thanks anyhow for
  bringing this up on the mailing list, of course. And have fun learning

 It’s a bug in the command handler, I will post a detailed description of
 error on the developer list.

 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] \setuphead [bodypartlabel=]

2013-03-26 Thread Alan BRASLAU
\setuplabeltext [chapter=Chapter ]

enables a label in chapter headings.

Sometimes, one wants to have an unnumbered chapter-level structure that
otherwise appears in the table of contents, bookmarks, marking, etc.
without having to make many special definitions.

One suggests:
\definehead [NOchapter] [chapter]
\setuphead [NOchapter] [incrementnumber=no,number=no,bodypartlabel=]

\starttext
\startNOchapter [title=Introduction]
\stopNOchapter
\startchapter [title=First chapter]
\stopchapter
\stoptext

And then adding NOchapter to the contents combined list, to the
bookmarks, and so on, not to speak about marking. Ugh!

Much easier would be the occasional use of
\startchapter [title=Introduction,incrementnumber=no,number=no,bodypartlabel=]
\stopchapter
but this does not work! One gets: Chapter Introduction.
That this does not work I suppose might be somewhat of a bug...

Even better, more coherent, more logical, would be
\startchapter [title=Introduction,incrementnumber=no,number=no,label=no]
\stopchapter
(Note that label=no is used for lists).

This would also have the advantage of allowing the chapter labeltext to be 
defined
for each language, rather than be empty, so that it could then be simply turned 
on or off.
In fact, label=no would be the default setup.

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
___


Re: [NTG-context] \setuphead [bodypartlabel=]

2013-03-26 Thread Wolfgang Schuster

Am 26.03.2013 um 19:15 schrieb Alan BRASLAU alan.bras...@cea.fr:

 \setuplabeltext [chapter=Chapter ]
 
 enables a label in chapter headings.
 
 Sometimes, one wants to have an unnumbered chapter-level structure that
 otherwise appears in the table of contents, bookmarks, marking, etc.
 without having to make many special definitions.
 
 One suggests:
 \definehead [NOchapter] [chapter]
 \setuphead [NOchapter] [incrementnumber=no,number=no,bodypartlabel=]
 
 \starttext
 \startNOchapter [title=Introduction]
 \stopNOchapter
 \startchapter [title=First chapter]
 \stopchapter
 \stoptext

\startnamedsection[NOchapter][title=…]
…
\stopnamedsection
\startnamedsection[chapter][title=…]
…
\stopnamedsection

 And then adding NOchapter to the contents combined list, to the
 bookmarks, and so on, not to speak about marking. Ugh!
 
 Much easier would be the occasional use of
 \startchapter [title=Introduction,incrementnumber=no,number=no,bodypartlabel=]
 \stopchapter
 but this does not work! One gets: Chapter Introduction.
 That this does not work I suppose might be somewhat of a bug...
 
 Even better, more coherent, more logical, would be
 \startchapter [title=Introduction,incrementnumber=no,number=no,label=no]
 \stopchapter
 (Note that label=no is used for lists).
 
 This would also have the advantage of allowing the chapter labeltext to be 
 defined
 for each language, rather than be empty, so that it could then be simply 
 turned on or off.

\setuplabeltext[en][chapter=…]
\setuplabeltext[nl][chapter=…]

 In fact, label=no would be the default setup.

\setuplist[chapter][label=yes|no|none|NAME]

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
___


Re: [NTG-context] \setuphead [bodypartlabel=]

2013-03-26 Thread Alan BRASLAU
On Tue, 26 Mar 2013 19:25:27 +0100
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 26.03.2013 um 19:15 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  \setuplabeltext [chapter=Chapter ]
  
  enables a label in chapter headings.
  
  Sometimes, one wants to have an unnumbered chapter-level structure
  that otherwise appears in the table of contents, bookmarks,
  marking, etc. without having to make many special definitions.
  
  One suggests:
  \definehead [NOchapter] [chapter]
  \setuphead [NOchapter] [incrementnumber=no,number=no,bodypartlabel=]
  
  \starttext
  \startNOchapter [title=Introduction]
  \stopNOchapter
  \startchapter [title=First chapter]
  \stopchapter
  \stoptext
 
 \startnamedsection[NOchapter][title=…]
 …
 \stopnamedsection
 \startnamedsection[chapter][title=…]
 …
 \stopnamedsection
 
  And then adding NOchapter to the contents combined list, to the
  bookmarks, and so on, not to speak about marking. Ugh!
  
  Much easier would be the occasional use of
  \startchapter
  [title=Introduction,incrementnumber=no,number=no,bodypartlabel=]
  \stopchapter but this does not work! One gets: Chapter
  Introduction. That this does not work I suppose might be somewhat
  of a bug...
  
  Even better, more coherent, more logical, would be
  \startchapter
  [title=Introduction,incrementnumber=no,number=no,label=no]
  \stopchapter (Note that label=no is used for lists).
  
  This would also have the advantage of allowing the chapter
  labeltext to be defined for each language, rather than be empty, so
  that it could then be simply turned on or off.
 
 \setuplabeltext[en][chapter=…]
 \setuplabeltext[nl][chapter=…]
 
  In fact, label=no would be the default setup.
 
 \setuplist[chapter][label=yes|no|none|NAME]
 
 Wolfgang

All of this does not take care of handling NOchapter in marking,
bookmarks, contents, etc. Consider:
\setupheadertexts [chapter]
\placebookmarks [chapter,section] [chapter]
\definecombinedlist [content] [chapter,section,subsection]

Nor the fact that labeltext chapter is empty by default,
rather than simply disabled or turned-off.

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
___

Re: [NTG-context] \setuphead [bodypartlabel=]

2013-03-26 Thread Wolfgang Schuster

Am 26.03.2013 um 19:54 schrieb Alan BRASLAU alan.bras...@cea.fr:

 All of this does not take care of handling NOchapter in marking,
 bookmarks, contents, etc. Consider:
 \setupheadertexts [chapter]
 \placebookmarks [chapter,section] [chapter]
 \definecombinedlist [content] [chapter,section,subsection]

TOC entries can be suppressed with “saveinlist=no”.

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] mptopdf problem: he is broken and asking for fix

2013-03-26 Thread Martin Bruchanov
Hi,

I'm using:

MPtoPDF 1.4.1 : running 'mpost --mem=mpost  linejoin.mp'
This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)

Attached sources give following error:

This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)  26
MAR 2013 22:04
**linejoin.mp
(mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) ) (./linejoin.mp
(./line_makro.mp) [1
! This can't happen (degenerate spec).
endfig-scantokens.extra_endfig;shipit;
   endgroup
l.24 endfig
   ;
I'm broken. Please show this to someone who can fix can fix

So I hope, there is someone who can fix :)

Best regards,

BruXy

-- 
Martin Bruchanov

Skype :  bruxytronics
WWW   :  http://bruxy.regnet.cz/
GPG-Key   :  http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53)
Linked-In :  http://www.linkedin.com/in/bruxy
Google+   :  http://gplus.to/BruXy
input line_makro.mp

def drawjoin(text cap)(text move)(expr xsour)(text desc) =
x0 := xsour;
linejoin := cap;
label.top(desc, z0+(0, 1u));
line(move)(tl, tlline); 
line(move)(.4bp, black); 
put_points(shifted (xsour, 0));
enddef;

% Rohy navazujicich car
beginfig(1); %% 
path p;

z0 = (0,0);
z1 = (1u,1u);
z2 = (2u,0);
p := z0--z1--z2;

drawjoin(rounded)()(0)(rounded);
drawjoin(beveled)(shifted z0)(3u)(beveled);
drawjoin(mitered)(shifted z0)(6u)(mitered);
endfig;
end;


def line(text t)(expr size,col) =
draw p t withpen pencircle scaled size withcolor col;
enddef;

def bod(text t) =
draw p t withpen pencircle scaled .4bp;
enddef;

def put_points(text t) =
for i = z0,z1,z2:
if i = z0:
drawdot i withpen bodik;
else: 
drawdot i t withpen bodik;
fi;
endfor;
enddef;



defaultfont := cmtt10;
u := cm;

% uzka carka
nl := .4bp;
pen bodik;
bodik := pensquare scaled 2nl;

color tlline;
tlline := 0.7white;

tl := 3mm;
%drawdot (0,0) shifted (-1cm, 0) withpen bodik;




pgp0gSdrUwMMq.pgp
Description: PGP signature
___
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] Rebuilding font cache fails

2013-03-26 Thread Hans Hagen

On 3/26/2013 4:49 PM, Marco Patzer wrote:

Hi,

rebuilding the font cache fails in the latest beta. I didn't check
the last few beta, though.

mtxrun --script fonts --reload
...beta/tex/texmf-context/scripts/context/lua/mtx-fonts.lua:173: attempt to 
index global 'arguments' (a nil value)


hm, arguments.force should be getargument(force)

(just delete the fonts/names.tm* files in the cache ... context will 
regenerate itself)


the bug is a side effect of a speedup (btw, one seldom has to manually 
generate the database)


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] mptopdf problem: he is broken and asking for fix

2013-03-26 Thread Hans Hagen

On 3/26/2013 10:07 PM, Martin Bruchanov wrote:

Hi,

I'm using:

MPtoPDF 1.4.1 : running 'mpost --mem=mpost  linejoin.mp'
This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)

Attached sources give following error:

This is MetaPost, version 1.800 (kpathsea version 6.1.1dev)  26
MAR 2013 22:04
**linejoin.mp
(mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp
Preloading the plain mem file, version 1.004) ) (./linejoin.mp
(./line_makro.mp) [1
! This can't happen (degenerate spec).
endfig-scantokens.extra_endfig;shipit;
endgroup
l.24 endfig
;
I'm broken. Please show this to someone who can fix can fix

So I hope, there is someone who can fix :)


Next time, try to make a small example (i lack the time to zoom in to 
the smallest problem).


Taco,

Can this be a bug in mplib?


\startMPpage

def drawdot =
addto currentpicture contour makepath currentpen
enddef ;

linejoin := mitered;

drawdot withpen pensquare ;

\stopMPpage

It looks like mitered and pensquare pen building don't go along.

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
___