[NTG-context] lost in documentation

2010-01-16 Thread Wolfgang Werners-Lucchini
Hallo,

this are the things which driving me nuts:

Suppose I want to numerate my sections with uppercase characters.
In texshow-web I found

\setuphead[section-3][bodypartconversion=Characters]

but this does not work. I deleted the 's' from Characters

\setuphead[section-3][bodypartconversion=Character]

but that is not working too.

At the garden page 'titles' I found

\setupsection[section-3][bodypartconversion=Character]

that works, but it does not correspont to the syntaxdescription in 
texshow-web, which is

\setupsection[...][...][...,...=...,...]
[...]   name
[...]   name
conversion  numbers characters Characters romannumerals Romannumerals
previousnumber  yes no 

The second parameter should be a 'name' and bodypartconversion is not 
a parameter at all.

Looking at the description, my problem should be solved by

\setupsection[section-3][][conversion=Characters]

and this works. But the version

\setupsection[section-3][conversion=Characters]

works too. Why? And what is the difference to the first solution?

So much open questions. So much lost time.

Wolfgang, a little bit frustrated.

___
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] stopper and separator

2010-01-16 Thread Wolfgang Werners-Lucchini
Hallo,

can anyone explain, what

\setupheads[stopper={A}]

resp.

\setupheads[separator={B}]

should do?

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] leftedge

2010-01-16 Thread Wolfgang Werners-Lucchini
Hallo,

in

\setupbackgrounds[header][leftedge,text,rightedge][bottomframe=on]

left- and rightedge is not recognized. 

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] leftedge

2010-01-16 Thread Willi Egger

Hi Wolfgang,

if i understand it correctly, then the left- and rightedge option is  
only valid in screen documents (e.g presentations).


Willi
On Jan 16, 2010, at 4:30 PM, Wolfgang Werners-Lucchini wrote:


Hallo,

in

\setupbackgrounds[header][leftedge,text,rightedge][bottomframe=on]

left- and rightedge is not recognized.

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] stopper and separator

2010-01-16 Thread Willi Egger

Hi Wolfgand,

Stopper should place the given text (A) at the end of a numbering  
e.g. 1.2A -- It looks like that it is not working though.
Separator  places the given text (B) inbetween numbers like 1B2. This  
options works.


Keep in mind, that this mechanism has changed completely in MKIV!
From an earlier mail on this list:

\starttext

\definestructureconversionset[default] 
[Character,number,Romannumerals,Character][number]

\definestructureseparatorset [default][.,.,--][.]

\setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]

\section {One}

\subsection[sec:test]{Two}

See \in[sec:test]

\stoptext

Willi


On Jan 16, 2010, at 4:30 PM, Wolfgang Werners-Lucchini wrote:


Hallo,

can anyone explain, what

\setupheads[stopper={A}]

resp.

\setupheads[separator={B}]

should do?

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] last chapter number

2010-01-16 Thread Andreas Harder
Hi all,

is there already an equivalent to \lastpage for the last chapter number in a 
document. I tried something like \getmarking[chapternumber][last], but the 
output is still the current chapter number.

Thanks in advance

Andreas
___
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] \everyaftershipout isn't called for every pagebreak

2010-01-16 Thread Andreas Schneider
Hi,

I'm using \appendtoks...\to\everyaftershipout to reset a variable on every 
pagebreak. This doesn't work as I expect(ed) it, since it seems to only 
trigger after a paragraph. The following example shows the problem. On every 
new page, the first footnote should be New, which is not the case here.
What would be the way to go for me, to get the result I described?

Thanks in advance,
Andreas.


The example:

\define\test{\doifelse{\getvalue{testvar}}{page}{%
  \footnote{Repeat}%
}{%
  \footnote{New}%
  \setvalue{testvar}{page}%
}}

\appendtoks
  \global\setvalue{testvar}{}
\to\everyaftershipout

