From: Taco Hoekwater <bittext@quicknet.nl>
Subject: Number conversions (Was Re: My ideas for tooltips)
Date: Sun, 18 Feb 2001 00:28:44 +0100 [thread overview]
Message-ID: <3A8F092C.DA3381D0@quicknet.nl> (raw)
In-Reply-To: <000501c0992c$f7eeb180$a3ccfea9@nuovo>
[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]
Giuseppe Bilotta wrote:
>
> Taco wrote:
> >
> > It is *possible* btw. that the example tooltip worked ok just because
> > of that. I don't think I have the math core patch installed on this
> > machine.
> >
>
> Nope. I'm using pdfeTeX in extended mode too, same version as you. Rats.
Maybe I *do* have the math patch installed then? Anyway, my context
deviates from the distribution regularly ;)
... and now for something completely different ...
I needed some extensions to the number conversions provided by context
(like character conversion for numbers > 26, which is broken :() nd
the attached file is what I came up with. It's rough, but maybe someone
will be interested enough to make requests? Here's a usage example/demo
(\maxcount == TeX's max integer divided by 26):
%&cont-en
\input radix
\switchtobodyfont[9pt]
\def\c#1{\hbox to 4.5em{#1\hss}}
\edef\maxcount{41297762}
\starttext
\noindent \c{dec} \c{dchar} \c{char} \c{Char}
\c{oct} \c{hex} \c{Hex} \c{bin}\par
\medskip
\hrule
\medskip
\advance\baselineskip -1pt
\dorecurse{53}{%
\noindent
\c{\recurselevel}
\c{\dcharacters{\recurselevel}}
\c{\characters{\recurselevel}}
\c{\Characters{\recurselevel}}
\c{\octal{\recurselevel}}
\c{\hexal{\recurselevel}}
\c{\Hexal{\recurselevel}}
\c{\binary{\recurselevel}}\par
}
\noindent
\c{\maxcount}
\c{}
\c{\characters{\maxcount}}
\c{\Characters{\maxcount}}
\c{\octal{\maxcount}}
\c{\hexal{\maxcount}}
\c{\Hexal{\maxcount}}
\c{\binary{\maxcount}}\par
\stoptext
Greetings, Taco
[-- Attachment #2: radix.tex --]
[-- Type: application/x-tex, Size: 4509 bytes --]
next prev parent reply other threads:[~2001-02-17 23:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-14 21:34 My ideas for tooltips Giuseppe Bilotta
2001-02-15 8:13 ` Taco Hoekwater
2001-02-16 10:45 ` Giuseppe Bilotta
2001-02-16 12:21 ` Taco Hoekwater
2001-02-16 21:45 ` Uwe Koloska
2001-02-17 17:25 ` Taco Hoekwater
[not found] ` <000501c0992c$f7eeb180$a3ccfea9@nuovo>
2001-02-17 23:28 ` Taco Hoekwater [this message]
2001-02-19 11:18 ` Number conversions (Was Re: My ideas for tooltips) Hans Hagen
2001-02-19 12:38 ` Taco Hoekwater
2001-02-19 14:45 ` Hans Hagen
2001-02-19 10:39 ` My ideas for tooltips Hans Hagen
2001-02-16 12:38 ` Hans Hagen
2001-02-16 18:57 ` Giuseppe Bilotta
2001-02-19 11:25 ` Hans Hagen
2001-02-19 22:48 ` Giuseppe Bilotta
2001-02-20 11:35 ` Hans Hagen
2001-02-20 22:49 ` Giuseppe Bilotta
2001-03-12 8:16 ` Hans Hagen
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=3A8F092C.DA3381D0@quicknet.nl \
--to=bittext@quicknet.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).