How to remove inconsistent spacing between math repeating math characters?LaTeX Theory - How Symbols are...
How to use Mathematica to do a complex integrate with poles in real axis?
Why am I able to open Wireshark in macOS X without root privileges?
How to play electric guitar and bass as a duet
ST_Buffer in PostGIS produces different results for the same set of lines
Crontab: Ubuntu running script (noob)
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
When can a QA tester start his job?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
Play Zip, Zap, Zop
When do I have to declare that I want to twin my spell?
Eww, those bytes are gross
How can I play a serial killer in a party of good PCs?
Airplane generations - how does it work?
How should I handle players who ignore the session zero agreement?
How do you catch Smeargle in Pokemon Go?
How can I remove (non-trivial) duplicates from a VCF file?
How would an AI self awareness kill switch work?
Non-Cancer terminal illness that can affect young (age 10-13) girls?
Why are the books in the Game of Thrones citadel library shelved spine inwards?
What is the difference between rolling more dice versus fewer dice?
Is there any risk in sharing info about technologies and products we use with a supplier?
Move fast ...... Or you will lose
Workflow Comment popup does not show up
What sets the resolution of an analog resistive sensor?
How to remove inconsistent spacing between math repeating math characters?
LaTeX Theory - How Symbols are Modeled Under the Hoodperp and parallel with equal heightHow does one stop automatic line spacing increases when typesetting tall math symbols?Can I easily tune the mathdesign fonts?Set a minimum space above and below displayed mathAutomate correct spacing after ! in math modeMultiple alignment in math mode - a math equivalent to `multicolumn`?Spacing and size of my matrix displaysCan't “detexify” this symbol for the exponential functionCreating custom mathematical symbolsHow to create a figure with database and web server symbols in latex?
I am creating a graph in Latex with auto-generated lines like
$|circbulletbulletcircbulletbulletrangle$
which generate the image
I would like the spacing of these symbols to be consistent and also small.
Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?
math-mode symbols
New contributor
add a comment |
I am creating a graph in Latex with auto-generated lines like
$|circbulletbulletcircbulletbulletrangle$
which generate the image
I would like the spacing of these symbols to be consistent and also small.
Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?
math-mode symbols
New contributor
Welcome to TeX.SE! Can you please make your code snippet compilable?
– Kurt
5 hours ago
add a comment |
I am creating a graph in Latex with auto-generated lines like
$|circbulletbulletcircbulletbulletrangle$
which generate the image
I would like the spacing of these symbols to be consistent and also small.
Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?
math-mode symbols
New contributor
I am creating a graph in Latex with auto-generated lines like
$|circbulletbulletcircbulletbulletrangle$
which generate the image
I would like the spacing of these symbols to be consistent and also small.
Ideally I would like all of the symbols to be spaced at the same distance as the last two symbols. How would I achieve this?
math-mode symbols
math-mode symbols
New contributor
New contributor
New contributor
asked 5 hours ago
JamesJames
1133
1133
New contributor
New contributor
Welcome to TeX.SE! Can you please make your code snippet compilable?
– Kurt
5 hours ago
add a comment |
Welcome to TeX.SE! Can you please make your code snippet compilable?
– Kurt
5 hours ago
Welcome to TeX.SE! Can you please make your code snippet compilable?
– Kurt
5 hours ago
Welcome to TeX.SE! Can you please make your code snippet compilable?
– Kurt
5 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Embrace circ
s and bullet
s, so that they don't take on special math spacings.
I believe both circ
and bullet
are declared as mathbin
, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).
documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
add a comment |
You have the sequence of math atoms
Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close
but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with
Ord Bin Ord Bin Ord Bin Ord Close
and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:
On the other hand, a different input such as
$lvertcircbulletbulletcircbulletbulletrangle$
would produce the sequence of atoms
Open Bin Bin Bin Bin Bin Bin Close
that would be transformed into
Open Ord Bin Ord Bin Ord Ord Close
producing a picture similar to yours
Neither input is correct.
Define your own symbols, because you're not using circ
and bullet
in their intended sense of binary operation symbols.
documentclass{article}
usepackage{amsmath}
newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}
begin{document}
$lvert 1 1 1 1 rangle$
end{document}
The mathord
tokens are not actually required, but they show more clearly what we're doing.
See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
James 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%2f476919%2fhow-to-remove-inconsistent-spacing-between-math-repeating-math-characters%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
Embrace circ
s and bullet
s, so that they don't take on special math spacings.
I believe both circ
and bullet
are declared as mathbin
, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).
documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
add a comment |
Embrace circ
s and bullet
s, so that they don't take on special math spacings.
I believe both circ
and bullet
are declared as mathbin
, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).
documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
add a comment |
Embrace circ
s and bullet
s, so that they don't take on special math spacings.
I believe both circ
and bullet
are declared as mathbin
, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).
documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}
Embrace circ
s and bullet
s, so that they don't take on special math spacings.
I believe both circ
and bullet
are declared as mathbin
, which will carry certain extra spacings when used in conjunction with adjacent tokens. The bracing effectively isolates these tokens from "seeing" adjacent material (against which it would otherwise apply special math spacing).
documentclass{article}
begin{document}
$|{circ}{bullet}{bullet}{circ}{bullet}{bullet}rangle$
end{document}
edited 5 hours ago
answered 5 hours ago
Steven B. SegletesSteven B. Segletes
157k9202411
157k9202411
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
add a comment |
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
This makes the spacing consistent, but for some reason in python's matplotlib latex renderer I get large spacing, any idea why this would be?
– James
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
@James I'm sorry, I cannot address that issue, other than to say the "natural" spacing would be font-dependent.
– Steven B. Segletes
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
You were right, it was just because the font was set to some default which gave unnecessary spacing!
– James
5 hours ago
add a comment |
You have the sequence of math atoms
Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close
but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with
Ord Bin Ord Bin Ord Bin Ord Close
and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:
On the other hand, a different input such as
$lvertcircbulletbulletcircbulletbulletrangle$
would produce the sequence of atoms
Open Bin Bin Bin Bin Bin Bin Close
that would be transformed into
Open Ord Bin Ord Bin Ord Ord Close
producing a picture similar to yours
Neither input is correct.
Define your own symbols, because you're not using circ
and bullet
in their intended sense of binary operation symbols.
documentclass{article}
usepackage{amsmath}
newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}
begin{document}
$lvert 1 1 1 1 rangle$
end{document}
The mathord
tokens are not actually required, but they show more clearly what we're doing.
See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.
add a comment |
You have the sequence of math atoms
Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close
but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with
Ord Bin Ord Bin Ord Bin Ord Close
and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:
On the other hand, a different input such as
$lvertcircbulletbulletcircbulletbulletrangle$
would produce the sequence of atoms
Open Bin Bin Bin Bin Bin Bin Close
that would be transformed into
Open Ord Bin Ord Bin Ord Ord Close
producing a picture similar to yours
Neither input is correct.
Define your own symbols, because you're not using circ
and bullet
in their intended sense of binary operation symbols.
documentclass{article}
usepackage{amsmath}
newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}
begin{document}
$lvert 1 1 1 1 rangle$
end{document}
The mathord
tokens are not actually required, but they show more clearly what we're doing.
See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.
add a comment |
You have the sequence of math atoms
Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close
but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with
Ord Bin Ord Bin Ord Bin Ord Close
and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:
On the other hand, a different input such as
$lvertcircbulletbulletcircbulletbulletrangle$
would produce the sequence of atoms
Open Bin Bin Bin Bin Bin Bin Close
that would be transformed into
Open Ord Bin Ord Bin Ord Ord Close
producing a picture similar to yours
Neither input is correct.
Define your own symbols, because you're not using circ
and bullet
in their intended sense of binary operation symbols.
documentclass{article}
usepackage{amsmath}
newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}
begin{document}
$lvert 1 1 1 1 rangle$
end{document}
The mathord
tokens are not actually required, but they show more clearly what we're doing.
See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.
You have the sequence of math atoms
Ord Bin1 Bin2 Bin3 Bin4
Bin5 Bin6 Close
but Bin atoms are transformed into Ord atoms as soon as they don't fit the usual infix math notation. Thus Bin2 becomes Ord, as well as Bin4 and Bin6, so you end up with
Ord Bin Ord Bin Ord Bin Ord Close
and finally TeX adds medium spaces around the remaining Bin atoms. This explains the picture I get from your input:
On the other hand, a different input such as
$lvertcircbulletbulletcircbulletbulletrangle$
would produce the sequence of atoms
Open Bin Bin Bin Bin Bin Bin Close
that would be transformed into
Open Ord Bin Ord Bin Ord Ord Close
producing a picture similar to yours
Neither input is correct.
Define your own symbols, because you're not using circ
and bullet
in their intended sense of binary operation symbols.
documentclass{article}
usepackage{amsmath}
newcommand{}{mathord{mspace{1mu}circmspace{1mu}}}
newcommand{1}{mathord{mspace{1mu}bulletmspace{1mu}}}
begin{document}
$lvert 1 1 1 1 rangle$
end{document}
The mathord
tokens are not actually required, but they show more clearly what we're doing.
See LaTeX Theory - How Symbols are Modeled Under the Hood for more information about math atoms.
answered 4 hours ago
egregegreg
723k8719163219
723k8719163219
add a comment |
add a comment |
James is a new contributor. Be nice, and check out our Code of Conduct.
James is a new contributor. Be nice, and check out our Code of Conduct.
James is a new contributor. Be nice, and check out our Code of Conduct.
James 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%2f476919%2fhow-to-remove-inconsistent-spacing-between-math-repeating-math-characters%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! Can you please make your code snippet compilable?
– Kurt
5 hours ago