What does “rel” in `mathrel` and `stackrel` stands for?What does LaTeX understand as an operator?Mixing...

How to gently end involvement with an online community?

Boot Windows from SAN

Are there any elected officials in the U.S. who are not legislators, judges, or constitutional officers?

Do Bayesian credible intervals treat the estimated parameter as a random variable?

Changing JPEG to RAW to use on Lightroom?

Very slow boot time and poor perfomance

Can RMSE and MAE have the same value?

Semantic difference between regular and irregular 'backen'

Why is the UK so keen to remove the "backstop" when their leadership seems to think that no border will be needed in Northern Ireland?

"fF" letter combination seems to be typeset strangely or incorrectly

Filling a listlineplot with a texture

Discussing work with supervisor in an invited dinner with his family

How long do you think advanced cybernetic implants would plausibly last?

How to obtain a polynomial with these conditions?

Server Integrity Check CheckCommands question

Nothing like a good ol' game of ModTen

Why do these two functions have the same bytecode when disassembled under dis.dis?

Is gzip atomic?

Does this VCO produce a sine wave or square wave

How can I unambiguously ask for a new user's "Display Name"?

Removal of て in Japanese novels

Could this kind of inaccurate sacrifice be countered?

Ordering a list of integers

Can an ISO file damage—or infect—the machine it's being burned on?



What does “rel” in `mathrel` and `stackrel` stands for?


What does LaTeX understand as an operator?Mixing math character classes (e.g. mathord to the left and mathrel to the right)Does not imply arrow in xymatrix?Symbol for “defined to be logically equivalent” (:⇔)What does `mathrel{}` do (with the empty parameter group)?Floating point square root symbolSpecial square root for complex numbers?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







9















Most latex tags have straightforward meanings, for instance,



sqrt stands for/comes from "square root"



equiv stands for/comes from "equivalent to"



What does "rel" in mathrel and stackrel stands for?










share|improve this question









New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • 4





    Probably "relation".

    – Jan
    16 hours ago











  • Welcome to TeX.SE.

    – Mico
    16 hours ago


















9















Most latex tags have straightforward meanings, for instance,



sqrt stands for/comes from "square root"



equiv stands for/comes from "equivalent to"



What does "rel" in mathrel and stackrel stands for?










share|improve this question









New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • 4





    Probably "relation".

    – Jan
    16 hours ago











  • Welcome to TeX.SE.

    – Mico
    16 hours ago














9












9








9


1






Most latex tags have straightforward meanings, for instance,



sqrt stands for/comes from "square root"



equiv stands for/comes from "equivalent to"



What does "rel" in mathrel and stackrel stands for?










share|improve this question









New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Most latex tags have straightforward meanings, for instance,



sqrt stands for/comes from "square root"



equiv stands for/comes from "equivalent to"



What does "rel" in mathrel and stackrel stands for?







math-mode math-operators






share|improve this question









New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 6 hours ago









Mico

303k33 gold badges414 silver badges825 bronze badges




303k33 gold badges414 silver badges825 bronze badges






New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 17 hours ago









whnlpwhnlp

483 bronze badges




483 bronze badges




New contributor



whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




whnlp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 4





    Probably "relation".

    – Jan
    16 hours ago











  • Welcome to TeX.SE.

    – Mico
    16 hours ago














  • 4





    Probably "relation".

    – Jan
    16 hours ago











  • Welcome to TeX.SE.

    – Mico
    16 hours ago








4




4





Probably "relation".

– Jan
16 hours ago





Probably "relation".

– Jan
16 hours ago













Welcome to TeX.SE.

– Mico
16 hours ago





Welcome to TeX.SE.

– Mico
16 hours ago










1 Answer
1






active

oldest

votes


















18















The meaning of rel in mathrel quickly becomes fairly obvious if one considers the entire list of 13 types of math atoms; see also p. 158 of the TeXbook:



mathord, 'ord' for short -- something like 'x' and 'y'
mathop, 'op' for short -- large operators, e.g., `sum` and `prod`
bin -- binary operation atoms, e.g., '+' and '-'
rel -- relation operation atoms, e.g, '=', '<', and '>'
open -- opening atom, e.g,, '(' and '['
close -- closing atom, e.g., ')' and ']'
punct -- punctuation atom, e.g., ','
inner -- (leading ex.: anything between 'left' and 'right')
over -- overline atom, as in 'overline{x}'
under -- underline atome, as in 'underline{x}'
acc -- accent atoms, as in 'hat{x}' and 'tilde{x}'
rad -- radical atom, as in 'sqrt{x}'
vcent -- (argument of vcenter directives)


One area where the status of the math atoms matters is in the spacing around binary and relational operators. E.g., if you examine at the typeset output of a+b and a=b, you'll notice that the spacing around the + and = symbols is not the same; the space around the latter symbol is slightly greater. This difference embodies typographic rules developed over decades (centuries?) of fine math typesetting.



The mathrel directive, which is a "TeX primitive" command, serves to change the math status of its argument to, you guessed it, mathrel. For example, writing mathrel{+} or mathrel+ changes the math status of + from bin (which is the default in most (all??) TeX systems) to rel. Aside: This is just an example; I am not suggesting that anyone would actually want to run this instruction. A more realistic example: Suppose that you want to denote the open interval from -a to b with ]-a,b[. Writing the open interval directly in this way would, however, cause incorrect spacing between ] (remember that its default math status is close) and the - symbol. To get the correct spacing between ] and the unary - symbol, you could write mathopen{]}-a,bmathclose{[}, overriding the default math status values of [ and ]. Better still, load the mathtools package and use its DeclarePairedDelimiter macro to define a macro called, say, openint with variable-sized delimiters.



Then there is stackrel: It's a LaTeX macro that allows placing superscript terms above some object (often, butn not necessarily, an = symbol), making the math status of the combined object mathrel; e.g,, stackrel{!}{=} places | above =, and the status of the combined object is mathrel. There is also a package called stackrel, which extends the functionality of stackrel in two ways. First, it allows placing subscript terms below a main object, while setting the status of the combined object to mathrel. E.g., B stackrel[x]{!}{=} C places x below and ! above the = symbol, and the math status of the combined object is set to mathrel. Second, it provides an additional macro called stackbin, which allows placing subscript and superscript terms alongside a main object and setting the math status of the combined object to mathbin.






share|improve this answer




























  • The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

    – egreg
    12 hours ago











  • @egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

    – Mico
    12 hours ago











  • Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

    – GuM
    4 hours ago











  • @GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

    – Mico
    4 hours ago













  • You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

    – GuM
    2 hours ago
















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


}
});






whnlp is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f505623%2fwhat-does-rel-in-mathrel-and-stackrel-stands-for%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









18















The meaning of rel in mathrel quickly becomes fairly obvious if one considers the entire list of 13 types of math atoms; see also p. 158 of the TeXbook:



mathord, 'ord' for short -- something like 'x' and 'y'
mathop, 'op' for short -- large operators, e.g., `sum` and `prod`
bin -- binary operation atoms, e.g., '+' and '-'
rel -- relation operation atoms, e.g, '=', '<', and '>'
open -- opening atom, e.g,, '(' and '['
close -- closing atom, e.g., ')' and ']'
punct -- punctuation atom, e.g., ','
inner -- (leading ex.: anything between 'left' and 'right')
over -- overline atom, as in 'overline{x}'
under -- underline atome, as in 'underline{x}'
acc -- accent atoms, as in 'hat{x}' and 'tilde{x}'
rad -- radical atom, as in 'sqrt{x}'
vcent -- (argument of vcenter directives)


One area where the status of the math atoms matters is in the spacing around binary and relational operators. E.g., if you examine at the typeset output of a+b and a=b, you'll notice that the spacing around the + and = symbols is not the same; the space around the latter symbol is slightly greater. This difference embodies typographic rules developed over decades (centuries?) of fine math typesetting.



