What is the purpose of : in math mode?How to typeset $:=$ correctly?When not to use ensuremath for math macro?Define particle names to use upright greek letters in math modeAbbreviations in math modeText and math versions of textual (non-numeric) footnote symbolsWhat are semantically correct alternatives to text in math mode?Necessity of nested text within math mode for proper mathchoice-based scalingFixing mathit spacing with unicode-mathWhat math font is a good complement for Charter font?Inacessible math modeAlternative to using inline math mode for single letters?
How can a single Member of the House block a Congressional bill?
Intuition behind eigenvalues of an adjacency matrix
Can a helicopter mask itself from Radar?
Why does the UK have more political parties than the US?
How was Apollo supposed to rendezvous in the case of a lunar abort?
Do Multiclassed spellcasters add their ability modifier or proficiency bonus twice when determining spell save DC?
Do creatures all have the same statistics upon being reanimated via the Animate Dead spell?
Adding strings in lists together
Term for checking piece whose opponent daren't capture it
Select row of data if next row contains zero
Why would Lupin kill Pettigrew?
What's the most polite way to tell a manager "shut up and let me work"?
When a current flow in an inductor is interrupted, what limits the voltage rise?
What is the intuition behind uniform continuity?
Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?
Will My Circuit Work As intended?
Where can I find the list of all tendons in the human body?
Looking after a wayward brother in mother's will
How to capture more stars?
My player wants to cast multiple charges of magic missile from a wand
What does "Marchentalender" on the front of a postcard mean?
Different PCB color ( is it different material? )
Possible nonclassical ion from a bicyclic system
Beginner's snake game using PyGame
What is the purpose of : in math mode?
How to typeset $:=$ correctly?When not to use ensuremath for math macro?Define particle names to use upright greek letters in math modeAbbreviations in math modeText and math versions of textual (non-numeric) footnote symbolsWhat are semantically correct alternatives to text in math mode?Necessity of nested text within math mode for proper mathchoice-based scalingFixing mathit spacing with unicode-mathWhat math font is a good complement for Charter font?Inacessible math modeAlternative to using inline math mode for single letters?
What is the purpose of $:$
?
We know that in math mode one should write in natural language and not being so strict with math notation.
For example: $f:Ato B$
is not "correct", the correct way would be $fcolon Ato B$
(and variants).
I do not remember any math book that uses the colon as part of a sentence in math mode.
The only 2 uses I can give to $:$
are when learning about divisions ($2:4=1:2$
) and scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
math-mode punctuation
add a comment |
What is the purpose of $:$
?
We know that in math mode one should write in natural language and not being so strict with math notation.
For example: $f:Ato B$
is not "correct", the correct way would be $fcolon Ato B$
(and variants).
I do not remember any math book that uses the colon as part of a sentence in math mode.
The only 2 uses I can give to $:$
are when learning about divisions ($2:4=1:2$
) and scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
math-mode punctuation
2
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39
add a comment |
What is the purpose of $:$
?
We know that in math mode one should write in natural language and not being so strict with math notation.
For example: $f:Ato B$
is not "correct", the correct way would be $fcolon Ato B$
(and variants).
I do not remember any math book that uses the colon as part of a sentence in math mode.
The only 2 uses I can give to $:$
are when learning about divisions ($2:4=1:2$
) and scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
math-mode punctuation
What is the purpose of $:$
?
We know that in math mode one should write in natural language and not being so strict with math notation.
For example: $f:Ato B$
is not "correct", the correct way would be $fcolon Ato B$
(and variants).
I do not remember any math book that uses the colon as part of a sentence in math mode.
The only 2 uses I can give to $:$
are when learning about divisions ($2:4=1:2$
) and scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
math-mode punctuation
math-mode punctuation
edited May 16 at 16:23
manooooh
asked May 16 at 4:48
manoooohmanooooh
1,3841519
1,3841519
2
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39
add a comment |
2
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39
2
2
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39
add a comment |
2 Answers
2
active
oldest
votes
The :
is a relational symbol in TeX. In the TeXbook it is used in conjunction with =
.
Plain TeX treats the four characters |=|, |<|, |>|, and |:| as
``^relations'' because they express a relationship between two
quantities. For example, `$x<y$' means that $x$~is less than~$y$.
Such relationships have a rather different meaning from binary
operations like $+$, and the symbols are typeset somewhat differently:
beginmathdemo
|$x=y>z$|&x=y>zcr
|$x:=y$|&x:=ycr
|$xle yne z$|&xle yne zcr
|$xsim ysimeq z$|&xsim ysimeq zcr
|$xequiv ynotequiv z$|&xequiv ynotequiv zcr
|$xsubset ysubseteq z$|&xsubset ysubseteq zcr
endmathdemo
In the comments, egreg pointed out another example in the TeXbook, where :
is used to separate the condition from the set variable.
beginmathdemo
|$,xmid x>5,$|&,xmid x>5,cr
|$,x:x>5,$|&,x:x>5,cr
endmathdemo
(Some authors prefer to use a ^colon instead of `$mid$', as in the second
example here.)
The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
showthemathcode`:
csname @@endendcsname
bye
The output is
$ pdftex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./test.tex
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-12-01>
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
Here the same table rendered in LaTeX:
documentclassarticle
usepackagearray
usepackageamsmath
usepackagelistings
lstsetbasicstyle=ttfamily
begindocument
lstMakeShortInline|
begintabularl>$l<$
|$x=y>z$| & x=y>z \
|$x:=y$| & x:=y \
|$xle yne z$| & xle yne z \
|$xsim ysimeq z$| & xsim ysimeq z \
|$xequiv ynotequiv z$| & xequiv ynotequiv z \
|$xsubset ysubseteq z$| & xsubset ysubseteq z \
endtabular
enddocument
4
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– The old JouleV
May 16 at 6:25
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as:=
. Whether themathtools
macroscoloneqq
should be used is a question of personal choice and taste (I would never use:=
in my math, of course). I agree that:=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such asa:b=c:d
I'd not treat the colon as a binary operation.
– egreg
May 16 at 7:36
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
@JouleV -- Whilecoloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.
– barbara beeton
May 16 at 13:33
1
@egreg For:=
I use always yourmathrelmathop:=
:-) from Comprensive list symbols.
– Sebastiano
May 16 at 15:08
|
show 9 more comments
Quite often, one sees :
employed in place of a vertical bar (|
) to denote conditioning on some event or condition. E.g., both $E(X : X>0)$
and $E(Xmid X>0)$
would express the "expectation of the random variable X
conditional on this random variable taking on positive values".
By default, TeX treats both :
and mid
-- but not |
and vert
-- as "relational" operators and inserts an amount of whitespace around them that's also used for other relational operators such as <
, =
, and >
.
For other, i.e., non-conditioning math uses of the colon symbol, one should employ colon
, coloneq
(or, depending on the package that's in use, coloneqq
, etc.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f491080%2fwhat-is-the-purpose-of-in-math-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The :
is a relational symbol in TeX. In the TeXbook it is used in conjunction with =
.
Plain TeX treats the four characters |=|, |<|, |>|, and |:| as
``^relations'' because they express a relationship between two
quantities. For example, `$x<y$' means that $x$~is less than~$y$.
Such relationships have a rather different meaning from binary
operations like $+$, and the symbols are typeset somewhat differently:
beginmathdemo
|$x=y>z$|&x=y>zcr
|$x:=y$|&x:=ycr
|$xle yne z$|&xle yne zcr
|$xsim ysimeq z$|&xsim ysimeq zcr
|$xequiv ynotequiv z$|&xequiv ynotequiv zcr
|$xsubset ysubseteq z$|&xsubset ysubseteq zcr
endmathdemo
In the comments, egreg pointed out another example in the TeXbook, where :
is used to separate the condition from the set variable.
beginmathdemo
|$,xmid x>5,$|&,xmid x>5,cr
|$,x:x>5,$|&,x:x>5,cr
endmathdemo
(Some authors prefer to use a ^colon instead of `$mid$', as in the second
example here.)
The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
showthemathcode`:
csname @@endendcsname
bye
The output is
$ pdftex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./test.tex
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-12-01>
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
Here the same table rendered in LaTeX:
documentclassarticle
usepackagearray
usepackageamsmath
usepackagelistings
lstsetbasicstyle=ttfamily
begindocument
lstMakeShortInline|
begintabularl>$l<$
|$x=y>z$| & x=y>z \
|$x:=y$| & x:=y \
|$xle yne z$| & xle yne z \
|$xsim ysimeq z$| & xsim ysimeq z \
|$xequiv ynotequiv z$| & xequiv ynotequiv z \
|$xsubset ysubseteq z$| & xsubset ysubseteq z \
endtabular
enddocument
4
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– The old JouleV
May 16 at 6:25
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as:=
. Whether themathtools
macroscoloneqq
should be used is a question of personal choice and taste (I would never use:=
in my math, of course). I agree that:=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such asa:b=c:d
I'd not treat the colon as a binary operation.
– egreg
May 16 at 7:36
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
@JouleV -- Whilecoloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.
– barbara beeton
May 16 at 13:33
1
@egreg For:=
I use always yourmathrelmathop:=
:-) from Comprensive list symbols.
– Sebastiano
May 16 at 15:08
|
show 9 more comments
The :
is a relational symbol in TeX. In the TeXbook it is used in conjunction with =
.
Plain TeX treats the four characters |=|, |<|, |>|, and |:| as
``^relations'' because they express a relationship between two
quantities. For example, `$x<y$' means that $x$~is less than~$y$.
Such relationships have a rather different meaning from binary
operations like $+$, and the symbols are typeset somewhat differently:
beginmathdemo
|$x=y>z$|&x=y>zcr
|$x:=y$|&x:=ycr
|$xle yne z$|&xle yne zcr
|$xsim ysimeq z$|&xsim ysimeq zcr
|$xequiv ynotequiv z$|&xequiv ynotequiv zcr
|$xsubset ysubseteq z$|&xsubset ysubseteq zcr
endmathdemo
In the comments, egreg pointed out another example in the TeXbook, where :
is used to separate the condition from the set variable.
beginmathdemo
|$,xmid x>5,$|&,xmid x>5,cr
|$,x:x>5,$|&,x:x>5,cr
endmathdemo
(Some authors prefer to use a ^colon instead of `$mid$', as in the second
example here.)
The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
showthemathcode`:
csname @@endendcsname
bye
The output is
$ pdftex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./test.tex
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-12-01>
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
Here the same table rendered in LaTeX:
documentclassarticle
usepackagearray
usepackageamsmath
usepackagelistings
lstsetbasicstyle=ttfamily
begindocument
lstMakeShortInline|
begintabularl>$l<$
|$x=y>z$| & x=y>z \
|$x:=y$| & x:=y \
|$xle yne z$| & xle yne z \
|$xsim ysimeq z$| & xsim ysimeq z \
|$xequiv ynotequiv z$| & xequiv ynotequiv z \
|$xsubset ysubseteq z$| & xsubset ysubseteq z \
endtabular
enddocument
4
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– The old JouleV
May 16 at 6:25
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as:=
. Whether themathtools
macroscoloneqq
should be used is a question of personal choice and taste (I would never use:=
in my math, of course). I agree that:=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such asa:b=c:d
I'd not treat the colon as a binary operation.
– egreg
May 16 at 7:36
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
@JouleV -- Whilecoloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.
– barbara beeton
May 16 at 13:33
1
@egreg For:=
I use always yourmathrelmathop:=
:-) from Comprensive list symbols.
– Sebastiano
May 16 at 15:08
|
show 9 more comments
The :
is a relational symbol in TeX. In the TeXbook it is used in conjunction with =
.
Plain TeX treats the four characters |=|, |<|, |>|, and |:| as
``^relations'' because they express a relationship between two
quantities. For example, `$x<y$' means that $x$~is less than~$y$.
Such relationships have a rather different meaning from binary
operations like $+$, and the symbols are typeset somewhat differently:
beginmathdemo
|$x=y>z$|&x=y>zcr
|$x:=y$|&x:=ycr
|$xle yne z$|&xle yne zcr
|$xsim ysimeq z$|&xsim ysimeq zcr
|$xequiv ynotequiv z$|&xequiv ynotequiv zcr
|$xsubset ysubseteq z$|&xsubset ysubseteq zcr
endmathdemo
In the comments, egreg pointed out another example in the TeXbook, where :
is used to separate the condition from the set variable.
beginmathdemo
|$,xmid x>5,$|&,xmid x>5,cr
|$,x:x>5,$|&,x:x>5,cr
endmathdemo
(Some authors prefer to use a ^colon instead of `$mid$', as in the second
example here.)
The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
showthemathcode`:
csname @@endendcsname
bye
The output is
$ pdftex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./test.tex
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-12-01>
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
Here the same table rendered in LaTeX:
documentclassarticle
usepackagearray
usepackageamsmath
usepackagelistings
lstsetbasicstyle=ttfamily
begindocument
lstMakeShortInline|
begintabularl>$l<$
|$x=y>z$| & x=y>z \
|$x:=y$| & x:=y \
|$xle yne z$| & xle yne z \
|$xsim ysimeq z$| & xsim ysimeq z \
|$xequiv ynotequiv z$| & xequiv ynotequiv z \
|$xsubset ysubseteq z$| & xsubset ysubseteq z \
endtabular
enddocument
The :
is a relational symbol in TeX. In the TeXbook it is used in conjunction with =
.
Plain TeX treats the four characters |=|, |<|, |>|, and |:| as
``^relations'' because they express a relationship between two
quantities. For example, `$x<y$' means that $x$~is less than~$y$.
Such relationships have a rather different meaning from binary
operations like $+$, and the symbols are typeset somewhat differently:
beginmathdemo
|$x=y>z$|&x=y>zcr
|$x:=y$|&x:=ycr
|$xle yne z$|&xle yne zcr
|$xsim ysimeq z$|&xsim ysimeq zcr
|$xequiv ynotequiv z$|&xequiv ynotequiv zcr
|$xsubset ysubseteq z$|&xsubset ysubseteq zcr
endmathdemo
In the comments, egreg pointed out another example in the TeXbook, where :
is used to separate the condition from the set variable.
beginmathdemo
|$,xmid x>5,$|&,xmid x>5,cr
|$,x:x>5,$|&,x:x>5,cr
endmathdemo
(Some authors prefer to use a ^colon instead of `$mid$', as in the second
example here.)
The colon has the exact same meaning in Plain TeX and LaTeX, as can be verified using this simple document:
showthemathcode`:
csname @@endendcsname
bye
The output is
$ pdftex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdftex)
restricted write18 enabled.
entering extended mode
(./test.tex
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-12-01>
> 12346.
l.1 showthemathcode`:
?
)
No pages of output.
Transcript written on test.log.
Here the same table rendered in LaTeX:
documentclassarticle
usepackagearray
usepackageamsmath
usepackagelistings
lstsetbasicstyle=ttfamily
begindocument
lstMakeShortInline|
begintabularl>$l<$
|$x=y>z$| & x=y>z \
|$x:=y$| & x:=y \
|$xle yne z$| & xle yne z \
|$xsim ysimeq z$| & xsim ysimeq z \
|$xequiv ynotequiv z$| & xequiv ynotequiv z \
|$xsubset ysubseteq z$| & xsubset ysubseteq z \
endtabular
enddocument
edited May 16 at 23:56
answered May 16 at 5:59
Henri MenkeHenri Menke
79.7k9175288
79.7k9175288
4
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– The old JouleV
May 16 at 6:25
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as:=
. Whether themathtools
macroscoloneqq
should be used is a question of personal choice and taste (I would never use:=
in my math, of course). I agree that:=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such asa:b=c:d
I'd not treat the colon as a binary operation.
– egreg
May 16 at 7:36
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
@JouleV -- Whilecoloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.
– barbara beeton
May 16 at 13:33
1
@egreg For:=
I use always yourmathrelmathop:=
:-) from Comprensive list symbols.
– Sebastiano
May 16 at 15:08
|
show 9 more comments
4
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– The old JouleV
May 16 at 6:25
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as:=
. Whether themathtools
macroscoloneqq
should be used is a question of personal choice and taste (I would never use:=
in my math, of course). I agree that:=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such asa:b=c:d
I'd not treat the colon as a binary operation.
– egreg
May 16 at 7:36
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
@JouleV -- Whilecoloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.
– barbara beeton
May 16 at 13:33
1
@egreg For:=
I use always yourmathrelmathop:=
:-) from Comprensive list symbols.
– Sebastiano
May 16 at 15:08
4
4
I think := should be typeset with
coloneqq
: tex.stackexchange.com/a/4217/156344. One should not use $a:=b$
as Knuth said.– The old JouleV
May 16 at 6:25
I think := should be typeset with
coloneqq
: tex.stackexchange.com/a/4217/156344. One should not use $a:=b$
as Knuth said.– The old JouleV
May 16 at 6:25
3
3
@Mico If you look in the Metafontbook, you will see “:=” clearly input as
:=
. Whether the mathtools
macros coloneqq
should be used is a question of personal choice and taste (I would never use :=
in my math, of course). I agree that :=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such as a:b=c:d
I'd not treat the colon as a binary operation.– egreg
May 16 at 7:36
@Mico If you look in the Metafontbook, you will see “:=” clearly input as
:=
. Whether the mathtools
macros coloneqq
should be used is a question of personal choice and taste (I would never use :=
in my math, of course). I agree that :=
is by no means “the” intended usage (see page 174 in the TeXbook for the main one). In proportions such as a:b=c:d
I'd not treat the colon as a binary operation.– egreg
May 16 at 7:36
1
1
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
@HenriMenke It is not “the” (in the sense of the unique) intended usage.
– egreg
May 16 at 7:53
1
1
@JouleV -- While
coloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.– barbara beeton
May 16 at 13:33
@JouleV -- While
coloneqq
exists now (and should now be used), it did not exist when TeX was created -- there simply wasn't enough memory to accommodate all possible symbols.– barbara beeton
May 16 at 13:33
1
1
@egreg For
:=
I use always your mathrelmathop:=
:-) from Comprensive list symbols.– Sebastiano
May 16 at 15:08
@egreg For
:=
I use always your mathrelmathop:=
:-) from Comprensive list symbols.– Sebastiano
May 16 at 15:08
|
show 9 more comments
Quite often, one sees :
employed in place of a vertical bar (|
) to denote conditioning on some event or condition. E.g., both $E(X : X>0)$
and $E(Xmid X>0)$
would express the "expectation of the random variable X
conditional on this random variable taking on positive values".
By default, TeX treats both :
and mid
-- but not |
and vert
-- as "relational" operators and inserts an amount of whitespace around them that's also used for other relational operators such as <
, =
, and >
.
For other, i.e., non-conditioning math uses of the colon symbol, one should employ colon
, coloneq
(or, depending on the package that's in use, coloneqq
, etc.
add a comment |
Quite often, one sees :
employed in place of a vertical bar (|
) to denote conditioning on some event or condition. E.g., both $E(X : X>0)$
and $E(Xmid X>0)$
would express the "expectation of the random variable X
conditional on this random variable taking on positive values".
By default, TeX treats both :
and mid
-- but not |
and vert
-- as "relational" operators and inserts an amount of whitespace around them that's also used for other relational operators such as <
, =
, and >
.
For other, i.e., non-conditioning math uses of the colon symbol, one should employ colon
, coloneq
(or, depending on the package that's in use, coloneqq
, etc.
add a comment |
Quite often, one sees :
employed in place of a vertical bar (|
) to denote conditioning on some event or condition. E.g., both $E(X : X>0)$
and $E(Xmid X>0)$
would express the "expectation of the random variable X
conditional on this random variable taking on positive values".
By default, TeX treats both :
and mid
-- but not |
and vert
-- as "relational" operators and inserts an amount of whitespace around them that's also used for other relational operators such as <
, =
, and >
.
For other, i.e., non-conditioning math uses of the colon symbol, one should employ colon
, coloneq
(or, depending on the package that's in use, coloneqq
, etc.
Quite often, one sees :
employed in place of a vertical bar (|
) to denote conditioning on some event or condition. E.g., both $E(X : X>0)$
and $E(Xmid X>0)$
would express the "expectation of the random variable X
conditional on this random variable taking on positive values".
By default, TeX treats both :
and mid
-- but not |
and vert
-- as "relational" operators and inserts an amount of whitespace around them that's also used for other relational operators such as <
, =
, and >
.
For other, i.e., non-conditioning math uses of the colon symbol, one should employ colon
, coloneq
(or, depending on the package that's in use, coloneqq
, etc.
answered May 16 at 6:39
MicoMico
292k32402789
292k32402789
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f491080%2fwhat-is-the-purpose-of-in-math-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
The colon is not used for division in USA/British tradition. In scale ratios, I'd prefer spacing the colon as a relation rather than an operation.
– egreg
May 16 at 7:39