Re: [NTG-context] footnotes setup

2012-03-18 Thread Wolfgang Schuster

Am 17.03.2012 um 20:38 schrieb Honza Hejzl:

 Hi,
 
 I have installed the last standalone version from contextgarden and oops, my 
 (few days) old file does not work properly. My old setup of footnotes was 
 like:
 
 \setupfootnotedefinition[loaction=page...]
 \setupfootnotes[bodyfontsize=8pt, style=\ss...]
 
 Now the context does not understand to that. So I am trying to set up 
 footnotes with \setupnote[footnote] but it seems nothing works. I am not able 
 to use location=serried, location=page, style and so on... Is it connected 
 with some general update? :o(

The command \setupnotedefinition (where \setupfootnotedefinition is a shortcut 
for \setupnotedefinition[footnote]) is now \setupnotation and 
“location=serried” is now “alternative=serried”. The \setupnote command 
(\setupfootnotes is \setupnote[footnote]) has only a “bodyfont” key which 
accepts “{8pt,sans}” as argument but not “bodyfontsize” key and style is only 
available for \setupnotation (but as you saw you can add it to bodyfont).

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] Color Lost when Using 'texexec' vs 'context'

2012-03-18 Thread Wolfgang Schuster

 The reason I switched to texexec was this (from the Context Manual: 
 During the processing of itemizations the number of items is counted. This 
 is the case with all versions. The next pass this information is used to 
 determine the optimal location to start a new page. So do not despair when at 
 the first parse your itemizations do not look the way you expected. When 
 using TEXexec this is all taken care of.
 
 Is this still a problem with context or is this problem somehow solved with 
 MkIV anyway?

ConTeXt needs two passes for itemize when you use the “fit” option to determine 
the width for the numbers or when you use reversed or random numbers but this 
works in MkII and MkIV. Page breaks before/between items can be controlled by a 
few keywords (intro, loose etc.) but ConTeXt doesn’t use twopass information 
for this.

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] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen

Good morning :-)

I am still not able to rotate the buttons without loosing 
the hyperlinks; see code at the bottom.


And I have an extra question:
How can I make a linebreak after each button. I have tried 
\crlf and \par before every  \button

 ... it's not working :-(

Best wishes, Janis


-- copy

Hello,


I built an interactive PDF with some buttons. Without 
rotation everithing works.


But with rotation the hyperlinks are gone:



\definelayer [Kontaktdaten]
  [state=start]%

\setupbackgrounds [page]
  [ background=Kontaktdaten,
state=start]%

\setupinteraction[state=start]
\define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=3cm]
  [strut=no, offset=overlay,frame=off]
  {
 \rotate[rotation=90]{%
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Go Back}
  [PreviousJump]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Anfang}
  [FirstPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Ende}
  [LastPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {S. 6}
  [SeiteSechs]
  }
  }
}%

\starttext

\dorecurse{5}{\navmenue \input tufte \page}
\pagereference[SeiteSechs]
\dorecurse{5}{\navmenue \input tufte \page}

\stoptext



Regards
Jannis

--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Jaroslav Hajtmar

Hello Gurus.
Sorry for OT, but I solve one problem in parallel in ConTeXt and pure 
LuaTeX too and I got into trouble.
I have a problem in  LuaTEX with putting macro name into global 
variables and their re-listing. In ConTeXt, the problem is not with it.


Here is my minimal LuaTeX example:

\directlua{function put2globvar(parameter) globvar=parameter end}
\directlua{function getglobvar() tex.print(globvar) end}

\def\puttoglobvar#1{\directlua{put2globvar('#1')}}
\def\globvar{\directlua{getglobvar()}}

% OK
Text --
\puttoglobvar{Text}
\globvar

% OK
$\alpha$ --
\puttoglobvar{$alpha$}
\globvar

% not working
$\alpha$ --
\puttoglobvar{$\alpha$}
\globvar

% Error ...
%\puttoglobvar{$\\alpha$}
%\globvar


\bye

Can you please advise?

Thanx Jaroslav Hajtmar

___
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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Hans Hagen

On 18-3-2012 11:25, Jaroslav Hajtmar wrote:

Hello Gurus.
Sorry for OT, but I solve one problem in parallel in ConTeXt and pure
LuaTeX too and I got into trouble.
I have a problem in LuaTEX with putting macro name into global variables
and their re-listing. In ConTeXt, the problem is not with it.


do

\show\alpha

in both variants and see what the difference in definiton is ... it 
might matter


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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 11:25 schrieb Jaroslav Hajtmar:

 Hello Gurus.
 Sorry for OT, but I solve one problem in parallel in ConTeXt and pure LuaTeX 
 too and I got into trouble.
 I have a problem in  LuaTEX with putting macro name into global variables and 
 their re-listing. In ConTeXt, the problem is not with it.
 
 Here is my minimal LuaTeX example:
 
 \directlua{function put2globvar(parameter) globvar=parameter end}
 \directlua{function getglobvar() tex.print(globvar) end}
 
 \def\puttoglobvar#1{\directlua{put2globvar('#1')}}

