Even numbers of circ causes weird spacing
I noticed when trying to make a string of 6 circ
symbols that the last one is closer to the one beside it than the rest of them, after playing with it for a while it looks like an even number (greater than 2) of circ
causes this, how can I fix the spacing so it is even?
Example:
documentclass{article}
begin{document}
1 circ: $circ $
2 circ: $circ circ $
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ $
7 circ: $circ circ circ circ circ circ circ $
end{document}
math-mode spacing
New contributor
add a comment |
I noticed when trying to make a string of 6 circ
symbols that the last one is closer to the one beside it than the rest of them, after playing with it for a while it looks like an even number (greater than 2) of circ
causes this, how can I fix the spacing so it is even?
Example:
documentclass{article}
begin{document}
1 circ: $circ $
2 circ: $circ circ $
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ $
7 circ: $circ circ circ circ circ circ circ $
end{document}
math-mode spacing
New contributor
One way is to makecirc
not a binary/relational operator. Use{circ}
– Sigur
1 hour ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago
add a comment |
I noticed when trying to make a string of 6 circ
symbols that the last one is closer to the one beside it than the rest of them, after playing with it for a while it looks like an even number (greater than 2) of circ
causes this, how can I fix the spacing so it is even?
Example:
documentclass{article}
begin{document}
1 circ: $circ $
2 circ: $circ circ $
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ $
7 circ: $circ circ circ circ circ circ circ $
end{document}
math-mode spacing
New contributor
I noticed when trying to make a string of 6 circ
symbols that the last one is closer to the one beside it than the rest of them, after playing with it for a while it looks like an even number (greater than 2) of circ
causes this, how can I fix the spacing so it is even?
Example:
documentclass{article}
begin{document}
1 circ: $circ $
2 circ: $circ circ $
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ $
7 circ: $circ circ circ circ circ circ circ $
end{document}
math-mode spacing
math-mode spacing
New contributor
New contributor
edited 53 mins ago
Mark Omo
New contributor
asked 1 hour ago
Mark OmoMark Omo
1214
1214
New contributor
New contributor
One way is to makecirc
not a binary/relational operator. Use{circ}
– Sigur
1 hour ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago
add a comment |
One way is to makecirc
not a binary/relational operator. Use{circ}
– Sigur
1 hour ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago
One way is to make
circ
not a binary/relational operator. Use {circ}
– Sigur
1 hour ago
One way is to make
circ
not a binary/relational operator. Use {circ}
– Sigur
1 hour ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago
add a comment |
2 Answers
2
active
oldest
votes
When you issue showcirc
you'll see it defined as mathchar"220E
. The first number in this definition points to the intrinsic "format" of the character. 2
denotes a binary operator which has a specific spacing around. So, circ
is considered a binary operator and therefore expects operands on either side. Odd-numbered circ
s show better alignment as they supply "operands" on either side (barring accommodation for uniform spacing around consecutive circ
s):
documentclass{article}
begin{document}
1 circ: $circ$
2 circ: $circ circ$
2 circ: $circ circ {}$
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
4 circ: $circ circ circ circ {}$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ$
6 circ: $circ circ circ circ circ circ {}$
7 circ: $circ circ circ circ circ circ circ$
end{document}
If you just want to list a number of circ
s with the correct spacing, consider adding a empty math group at the end when using an even number of circ
s. Alternatively, use {circ}
or mathord{circ}
to avoid the surrounding space; mathord
turns its argument into a math ordinal.
add a comment |
From the TeXbook (page 187, solution on page 326)
Exercise 19.7
B. L. User tried typing ‘eqno(*)
’ and ‘eqno(**)
’,
and he was pleased to discover that this produced the equation numbers
‘(∗)’ and ‘(∗∗)’. [He had been a bit worried that they would come out
‘(*)’ and ‘(**)’ instead.] But then a few months later he tried
‘eqno(***)
’ and got a surprise. What was it?
When you type an asterisk in math mode, plain TeX considers
*
to be a binary operation. In the cases ‘(*)
’ and ‘(**)
’, the
binary operations are converted to type Ord, because they don't appear in
a binary context; but the middle asterisk in ‘(***)
’ remains of type Bin.
So the result was ‘(∗ ∗ ∗)’. To avoid the extra medium spaces, you can
type ‘eqno(*{*}*)
’; or you can changemathcode`*
, if you never use
*
as a binary operation.
It doesn't matter if we're in an equation number (eqno
); the main issue is math mode where the behavior shows. Since circ
is a binary operation symbol just like *
, you get the same.
If you want evenly spaced circ
symbols you can use
{circ};{circ};{circ};{circ}
Even better, define a suitable command:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{circs}{m}
{
ensuremath
{{
{circ}prg_replicate:nn { #1 - 1 } { ; {circ} }
}}
}
ExplSyntaxOff
begin{document}
$circs{1}$
$circs{2}$
$circs{3}$
$circs{4}$
$circs{5}$
$circs{6}$
$circs{7}$
end{document}
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
@manooooh That's due to Knuth.;-)
– egreg
59 mins ago
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
});
}
});
Mark Omo 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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2f470447%2feven-numbers-of-circ-causes-weird-spacing%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
When you issue showcirc
you'll see it defined as mathchar"220E
. The first number in this definition points to the intrinsic "format" of the character. 2
denotes a binary operator which has a specific spacing around. So, circ
is considered a binary operator and therefore expects operands on either side. Odd-numbered circ
s show better alignment as they supply "operands" on either side (barring accommodation for uniform spacing around consecutive circ
s):
documentclass{article}
begin{document}
1 circ: $circ$
2 circ: $circ circ$
2 circ: $circ circ {}$
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
4 circ: $circ circ circ circ {}$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ$
6 circ: $circ circ circ circ circ circ {}$
7 circ: $circ circ circ circ circ circ circ$
end{document}
If you just want to list a number of circ
s with the correct spacing, consider adding a empty math group at the end when using an even number of circ
s. Alternatively, use {circ}
or mathord{circ}
to avoid the surrounding space; mathord
turns its argument into a math ordinal.
add a comment |
When you issue showcirc
you'll see it defined as mathchar"220E
. The first number in this definition points to the intrinsic "format" of the character. 2
denotes a binary operator which has a specific spacing around. So, circ
is considered a binary operator and therefore expects operands on either side. Odd-numbered circ
s show better alignment as they supply "operands" on either side (barring accommodation for uniform spacing around consecutive circ
s):
documentclass{article}
begin{document}
1 circ: $circ$
2 circ: $circ circ$
2 circ: $circ circ {}$
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
4 circ: $circ circ circ circ {}$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ$
6 circ: $circ circ circ circ circ circ {}$
7 circ: $circ circ circ circ circ circ circ$
end{document}
If you just want to list a number of circ
s with the correct spacing, consider adding a empty math group at the end when using an even number of circ
s. Alternatively, use {circ}
or mathord{circ}
to avoid the surrounding space; mathord
turns its argument into a math ordinal.
add a comment |
When you issue showcirc
you'll see it defined as mathchar"220E
. The first number in this definition points to the intrinsic "format" of the character. 2
denotes a binary operator which has a specific spacing around. So, circ
is considered a binary operator and therefore expects operands on either side. Odd-numbered circ
s show better alignment as they supply "operands" on either side (barring accommodation for uniform spacing around consecutive circ
s):
documentclass{article}
begin{document}
1 circ: $circ$
2 circ: $circ circ$
2 circ: $circ circ {}$
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
4 circ: $circ circ circ circ {}$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ$
6 circ: $circ circ circ circ circ circ {}$
7 circ: $circ circ circ circ circ circ circ$
end{document}
If you just want to list a number of circ
s with the correct spacing, consider adding a empty math group at the end when using an even number of circ
s. Alternatively, use {circ}
or mathord{circ}
to avoid the surrounding space; mathord
turns its argument into a math ordinal.
When you issue showcirc
you'll see it defined as mathchar"220E
. The first number in this definition points to the intrinsic "format" of the character. 2
denotes a binary operator which has a specific spacing around. So, circ
is considered a binary operator and therefore expects operands on either side. Odd-numbered circ
s show better alignment as they supply "operands" on either side (barring accommodation for uniform spacing around consecutive circ
s):
documentclass{article}
begin{document}
1 circ: $circ$
2 circ: $circ circ$
2 circ: $circ circ {}$
3 circ: $circ circ circ$
4 circ: $circ circ circ circ$
4 circ: $circ circ circ circ {}$
5 circ: $circ circ circ circ circ $
6 circ: $circ circ circ circ circ circ$
6 circ: $circ circ circ circ circ circ {}$
7 circ: $circ circ circ circ circ circ circ$
end{document}
If you just want to list a number of circ
s with the correct spacing, consider adding a empty math group at the end when using an even number of circ
s. Alternatively, use {circ}
or mathord{circ}
to avoid the surrounding space; mathord
turns its argument into a math ordinal.
answered 1 hour ago
WernerWerner
440k669651660
440k669651660
add a comment |
add a comment |
From the TeXbook (page 187, solution on page 326)
Exercise 19.7
B. L. User tried typing ‘eqno(*)
’ and ‘eqno(**)
’,
and he was pleased to discover that this produced the equation numbers
‘(∗)’ and ‘(∗∗)’. [He had been a bit worried that they would come out
‘(*)’ and ‘(**)’ instead.] But then a few months later he tried
‘eqno(***)
’ and got a surprise. What was it?
When you type an asterisk in math mode, plain TeX considers
*
to be a binary operation. In the cases ‘(*)
’ and ‘(**)
’, the
binary operations are converted to type Ord, because they don't appear in
a binary context; but the middle asterisk in ‘(***)
’ remains of type Bin.
So the result was ‘(∗ ∗ ∗)’. To avoid the extra medium spaces, you can
type ‘eqno(*{*}*)
’; or you can changemathcode`*
, if you never use
*
as a binary operation.
It doesn't matter if we're in an equation number (eqno
); the main issue is math mode where the behavior shows. Since circ
is a binary operation symbol just like *
, you get the same.
If you want evenly spaced circ
symbols you can use
{circ};{circ};{circ};{circ}
Even better, define a suitable command:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{circs}{m}
{
ensuremath
{{
{circ}prg_replicate:nn { #1 - 1 } { ; {circ} }
}}
}
ExplSyntaxOff
begin{document}
$circs{1}$
$circs{2}$
$circs{3}$
$circs{4}$
$circs{5}$
$circs{6}$
$circs{7}$
end{document}
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
@manooooh That's due to Knuth.;-)
– egreg
59 mins ago
add a comment |
From the TeXbook (page 187, solution on page 326)
Exercise 19.7
B. L. User tried typing ‘eqno(*)
’ and ‘eqno(**)
’,
and he was pleased to discover that this produced the equation numbers
‘(∗)’ and ‘(∗∗)’. [He had been a bit worried that they would come out
‘(*)’ and ‘(**)’ instead.] But then a few months later he tried
‘eqno(***)
’ and got a surprise. What was it?
When you type an asterisk in math mode, plain TeX considers
*
to be a binary operation. In the cases ‘(*)
’ and ‘(**)
’, the
binary operations are converted to type Ord, because they don't appear in
a binary context; but the middle asterisk in ‘(***)
’ remains of type Bin.
So the result was ‘(∗ ∗ ∗)’. To avoid the extra medium spaces, you can
type ‘eqno(*{*}*)
’; or you can changemathcode`*
, if you never use
*
as a binary operation.
It doesn't matter if we're in an equation number (eqno
); the main issue is math mode where the behavior shows. Since circ
is a binary operation symbol just like *
, you get the same.
If you want evenly spaced circ
symbols you can use
{circ};{circ};{circ};{circ}
Even better, define a suitable command:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{circs}{m}
{
ensuremath
{{
{circ}prg_replicate:nn { #1 - 1 } { ; {circ} }
}}
}
ExplSyntaxOff
begin{document}
$circs{1}$
$circs{2}$
$circs{3}$
$circs{4}$
$circs{5}$
$circs{6}$
$circs{7}$
end{document}
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
@manooooh That's due to Knuth.;-)
– egreg
59 mins ago
add a comment |
From the TeXbook (page 187, solution on page 326)
Exercise 19.7
B. L. User tried typing ‘eqno(*)
’ and ‘eqno(**)
’,
and he was pleased to discover that this produced the equation numbers
‘(∗)’ and ‘(∗∗)’. [He had been a bit worried that they would come out
‘(*)’ and ‘(**)’ instead.] But then a few months later he tried
‘eqno(***)
’ and got a surprise. What was it?
When you type an asterisk in math mode, plain TeX considers
*
to be a binary operation. In the cases ‘(*)
’ and ‘(**)
’, the
binary operations are converted to type Ord, because they don't appear in
a binary context; but the middle asterisk in ‘(***)
’ remains of type Bin.
So the result was ‘(∗ ∗ ∗)’. To avoid the extra medium spaces, you can
type ‘eqno(*{*}*)
’; or you can changemathcode`*
, if you never use
*
as a binary operation.
It doesn't matter if we're in an equation number (eqno
); the main issue is math mode where the behavior shows. Since circ
is a binary operation symbol just like *
, you get the same.
If you want evenly spaced circ
symbols you can use
{circ};{circ};{circ};{circ}
Even better, define a suitable command:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{circs}{m}
{
ensuremath
{{
{circ}prg_replicate:nn { #1 - 1 } { ; {circ} }
}}
}
ExplSyntaxOff
begin{document}
$circs{1}$
$circs{2}$
$circs{3}$
$circs{4}$
$circs{5}$
$circs{6}$
$circs{7}$
end{document}
From the TeXbook (page 187, solution on page 326)
Exercise 19.7
B. L. User tried typing ‘eqno(*)
’ and ‘eqno(**)
’,
and he was pleased to discover that this produced the equation numbers
‘(∗)’ and ‘(∗∗)’. [He had been a bit worried that they would come out
‘(*)’ and ‘(**)’ instead.] But then a few months later he tried
‘eqno(***)
’ and got a surprise. What was it?
When you type an asterisk in math mode, plain TeX considers
*
to be a binary operation. In the cases ‘(*)
’ and ‘(**)
’, the
binary operations are converted to type Ord, because they don't appear in
a binary context; but the middle asterisk in ‘(***)
’ remains of type Bin.
So the result was ‘(∗ ∗ ∗)’. To avoid the extra medium spaces, you can
type ‘eqno(*{*}*)
’; or you can changemathcode`*
, if you never use
*
as a binary operation.
It doesn't matter if we're in an equation number (eqno
); the main issue is math mode where the behavior shows. Since circ
is a binary operation symbol just like *
, you get the same.
If you want evenly spaced circ
symbols you can use
{circ};{circ};{circ};{circ}
Even better, define a suitable command:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{circs}{m}
{
ensuremath
{{
{circ}prg_replicate:nn { #1 - 1 } { ; {circ} }
}}
}
ExplSyntaxOff
begin{document}
$circs{1}$
$circs{2}$
$circs{3}$
$circs{4}$
$circs{5}$
$circs{6}$
$circs{7}$
end{document}
edited 54 mins ago
answered 1 hour ago
egregegreg
712k8618933179
712k8618933179
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
@manooooh That's due to Knuth.;-)
– egreg
59 mins ago
add a comment |
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
@manooooh That's due to Knuth.;-)
– egreg
59 mins ago
Great explanation (and excercise too)!
– manooooh
1 hour ago
Great explanation (and excercise too)!
– manooooh
1 hour ago
1
1
@manooooh That's due to Knuth.
;-)
– egreg
59 mins ago
@manooooh That's due to Knuth.
;-)
– egreg
59 mins ago
add a comment |
Mark Omo is a new contributor. Be nice, and check out our Code of Conduct.
Mark Omo is a new contributor. Be nice, and check out our Code of Conduct.
Mark Omo is a new contributor. Be nice, and check out our Code of Conduct.
Mark Omo 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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2f470447%2feven-numbers-of-circ-causes-weird-spacing%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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
One way is to make
circ
not a binary/relational operator. Use{circ}
– Sigur
1 hour ago
@Circumscribe yep! thanks
– Mark Omo
53 mins ago