I'm curious what the persuasive reasoning was. I've always liked mathbb.
Jason
Thanks John. That's precisely the argument that influenced me long ago...
William
Okay. Another sentence from Wikipedia persuades me that mathbb is the
way to go, though:
"The symbols are nearly universal in their interpretation, unlike their
normally-typeset counterparts, which are used for many different purposes."
Jason
Here's a concrete proposal on how to arrange style configuration.
Rather than having a global setting in sage which alters the latex
code which is output (e.g. \mathbb{Z} vs. \mathbf{Z}), define a set
of latex macros which configure the way the latex output is rendered.
For example, the latex output for ZZ could be "\ZZ" or "\sageZZ", etc.
And so on with macros for the different fields and rings, and also
macros to render sage matrices, etc.
Then we can use a package, say "sage.sty", which defines all this
symbols in some way. then the user can configure
the way ZZ is rendered with one of the following options:
1) use \renewcommand for the symbols to be customized, right after
\usepackage{sage}
2) edit sage.sty to suit the desired style
3) implement a sage-local.sty package which imports sage.sty then
redefines some styles
4) there may already be alternate implementations of sage.sty by
different authors, so choose which style to go with.
What is important in this idea is that the actual "latex
representation" of sage objects would be invariant. one could "borrow"
latex objects from one paper to another, even if the papers have
different styles. Writing papers with different coauthors using
different styles would not require changing configuration of sage,
etc.
The only drawback I see is that the latex code won't work standalone,
i.e. unless \usepackage{sage} is included. I don't know if jsmath, for
instance, can be adjusted to this (without hacking it, that is).
Gonzalo
Not sure who is that Knuth you mention, but a bit of googling reveals
that he seems to be picky about fonts (e.g.
http://www-cs-faculty.stanford.edu/~knuth/cm.html).
Seriously, I can't find a quote of him about the use of blackboard
bold, but I think I read something about it (maybe in his math writing
class notes?)
> People became so used to seeing it in lectures and so on that they
> created computer fonts to replicate it.
I still remember using these in early 90s (before amsfonts, I guess):
\def\C{I\!\!\!\!\!\:C}
\def\R{I\!\!R}
\def\Z{Z\!\!\!Z}
> By the way, widespread use is not a convincing argument; many people
> use Z_p to represent the integers mod p, and I will *not* agree that
> this is acceptable usage.
I'm starting to think this is a lost one...
Gonzalo
Thanks. I don't have an idea to fix the jsMath issues, but when that
gets resolved I'll referee it.
- Robert
+1 -- I do not think Henryk Trappman's posts in this thread are up to
the level of civility and maturity expected on this (or other sage-*)
mailing lists.
-- William
What browser/OS are you using?
Davide (author of jsmath, and who has also posted to sage lists before)
would probably be interested in any problems that crop up.
Jason
Why not use:
\sageZZ
\sageRR
\sageQQ
\sageCC
\sageProjectiveSpace
etc. This gives maximum flexibility in that styles can be adjusted individually.
In fact, I'd go further and call those just \ZZ, \RR, \QQ, \CC,
\ProjectiveSpace, etc. (which has potential for namespace issues).
I'd love to see some standarised conventions for semantic markup of
actual mathematical objects, which latex currently doesn't have. This
enables sharing of latex snippets using these objects regardless of
stylistic choices. Modeling this after sage objects (and its need for
latex rendering) might be a good guide for this.
The point is, there could be two or three major styles the user can
choose among (so, no hand editing of preamble or packages needed) but
a determined user can still hand-tweak styles. Even a single package
could have a few options to change behaviour in different areas (bb
vs. bf, style for matrices, etc).
I do also like the idea of sage having a way to configure stylistic
choices and produce a preamble matching this configuration -- I
wouldn't try to go the other way around (python parsing latex to
figure out configuration, nah...)
Gonzalo