Untested:

\def\puttglobvar#1{\directlua{put2globvar([==[\detokenize{#1}]==])}

You can also try to replace \detokenize with \unexpanded (in ConTeXt 
\normalunexpanded).

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] interactive pdf with rotated buttons don't work

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 02:30 schrieb Jan Heinen:

 Hello,
 
 I built an interactive PDF with some buttons. Without rotation everithing 
 works.
 But with rotation the hyperlinks are gone:

The hyperlinks are in the file but not at the same position as the graphics, 
move the mouse
on a line below the button at the bottom and you can see them.

 \define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=3cm]
  [strut=no, offset=overlay,frame=off]
  {
 \rotate[rotation=90]{%
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Go Back}
  [PreviousJump]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Anfang}
  [FirstPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Ende}
  [LastPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {S. 6}
  [SeiteSechs]
  }
  }
 }%


Can be done with less lines and the hyperlinks are on the correct position too:

\define\navmenue
  {\setlayerframed
 [Kontaktdaten]
 [x=1cm,y=3cm]
 [offset=overlay,frame=off]
 {\vbox\bgroup

\setupbutton[background=color,backgroundcolor=darkgray,color=white,framecolor=black,corner=round,rulethickness=2pt,orientation=90]
\button {Go Back} [PreviousJump]
\button {Anfang}  [FirstPage]
\button {Ende}[LastPage]
\button {S. 6}[SeiteSechs]
  \egroup}}

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] footnotes setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 07:56:30 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
  Hi,
  
  I have installed the last standalone version from contextgarden and
  oops, my (few days) old file does not work properly. My old setup
  of footnotes was like:
  
  \setupfootnotedefinition[loaction=page...]
  \setupfootnotes[bodyfontsize=8pt, style=\ss...]
  
  Now the context does not understand to that. So I am trying to set
  up footnotes with \setupnote[footnote] but it seems nothing works.
  I am not able to use location=serried, location=page, style and so
  on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang


Looking at strc-not.mkvi and from your explanations above
it is still not clear to me how to use the new footnote definitions.
We have \setupnotedefinition
(with \setupfootnotedefinition=\setupnotedefinition[footnote]),
\setupnote (with \setupfootnotes=\setupnote[footnote]),
also \setupnotes (=\setupnote ?)
Is there any difference between the singular and the plural forms?
Also, what parameters are accepted? (I see % not all make sense here
in strc-not.mkvi)

http://wiki.contextgarden.net/Footnotes seems confused (ToDo).

In particular, I am still trying to get
next=\autoinsertnextspace
to make \startfootnote\stopfootnote work correctly...

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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Jaroslav Hajtmar

Thanx Wolfgang.
Great - now it works.

Hans' advice with \show command  I'm not able to understand and 
implement it.


One more thanx

Jaroslav Hajtmar



Dne 18.3.2012 12:33, Jaroslav Hajtmar napsal(a):

Thanx Wolfgang.
Great - now it works.

Hans' advice with \show command  I'm not able to understand and 
implement it.


One more thanx

Jaroslav Hajtmar



Dne 18.3.2012 11:53, Wolfgang Schuster napsal(a):

Am 18.03.2012 um 11:25 schrieb Jaroslav Hajtmar:


Hello Gurus.
Sorry for OT, but I solve one problem in parallel in ConTeXt and 
pure LuaTeX too and I got into trouble.
I have a problem in  LuaTEX with putting macro name into global 
variables and their re-listing. In ConTeXt, the problem is not with it.


Here is my minimal LuaTeX example:

\directlua{function put2globvar(parameter) globvar=parameter end}
\directlua{function getglobvar() tex.print(globvar) end}

\def\puttoglobvar#1{\directlua{put2globvar('#1')}}

Untested:

\def\puttglobvar#1{\directlua{put2globvar([==[\detokenize{#1}]==])}

You can also try to replace \detokenize with \unexpanded (in ConTeXt 
\normalunexpanded).


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] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen

Hello Wolfgang,

I like your solution and will take it.

For everyone who engages with this issue here is my own less 
elegant solution:



\definelayer [Kontaktdaten]
  [state=start]%
\setupbackgrounds [page]
  [ background=Kontaktdaten,
state=start]%
\setupinteraction[state=start]
\define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=1.5cm]
[align=right,strut=no, offset=overlay,frame=off]
{%
  \button  {\rotate[rotation=90]{\strut Go Back}} 
[PreviousJump]

  \par
  \button  {\rotate[rotation=90]{\strut Anfang}}
[FirstPage]

  \par
  \button  {\rotate[rotation=90]{\strut Ende}}  
[LastPage]

  \par
  \button  {\rotate[rotation=90]{\strut S. 6}}  
[SeiteSechs]

  \par
}
}%
\starttext
\dorecurse{5}{\navmenue \input tufte \page}
\pagereference[SeiteSechs]
\dorecurse{5}{\navmenue \input tufte \page}
\stoptext




-- copy

Can be done with less lines and the hyperlinks are on the correct position too:

