ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hyphen as separator for formulas
Date: Sat, 10 Aug 2013 18:16:01 +0200	[thread overview]
Message-ID: <CEA7F5F6-5160-46D3-8A99-BF8DB7CCE2E3@gmail.com> (raw)
In-Reply-To: <ku5n0c$o11$1@ger.gmane.org>


Am 10.08.2013 um 17:42 schrieb Thomas Kreuzer <thomas.kreuzer@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
___________________________________________________________________________________


      reply	other threads:[~2013-08-10 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-10 15:42 Thomas Kreuzer
2013-08-10 16:16 ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CEA7F5F6-5160-46D3-8A99-BF8DB7CCE2E3@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).