LaTeX Using the Symbol \Z for Integers in LaTex

Click For Summary
The discussion centers on the best practices for using the symbol Z to represent integers in LaTeX on the forum. The recommended method is to use \mathbb Z, which correctly formats Z in blackboard bold. The notation Z_+ is considered deprecated, with Z_{\ge 0} being preferred for clarity regarding the inclusion of zero. There is a suggestion that users can define their own macro for Z by using \def\Z{\mathbb Z}, although this may not align with formal LaTeX standards. The conversation also touches on the notation for positive integers, with some users questioning whether the plus sign should be written as a superscript or subscript. The consensus leans towards using \mathbb N to denote natural numbers, especially if zero is included.
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,602
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. \Z

That source also say the notation Z_+ is deprecated in favor of Z_{\ge 0}. I approve! I never can remember whether Z_+ includes zero or not.
 
Physics news on Phys.org
Maybe there is some obscure LaTeX package where \Z prints as blackboard bold Z, but not in anyone that I know of. Just use \mathbb Z: \mathbb Z.
 
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:
Stephen Tashi said:
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##.

Stephen Tashi said:
That source also say the notation Z_+ is deprecated in favor of Z_{\ge 0}. I approve! I never can remember whether Z_+ 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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 766 ·
26
Replies
766
Views
741K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
13
Views
3K
Replies
11
Views
12K