\starttext
  \dorecurse{10}{\dorecurse{250}{text }\test}

  \dorecurse{10}{\dorecurse{250}{text }\test}
\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] leftedge

2010-01-16 Thread Wolfgang Schuster

Am 16.01.2010 um 16:30 schrieb Wolfgang Werners-Lucchini:

 Hallo,
 
 in
 
 \setupbackgrounds[header][leftedge,text,rightedge][bottomframe=on]
 
 left- and rightedge is not recognized. 

left- and rightmargin are normally not in the visible area, you can check this 
with

\setuppapersize[A4][A3]
\setuplayout[location=middle]

i guess you want leftmargin and rightmargin

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] last chapter number

2010-01-16 Thread Wolfgang Schuster

Am 16.01.2010 um 17:46 schrieb Andreas Harder:

 Hi all,
 
 is there already an equivalent to \lastpage for the last chapter number in a 
 document. I tried something like \getmarking[chapternumber][last], but the 
 output is still the current chapter number.

can you try \convertedstructurecounter[chapter][type=last]

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] \everyaftershipout isn't called for every pagebreak

2010-01-16 Thread Wolfgang Schuster

Am 16.01.2010 um 17:53 schrieb Andreas Schneider:

 Hi,
 
 I'm using \appendtoks...\to\everyaftershipout to reset a variable on every 
 pagebreak. This doesn't work as I expect(ed) it, since it seems to only 
 trigger after a paragraph. The following example shows the problem. On every 
 new page, the first footnote should be New, which is not the case here.
 What would be the way to go for me, to get the result I described?

This can't work because TeX collects mote material than it needs for the current
page and the same happens with the footnotes, the only thing you can do is to
use two pass data

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] lost in documentation

2010-01-16 Thread Wolfgang Schuster

Am 16.01.2010 um 15:44 schrieb Wolfgang Werners-Lucchini:

 Hallo,
 
 this are the things which driving me nuts:
 
 Suppose I want to numerate my sections with uppercase characters.
 In texshow-web I found
 
 \setuphead[section-3][bodypartconversion=Characters]
 
 but this does not work. I deleted the 's' from Characters
 
 \setuphead[section-3][bodypartconversion=Character]
 
 but that is not working too.
 
 At the garden page 'titles' I found
 
 \setupsection[section-3][bodypartconversion=Character]
 
 that works, but it does not correspont to the syntaxdescription in 
 texshow-web, which is
 
 \setupsection[...][...][...,...=...,...]
 [...] name
 [...] name
 conversionnumbers characters Characters romannumerals Romannumerals
 previousnumberyes no 
 
 The second parameter should be a 'name' and bodypartconversion is not 
 a parameter at all.
 
 Looking at the description, my problem should be solved by
 
 \setupsection[section-3][][conversion=Characters]
 
 and this works. But the version
 
 \setupsection[section-3][conversion=Characters]
 
 works too. Why? And what is the difference to the first solution?
 
 So much open questions. So much lost time.

Can you make a minimal example or should we waste our time to write one for you?

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] Minimals installation problem OS X 10.6.2

2010-01-16 Thread paul morgan
Hi,

On a new Snow Leopard machine, I ran ./first-setup.sh in ~/context.

As instructed at the end of the ./first-setup.sh run, I then
added /Users/pm/context/tex/texmf-osx-64/bin to my .zshenv, and % echo $PATH
shows correct path when I source, logout, restart, etc.

I ran:

p% texexec example.tex
MTXrun | kpse fallback with progname 'context' initialized in 0.001019
seconds

I then tried

p% luatex sample.tex
This is LuaTeX, Version beta-0.50.0-2009122423
 \write18 enabled.

kpathsea: Running mktexfmt luatex.fmt
mktexfmt: No such file or directory
I can't find the format file `luatex.fmt'!

Any suggestions on what I should do?

Also, first-setup.sh creates the dir ...tex/texmf-osx-64/bin, but,

