ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how old are we toay
@ 2000-08-20 16:27 Frans Goddijn
  2000-08-21 10:46 ` Hans Hagen
  2000-08-27 21:35 ` Oldstyle footnotemarks Frans Goddijn
  0 siblings, 2 replies; 4+ messages in thread
From: Frans Goddijn @ 2000-08-20 16:27 UTC (permalink / raw)


Hello,

This is not really urgent: I was trying to see if I could get the current date (in dutch \huidigedatum) with oldstyle numbers. 

In my setup, \os{123} yields oldstyle numbers 123

As I expected, this didn't work: \huidigedatum[\os{dag},maand,\os{jaar}]

I then tried if the code I used to have for LaTeX happened to be plain TeX but apparantly it isn't. 

any pointers?

Below is the code I used to use in LaTeX:

%--------------Old style today----------------------------------%
\def\oldtoday{{\osfamily\number\day} \ifcase\month\or
  januari\or februari\or maart\or april\or mei\or juni\or juli\or
  augustus\or september\or oktober\or november\or december\fi
  \space {\osfamily\number\year}}
%---------------------------------------------------------------%

% -------------Old style \now-----------------------------------%
% \now macro levert met \now de tijd in hh:mm
% \oldnow in oldstyle numbers
\newcount\hh \newcount\mm
\hh=\time \divide\hh by 60
\mm=\hh \multiply\mm by 60 \mm=-\mm
\advance\mm by \time
\def\now{\number\hh:\ifnum\mm<10{}0\fi\number\mm}
%\def\oldnow{{\onumscfont\number\hh:\ifnum\mm<10{}0\fi \number\mm}}
\def\oldnow{{\osfamily\number\hh:\ifnum\mm<10{}0\fi \number\mm}}
%********************************************************************

Groet!

Frans

frans@goddijn.com   www.goddijn.com
tel NL 0621-815 881   fax: 026-3211759 
Postbus 30196      6803 AD  Arnhem NL


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

* Re: how old are we toay
  2000-08-20 16:27 how old are we toay Frans Goddijn
@ 2000-08-21 10:46 ` Hans Hagen
  2000-08-27 21:35 ` Oldstyle footnotemarks Frans Goddijn
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2000-08-21 10:46 UTC (permalink / raw)
  Cc: ntg-context

At 06:27 PM 8/20/00 +0200, Frans Goddijn wrote:
>Hello,
>
>This is not really urgent: I was trying to see if I could get the current
date (in dutch \huidigedatum) with oldstyle numbers. 
>
>In my setup, \os{123} yields oldstyle numbers 123
>
>As I expected, this didn't work: \huidigedatum[\os{dag},maand,\os{jaar}]

{\os\currentdate[day]} \currentdate[month] {\os\currentdate[year]}

works here. 

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Oldstyle footnotemarks
  2000-08-20 16:27 how old are we toay Frans Goddijn
  2000-08-21 10:46 ` Hans Hagen
@ 2000-08-27 21:35 ` Frans Goddijn
  2000-08-28  7:39   ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Frans Goddijn @ 2000-08-27 21:35 UTC (permalink / raw)
  Cc: ntg-context

Hans advised to add the following lines to my tex file in order to get automatic oldstyle numbers in footnotemarks in the text and
at the footnotes on the bottom of the page:

\definefontsynonym [OldStyle] [tnrexp]
\defineconversion[o][\oldstylenumerals]
\def\oldstylenumerals#1{{\os\number#1}}

I did and tested:

\starttekst
test\voetnoot{I wonder if the footnotemarks are oldstyle now}
test\voetnoot{I wonder if the footnotemarks are oldstyle now}
test\voetnoot{I wonder if the footnotemarks are oldstyle now}
test\voetnoot{I wonder if the footnotemarks are oldstyle now}
\stoptekst

But the footnotes aren't in oldstyle and [tnrexp] is not used:

 63i,19n,87p,165b,1132s stack positions out of 300i,100n,500p,50000b,4000s
<texnansi.enc><tnr.pfb>
Output written on 0TEST.pdf (1 page, 25489 bytes).

Any ideas? In my FONT-FG.TEX in the texmf\tex\context\user directory I changed the definitions of \os into \fgos and \osi into
\fgosi so I suppose they don't disturb anymore...

Groet!

Frans

frans@goddijn.com   www.goddijn.com
tel NL 0621-815 881   fax: 026-3211759
Postbus 30196      6803 AD  Arnhem NL


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

* Re: Oldstyle footnotemarks
  2000-08-27 21:35 ` Oldstyle footnotemarks Frans Goddijn
@ 2000-08-28  7:39   ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2000-08-28  7:39 UTC (permalink / raw)
  Cc: ntg-context

At 11:35 PM 8/27/00 +0200, Frans Goddijn wrote:
>Hans advised to add the following lines to my tex file in order to get
automatic oldstyle numbers in footnotemarks in the text and
>at the footnotes on the bottom of the page:
>
>\definefontsynonym [OldStyle] [tnrexp]
>\defineconversion[o][\oldstylenumerals]
>\def\oldstylenumerals#1{{\os\number#1}}
>
>I did and tested:
>
>\starttekst
>test\voetnoot{I wonder if the footnotemarks are oldstyle now}
>test\voetnoot{I wonder if the footnotemarks are oldstyle now}
>test\voetnoot{I wonder if the footnotemarks are oldstyle now}
>test\voetnoot{I wonder if the footnotemarks are oldstyle now}
>\stoptekst
>
>
>But the footnotes aren't in oldstyle and [tnrexp] is not used:
>
> 63i,19n,87p,165b,1132s stack positions out of 300i,100n,500p,50000b,4000s
><texnansi.enc><tnr.pfb>
>Output written on 0TEST.pdf (1 page, 25489 bytes).
>
>
>Any ideas? In my FONT-FG.TEX in the texmf\tex\context\user directory I
changed the definitions of \os into \fgos and \osi into
>\fgosi so I suppose they don't disturb anymore...

You need to set the conversion: \setupfootnotes[conversion=o] or redefine
the numeric conversion \defineconversion[n][\oldstylenumerals] so that all
numbers will be oldstyle. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2000-08-28  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-20 16:27 how old are we toay Frans Goddijn
2000-08-21 10:46 ` Hans Hagen
2000-08-27 21:35 ` Oldstyle footnotemarks Frans Goddijn
2000-08-28  7:39   ` Hans Hagen

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