[NTG-context] interface file parameter

2010-08-16 Thread Philipp Gesang
Hi all,

in an interface xml definition, what is the notation for an argument value
that is a filename? I'm just unsure whether to specify it as “cd:text”
or “cd:name”. Example:

···8··

cd:parameter name=file
  cd:constant type=default-file.name default=yes/
  !--maybe the following:--
  cd:constant type=cd:text/
  !--or this one:--
  cd:constant type=cd:name/
/cd:parameter

···8··

Also, is there a way to specify conditioned arguments (apart from
separate setups)? E.g. parameter “p” has an effect iff parameter “q” is
given as well?

···8··

cd:parameter name=p depends=q
  ...

···8··

Or are interface files obsolete by now due to texshow's migrating to the
wiki? Thanks,

Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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


[NTG-context] beta: \setuplocalframed (mkiv)

2010-08-16 Thread Peter Rolf
Hi,

\setuplocalframed is no longer defined in mkiv (but \localframed is
still used in several mkiv files). Is this a mistake or is there a new
mkiv interface for this?

MTXrun | current version: 2010.08.10 17:14

Peter
___
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] interface file parameter

2010-08-16 Thread Wolfgang Schuster

 Am 16.08.10 14:50, schrieb Philipp Gesang:

Hi all,

in an interface xml definition, what is the notation for an argument value
that is a filename? I'm just unsure whether to specify it as “cd:text”
or “cd:name”.


It’s “cd:name”.


Also, is there a way to specify conditioned arguments (apart from
separate setups)? E.g. parameter “p” has an effect iff parameter “q” is
given as well?


No, the file lists only the available parameters, dependences have to be 
explained in your text.


The interface file shows only how many parameters a command has and 
which arguments it does accept.


Interface file aren't obsolete because you need them to show the command 
syntax in your documetation
for a module, see here: 
http://bitbucket.org/wolfs/fancybreak/src/tip/files/t-fancybreak.mkiv


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] beta: \setuplocalframed (mkiv)

2010-08-16 Thread Wolfgang Schuster

 Am 16.08.10 14:52, schrieb Peter Rolf:

Hi,

\setuplocalframed is no longer defined in mkiv (but \localframed is
still used in several mkiv files). Is this a mistake or is there a new
mkiv interface for this?


You can use \getparameters, \setuplocalframed was marked as deprecated
and Hans removed it with the last change for the \framed macros.

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] interface file parameter

2010-08-16 Thread Taco Hoekwater

On 08/16/2010 02:58 PM, Wolfgang Schuster wrote:

Am 16.08.10 14:50, schrieb Philipp Gesang:

Hi all,

in an interface xml definition, what is the notation for an argument
value
that is a filename? I'm just unsure whether to specify it as “cd:text”
or “cd:name”.


It’s “cd:name”.


Also, is there a way to specify conditioned arguments (apart from
separate setups)? E.g. parameter “p” has an effect iff parameter “q” is
given as well?


No, the file lists only the available parameters, dependences have to be
explained in your text.

The interface file shows only how many parameters a command has and
which arguments it does accept.


If you want, you can create multiple xml entries for a single command,
this is what e.g. \definebodyfont does in cont-en.xml

Best wishes,
Taco
___
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] interface file parameter

2010-08-16 Thread Wolfgang Schuster

 Am 16.08.10 14:58, schrieb Wolfgang Schuster:

 Am 16.08.10 14:50, schrieb Philipp Gesang:

Hi all,

in an interface xml definition, what is the notation for an argument 
value

that is a filename? I'm just unsure whether to specify it as “cd:text”
or “cd:name”.


It’s “cd:name”.


I forgot there is also “cd:file” but Hans use both in cont-en.xml and 
you can now choose with you want to use.


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] beta: \setuplocalframed (mkiv)

2010-08-16 Thread Peter Rolf
Am 16.08.2010 15:01, schrieb Wolfgang Schuster:
  Am 16.08.10 14:52, schrieb Peter Rolf:
 Hi,

 \setuplocalframed is no longer defined in mkiv (but \localframed is
 still used in several mkiv files). Is this a mistake or is there a new
 mkiv interface for this?
 
 You can use \getparameters, \setuplocalframed was marked as deprecated
 and Hans removed it with the last change for the \framed macros.


