Difference between commands `setminus` and `backslash`Why duplicate symbol commandsDifference between...
Can digital computers understand infinity?
What does this text mean with capitalized letters?
Is there a push, in the United States, to use gender-neutral language and gender pronouns (when they are given)?
When did MCMC become commonplace?
Armory Automaton and Dowsing Dagger/Sword of the Animist
Can Boris Johnson invoke the Civil Contingencies Act to suspend the Benn law?
Should I avoid "big words" when writing to a younger audience?
"inuendo" in a piano score
I got this nail stuck in my tire, should I plug or replace?
Why does b+=(4,) work and b = b + (4,) doesn't work when b is a list?
I am often given, occasionally stolen, rarely sold, and never borrowed
In the comics, have any of the Robins called their costume "target attraction" for villains?
Will Schnorr Multi-signatures completely replace ECDSA?
How to plot two axis bar chart side by side
Extra battery in the bay of an HDD
Who can change WIP limit in DoW when urgent work emerges?
Is Schrodinger's Cat itself an observer?
Remove last letter 4 times, get a real word each time, starting word is a car model
How can a "proper" function have a vertical slope?
Is it now possible to undetectably cross the Arctic Ocean on ski/kayak?
A fast aquatic predator with multiple eyes and pupils. Would these eyes be possible?
Slaad Chaos Phage: Weak Combat Ability?
Containing the radiation of a nuclear powered aeroplane
Does an excessive table violate normalization rules?
Difference between commands `setminus` and `backslash`
Why duplicate symbol commandsDifference between paragraph and subparagraph in scrreprt?How do you swap the commands for two symbols?What's the difference between |, textdoublevertline, textdoublepipe and parallel?Is there a difference between ldots and textellipsis?triangleleftneq and trianglerightneq commands?Difference between symbols for absolute value?Semantic difference between `amalg` and `coprod` for disjoint unionWhat's the Difference between Two Single-Quotes and One Double-Quote?Interchange `colon` and `:`
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
Is there any difference in using the mentioned commands? I ask it because I know that for functions it's more preferably (and more correct) to use colon
instead of usual :
.
formatting symbols
New contributor
add a comment
|
Is there any difference in using the mentioned commands? I ask it because I know that for functions it's more preferably (and more correct) to use colon
instead of usual :
.
formatting symbols
New contributor
Welcome to TeX.SE!
– Mico
8 hours ago
add a comment
|
Is there any difference in using the mentioned commands? I ask it because I know that for functions it's more preferably (and more correct) to use colon
instead of usual :
.
formatting symbols
New contributor
Is there any difference in using the mentioned commands? I ask it because I know that for functions it's more preferably (and more correct) to use colon
instead of usual :
.
formatting symbols
formatting symbols
New contributor
New contributor
New contributor
asked 8 hours ago
richrowrichrow
1184 bronze badges
1184 bronze badges
New contributor
New contributor
Welcome to TeX.SE!
– Mico
8 hours ago
add a comment
|
Welcome to TeX.SE!
– Mico
8 hours ago
Welcome to TeX.SE!
– Mico
8 hours ago
Welcome to TeX.SE!
– Mico
8 hours ago
add a comment
|
2 Answers
2
active
oldest
votes
by default setminus
is
DeclareMathSymbol{setminus}{mathbin}{symbols}{"6E}
That is a smallish , set as a binary operator with the same spacing as -
but backslash
is
DeclareMathDelimiter{backslash}{mathord}{symbols}{"6E}{largesymbols}{"0F}
That is a large that can grow with left right but otherwise set as an ordinary symbol, so acting like |
So typically the first is for set difference H ∖ G and the second is for cosets H G
add a comment
|
In the Computer Modern math font family, the shapes of setminus
and backslash
are identical. (Aside: the vertical size of backslash
can be modified by left
and right
directives; that's not the case for setminus
.) That does not mean, though, that the symbols get typeset identically. This is because backslash
has status mathord
("math ordinary"), whereas setminus
has status mathbin ("math binary operators"). Having status mathbin
means that in combinations of mathord-mathbin-mathord -- as in Usetminus V
-- a "medspace" amount of whitespace gets inserted on both sides of the setminus
symbol.
In contrast, TeX does not insert whitespace between math atoms (to use a TeX jargon word) of status mathord
. Hence, no extra whitespace is inserted in Ubackslash V
.
documentclass{article}
usepackage{xcolor,array,booktabs}
begin{document}
begin{tabular}{@{} >{$}l<{$} l @{}}
$Result$ & LaTeX code \
midrule
setminusmkern-9mucolor{red}backslash & verb+setminusmkern-9mucolor{red}backslash+ \[0.75ex]
Bsetminus D & verb+Bsetminus D+ \
Bmathbin{setminus}D & verb+Bmathbin{setminus}D+ \
B:{setminus}:D & verb+B:{setminus}:D+ \
Bmkern4mu{setminus}mkern4mu D & verb+Bmkern4mu{setminus}mkern4mu D+ \[0.75ex]
B{setminus}D & verb+B{setminus}D+ \
Bbackslash D & verb+Bbackslash D+
end{tabular}
end{document}
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.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
});
}
});
richrow is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f511328%2fdifference-between-commands-setminus-and-backslash%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
by default setminus
is
DeclareMathSymbol{setminus}{mathbin}{symbols}{"6E}
That is a smallish , set as a binary operator with the same spacing as -
but backslash
is
DeclareMathDelimiter{backslash}{mathord}{symbols}{"6E}{largesymbols}{"0F}
That is a large that can grow with left right but otherwise set as an ordinary symbol, so acting like |
So typically the first is for set difference H ∖ G and the second is for cosets H G
add a comment
|
by default setminus
is
DeclareMathSymbol{setminus}{mathbin}{symbols}{"6E}
That is a smallish , set as a binary operator with the same spacing as -
but backslash
is
DeclareMathDelimiter{backslash}{mathord}{symbols}{"6E}{largesymbols}{"0F}
That is a large that can grow with left right but otherwise set as an ordinary symbol, so acting like |
So typically the first is for set difference H ∖ G and the second is for cosets H G
add a comment
|
by default setminus
is
DeclareMathSymbol{setminus}{mathbin}{symbols}{"6E}
That is a smallish , set as a binary operator with the same spacing as -
but backslash
is
DeclareMathDelimiter{backslash}{mathord}{symbols}{"6E}{largesymbols}{"0F}
That is a large that can grow with left right but otherwise set as an ordinary symbol, so acting like |
So typically the first is for set difference H ∖ G and the second is for cosets H G
by default setminus
is
DeclareMathSymbol{setminus}{mathbin}{symbols}{"6E}
That is a smallish , set as a binary operator with the same spacing as -
but backslash
is
DeclareMathDelimiter{backslash}{mathord}{symbols}{"6E}{largesymbols}{"0F}
That is a large that can grow with left right but otherwise set as an ordinary symbol, so acting like |
So typically the first is for set difference H ∖ G and the second is for cosets H G
edited 8 hours ago
answered 8 hours ago
David CarlisleDavid Carlisle
525k44 gold badges1188 silver badges1962 bronze badges
525k44 gold badges1188 silver badges1962 bronze badges
add a comment
|
add a comment
|
In the Computer Modern math font family, the shapes of setminus
and backslash
are identical. (Aside: the vertical size of backslash
can be modified by left
and right
directives; that's not the case for setminus
.) That does not mean, though, that the symbols get typeset identically. This is because backslash
has status mathord
("math ordinary"), whereas setminus
has status mathbin ("math binary operators"). Having status mathbin
means that in combinations of mathord-mathbin-mathord -- as in Usetminus V
-- a "medspace" amount of whitespace gets inserted on both sides of the setminus
symbol.
In contrast, TeX does not insert whitespace between math atoms (to use a TeX jargon word) of status mathord
. Hence, no extra whitespace is inserted in Ubackslash V
.
documentclass{article}
usepackage{xcolor,array,booktabs}
begin{document}
begin{tabular}{@{} >{$}l<{$} l @{}}
$Result$ & LaTeX code \
midrule
setminusmkern-9mucolor{red}backslash & verb+setminusmkern-9mucolor{red}backslash+ \[0.75ex]
Bsetminus D & verb+Bsetminus D+ \
Bmathbin{setminus}D & verb+Bmathbin{setminus}D+ \
B:{setminus}:D & verb+B:{setminus}:D+ \
Bmkern4mu{setminus}mkern4mu D & verb+Bmkern4mu{setminus}mkern4mu D+ \[0.75ex]
B{setminus}D & verb+B{setminus}D+ \
Bbackslash D & verb+Bbackslash D+
end{tabular}
end{document}
add a comment
|
In the Computer Modern math font family, the shapes of setminus
and backslash
are identical. (Aside: the vertical size of backslash
can be modified by left
and right
directives; that's not the case for setminus
.) That does not mean, though, that the symbols get typeset identically. This is because backslash
has status mathord
("math ordinary"), whereas setminus
has status mathbin ("math binary operators"). Having status mathbin
means that in combinations of mathord-mathbin-mathord -- as in Usetminus V
-- a "medspace" amount of whitespace gets inserted on both sides of the setminus
symbol.
In contrast, TeX does not insert whitespace between math atoms (to use a TeX jargon word) of status mathord
. Hence, no extra whitespace is inserted in Ubackslash V
.
documentclass{article}
usepackage{xcolor,array,booktabs}
begin{document}
begin{tabular}{@{} >{$}l<{$} l @{}}
$Result$ & LaTeX code \
midrule
setminusmkern-9mucolor{red}backslash & verb+setminusmkern-9mucolor{red}backslash+ \[0.75ex]
Bsetminus D & verb+Bsetminus D+ \
Bmathbin{setminus}D & verb+Bmathbin{setminus}D+ \
B:{setminus}:D & verb+B:{setminus}:D+ \
Bmkern4mu{setminus}mkern4mu D & verb+Bmkern4mu{setminus}mkern4mu D+ \[0.75ex]
B{setminus}D & verb+B{setminus}D+ \
Bbackslash D & verb+Bbackslash D+
end{tabular}
end{document}
add a comment
|
In the Computer Modern math font family, the shapes of setminus
and backslash
are identical. (Aside: the vertical size of backslash
can be modified by left
and right
directives; that's not the case for setminus
.) That does not mean, though, that the symbols get typeset identically. This is because backslash
has status mathord
("math ordinary"), whereas setminus
has status mathbin ("math binary operators"). Having status mathbin
means that in combinations of mathord-mathbin-mathord -- as in Usetminus V
-- a "medspace" amount of whitespace gets inserted on both sides of the setminus
symbol.
In contrast, TeX does not insert whitespace between math atoms (to use a TeX jargon word) of status mathord
. Hence, no extra whitespace is inserted in Ubackslash V
.
documentclass{article}
usepackage{xcolor,array,booktabs}
begin{document}
begin{tabular}{@{} >{$}l<{$} l @{}}
$Result$ & LaTeX code \
midrule
setminusmkern-9mucolor{red}backslash & verb+setminusmkern-9mucolor{red}backslash+ \[0.75ex]
Bsetminus D & verb+Bsetminus D+ \
Bmathbin{setminus}D & verb+Bmathbin{setminus}D+ \
B:{setminus}:D & verb+B:{setminus}:D+ \
Bmkern4mu{setminus}mkern4mu D & verb+Bmkern4mu{setminus}mkern4mu D+ \[0.75ex]
B{setminus}D & verb+B{setminus}D+ \
Bbackslash D & verb+Bbackslash D+
end{tabular}
end{document}
In the Computer Modern math font family, the shapes of setminus
and backslash
are identical. (Aside: the vertical size of backslash
can be modified by left
and right
directives; that's not the case for setminus
.) That does not mean, though, that the symbols get typeset identically. This is because backslash
has status mathord
("math ordinary"), whereas setminus
has status mathbin ("math binary operators"). Having status mathbin
means that in combinations of mathord-mathbin-mathord -- as in Usetminus V
-- a "medspace" amount of whitespace gets inserted on both sides of the setminus
symbol.
In contrast, TeX does not insert whitespace between math atoms (to use a TeX jargon word) of status mathord
. Hence, no extra whitespace is inserted in Ubackslash V
.
documentclass{article}
usepackage{xcolor,array,booktabs}
begin{document}
begin{tabular}{@{} >{$}l<{$} l @{}}
$Result$ & LaTeX code \
midrule
setminusmkern-9mucolor{red}backslash & verb+setminusmkern-9mucolor{red}backslash+ \[0.75ex]
Bsetminus D & verb+Bsetminus D+ \
Bmathbin{setminus}D & verb+Bmathbin{setminus}D+ \
B:{setminus}:D & verb+B:{setminus}:D+ \
Bmkern4mu{setminus}mkern4mu D & verb+Bmkern4mu{setminus}mkern4mu D+ \[0.75ex]
B{setminus}D & verb+B{setminus}D+ \
Bbackslash D & verb+Bbackslash D+
end{tabular}
end{document}
answered 8 hours ago
MicoMico
307k33 gold badges423 silver badges835 bronze badges
307k33 gold badges423 silver badges835 bronze badges
add a comment
|
add a comment
|
richrow is a new contributor. Be nice, and check out our Code of Conduct.
richrow is a new contributor. Be nice, and check out our Code of Conduct.
richrow is a new contributor. Be nice, and check out our Code of Conduct.
richrow 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f511328%2fdifference-between-commands-setminus-and-backslash%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to TeX.SE!
– Mico
8 hours ago