\define\navmenue
  {\setlayerframed
 [Kontaktdaten]
 [x=1cm,y=3cm]
 [offset=overlay,frame=off]
 {\vbox\bgroup

\setupbutton[background=color,backgroundcolor=darkgray,color=white,framecolor=black,corner=round,rulethickness=2pt,orientation=90]
\button {Go Back} [PreviousJump]
\button {Anfang}  [FirstPage]
\button {Ende}[LastPage]
\button {S. 6}[SeiteSechs]
  \egroup}}

Wolfgang



--
Better organization and integration of all ConTeXT-information:
... http://wiki.contextgarden.net/Category:ConTeXt  
 All information arround ConTeXt
... http://wiki.contextgarden.net/Category:Commands  
Commands
...  !!! new: One-Click from every command in the wiki to 
the rich resources of the ConTeXt-mailinglist


___
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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread luigi scarso
On Sun, Mar 18, 2012 at 1:40 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote:
 Thanx Wolfgang.
 Great - now it works.

 Hans' advice with \show command  I'm not able to understand and implement
 it.
context \\starttext\\show\\\alpha\\stoptext
shows
\alpha=\Umathchar703B1
The same command in  luatex maybe shows a different thing .
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Jaroslav Hajtmar

Thanks Wolfgang,
these are very valuable tips for me for the future. I put them to 
special document for later use. Thanks again for the valuable advice.

Jaroslav Hajtmar



Dne 18.3.2012 14:00, Wolfgang Schuster napsal(a):

Am 18.03.2012 um 13:48 schrieb Jaroslav Hajtmar:

   

  Thanx Wolfgang.
  
  Thanks for the tip. I do too, but I did not know how to get into Lua code that the macro.
 

The one thing you have to know, when you pass a macro from TeX to Lua it is 
expanded.

\def\foo{FOO}

\directlua{myfuntion(\foo)}

In this example the Lua function gets “FOO” as input and not “\foo” because the 
argument of \directlua is expanded, to prevent you need a function which 
prevents expansion.

\directlua{myfunction(\string\foo)}

Works only for the command after \string.

\directlua{myfunction(\detokenize{\foo})

Converts \foo into tokens and Lua sees now \foo.

\directlua{myfunction(\unexpanded{\foo})

Prevents the argument to be expanded and Lua gets \foo (there are differences 
compared with \detokenize but I forgot them)

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] OT: Problem with writing macros into variables in LuaTeX

2012-03-18 Thread Jaroslav Hajtmar

Thanks Luigi for the explanation - I understand now...

Jaroslav Hajtmar


Dne 18.3.2012 14:14, luigi scarso napsal(a):

On Sun, Mar 18, 2012 at 1:40 PM, Jaroslav Hajtmarhajt...@gyza.cz  wrote:
   

Thanx Wolfgang.
Great - now it works.

Hans' advice with \show command  I'm not able to understand and implement
it.
 

context \\starttext\\show\\\alpha\\stoptext
shows
\alpha=\Umathchar703B1
The same command in  luatex maybe shows a different thing .
   


___
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] walking xmltree?

2012-03-18 Thread Meer, H. van der
Is there a single macro/setup that walks the xml-tree, visiting each node? 
Either in preorder, inorder or postorder?

