Z in LaTex

  • #1
Stephen Tashi
Science Advisor
7,124
1,301

Main Question or Discussion Point

What's the best way to use Z as a symbol for the integers on the forum's LaTex?

One source on the web (http://www.proofwiki.org/wiki/Symbols:Z) says the symbols for the integers can be written in LaTex as backslash Z. On the forum, that currently shows up as the two characters. [itex] \Z [/itex]

That source also say the notation [itex] Z_+ [/itex] is deprecated in favor of [itex] Z_{\ge 0} [/itex]. I approve! I never can remember whether [itex] Z_+ [/itex] includes zero or not.
 

Answers and Replies

  • #2
D H
Staff Emeritus
Science Advisor
Insights Author
15,393
683
Maybe there is some obscure LaTeX package where \Z prints as blackboard bold Z, but not in any one that I know of. Just use \mathbb Z: [itex]\mathbb Z[/itex].
 
  • #3
AlephZero
Science Advisor
Homework Helper
6,994
291
Maybe somebody defined the macro \Z to do that in their own package of "useful math stuff", and then forgot it was their own definition.

If you don't care about annoying the LaTeX style police, or getting nice error messages if you use it in the wrong context etc, all you need to do is

\def\Z{\mathbb Z}

... and do the same for everything else that you type repeatedly!

EDIT: It's defined in a template file in "Getting up and running with AMS LaTeX", which might be in your system called amshelp.pdf. So I guess it's "sort of official", but not actually in a LxTeX package.
 
Last edited:
  • #4
Fredrik
Staff Emeritus
Science Advisor
Gold Member
10,851
407
What's the best way to use Z as a symbol for the integers on the forum's LaTex?
I use \mathbb Z. ##\mathbb Z##.

That source also say the notation [itex] Z_+ [/itex] is deprecated in favor of [itex] Z_{\ge 0} [/itex]. I approve! I never can remember whether [itex] Z_+ [/itex] includes zero or not.
I've been using ##\mathbb Z^+## for the positive integers. Is the plus usually written downstairs?

If we use the convention that the natural numbers ##\mathbb N## includes zero, then it wouldn't make much sense to include 0 in ##\mathbb Z^+##, since we can write ##\mathbb N## when we want to include it.
 

Related Threads on Z in LaTex

  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
5
Views
4K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
3K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
2
Views
16K
  • Last Post
Replies
2
Views
621
Top