ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: varheit@gmx.de
Subject: Old-style figures throughout the document
Date: Wed, 27 Apr 2005 13:52:40 +0200 (MEST)	[thread overview]
Message-ID: <15446.1114602760@www73.gmx.net> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1814 bytes --]

Hello,

I am experimenting with old-style figures (or text figures, as they are
also called). Basically, I would like every number in my source document
to be typeset in old-style figures (OSF) by default unless stated
otherwise. This means: I want to reverse the mechanism so that I can
explicitly say where NOT to use OSF.

As a work-around I found the following on the list:

\defineconversion[number][\os]
\defineconversion[numbers][\os]

This does not work for plain digits in the text, but it works for
generated numbers like page numbers, and, to some degree, for the
generated numbers of floats. 

\starttext
  \chapter[sample]{Sample}
  \placefigure[here][a]{cap}{test}
  Reference: \in{figure}[a]
  \section[test]{Test}
\stoptext

In this setup, chapter numbers do not use OSF, and the numbers of
figures (as well as references to them) use a mixed form, which
looks rather odd.

I can add

  \setuphead[chapter,section][numberstyle=\os]

which makes heading numbers use OSF, but then again, references like
\in[sample] do not work. Also, the numbering of the section changes
from 1.1 to 1>1 (where > is a right pointing triangle).

To see the results, you can process this:

------------------------ cut here ---------------------
\defineconversion[number][\os]
\defineconversion[numbers][\os]
\setuphead[chapter,section][numberstyle=\os]
\starttext

\chapter[sample]{Sample}

This is chapter \in[sample].
Below is \in{section}[test].

Here is \in{figure}[a] on \at{page}[a]

\placefigure[here][a]{Caption}{FIGURE}

\section[test]{Test}
\stoptext
------------------------ cut here ---------------------


Is there any way, to change the numbering style globally?

Thanks,
Viktor


-- 
+++ GMX - die erste Adresse für Mail, Message, More +++

10 GB Mailbox, 100 FreeSMS  http://www.gmx.net/de/go/topmail

             reply	other threads:[~2005-04-27 11:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-27 11:52 varheit [this message]
2005-04-27 12:33 ` Eckhart Guthöhrlein
2005-04-27 13:33   ` Viktor Varheit
2005-04-27 22:12     ` Adam Lindsay
2005-04-28  7:52     ` Eckhart Guthöhrlein
2005-04-28 12:35       ` Adam Lindsay
2005-04-27 13:58   ` William F. Adams

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=15446.1114602760@www73.gmx.net \
    --to=varheit@gmx.de \
    --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).