OK, I'll use \getparameters then. Thanks Wolfgang! :-)

Best wishes,  Peter
___
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] interface file parameter

2010-08-16 Thread Philipp Gesang
Wolfgang, Taco: thanks very much for your answers!

Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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


[NTG-context] scriptfont0 undefined

2010-08-16 Thread Alan BRASLAU
scriptfont0 appears to be undefined.
This error occurs under certain circumstances
that I have not fully understood.

Alan

-- ! \scriptfont0 is undefined (character 54).
\mathematics ... #1\else \Ustartmath #1\Ustopmath 
  \fi 
l.1 \mathematics{1\times10^{6}}
   
\MPgraphformat ...a {metapost.format_n(#1,#2)}
  
l.11 \MPLIBsettext{11}{\MPgraphformat {g}{1e6}
  }
inserted text ...603;]===], [===[;]===], false)}
  
\processMPgraphic ...le \!!es , \MPaskedfigure )}}
  \egroup \placeMPgraphic 
\d...
l.366 \stopMPcode
 }
___
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] scriptfont0 undefined

2010-08-16 Thread taco

Alan BRASLAU wrote:

scriptfont0 appears to be undefined.
This error occurs under certain circumstances
that I have not fully understood.


This message came from the graph module. Can you try
to create a minimal test file?

Best wishes,
Taco
___
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] scriptfont0 undefined

2010-08-16 Thread Hans Hagen

On 16-8-2010 7:32, Alan BRASLAU wrote:

scriptfont0 appears to be undefined.
This error occurs under certain circumstances
that I have not fully understood.



normally it means that you have a font setup without math (in that case 
try to use lm as fallback)



-
  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] subject kills bookmarks?

2010-08-16 Thread Hans Hagen

On 15-8-2010 7:05, Steffen Wolfrum wrote:

Hi,

Why does subject kill bookmarks when used as first entry?
See attached example.

(I am not sure whether I misunderstood the structural logic that's used for 
bookmarks.)


Well, they assume some structure indeed and start from a parent that has 
a higher order.


Normally one will have more structure (introductions or whatever) and 
never start with a dangling subject.


In a toc this goes unnoticed as there is no tree visualized there.

I fixed it using a horrible hack that took me a whole afternoon of 
experimenting to cook up so this is the last thing I will do about 
bookmarks for a long time (esp such weird cases).


Having a dangling one in for instance an appendix will show the problem 
as one will never know where it actually belongs to then. A better way 
would be to have a dedicated 'inject level zero bookmark here' command 
but it has a very low priority.


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] subject kills bookmarks?

2010-08-16 Thread Steffen Wolfrum

Am 16.08.2010 um 20:06 schrieb Hans Hagen:

 On 15-8-2010 7:05, Steffen Wolfrum wrote:
 Hi,
 
 Why does subject kill bookmarks when used as first entry?
 See attached example.
 
 (I am not sure whether I misunderstood the structural logic that's used for 
 bookmarks.)
 
 Well, they assume some structure indeed and start from a parent that has a 
 higher order.
 
 Normally one will have more structure (introductions or whatever) and never 
 start with a dangling subject.
 
 In a toc this goes unnoticed as there is no tree visualized there.



That touches an interesting question: Who sets structure?

Easily I can think you hundreds of books where the author set Preface, 
Forword, List of Abbreviations and List of Content in a subordinate 
style. When the main text starts, this style is the same that is used for the 
second (or third) sectioning level. The same shows up in TOC: if these entries 
are listed in TOC, they are visually structured (by indentation and font) 
explicitly as the second (sometimes third) sectioning level.

As far as I have understood Hans' answer, the logic for bookmarks (or 
structured, tagged PDF in general?) works differently: even though the design 
of these sections (ie. section *headings*!) by the author is intended to be 
subordinated, nevertheless these section should be structured in a parent/child 
way: the first section mentioned is meant to be the highest level:

Would this map and represent the structure that the author was thinking of?


(Thank God it is not me who invented the structure of books and thus has to 
bear the blame ... and thank goodness we have Hans who manages to transform 
even the weirdest inputs and specs!)

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
___


