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?
Pedaling at different gear ratios on flat terrain: what's the point?
Capital gains on stocks sold to take initial investment off the table
SHAKE-128/256 or SHA3-256/512
When did Britain learn about American independence?
What is the purpose of : in math mode?
Why is the marginal distribution/marginal probability described as "marginal"?
Why doesn't Iron Man's action affect this person in Endgame?
Why would you put your input amplifier in front of your filtering for and ECG signal?
How to handle professionally if colleagues has referred his relative and asking to take easy while taking interview
Why did nobody know who the Lord of this region was?
Canadian citizen who is presently in litigation with a US-based company
Is it standard to have the first week's pay indefinitely withheld?
How to pass store code to custom URL in magento 2
What is this rubber on gear cables
Is Precocious Apprentice enough for Mystic Theurge?
Can a person still be an Orthodox Jew and believe that the Torah contains narratives that are not scientifically correct?
How to know the path of a particular software?
How does the Heat Metal spell interact with a follow-up Frostbite spell?
What formula to chose a nonlinear formula?
Why is vowel phonology represented in a trapezoid instead of a square?
How can I fix the label locations on my tikzcd diagram?
Why is Drogon so much better in battle than Rhaegal and Viserion?
Why are lawsuits between the President and Congress not automatically sent to the Supreme Court
Given 0s on Assignments with suspected and dismissed cheating?
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 $:$
is when are learning about divisions ($2:4=1:2$
) and for 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 $:$
is when are learning about divisions ($2:4=1:2$
) and for 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 $:$
is when are learning about divisions ($2:4=1:2$
) and for 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 $:$
is when are learning about divisions ($2:4=1:2$
) and for scales ($1:2$
).
Does (La)TeX give a meaning of :
in math mode?
math-mode punctuation
math-mode punctuation
asked 2 hours ago
manoooohmanooooh
1,2361517
1,2361517
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The :
is a relational symbol in TeX. It is intended to be used in conjunction with =
. From the TeXbook.
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
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
1
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– JouleV
24 mins ago
The claim that:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use:
to denote conditioning on an event.
– Mico
3 mins ago
If you inspect the typeset version of:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to writecoloneq
,coloneqq
, etc.
– Mico
18 secs ago
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 |
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. It is intended to be used in conjunction with =
. From the TeXbook.
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
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
1
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– JouleV
24 mins ago
The claim that:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use:
to denote conditioning on an event.
– Mico
3 mins ago
If you inspect the typeset version of:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to writecoloneq
,coloneqq
, etc.
– Mico
18 secs ago
add a comment |
The :
is a relational symbol in TeX. It is intended to be used in conjunction with =
. From the TeXbook.
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
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
1
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– JouleV
24 mins ago
The claim that:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use:
to denote conditioning on an event.
– Mico
3 mins ago
If you inspect the typeset version of:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to writecoloneq
,coloneqq
, etc.
– Mico
18 secs ago
add a comment |
The :
is a relational symbol in TeX. It is intended to be used in conjunction with =
. From the TeXbook.
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
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. It is intended to be used in conjunction with =
. From the TeXbook.
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
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 44 mins ago
answered 49 mins ago
Henri MenkeHenri Menke
79.2k9172286
79.2k9172286
1
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– JouleV
24 mins ago
The claim that:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use:
to denote conditioning on an event.
– Mico
3 mins ago
If you inspect the typeset version of:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to writecoloneq
,coloneqq
, etc.
– Mico
18 secs ago
add a comment |
1
I think := should be typeset withcoloneqq
: tex.stackexchange.com/a/4217/156344. One should not use$a:=b$
as Knuth said.
– JouleV
24 mins ago
The claim that:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use:
to denote conditioning on an event.
– Mico
3 mins ago
If you inspect the typeset version of:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to writecoloneq
,coloneqq
, etc.
– Mico
18 secs ago
1
1
I think := should be typeset with
coloneqq
: tex.stackexchange.com/a/4217/156344. One should not use $a:=b$
as Knuth said.– JouleV
24 mins ago
I think := should be typeset with
coloneqq
: tex.stackexchange.com/a/4217/156344. One should not use $a:=b$
as Knuth said.– JouleV
24 mins ago
The claim that
:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use :
to denote conditioning on an event.– Mico
3 mins ago
The claim that
:
"is intended to be used in conjunction with =" seems a bit too strong. E.g., it seems perfectly code to use :
to denote conditioning on an event.– Mico
3 mins ago
If you inspect the typeset version of
:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to write coloneq
, coloneqq
, etc.– Mico
18 secs ago
If you inspect the typeset version of
:=
closely, you'll notice that the colon symbol is centered vertically on the equals symbol. That's why it's useful to write coloneq
, coloneqq
, etc.– Mico
18 secs ago
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.
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 10 mins ago
MicoMico
291k32399788
291k32399788
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