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

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020