Re: [NTG-context] subject kills bookmarks?

2010-08-16 Thread Hans Hagen



Easily I can think you hundreds of books where the author set Preface, Forword, List of 
Abbreviations and List of Content in a subordinate style. When the main text starts, this style is 
the same that is used for the second (or third) sectioning level. The same shows up in TOC: if these entries are listed 
in TOC, they are visually structured (by indentation and font) explicitly as the second (sometimes third) sectioning 
level.

As far as I have understood Hans' answer, the logic for bookmarks (or structured, tagged 
PDF in general?) works differently: even though the design of these sections 
(ie. section *headings*!) by the author is intended to be subordinated, nevertheless 
these section should be structured in a parent/child way: the first section mentioned is 
meant to be the highest level:



Would this map and represent the structure that the author was thinking of?


In a typeset toc it's often quite clear as visual clues are used 
(indentation, font, vertical spacing, either of not a pagenumber)


I have made some quite complex structured docs (tens of different heads 
at the same level). This goes ok as long as one is in control, but in 
automated flows with input that can have some components not being 
present and then also typeset one can have interesting confusing 
situations. In such cases fonts/spacing in a toc depend on an analysis 
of the structure (runtime).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \framed \placelist

2010-08-16 Thread Andreas Harder
Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?

Greeting
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] \framed \placelist

2010-08-16 Thread taco

Andreas Harder wrote:

Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?


putting it in a \vbox works, but \startframedtext ... \stopframedtext is 
nicer:


\startframedtext
  [background=color,width=\the\hsize,backgroundcolor=gray]
  \placelist[section]
\stopframedtext


Best wishes,
Taco
___
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] Typescripts for MathTimePro 2? (was MathTime Lite fonts for free)

2010-08-16 Thread Hans Hagen

On 15-8-2010 8:15, Vnpenguin wrote:

2009/12/17 Boštjan Vesnicerbostjan.vesni...@gmail.com:

Do the typescripts for the MathTime fonts exist?


I have the same question. Anyone could give us some typescripts for
MathTimePro 2 please.


(1) make a directory texmf-fonts/fonts/data/mathtimes
(2) copy the fonts there
(3) run mtxrun --generate
(4) test if it works:

\setupbodyfont[mathtimes]

\starttext
  test $e=mc^2$
\stoptext

The free version seems to be lm compatible so that should work I guess 
given that the same mapping is used. For the pro variant (with extra 
scripts) the vfu file probably needs to be extended with vectors the those.


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] Bugs in current beta (streams)

2010-08-16 Thread Hans Hagen

On 13-8-2010 1:59, Salil Sayed wrote:

\usemodule[streams]

\def\StartCouple{\page\SwitchToNormal}
\def\StopCouple {\SwitchToNormal \SynchronizeLeftAndRight \FlushLeftAndRight}
\def\Original {\SwitchToNormal\SynchronizeLeftAndRight\SwitchToLeft}
\def\Translation{\SwitchToRight}

\Original\en
Are you sleeping, brother John?

\Translation\de
Bruder Jakob, schläfst du noch?



I will pick up streams some day soon. But I needs to think of an 
interface. Maybe in the meantime you can start collecting user wishes.


\setuplayout[grid=yes] \showgrid

\starttext

\enableoutputstream[en]

Are you sleeping, brother John?\footnote{xxx}
x \footnote{note \recurselevel}\input tufte \par \pushoutputstream
Are you sleeping, brother John?\footnote{xxx} \par \pushoutputstream
x \footnote{note \recurselevel}\input tufte \par \pushoutputstream
Are you sleeping, brother John?\footnote{xxx} \par \pushoutputstream

\enableoutputstream[de]

Bruder Jakob, schläfst du noch?\footnote{yyy}
x \footnote{note \recurselevel}\input ward \par \pushoutputstream
Bruder Jakob, schläfst du noch?\footnote{yyy} \par \pushoutputstream
x \footnote{note \recurselevel}\input ward \par \pushoutputstream
Bruder Jakob, schläfst du noch?\footnote{yyy} \par \pushoutputstream

\disableoutputstream

\input tufte

\synchronizestreams[en,de]

\page \flushoutputstream[en]
\page \flushoutputstream[de]

\stoptext




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