Is there an equal sign with wider gap?
I am trying to make a large unary operator from an equal sign =
, namely, mathlarger{boldsymbol{=}}
, but the bars are too close together to distinguish from the general binary case. Is there some package with =
having a wider gap that I can use?
symbols
New contributor
add a comment |
I am trying to make a large unary operator from an equal sign =
, namely, mathlarger{boldsymbol{=}}
, but the bars are too close together to distinguish from the general binary case. Is there some package with =
having a wider gap that I can use?
symbols
New contributor
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
3
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago
add a comment |
I am trying to make a large unary operator from an equal sign =
, namely, mathlarger{boldsymbol{=}}
, but the bars are too close together to distinguish from the general binary case. Is there some package with =
having a wider gap that I can use?
symbols
New contributor
I am trying to make a large unary operator from an equal sign =
, namely, mathlarger{boldsymbol{=}}
, but the bars are too close together to distinguish from the general binary case. Is there some package with =
having a wider gap that I can use?
symbols
symbols
New contributor
New contributor
New contributor
asked 13 hours ago
updraftupdraft
454
454
New contributor
New contributor
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
3
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago
add a comment |
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
3
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
3
3
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago
add a comment |
3 Answers
3
active
oldest
votes
Another proposal. The optimal vertical spacing might depend on the used font and on personal taste.
documentclass{article}
usepackage{amsmath}
newcommand*{uneq}{{mathpaletteuneqauxrelax}}
newcommand*{uneqaux}[2]{%
setbox0=hbox{mathsurround=0pt$#1boldsymbol{-}$}%
raise.25ht0copy0 kern-wd0 lower.2ht0box0
}
begin{document}
${=}A$
$uneq A$
$scriptstyleuneq A$
$scriptscriptstyleuneq A$
end{document}
add a comment |
Here's a proposal:
documentclass{article}
usepackage{amsmath,xparse}
ExplSyntaxOn
NewDocumentCommand{uneq}{}
{
mathbin{mathpaletteupdraft_uneq:nn {}}
}
dim_new:N l__updraft_width_dim
dim_new:N l__updraft_height_dim
cs_new_protected:Nn updraft_uneq:nn
{
vcenter
{
mathsurround=0pt
hbox:n
{
% measure the width of the equals sign in the current style
hbox_set:Nn l_tmpa_box {$#1{=}$}
dim_set:Nn l__updraft_width_dim { box_wd:N l_tmpa_box }
% measure the width of 1mu in the current style
hbox_set:Nn l_tmpa_box {$#1mkern1mu$}
dim_set:Nn l__updraft_height_dim { box_wd:N l_tmpa_box }
% start drawing
driver_draw_begin:
% round caps on lines
driver_draw_cap_round:
% set the line width (change 1.2 to your liking)
driver_draw_linewidth:n { 1.2l__updraft_height_dim }
% 1. cm fonts use width/10 of side bearings
% 2. the gap between lines is 5 times the line width
% bottom line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_stroke:
% top line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_stroke:
driver_draw_end:
% occupy the space
hspace{ l__updraft_width_dim }
}
}
}
ExplSyntaxOff
begin{document}
$mathbin{=}A$
$uneq A$ $scriptstyleuneq A$ $scriptscriptstyleuneq A$
$A=B$
end{document}
There is no “unary operator” class, one has to use mathbin
and TeX will act according to the context. You could also decide to simply use mathord
.
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
add a comment |
The gap can be tweaked by changing the 4LMpt
.
documentclass{article}
usepackage{scalerel,stackengine,bm}
newcommandbineq{mathbin{ThisStyle{ensurestackMath{vcenter{hbox{stackengine{%
4LMpt}{SavedStylebm{-}}{SavedStylebm{-}}{O}{c}{F}{F}{L}}}}}}}
begin{document}
${bm{=}} Aquadscriptstyle{bm{=}} Aquadscriptscriptstyle{bm{=}} A$ bold =
$bineq Aquadscriptstylebineq Aquadscriptscriptstylebineq A$ verb|bineq|
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/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
});
}
});
updraft 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%2f479037%2fis-there-an-equal-sign-with-wider-gap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Another proposal. The optimal vertical spacing might depend on the used font and on personal taste.
documentclass{article}
usepackage{amsmath}
newcommand*{uneq}{{mathpaletteuneqauxrelax}}
newcommand*{uneqaux}[2]{%
setbox0=hbox{mathsurround=0pt$#1boldsymbol{-}$}%
raise.25ht0copy0 kern-wd0 lower.2ht0box0
}
begin{document}
${=}A$
$uneq A$
$scriptstyleuneq A$
$scriptscriptstyleuneq A$
end{document}
add a comment |
Another proposal. The optimal vertical spacing might depend on the used font and on personal taste.
documentclass{article}
usepackage{amsmath}
newcommand*{uneq}{{mathpaletteuneqauxrelax}}
newcommand*{uneqaux}[2]{%
setbox0=hbox{mathsurround=0pt$#1boldsymbol{-}$}%
raise.25ht0copy0 kern-wd0 lower.2ht0box0
}
begin{document}
${=}A$
$uneq A$
$scriptstyleuneq A$
$scriptscriptstyleuneq A$
end{document}
add a comment |
Another proposal. The optimal vertical spacing might depend on the used font and on personal taste.
documentclass{article}
usepackage{amsmath}
newcommand*{uneq}{{mathpaletteuneqauxrelax}}
newcommand*{uneqaux}[2]{%
setbox0=hbox{mathsurround=0pt$#1boldsymbol{-}$}%
raise.25ht0copy0 kern-wd0 lower.2ht0box0
}
begin{document}
${=}A$
$uneq A$
$scriptstyleuneq A$
$scriptscriptstyleuneq A$
end{document}
Another proposal. The optimal vertical spacing might depend on the used font and on personal taste.
documentclass{article}
usepackage{amsmath}
newcommand*{uneq}{{mathpaletteuneqauxrelax}}
newcommand*{uneqaux}[2]{%
setbox0=hbox{mathsurround=0pt$#1boldsymbol{-}$}%
raise.25ht0copy0 kern-wd0 lower.2ht0box0
}
begin{document}
${=}A$
$uneq A$
$scriptstyleuneq A$
$scriptscriptstyleuneq A$
end{document}
answered 11 hours ago
campacampa
6,48221438
6,48221438
add a comment |
add a comment |
Here's a proposal:
documentclass{article}
usepackage{amsmath,xparse}
ExplSyntaxOn
NewDocumentCommand{uneq}{}
{
mathbin{mathpaletteupdraft_uneq:nn {}}
}
dim_new:N l__updraft_width_dim
dim_new:N l__updraft_height_dim
cs_new_protected:Nn updraft_uneq:nn
{
vcenter
{
mathsurround=0pt
hbox:n
{
% measure the width of the equals sign in the current style
hbox_set:Nn l_tmpa_box {$#1{=}$}
dim_set:Nn l__updraft_width_dim { box_wd:N l_tmpa_box }
% measure the width of 1mu in the current style
hbox_set:Nn l_tmpa_box {$#1mkern1mu$}
dim_set:Nn l__updraft_height_dim { box_wd:N l_tmpa_box }
% start drawing
driver_draw_begin:
% round caps on lines
driver_draw_cap_round:
% set the line width (change 1.2 to your liking)
driver_draw_linewidth:n { 1.2l__updraft_height_dim }
% 1. cm fonts use width/10 of side bearings
% 2. the gap between lines is 5 times the line width
% bottom line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_stroke:
% top line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_stroke:
driver_draw_end:
% occupy the space
hspace{ l__updraft_width_dim }
}
}
}
ExplSyntaxOff
begin{document}
$mathbin{=}A$
$uneq A$ $scriptstyleuneq A$ $scriptscriptstyleuneq A$
$A=B$
end{document}
There is no “unary operator” class, one has to use mathbin
and TeX will act according to the context. You could also decide to simply use mathord
.
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
add a comment |
Here's a proposal:
documentclass{article}
usepackage{amsmath,xparse}
ExplSyntaxOn
NewDocumentCommand{uneq}{}
{
mathbin{mathpaletteupdraft_uneq:nn {}}
}
dim_new:N l__updraft_width_dim
dim_new:N l__updraft_height_dim
cs_new_protected:Nn updraft_uneq:nn
{
vcenter
{
mathsurround=0pt
hbox:n
{
% measure the width of the equals sign in the current style
hbox_set:Nn l_tmpa_box {$#1{=}$}
dim_set:Nn l__updraft_width_dim { box_wd:N l_tmpa_box }
% measure the width of 1mu in the current style
hbox_set:Nn l_tmpa_box {$#1mkern1mu$}
dim_set:Nn l__updraft_height_dim { box_wd:N l_tmpa_box }
% start drawing
driver_draw_begin:
% round caps on lines
driver_draw_cap_round:
% set the line width (change 1.2 to your liking)
driver_draw_linewidth:n { 1.2l__updraft_height_dim }
% 1. cm fonts use width/10 of side bearings
% 2. the gap between lines is 5 times the line width
% bottom line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_stroke:
% top line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_stroke:
driver_draw_end:
% occupy the space
hspace{ l__updraft_width_dim }
}
}
}
ExplSyntaxOff
begin{document}
$mathbin{=}A$
$uneq A$ $scriptstyleuneq A$ $scriptscriptstyleuneq A$
$A=B$
end{document}
There is no “unary operator” class, one has to use mathbin
and TeX will act according to the context. You could also decide to simply use mathord
.
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
add a comment |
Here's a proposal:
documentclass{article}
usepackage{amsmath,xparse}
ExplSyntaxOn
NewDocumentCommand{uneq}{}
{
mathbin{mathpaletteupdraft_uneq:nn {}}
}
dim_new:N l__updraft_width_dim
dim_new:N l__updraft_height_dim
cs_new_protected:Nn updraft_uneq:nn
{
vcenter
{
mathsurround=0pt
hbox:n
{
% measure the width of the equals sign in the current style
hbox_set:Nn l_tmpa_box {$#1{=}$}
dim_set:Nn l__updraft_width_dim { box_wd:N l_tmpa_box }
% measure the width of 1mu in the current style
hbox_set:Nn l_tmpa_box {$#1mkern1mu$}
dim_set:Nn l__updraft_height_dim { box_wd:N l_tmpa_box }
% start drawing
driver_draw_begin:
% round caps on lines
driver_draw_cap_round:
% set the line width (change 1.2 to your liking)
driver_draw_linewidth:n { 1.2l__updraft_height_dim }
% 1. cm fonts use width/10 of side bearings
% 2. the gap between lines is 5 times the line width
% bottom line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_stroke:
% top line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_stroke:
driver_draw_end:
% occupy the space
hspace{ l__updraft_width_dim }
}
}
}
ExplSyntaxOff
begin{document}
$mathbin{=}A$
$uneq A$ $scriptstyleuneq A$ $scriptscriptstyleuneq A$
$A=B$
end{document}
There is no “unary operator” class, one has to use mathbin
and TeX will act according to the context. You could also decide to simply use mathord
.
Here's a proposal:
documentclass{article}
usepackage{amsmath,xparse}
ExplSyntaxOn
NewDocumentCommand{uneq}{}
{
mathbin{mathpaletteupdraft_uneq:nn {}}
}
dim_new:N l__updraft_width_dim
dim_new:N l__updraft_height_dim
cs_new_protected:Nn updraft_uneq:nn
{
vcenter
{
mathsurround=0pt
hbox:n
{
% measure the width of the equals sign in the current style
hbox_set:Nn l_tmpa_box {$#1{=}$}
dim_set:Nn l__updraft_width_dim { box_wd:N l_tmpa_box }
% measure the width of 1mu in the current style
hbox_set:Nn l_tmpa_box {$#1mkern1mu$}
dim_set:Nn l__updraft_height_dim { box_wd:N l_tmpa_box }
% start drawing
driver_draw_begin:
% round caps on lines
driver_draw_cap_round:
% set the line width (change 1.2 to your liking)
driver_draw_linewidth:n { 1.2l__updraft_height_dim }
% 1. cm fonts use width/10 of side bearings
% 2. the gap between lines is 5 times the line width
% bottom line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ -2.5 l__updraft_height_dim }
driver_draw_stroke:
% top line
driver_draw_moveto:nn
{ 0.1 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_lineto:nn
{ 0.9 l__updraft_width_dim }
{ 2.5 l__updraft_height_dim }
driver_draw_stroke:
driver_draw_end:
% occupy the space
hspace{ l__updraft_width_dim }
}
}
}
ExplSyntaxOff
begin{document}
$mathbin{=}A$
$uneq A$ $scriptstyleuneq A$ $scriptscriptstyleuneq A$
$A=B$
end{document}
There is no “unary operator” class, one has to use mathbin
and TeX will act according to the context. You could also decide to simply use mathord
.
edited 10 hours ago
answered 11 hours ago
egregegreg
726k8819193226
726k8819193226
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
add a comment |
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
thank you:), your proposal is a little hard I don't quite understand, haha
– updraft
11 hours ago
@updraft I added some comments
– egreg
10 hours ago
@updraft I added some comments
– egreg
10 hours ago
add a comment |
The gap can be tweaked by changing the 4LMpt
.
documentclass{article}
usepackage{scalerel,stackengine,bm}
newcommandbineq{mathbin{ThisStyle{ensurestackMath{vcenter{hbox{stackengine{%
4LMpt}{SavedStylebm{-}}{SavedStylebm{-}}{O}{c}{F}{F}{L}}}}}}}
begin{document}
${bm{=}} Aquadscriptstyle{bm{=}} Aquadscriptscriptstyle{bm{=}} A$ bold =
$bineq Aquadscriptstylebineq Aquadscriptscriptstylebineq A$ verb|bineq|
end{document}
add a comment |
The gap can be tweaked by changing the 4LMpt
.
documentclass{article}
usepackage{scalerel,stackengine,bm}
newcommandbineq{mathbin{ThisStyle{ensurestackMath{vcenter{hbox{stackengine{%
4LMpt}{SavedStylebm{-}}{SavedStylebm{-}}{O}{c}{F}{F}{L}}}}}}}
begin{document}
${bm{=}} Aquadscriptstyle{bm{=}} Aquadscriptscriptstyle{bm{=}} A$ bold =
$bineq Aquadscriptstylebineq Aquadscriptscriptstylebineq A$ verb|bineq|
end{document}
add a comment |
The gap can be tweaked by changing the 4LMpt
.
documentclass{article}
usepackage{scalerel,stackengine,bm}
newcommandbineq{mathbin{ThisStyle{ensurestackMath{vcenter{hbox{stackengine{%
4LMpt}{SavedStylebm{-}}{SavedStylebm{-}}{O}{c}{F}{F}{L}}}}}}}
begin{document}
${bm{=}} Aquadscriptstyle{bm{=}} Aquadscriptscriptstyle{bm{=}} A$ bold =
$bineq Aquadscriptstylebineq Aquadscriptscriptstylebineq A$ verb|bineq|
end{document}
The gap can be tweaked by changing the 4LMpt
.
documentclass{article}
usepackage{scalerel,stackengine,bm}
newcommandbineq{mathbin{ThisStyle{ensurestackMath{vcenter{hbox{stackengine{%
4LMpt}{SavedStylebm{-}}{SavedStylebm{-}}{O}{c}{F}{F}{L}}}}}}}
begin{document}
${bm{=}} Aquadscriptstyle{bm{=}} Aquadscriptscriptstyle{bm{=}} A$ bold =
$bineq Aquadscriptstylebineq Aquadscriptscriptstylebineq A$ verb|bineq|
end{document}
answered 11 hours ago
Steven B. SegletesSteven B. Segletes
158k9204411
158k9204411
add a comment |
add a comment |
updraft is a new contributor. Be nice, and check out our Code of Conduct.
updraft is a new contributor. Be nice, and check out our Code of Conduct.
updraft is a new contributor. Be nice, and check out our Code of Conduct.
updraft 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%2f479037%2fis-there-an-equal-sign-with-wider-gap%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
I go with @campa 's answer because it seems most simple
– updraft
10 hours ago
3
I'm not sure what unary equality is supposed to denote but, if you're having trouble distinguishing your symbol for it from ordinary equality, that suggests you might want to look at a completely different symbol.
– David Richerby
10 hours ago