Thus instead of:
  \xmlfilter{#1}{./command(xml:thecommand)}
  \xmlfilter{#1}{./*/command(xml:thecommand)}
  \xmlfilter{#1}{./*/*/command(xml:thecommand)}
  \xmlfilter{#1}{./*/*/command(xml:thecommand)}
  \xmlfilter{#1}{./*/*/*/command(xml:thecommand)}
etc.

doing this exhaustively with a single 
\xmlfiltertree{#1}{./command(xml:thecommand)}


Hans van der Meer



___
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] (no subject)

2012-03-18 Thread Alan Bowen
In placing the heads and subheads of indices, \index defaults to

Headlocator
Head
subheadlocator

I need to get the subhead without repeating the Head, as in
Headlocator
subheadlocator

How can I do this? Is there some documentation on this that I can read?

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] footnotes setup

2012-03-18 Thread Steffen Wolfrum

Am 18.03.2012 um 13:14 schrieb Alan Braslau:

 On Sun, 18 Mar 2012 07:56:30 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
 Hi,
 
 I have installed the last standalone version from contextgarden and
 oops, my (few days) old file does not work properly. My old setup
 of footnotes was like:
 
 \setupfootnotedefinition[loaction=page...]
 \setupfootnotes[bodyfontsize=8pt, style=\ss...]
 
 Now the context does not understand to that. So I am trying to set
 up footnotes with \setupnote[footnote] but it seems nothing works.
 I am not able to use location=serried, location=page, style and so
 on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang
 
 
 Looking at strc-not.mkvi and from your explanations above
 it is still not clear to me how to use the new footnote definitions.
 We have \setupnotedefinition
 (with \setupfootnotedefinition=\setupnotedefinition[footnote]),
 \setupnote (with \setupfootnotes=\setupnote[footnote]),
 also \setupnotes (=\setupnote ?)
 Is there any difference between the singular and the plural forms?
 Also, what parameters are accepted? (I see % not all make sense here
 in strc-not.mkvi)
 
 http://wiki.contextgarden.net/Footnotes seems confused (ToDo).
 
 In particular, I am still trying to get
 next=\autoinsertnextspace
 to make \startfootnote\stopfootnote work correctly...


Footnotes are not yet fixed (due to Hans' flue ...)
So it is probably in vain trying to make sense of the current state of the 
footnote mechanism.

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


[NTG-context] \startxmlsetups: extra parameters?

2012-03-18 Thread Meer, H. van der
The \startxmlsetups definition has under #1 the current xml node available.
Is it possible to add one or more parameters?
Such that for example \xmlcommand{node}{lpath}{command {#1}{#2}…? } can be 
called with extra parameters?

Hans van der Meer



___
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] is there a reason not to fix this bug?

2012-03-18 Thread Pablo Rodríguez
On 12/03/12 08:58, Hans Hagen wrote:
 On 10-3-2012 21:57, Pablo Rodríguez wrote:
 Dear community,

 Wolfgang kindly suggested this fix (that works also with beta from today):

 strc-lst.mkvi:
 
 1 - comment (for a while)
 2 - remove (as no longer relevant)
 3 - repair (because broken)
 
 it needs time to choose one and there is only so much of it available

Sorry for the late reply, Hans (I don't have daily access to my personal
computer [and when I sit in front of it, I have a bunch of things to do).

Many thanks for fixing the bug.

I'm afraid I don't understand your reply (sorry, but it's all Greek to
me, I don't get the context [no pun intended in both cases])

I apologize if my original message wasn't kind or respectful enough. I
didn't understand what happened and I was searching for an answer (of
course, not demanding it).

I really appreciate your awesome work and the work of the community
members (especially Wolfgang). Many thanks for it to everyone.

I would like contribute to ConTeXt, but right now I'm afraid I can
mainly report bugs (and ask questions on what I don't understand and I'm
not able to find elsewhere).

Sorry for the bad tone of my previous request (if my question sounded
demanding). I'm really thankful for ConTeXt and the community around of
it (although I don't know to express my gratitude sometimes).


Pablo
-- 
http://www.ousia.tk
___
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] footnotes setup

2012-03-18 Thread Pablo Rodríguez
On 18/03/12 07:56, Wolfgang Schuster wrote:
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).

Many thanks for the reply, Wolfgang.

I know you weren't replying a question of mine, but reading the code
itself I solved some issues I had with linenotes and I found a bug
(which I report on a different thread).

Reading the code seemed counterproductive to me, but it seems to be one
of the best methods to learn from ConTeXt.

Thanks again,


Pablo
-- 
http://www.ousia.tk
___
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] bug in linenote number=no?

2012-03-18 Thread Pablo Rodríguez
Hi there,

I guess I have found a bug in the latest beta with number=no for
linenotes.

\setupnotation[footnote][location=columns,number=no]
\definelinenote[dict]
\setupnotation[dict][number=no]
\starttext
\dorecurse{10}{a\footnote{b}\dict{c}}
\stoptext

BTW, is there a way to have footnotes (or linenotes) in two columns if
the body has no columns? location=columns seems not to be what I'm
looking for?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] indexing query

2012-03-18 Thread Alan Bowen
Sorry: My effort escaped without a subject line.


In placing the heads and subheads of indices, \index defaults to

Headlocator
Head
subheadlocator

I need to get the subhead without repeating the Head, as in
Headlocator
subheadlocator

How can I do this? Is there some documentation on this that I can read?

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] is it possible to have first and last line numbers from page?

2012-03-18 Thread Pablo Rodríguez
On 06/03/12 20:27, luigi scarso wrote:
 2012/3/6 Pablo Rodríguez oi...@web.de mailto:oi...@web.de
 
 On page 7 lines are numbered from lowest to highest values. A purist
 might consider this wrong, but this is unlikely to happen on a real
 book, since (I guess) line numbers on headers only make sense when they
 two different series cannot be on the same page.
 
 Many thanks for your help,
 
 I see but ... how do you want to manage this situation? 

Hi Luigi,

sorry, but it seems that my reply to your question wasn't explaining at all.

I'm really interested in your hack (from
http://www.ntg.nl/pipermail/ntg-context/2012/065588.html).

I would really appreciate, if the hack could print in the header the
numbers from the first or the last lines that appear on page. It might
not be the lowest and highest values and it lines may not show numbers
(due to step=5).

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] walking xmltree?

2012-03-18 Thread Hans Hagen

On 18-3-2012 15:16, Meer, H. van der wrote:

Is there a single macro/setup that walks the xml-tree, visiting each node?
Either in preorder, inorder or postorder?

Thus instead of:
   \xmlfilter{#1}{./command(xml:thecommand)}
   \xmlfilter{#1}{./*/command(xml:thecommand)}
   \xmlfilter{#1}{./*/*/command(xml:thecommand)}
   \xmlfilter{#1}{./*/*/command(xml:thecommand)}
   \xmlfilter{#1}{./*/*/*/command(xml:thecommand)}
etc.

doing this exhaustively with a single 
\xmlfiltertree{#1}{./command(xml:thecommand)}


\xmlfilter{#1}{./**/command(xml:thecommand)}

-
  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] Translate tooltip on button in pdf

2012-03-18 Thread Jan Heinen

Hello

how to change the tooltipps from english First page to  
german Erste Seite?


\setupinteraction[state=start]
\starttext
\button {\scale[height=2em] {\symbol[navigation 
1][nextpage]}}  [NextPage]

\page
\button {\scale[height=2em] {\symbol[navigation 
1][previouspage]}}  [PreviousPage]

\page
\stoptext


Regards
Jannis

--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] hbadness crippled?

2012-03-18 Thread Meer, H. van der
Setting the distance parameter for item list to something greater than zero:
  \setupitemgroup[itemize][each][joinedup,packed][distance=3pt]
generates in item lists overfull boxes: Overfull \hbox (3.0pt too wide).

(1) At the time I teached programming we always learned students Silence the 
compiler. 
Allthough this message does no harm (only annoying me), I wonder why is it 
appearing? 
Setting distance seems quite normal. The extra space is exactly the added 
distance (confirmed by varying its size.)

(2) TeX used to keep silent on these messages when one set \hbadness=1. But 
that does not work for me. Not even putting it right in front of \startitem 
content\stopitem, makes the warning go away.

Is there a solution?

Hans van der Meer



___
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] hbadness crippled?

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 19:56 schrieb Meer, H. van der:

 Setting the distance parameter for item list to something greater than zero:
  \setupitemgroup[itemize][each][joinedup,packed][distance=3pt]
 generates in item lists overfull boxes: Overfull \hbox (3.0pt too wide).
 
 (1) At the time I teached programming we always learned students Silence the 
 compiler. 
 Allthough this message does no harm (only annoying me), I wonder why is it 
 appearing? 
 Setting distance seems quite normal. The extra space is exactly the added 
 distance (confirmed by varying its size.)
 
 (2) TeX used to keep silent on these messages when one set \hbadness=1. 
 But that does not work for me. Not even putting it right in front of 
 \startitem content\stopitem, makes the warning go away.
 
 Is there a solution?

No example no solution!

When you report a problem you should also provide a example which demonstrates 
it because I don’t get a overfull box with this example:

\setupitemgroup[itemize][each][joinedup,packed][distance=3pt]

\starttext

before

\startitemize
\startitem \input ward \stopitem
\startitem \input ward \stopitem
\startitem \input ward \stopitem
\stopitemize

after

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


Re: [NTG-context] Translate tooltip on button in pdf

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 19:08 schrieb Jan Heinen:

 Hello
 
 how to change the tooltipps from english First page to  german Erste 
 Seite?
 
 \setupinteraction[state=start]
 \starttext
 \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}}  [NextPage]
 \page
 \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}}  
 [PreviousPage]
 \page
 \stoptext

I think the texts are generated from your PDF viewer because Reader.app on the 
Mac
shows for me “Zur nächsten Seite” on the first page and “Zur vorherigen Seite” 
on
the second page but with Adobe Reader I don’t get any tooltips.

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] Context getting in a loop?

2012-03-18 Thread Willi Egger
Dear all,

Yesterday I updated my OSX to Lion. - Now I try to compile a project 
(Hufbeschlag). I can compile all components (some 20) individually without any 
problem. When trying to do the whole project context seems to run into a loop.
Has anyone else encountered such a problem?

Any hint would be appreciated!

Kind regards

Willi

mtx-context | run 1: luatex 
--fmt=/Applications/lua-experimental/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
 
--lua=/Applications/lua-experimental/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
 --backend=pdf /Users/willi/Documents/TEXdata/Hufbeschlag/hufbeschlag.tex 
\stoptext
This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) 
 \write18 enabled.
