[NTG-context] Hyphen as separator for formulas

2013-08-10 Thread Thomas Kreuzer

Hello everyone,

I am using mkiv, and my qestion is:
Is it possible to have a hyphen instead of a dot as a separator for 
formula references?

I can achieve it by using

\definestructureseparatorset[default][][-]

but this changes all separators in my document (including section 
headers etc.). The command isn't referenced in the wiki, so I am at a 
loss if this is even possible, and how to achieve it.


And

\setupformulas[separator={-}]

seems to have no effect at all.

Thanks in advance!

___
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] Hyphen as separator for formulas

2013-08-10 Thread Wolfgang Schuster

Am 10.08.2013 um 17:42 schrieb Thomas Kreuzer thomas.kreu...@rwth-aachen.de:

 Hello everyone,
 
 I am using mkiv, and my qestion is:
 Is it possible to have a hyphen instead of a dot as a separator for formula 
 references?
 I can achieve it by using
 
 \definestructureseparatorset[default][][-]
 
 but this changes all separators in my document (including section headers 
 etc.). The command isn't referenced in the wiki, so I am at a loss if this is 
 even possible, and how to achieve it.
 
 And
 
 \setupformulas[separator={-}]
 
 seems to have no effect at all.

Instead if redefining the default separator for all floats you can create your 
own set and apply it only to formulas.


There are different separators you can set:

1. The separator between the section numbers in the prefix,

2. the separator between the prefix and the formula number and

3. the separator between the formula numbers (main and sub numbers).


\defineseparatorset[formulaprefix][][+]
\defineseparatorset[formulanumber][][-]

\setupformulas
  [prefixseparatorset=formulaprefix,
   numberseparatorset=formulanumber,
   prefixconnector=?,
   prefixsegments=1:*]

\starttext

\chapter{Formulas}

\section{Indeed}

\startplaceformula
\startformula
c^2 = a^2 + b^2
\stopformula
\stopplaceformula

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