ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Old-style figures throughout the document
@ 2005-04-27 11:52 varheit
  2005-04-27 12:33 ` Eckhart Guthöhrlein
  0 siblings, 1 reply; 7+ messages in thread
From: varheit @ 2005-04-27 11:52 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-28 12:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-27 11:52 Old-style figures throughout the document varheit
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

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).