p% uname -m
i386

Thank you very much for any help you can offer.
___
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] Minimals installation problem OS X 10.6.2

2010-01-16 Thread Khaled Hosny
On Sat, Jan 16, 2010 at 04:06:47PM -0500, paul morgan wrote:
 Hi,
 
 On a new Snow Leopard machine, I ran ./first-setup.sh in ~/context. 
 
 As instructed at the end of the ./first-setup.sh run, I then added /Users/pm/
 context/tex/texmf-osx-64/bin to my .zshenv, and % echo $PATH shows correct 
 path
 when I source, logout, restart, etc. 
 
 I ran:
 
 p% texexec example.tex
 MTXrun | kpse fallback with progname 'context' initialized in 0.001019 seconds
 
 I then tried 
 
 p% luatex sample.tex 
 This is LuaTeX, Version beta-0.50.0-2009122423
  \write18 enabled.
 
 kpathsea: Running mktexfmt luatex.fmt
 mktexfmt: No such file or directory
 I can't find the format file `luatex.fmt'!
 
 Any suggestions on what I should do?

Minimals doesn't ship with plain format, only context. If you want
ConTeXt MkIV then run 'context file.tex' (which can process plain tex
files as well, but I don't know how far compatible is it).



-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] Minimals installation problem OS X 10.6.2

2010-01-16 Thread paul morgan
On Sat, Jan 16, 2010 at 4:13 PM, Khaled Hosny khaledho...@eglug.org wrote:

 On Sat, Jan 16, 2010 at 04:06:47PM -0500, paul morgan wrote:
  Hi,
 
  On a new Snow Leopard machine, I ran ./first-setup.sh in ~/context.
 
  As instructed at the end of the ./first-setup.sh run, I then
 added /Users/pm/
  context/tex/texmf-osx-64/bin to my .zshenv, and % echo $PATH shows
 correct path
  when I source, logout, restart, etc.
 
  I ran:
 
  p% texexec example.tex
  MTXrun | kpse fallback with progname 'context' initialized in 0.001019
 seconds
 
  I then tried
 
  p% luatex sample.tex
  This is LuaTeX, Version beta-0.50.0-2009122423
   \write18 enabled.
 
  kpathsea: Running mktexfmt luatex.fmt
  mktexfmt: No such file or directory
  I can't find the format file `luatex.fmt'!
 
  Any suggestions on what I should do?

 Minimals doesn't ship with plain format, only context. If you want
 ConTeXt MkIV then run 'context file.tex' (which can process plain tex
 files as well, but I don't know how far compatible is it).


Thank-you, still no luck:

p% context test.tex
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
___
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] Minimals installation problem OS X 10.6.2

2010-01-16 Thread Aditya Mahajan

On Sat, 16 Jan 2010, paul morgan wrote:


On Sat, Jan 16, 2010 at 4:13 PM, Khaled Hosny khaledho...@eglug.org wrote:


On Sat, Jan 16, 2010 at 04:06:47PM -0500, paul morgan wrote:

Hi,

On a new Snow Leopard machine, I ran ./first-setup.sh in ~/context.

As instructed at the end of the ./first-setup.sh run, I then

added /Users/pm/

context/tex/texmf-osx-64/bin to my .zshenv, and % echo $PATH shows

correct path

when I source, logout, restart, etc.


AFAIK, you actually need to add

source /Users/pm/context/tex/setuptex

to your .zshrc file rather than adding the path. (The path might also 
work, but I have never tried it. I use source setuptex in my setup.)



I ran:

p% texexec example.tex
MTXrun | kpse fallback with progname 'context' initialized in 0.001019

seconds


I then tried

p% luatex sample.tex
This is LuaTeX, Version beta-0.50.0-2009122423
 \write18 enabled.

kpathsea: Running mktexfmt luatex.fmt
mktexfmt: No such file or directory
I can't find the format file `luatex.fmt'!