(/Users/willi/Documents/TEXdata/Hufbeschlag/hufbeschlag.tex

ConTeXt  ver: 2012.03.13 21:26 MKIV  fmt: 2012.3.18  int: english/english

system   cont-new.mkiv loaded
(/Applications/lua-experimental/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   hufbeschlag.top loaded
(hufbeschlag.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/Applications/lua-experimental/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/Applications/lua-experimental/tex/texmf-project/tex/context/user/type-loc.tex){/Applications/lua-experimental/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/lua-experimental/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
(huf.tex
system   jobfiles  2 : once : processing environment 'layout' in 
project 'huf'
(layout.tex
resolversmodules  loaded: 'units'
(/Applications/lua-experimental/tex/texmf-context/tex/context/base/m-units.mkiv+
 
/Applications/lua-experimental/tex/texmf-context/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'chart'
(/Applications/lua-experimental/tex/texmf-context/tex/context/base/m-chart.mkvi+
 /Applications/lua-experimental/tex/texmf-context/tex/context/base/m-chart.lua)
colors   rgb color space is not supported
colors   cmyk color space is not supported
(/Applications/lua-experimental/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Applications/lua-experimental/tex/texmf-context/fonts/map/pdftex/context/mkiv-px.map}
fontsvirtual math  the mapping is incomplete for 'pxmath' at 5pt
publications loading formatting style from bibl-apa-de
(/Applications/lua-experimental/tex/texmf-context/tex/context/bib/bibl-apa-de.tex)))
system   jobfiles  1 : many : processing component 'titelblatt' in 
product 'hufbeschlag'
(titelblatt.tex
system   jobfiles  2 : none : ignoring product 'hufbeschlag' in 
component 'titelblatt'
system   jobfiles  2 : once : skipping project 'huf' in component 
'titelblatt'
fontsbodyfont 16pt is defined (can better be done global)
fontsbodyfont 19.2pt is defined (can better be done global)
fontsbodyfont 12.8pt is defined (can better be done global)
floatblocks  1 placed
backend  xmp  using file 
'/Applications/lua-experimental/tex/texmf-context/tex/context/base/lpdf-pdx.xml'

 
___
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] Context getting in a loop?

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 21:19 schrieb Willi Egger:

 Dear all,
 
 Yesterday I updated my OSX to Lion. - Now I try to compile a project 
 (Hufbeschlag). I can compile all components (some 20) individually without 
 any problem. When trying to do the whole project context seems to run into a 
 loop.
 Has anyone else encountered such a problem?
 
 Any hint would be appreciated!

Send your log file.

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] footnotes setup

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 13:14 schrieb Alan Braslau:

 On Sun, 18 Mar 2012 07:56:30 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
 Hi,
 
 I have installed the last standalone version from contextgarden and
 oops, my (few days) old file does not work properly. My old setup
 of footnotes was like:
 
 \setupfootnotedefinition[loaction=page...]
 \setupfootnotes[bodyfontsize=8pt, style=\ss...]
 
 Now the context does not understand to that. So I am trying to set
 up footnotes with \setupnote[footnote] but it seems nothing works.
 I am not able to use location=serried, location=page, style and so
 on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang
 
 
 Looking at strc-not.mkvi and from your explanations above
 it is still not clear to me how to use the new footnote definitions.
 We have \setupnotedefinition
 (with \setupfootnotedefinition=\setupnotedefinition[footnote]),
 \setupnote (with \setupfootnotes=\setupnote[footnote]),
 also \setupnotes (=\setupnote ?)
 Is there any difference between the singular and the plural forms?
 Also, what parameters are accepted? (I see % not all make sense here
 in strc-not.mkvi)

1. The \setupnotedefinition was replaced with \setupnotation

2. Many of the \define… and \setup… commands are now auto generated
   from \installcommandhandler which generates only one setup-command
   which can be used for global (i.e. \setup…[..,..=..,..]) and local
   (i.e. \setup…[…][..,..=..,..]) settings. For backward compatibility you
   can find things like this: \let\setupnotes\setupnote

3. The argument are same as before (with a few changes)

 http://wiki.contextgarden.net/Footnotes seems confused (ToDo).
 
 In particular, I am still trying to get
 next=\autoinsertnextspace
 to make \startfootnote\stopfootnote work correctly…

Large parts of the code have been rewritten and the next key wasn’t added yet.

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] indexing query

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 17:38 schrieb Alan Bowen:

 Sorry: My effort escaped without a subject line.
 
 In placing the heads and subheads of indices, \index defaults to
 
 Headlocator
 Head
 subheadlocator
 
 I need to get the subhead without repeating the Head, as in
 Headlocator
 subheadlocator
 
 How can I do this?

Example needed!

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] indexing query

2012-03-18 Thread Alan Bowen
To answer my own question, after experimentation:

\index[key]{form::entry}
with
\setupregister[index][form][textstyle=\hskip1em]


A.

On Sun, Mar 18, 2012 at 12:38 PM, Alan Bowen bowenala...@gmail.com wrote:

 Sorry: My effort escaped without a subject line.


 In placing the heads and subheads of indices, \index defaults to

 Headlocator
 Head
 subheadlocator

 I need to get the subhead without repeating the Head, as in
 Headlocator
 subheadlocator

 How can I do this? Is there some documentation on this that I can read?

 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] indexing query

