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?













13















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?










share|improve this question



















  • 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















13















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?










share|improve this question



















  • 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













13












13








13


3






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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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










2 Answers
2






active

oldest

votes


















12














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:



enter image description here



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





share|improve this answer




















  • 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






  • 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






  • 1





    @HenriMenke It is not “the” (in the sense of the unique) intended usage.

    – egreg
    May 16 at 7:53






  • 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






  • 1





    @egreg For := I use always your mathrelmathop:= :-) from Comprensive list symbols.

    – Sebastiano
    May 16 at 15:08


















6














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.






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    12














    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:



    enter image description here



    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





    share|improve this answer




















    • 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






    • 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






    • 1





      @HenriMenke It is not “the” (in the sense of the unique) intended usage.

      – egreg
      May 16 at 7:53






    • 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






    • 1





      @egreg For := I use always your mathrelmathop:= :-) from Comprensive list symbols.

      – Sebastiano
      May 16 at 15:08















    12














    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:



    enter image description here



    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





    share|improve this answer




















    • 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






    • 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






    • 1





      @HenriMenke It is not “the” (in the sense of the unique) intended usage.

      – egreg
      May 16 at 7:53






    • 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






    • 1





      @egreg For := I use always your mathrelmathop:= :-) from Comprensive list symbols.

      – Sebastiano
      May 16 at 15:08













    12












    12








    12







    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:



    enter image description here



    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





    share|improve this answer















    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:



    enter image description here



    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






    share|improve this answer














    share|improve this answer



    share|improve this answer








    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 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





      @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





      @HenriMenke It is not “the” (in the sense of the unique) intended usage.

      – egreg
      May 16 at 7:53






    • 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






    • 1





      @egreg For := I use always your mathrelmathop:= :-) from Comprensive list symbols.

      – Sebastiano
      May 16 at 15:08












    • 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






    • 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






    • 1





      @HenriMenke It is not “the” (in the sense of the unique) intended usage.

      – egreg
      May 16 at 7:53






    • 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






    • 1





      @egreg For := I use always your mathrelmathop:= :-) 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











    6














    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.






    share|improve this answer



























      6














      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.






      share|improve this answer

























        6












        6








        6







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 16 at 6:39









        MicoMico

        292k32402789




        292k32402789



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company