Any suggestions on what I should do?


Minimals doesn't ship with plain format, only context. If you want
ConTeXt MkIV then run 'context file.tex' (which can process plain tex
files as well, but I don't know how far compatible is it).



Thank-you, still no luck:

p% context test.tex
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'


You may also try

luatools --generate

before running context.

Aditya
___
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] Minimals installation problem OS X 10.6.2

2010-01-16 Thread paul morgan
On Sat, Jan 16, 2010 at 4:33 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 16 Jan 2010, paul morgan wrote:

  On Sat, Jan 16, 2010 at 4:13 PM, Khaled Hosny khaledho...@eglug.org
 wrote:

  On Sat, Jan 16, 2010 at 04:06:47PM -0500, paul morgan wrote:


 You may also try

 luatools --generate

 before running context.


Thank you Aditya, this was the necessary step, ConTeXt working.

Paul
___
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] \everyaftershipout isn't called for every pagebreak

2010-01-16 Thread Andreas Schneider
Wolfgang Schuster wrote:
 
 This can't work because TeX collects mote material than it needs for the
 current page and the same happens with the footnotes, the only thing you
 can do is to use two pass data
 
 Wolfgang

Is there not even some event in Lua that could be used to handle this case? 
I think MkIV compatibility is all I need.
In case this is also not possible: can you give me a hint where to learn 
more about twopass processing? Is there in MkIV still something that 
requires two (or more) passes that I could take a look at to learn how to do 
it? (I guess I can understand Lua easier than plain TeX, so I guess MkII is 
out of the picture.)

Thanks for your fast answer!

Best regards,
Andreas.

___
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] last chapter number

2010-01-16 Thread Andreas Harder

Am 16.01.2010 um 20:52 schrieb Wolfgang Schuster:

 
 Am 16.01.2010 um 17:46 schrieb Andreas Harder:
 
 Hi all,
 
 is there already an equivalent to \lastpage for the last chapter number in a 
 document. I tried something like \getmarking[chapternumber][last], but the 
 output is still the current chapter number.
 
 can you try \convertedstructurecounter[chapter][type=last]

Hello Wolfgang,

I tried, but it only outputs nothing visible. Here a test file

\starttext
\dorecurse{10}{\chapter{Kapitel #1}
  \tex{getmarking[chapternumber]} = \getmarking[chapternumber] \crlf
  \tex{convertedstructurecounter[chapter][type=last]} =
  \convertedstructurecounter[chapter][type=last] 
}
\stoptext


Greetings
Andreas
___
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] location of /user/files?

2010-01-16 Thread paul morgan
Thank you again Aditya and Khaled for getting ConTeXt working here. One more
question for the list:

Under MacTex or TexLive, not sure which one, on my 10.4.11 system, my setup
and env* files were located in ~/Library/texmf/tex/context/user/ I rsynced
that dir to  ~/context/tex/texmf-context/tex/context/user and ConTeXt is not
finding them. Could someone please where I should put these files so context
will find them? Thanks again,

Paul
___
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] location of /user/files?

2010-01-16 Thread Aditya Mahajan

On Sat, 16 Jan 2010, paul morgan wrote:


Thank you again Aditya and Khaled for getting ConTeXt working here. One more
question for the list:

Under MacTex or TexLive, not sure which one, on my 10.4.11 system, my setup
and env* files were located in ~/Library/texmf/tex/context/user/ I rsynced
that dir to  ~/context/tex/texmf-context/tex/context/user and ConTeXt is not
finding them. Could someone please where I should put these files so context
will find them? Thanks again,


Did you run mktexlsr (for MkII) or luatools --generate (for MkIV)?

In general, it is not a good idea to place your files in texmf-context 
tree. They will get deleted when you update context-minimals. You can 
create a folder ~/context/tex/texmf-local and store your own files in a 
tex/context/anything subdirectory there.


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