2012-03-18 Thread Alan Bowen
Sorry for the bother, Wolfgang. I think I have the answer now (see my
message earlier by about 30 seconds). I had not realized that the textstyle
key in \setupregister could take a command for positioning the head as well
as its actual style.

Alan

On Sun, Mar 18, 2012 at 5:00 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 18.03.2012 um 17:38 schrieb Alan Bowen:

 Sorry: My effort escaped without a subject line.

 In placing the heads and subheads of indices, \index defaults to

 Headlocator
 Head
 subheadlocator

 I need to get the subhead without repeating the Head, as in
 Headlocator
 subheadlocator

 How can I do this?


 Example needed!

 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] indexing query

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 22:11 schrieb Alan Bowen:

 Sorry for the bother, Wolfgang. I think I have the answer now (see my message 
 earlier by about 30 seconds). I had not realized that the textstyle key in 
 \setupregister could take a command for positioning the head as well as its 
 actual style.

You textstyle key accepts commands because it has to accepts \ss, \bf etc. and 
you misuse this for something different.

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] Context getting in a loop?

2012-03-18 Thread Willi Egger
Hi Wolfgang,

I have to see what that problem means. In the meantime I gave the laptop a 
time-out and restarted it. - At this moment it runs ok again. What happened 
after my mail is, that Acrobat started to not respond when I tried a print of a 
single page, then preview did not find the printers claiming that there were 
non …. reasonably wired.