The mathrel directive, which is a "TeX primitive" command, serves to change the math status of its argument to, you guessed it, mathrel. For example, writing mathrel{+} or mathrel+ changes the math status of + from bin (which is the default in most (all??) TeX systems) to rel. Aside: This is just an example; I am not suggesting that anyone would actually want to run this instruction. A more realistic example: Suppose that you want to denote the open interval from -a to b with ]-a,b[. Writing the open interval directly in this way would, however, cause incorrect spacing between ] (remember that its default math status is close) and the - symbol. To get the correct spacing between ] and the unary - symbol, you could write mathopen{]}-a,bmathclose{[}, overriding the default math status values of [ and ]. Better still, load the mathtools package and use its DeclarePairedDelimiter macro to define a macro called, say, openint with variable-sized delimiters.



Then there is stackrel: It's a LaTeX macro that allows placing superscript terms above some object (often, butn not necessarily, an = symbol), making the math status of the combined object mathrel; e.g,, stackrel{!}{=} places | above =, and the status of the combined object is mathrel. There is also a package called stackrel, which extends the functionality of stackrel in two ways. First, it allows placing subscript terms below a main object, while setting the status of the combined object to mathrel. E.g., B stackrel[x]{!}{=} C places x below and ! above the = symbol, and the math status of the combined object is set to mathrel. Second, it provides an additional macro called stackbin, which allows placing subscript and superscript terms alongside a main object and setting the math status of the combined object to mathbin.






share|improve this answer




























  • The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

    – egreg
    12 hours ago











  • @egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

    – Mico
    12 hours ago











  • Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

    – GuM
    4 hours ago











  • @GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

    – Mico
    4 hours ago













  • You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

    – GuM
    2 hours ago


















18















The meaning of rel in mathrel quickly becomes fairly obvious if one considers the entire list of 13 types of math atoms; see also p. 158 of the TeXbook:



mathord, 'ord' for short -- something like 'x' and 'y'
mathop, 'op' for short -- large operators, e.g., `sum` and `prod`
bin -- binary operation atoms, e.g., '+' and '-'
rel -- relation operation atoms, e.g, '=', '<', and '>'
open -- opening atom, e.g,, '(' and '['
close -- closing atom, e.g., ')' and ']'
punct -- punctuation atom, e.g., ','
inner -- (leading ex.: anything between 'left' and 'right')
over -- overline atom, as in 'overline{x}'
under -- underline atome, as in 'underline{x}'
acc -- accent atoms, as in 'hat{x}' and 'tilde{x}'
rad -- radical atom, as in 'sqrt{x}'
vcent -- (argument of vcenter directives)


One area where the status of the math atoms matters is in the spacing around binary and relational operators. E.g., if you examine at the typeset output of a+b and a=b, you'll notice that the spacing around the + and = symbols is not the same; the space around the latter symbol is slightly greater. This difference embodies typographic rules developed over decades (centuries?) of fine math typesetting.



The mathrel directive, which is a "TeX primitive" command, serves to change the math status of its argument to, you guessed it, mathrel. For example, writing mathrel{+} or mathrel+ changes the math status of + from bin (which is the default in most (all??) TeX systems) to rel. Aside: This is just an example; I am not suggesting that anyone would actually want to run this instruction. A more realistic example: Suppose that you want to denote the open interval from -a to b with ]-a,b[. Writing the open interval directly in this way would, however, cause incorrect spacing between ] (remember that its default math status is close) and the - symbol. To get the correct spacing between ] and the unary - symbol, you could write mathopen{]}-a,bmathclose{[}, overriding the default math status values of [ and ]. Better still, load the mathtools package and use its DeclarePairedDelimiter macro to define a macro called, say, openint with variable-sized delimiters.



Then there is stackrel: It's a LaTeX macro that allows placing superscript terms above some object (often, butn not necessarily, an = symbol), making the math status of the combined object mathrel; e.g,, stackrel{!}{=} places | above =, and the status of the combined object is mathrel. There is also a package called stackrel, which extends the functionality of stackrel in two ways. First, it allows placing subscript terms below a main object, while setting the status of the combined object to mathrel. E.g., B stackrel[x]{!}{=} C places x below and ! above the = symbol, and the math status of the combined object is set to mathrel. Second, it provides an additional macro called stackbin, which allows placing subscript and superscript terms alongside a main object and setting the math status of the combined object to mathbin.






share|improve this answer




























  • The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

    – egreg
    12 hours ago











  • @egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

    – Mico
    12 hours ago











  • Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

    – GuM
    4 hours ago











  • @GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

    – Mico
    4 hours ago













  • You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

    – GuM
    2 hours ago
















18














18










18









The meaning of rel in mathrel quickly becomes fairly obvious if one considers the entire list of 13 types of math atoms; see also p. 158 of the TeXbook:



mathord, 'ord' for short -- something like 'x' and 'y'
mathop, 'op' for short -- large operators, e.g., `sum` and `prod`
bin -- binary operation atoms, e.g., '+' and '-'
rel -- relation operation atoms, e.g, '=', '<', and '>'
open -- opening atom, e.g,, '(' and '['
close -- closing atom, e.g., ')' and ']'
punct -- punctuation atom, e.g., ','
inner -- (leading ex.: anything between 'left' and 'right')
over -- overline atom, as in 'overline{x}'
under -- underline atome, as in 'underline{x}'
acc -- accent atoms, as in 'hat{x}' and 'tilde{x}'
rad -- radical atom, as in 'sqrt{x}'
vcent -- (argument of vcenter directives)


One area where the status of the math atoms matters is in the spacing around binary and relational operators. E.g., if you examine at the typeset output of a+b and a=b, you'll notice that the spacing around the + and = symbols is not the same; the space around the latter symbol is slightly greater. This difference embodies typographic rules developed over decades (centuries?) of fine math typesetting.



The mathrel directive, which is a "TeX primitive" command, serves to change the math status of its argument to, you guessed it, mathrel. For example, writing mathrel{+} or mathrel+ changes the math status of + from bin (which is the default in most (all??) TeX systems) to rel. Aside: This is just an example; I am not suggesting that anyone would actually want to run this instruction. A more realistic example: Suppose that you want to denote the open interval from -a to b with ]-a,b[. Writing the open interval directly in this way would, however, cause incorrect spacing between ] (remember that its default math status is close) and the - symbol. To get the correct spacing between ] and the unary - symbol, you could write mathopen{]}-a,bmathclose{[}, overriding the default math status values of [ and ]. Better still, load the mathtools package and use its DeclarePairedDelimiter macro to define a macro called, say, openint with variable-sized delimiters.



Then there is stackrel: It's a LaTeX macro that allows placing superscript terms above some object (often, butn not necessarily, an = symbol), making the math status of the combined object mathrel; e.g,, stackrel{!}{=} places | above =, and the status of the combined object is mathrel. There is also a package called stackrel, which extends the functionality of stackrel in two ways. First, it allows placing subscript terms below a main object, while setting the status of the combined object to mathrel. E.g., B stackrel[x]{!}{=} C places x below and ! above the = symbol, and the math status of the combined object is set to mathrel. Second, it provides an additional macro called stackbin, which allows placing subscript and superscript terms alongside a main object and setting the math status of the combined object to mathbin.






share|improve this answer















The meaning of rel in mathrel quickly becomes fairly obvious if one considers the entire list of 13 types of math atoms; see also p. 158 of the TeXbook:



mathord, 'ord' for short -- something like 'x' and 'y'
mathop, 'op' for short -- large operators, e.g., `sum` and `prod`
bin -- binary operation atoms, e.g., '+' and '-'
rel -- relation operation atoms, e.g, '=', '<', and '>'
open -- opening atom, e.g,, '(' and '['
close -- closing atom, e.g., ')' and ']'
punct -- punctuation atom, e.g., ','
inner -- (leading ex.: anything between 'left' and 'right')
over -- overline atom, as in 'overline{x}'
under -- underline atome, as in 'underline{x}'
acc -- accent atoms, as in 'hat{x}' and 'tilde{x}'
rad -- radical atom, as in 'sqrt{x}'
vcent -- (argument of vcenter directives)


One area where the status of the math atoms matters is in the spacing around binary and relational operators. E.g., if you examine at the typeset output of a+b and a=b, you'll notice that the spacing around the + and = symbols is not the same; the space around the latter symbol is slightly greater. This difference embodies typographic rules developed over decades (centuries?) of fine math typesetting.



The mathrel directive, which is a "TeX primitive" command, serves to change the math status of its argument to, you guessed it, mathrel. For example, writing mathrel{+} or mathrel+ changes the math status of + from bin (which is the default in most (all??) TeX systems) to rel. Aside: This is just an example; I am not suggesting that anyone would actually want to run this instruction. A more realistic example: Suppose that you want to denote the open interval from -a to b with ]-a,b[. Writing the open interval directly in this way would, however, cause incorrect spacing between ] (remember that its default math status is close) and the - symbol. To get the correct spacing between ] and the unary - symbol, you could write mathopen{]}-a,bmathclose{[}, overriding the default math status values of [ and ]. Better still, load the mathtools package and use its DeclarePairedDelimiter macro to define a macro called, say, openint with variable-sized delimiters.



Then there is stackrel: It's a LaTeX macro that allows placing superscript terms above some object (often, butn not necessarily, an = symbol), making the math status of the combined object mathrel; e.g,, stackrel{!}{=} places | above =, and the status of the combined object is mathrel. There is also a package called stackrel, which extends the functionality of stackrel in two ways. First, it allows placing subscript terms below a main object, while setting the status of the combined object to mathrel. E.g., B stackrel[x]{!}{=} C places x below and ! above the = symbol, and the math status of the combined object is set to mathrel. Second, it provides an additional macro called stackbin, which allows placing subscript and superscript terms alongside a main object and setting the math status of the combined object to mathbin.







share|improve this answer














share|improve this answer



share|improve this answer








edited 4 hours ago

























answered 16 hours ago









MicoMico

303k33 gold badges414 silver badges825 bronze badges




303k33 gold badges414 silver badges825 bronze badges
















  • The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

    – egreg
    12 hours ago











  • @egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

    – Mico
    12 hours ago











  • Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

    – GuM
    4 hours ago











  • @GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

    – Mico
    4 hours ago













  • You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

    – GuM
    2 hours ago





















  • The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

    – egreg
    12 hours ago











  • @egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

    – Mico
    12 hours ago











  • Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

    – GuM
    4 hours ago











  • @GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

    – Mico
    4 hours ago













  • You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

    – GuM
    2 hours ago



















The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

– egreg
12 hours ago





The explanation of stackrel and stackbin is incorrect. They actually make rel or bin atoms out of their arguments, which can be anything.

– egreg
12 hours ago













@egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

– Mico
12 hours ago





@egreg - Good catch! (I guess I was assuming implicitly that the "main" argument of stackrel and stackbin would naturally have default math status of rel and bin, resp. However, as you point out, that assumption is invalid.) Better now?

– Mico
12 hours ago













Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

– GuM
4 hours ago





Note that mathrel is not a “macro” but a TeX primitive command (see the definition of ⟨math atom⟩ on p. 291 of The TeXbook). Note also that it is not necessary to sat mathrel{+}, you can also say mathrel+, and (contrary to what happens with macros) the two idioms have a subtly different meaning: in the latter case, the nucleus of the atom is the the symbol “+”, while in the former is a subsidary math list. This subtle difference is usually inconsequential, but becomes significant in some cases.

– GuM
4 hours ago













@GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

– Mico
4 hours ago







@GuM - Thanks for this! I must confess to not being too exact, at times, with the difference between a "TeX primitive" command and a "macro". Hence, thanks for setting the record straight, so to say. I will correct the body of the answer, as neededThanks also for mentioning that both mathrel+ and mathrel{+} are syntactically legal, with there being subtle (but at times significant) differences.

– Mico
4 hours ago















You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

– GuM
2 hours ago







You are welcome! Meanwhile, I have (upvoted and) found a meaningful example: compare $mathrelsum$ with $mathrel{sum}$ (showlists inside math mode will be illuminating). Edit: In display math mode, the difference is even more striking: [ mathrelsum neq mathrel{sum} ].

– GuM
2 hours ago












whnlp is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















whnlp is a new contributor. Be nice, and check out our Code of Conduct.













whnlp is a new contributor. Be nice, and check out our Code of Conduct.












whnlp is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f505623%2fwhat-does-rel-in-mathrel-and-stackrel-stands-for%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

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...