Thanks of our reply.

Willi
On 18 Mar 2012, at 21:52, Wolfgang Schuster wrote:

 
 Am 18.03.2012 um 21:19 schrieb Willi Egger:
 
 Dear all,
 
 Yesterday I updated my OSX to Lion. - Now I try to compile a project 
 (Hufbeschlag). I can compile all components (some 20) individually without 
 any problem. When trying to do the whole project context seems to run into a 
 loop.
 Has anyone else encountered such a problem?
 
 Any hint would be appreciated!
 
 Send your log file.
 
 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] is it possible to have first and last line numbers from page?

2012-03-18 Thread luigi scarso
2012/3/18 Pablo Rodríguez oi...@web.de:
 On 06/03/12 20:27, luigi scarso wrote:
 2012/3/6 Pablo Rodríguez oi...@web.de mailto:oi...@web.de

     On page 7 lines are numbered from lowest to highest values. A purist
     might consider this wrong, but this is unlikely to happen on a real
     book, since (I guess) line numbers on headers only make sense when they
     two different series cannot be on the same page.

     Many thanks for your help,

 I see but ... how do you want to manage this situation?

 Hi Luigi,

 sorry, but it seems that my reply to your question wasn't explaining at all.

 I'm really interested in your hack (from
 http://www.ntg.nl/pipermail/ntg-context/2012/065588.html).

 I would really appreciate, if the hack could print in the header the
 numbers from the first or the last lines that appear on page. It might
 not be the lowest and highest values and it lines may not show numbers
 (due to step=5).

 Many thanks for your help,
hm I think to understand, but I need an example ( I have this but I
want that) with the code that  you are using  .


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 21:59:17 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 2. Many of the \define… and \setup… commands are now auto generated
from \installcommandhandler which generates only one setup-command
which can be used for global (i.e. \setup…[..,..=..,..]) and local
(i.e. \setup…[…][..,..=..,..]) settings.

Thank you Wolfgang for this explanation.

Do you mean: global (i.e. \define…[..,..=..,..] and local
(i.e. \setup…[…][..,..=..,..]) settings?

 For backward
 compatibility you can find things like this: \let\setupnotes\setupnote

OK, but is this a good idea?
I thought that mkii is kept around for backward compatibility
and that mkiv takes the liberty to rationalize the syntax,
sometimes sacrificing backwards compatibility in order not to be
encumbered with inconsistent syntax, whenever possible.

Indeed, this sometimes generates much discussion on the mailing list
when we discover that our favorite command has been removed
or renamed - a good way of testing to see if we are active and alert. :)

Alan

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

[NTG-context] \placeinitial or texbackground bug (interference)

2012-03-18 Thread Alan Braslau
It took me quite a while to hunt this down...

The use of a text background breaks \placeinitial.

I do not have a patch, but at least can provide a minimal example:

\definetextbackground [SetOff] [location=paragraph]
\starttext
\placeinitial
\input tufte
\startSetOff
\input ward
\stopSetOff
\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] Itemize without page break

2012-03-18 Thread Kip Warner
On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
 Am 17.03.2012 um 10:21 schrieb luigi scarso:
 
  On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
  Hey list,
  
  Is there any way to hint to ConTeXt that the contents of a \startitemize
  \stopitemize pair should try to be all on the same page?
  plain old tex
  \vbox{%
  \startitemize
  \stopitemize%
  }
 
 Better:
 
 \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
 
 \stopitemize
 
 You can control the space before/after the linecorrection environment with 
 the optional
 argument which accepts all values for \blank, e.g. 
 \startlinecorrection[2*line].
 
 Wolfgang

Hey Wolfgang,

The good news is that this is probably what I need. The bad news is
luatex completely blows itself to pieces, allocating memory until the
system crashes. 

After much grinding of the machine, I managed to finally SIGSTOP and
attach gdb to the naughty process.

I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.

I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
$ gdb luatex 8477
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/luatex...Reading symbols from /usr/lib/debug/usr/bin/luatex...done.
done.
Attaching to program: /usr/bin/luatex, process 8477
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.12.1.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.12.1.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.12.1.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.12.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
154	../../../source/texk/web2c/luatexdir/tex/textoken.w: No such file or directory.
	in ../../../source/texk/web2c/luatexdir/tex/textoken.w
(gdb) bt full
#0  0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
p = 273242622
t = 273242621
#1  0x00471ded in macro_call () at ../../../source/texk/web2c/luatexdir/tex/expand.w:658
r = 273242622
p = 273242621
q = 273242622
s = -2109026328
t = value optimised out
u = 1572864
v = value optimised out
rbrace_ptr = value optimised out
n = value optimised out
unbalance = 9
m = 257
ref_count = 163662
save_scanner_status = 0
save_warning_index = 3331
match_chr = 35
#2  0x00472a45 in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:384
No locals.
#3  0x00511819 in test_for_cs () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:176
m = value optimised out
s = value optimised out
p = 526371
#4  conditional () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:483
b = value optimised out
r = value optimised out
m = value optimised out
n = value optimised out
p = value optimised out
---Type return to continue, or q return to quit---
q = value optimised out
save_scanner_status = value optimised out
save_cond_ptr = 74229
this_if = value optimised out
#5  0x00472695 in expand () at ../../../source/texk/web2c/luatexdir/tex/expand.w:236
t = value optimised out
p = value optimised out
cur_ptr = value optimised out
cv_backup = 1
cvl_backup = 0
radix_backup = 0
co_backup = 0
backup_backup = 0
save_scanner_status = 0
#6  0x00472a7d in 

Re: [NTG-context] Itemize without page break

2012-03-18 Thread luigi scarso
On Mon, Mar 19, 2012 at 12:25 AM, Kip Warner k...@thevertigo.com wrote:
 On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
 Am 17.03.2012 um 10:21 schrieb luigi scarso:

  On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
  Hey list,
 
  Is there any way to hint to ConTeXt that the contents of a \startitemize
  \stopitemize pair should try to be all on the same page?
  plain old tex
  \vbox{%
  \startitemize
  \stopitemize%
  }

 Better:

 \startitemize[before=\startlinecorrection,after=\stoplinecorrection]

 \stopitemize

 You can control the space before/after the linecorrection environment with 
 the optional
 argument which accepts all values for \blank, e.g. 
 \startlinecorrection[2*line].

 Wolfgang

 Hey Wolfgang,

 The good news is that this is probably what I need. The bad news is
 luatex completely blows itself to pieces, allocating memory until the
 system crashes.
example ?
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-18 Thread Kip Warner
On Sun, 2012-03-18 at 16:25 -0700, Kip Warner wrote:
 On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
  Am 17.03.2012 um 10:21 schrieb luigi scarso:
  
   On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
   Hey list,
   
   Is there any way to hint to ConTeXt that the contents of a \startitemize
   \stopitemize pair should try to be all on the same page?
   plain old tex
   \vbox{%
   \startitemize
   \stopitemize%
   }
  
  Better:
  
  \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
  
  \stopitemize
  
  You can control the space before/after the linecorrection environment with 
  the optional
  argument which accepts all values for \blank, e.g. 
  \startlinecorrection[2*line].
  
  Wolfgang
 
 Hey Wolfgang,
 
 The good news is that this is probably what I need. The bad news is
 luatex completely blows itself to pieces, allocating memory until the
 system crashes. 
 
 After much grinding of the machine, I managed to finally SIGSTOP and
 attach gdb to the naughty process.
 
 I've cc'd the luatex user mailing list since this is probably, I
 suppose, a luatex issue more than a ConTeXt one.
 
 I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
 version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

One other thing that I should have made more clear, this only happens
when I insert the aforementioned line correction commands.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] indexing query

2012-03-18 Thread Alan Bowen
OK: That does not sound good, so back to basics then. Here is a test file.
Perhaps the problem lies in how I am defining my keys.

% with MKII the output is fine, but no contrastcolor
% with MKIV subentry/subsubentry are not placed properly

\setupinteraction[state=start,color=blue,contrastcolor=red]
\setupcolors[state=start]

\setupregister[index][n=3,
balance=yes,
pagestyle=italic,
textstyle=normal,
criterium=all,
interaction={pagenumber},
]

\setupregister[index][indicator=no,distance=0.5em]

\setupregister[index][pagecommand=\it] %needed with MKIV

\starttext

Throughout the millennia \index{humans}humans have
\index[humans]{humans+development}developed and
\index[humans+development]{humans+development+adaptation}adapted methods
for storing facts and
thoughts on a variety of different media.
\page
Throughout the millennia \index{humans}humans have
\index[humans]{humans+development}developed and
\index[humans+development]{humans+development+adaptation}adapted methods
for storing facts and
thoughts on a variety of different media.

\blank[3*big]

\placeindex

\stoptext


On Sun, Mar 18, 2012 at 5:17 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 18.03.2012 um 22:11 schrieb Alan Bowen:

  Sorry for the bother, Wolfgang. I think I have the answer now (see my
 message earlier by about 30 seconds). I had not realized that the textstyle
 key in \setupregister could take a command for positioning the head as well
 as its actual style.

 You textstyle key accepts commands because it has to accepts \ss, \bf etc.
 and you misuse this for something different.

 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
___