Really wide hat symbol
Is there any way to get a hat wider than widehat?
Why doesn't
widehat{abcdefghijklmnopqrstuvwxyz}
really go over all of it?
math-mode symbols accents scaling
|
show 4 more comments
Is there any way to get a hat wider than widehat?
Why doesn't
widehat{abcdefghijklmnopqrstuvwxyz}
really go over all of it?
math-mode symbols accents scaling
3
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
2
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
3
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHOwedge
is not the best option, and$(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.
– yo'
Mar 2 '13 at 15:18
2
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
2
You can also writemathcal{F}(f)
for the Fourier transform off
; this is how I'd do it for longer expressions.
– Hendrik Vogt
Mar 3 '13 at 15:52
|
show 4 more comments
Is there any way to get a hat wider than widehat?
Why doesn't
widehat{abcdefghijklmnopqrstuvwxyz}
really go over all of it?
math-mode symbols accents scaling
Is there any way to get a hat wider than widehat?
Why doesn't
widehat{abcdefghijklmnopqrstuvwxyz}
really go over all of it?
math-mode symbols accents scaling
math-mode symbols accents scaling
edited Mar 6 '13 at 15:03
Steven B. Segletes
154k9197404
154k9197404
asked Mar 2 '13 at 14:47
hmmmmhmmmm
358139
358139
3
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
2
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
3
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHOwedge
is not the best option, and$(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.
– yo'
Mar 2 '13 at 15:18
2
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
2
You can also writemathcal{F}(f)
for the Fourier transform off
; this is how I'd do it for longer expressions.
– Hendrik Vogt
Mar 3 '13 at 15:52
|
show 4 more comments
3
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
2
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
3
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHOwedge
is not the best option, and$(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.
– yo'
Mar 2 '13 at 15:18
2
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
2
You can also writemathcal{F}(f)
for the Fourier transform off
; this is how I'd do it for longer expressions.
– Hendrik Vogt
Mar 3 '13 at 15:52
3
3
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
2
2
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
3
3
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHO
wedge
is not the best option, and $(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.– yo'
Mar 2 '13 at 15:18
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHO
wedge
is not the best option, and $(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.– yo'
Mar 2 '13 at 15:18
2
2
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
2
2
You can also write
mathcal{F}(f)
for the Fourier transform of f
; this is how I'd do it for longer expressions.– Hendrik Vogt
Mar 3 '13 at 15:52
You can also write
mathcal{F}(f)
for the Fourier transform of f
; this is how I'd do it for longer expressions.– Hendrik Vogt
Mar 3 '13 at 15:52
|
show 4 more comments
3 Answers
3
active
oldest
votes
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to ensuremath
on the widthof
calculation (thanks to Thruston)]
See also my answer at Serious problem with widebar for a related approach.
NEW ANSWER WITH stackengine
This answer is an improvement because it handles vertical space much better than the earlier solution.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern-.6ptbigwedgekern-.6pt}%
{rule[-textheight/2]{1ex}{textheight}}%WIDTH-LIMITED BIG WEDGE
}{textheight}%
}{0.5ex}}%
stackon[1pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
ALTERNATE ANSWER USING mathchar"0362
(the widehat
accent) RATHER THAN bigwedge
EDITED to use mathchar"0362
rather than the normal carat accent (mathchar"305E
)
A comment requested this alternate form, which is perhaps superior to the given form above.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern.1ptmathchar"0362kern.1pt}%
{rule{0ex}{textheight}}%WIDTH-LIMITED CIRCUMFLEX
}{textheight}%
}{2.4ex}}%
stackon[-6.9pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
$widehat{zb}$ is actual widehat
end{document}
EARLIER ANSWER WITH array
documentclass{article}
usepackage{scalerel}
newcommandreallywidehat[1]{arraycolsep=0ptrelax%
begin{array}{c}
stretchto{
scaleto{
scalerel*[widthof{ensuremath{#1}}]{kern-.5ptbigwedgekern-.5pt}
{rule[-textheight/2]{1ex}{textheight}} %WIDTH-LIMITED BIG WEDGE
}{textheight} %
}{0.5ex}\ % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\ % THIS STACKS THE WEDGE ATOP THE ARGUMENT
rule{-1ex}{0ex}
end{array}
}
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
You want anensuremath{}
inside yourwidthof{}
call... otherwise it fails if the argument toreallywidehat
contains any real maths. For example try it withreallywidehat{a_1+a_2}
.
– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address thenewtxmath
issue.
– Steven B. Segletes
Jan 29 at 17:57
|
show 7 more comments
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that widehat
can easily be made super-wide with the help of the mtpro2
(MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- which is all that's needed to create superwide "widehat" accents -- is free of charge and may be downloaded from this site.
documentclass{article}
usepackage[lite]{mtpro2}
begin{document}
$ widehat{abcdefghijklmnopqrstuvwxyz} $
end{document}
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
add a comment |
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor another method, you can apply the following code, play with the scale factors and positions and choose which one you prefer. The last two I recommend but I myself prefer the last, which I am going to use myself:
documentclass{article}
usepackage{amsmath}
usepackage{amssymb}
usepackage[ngerman]{babel}
usepackage{stackengine}
usepackage{scalerel}
begin{document}
[widehat{ABCDEF}]
[stackon[0pt]{ABCDEF}{hstretch{7.0}{wedge}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{9.0}{widehat{phantom{;}}}}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{2.4}{widehat{phantom{;;;;;;;;}}}}}]
end{document}
The result would be something like this:
Have fun
Ehsan Tavakoli
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
});
}
});
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%2f100574%2freally-wide-hat-symbol%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
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to ensuremath
on the widthof
calculation (thanks to Thruston)]
See also my answer at Serious problem with widebar for a related approach.
NEW ANSWER WITH stackengine
This answer is an improvement because it handles vertical space much better than the earlier solution.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern-.6ptbigwedgekern-.6pt}%
{rule[-textheight/2]{1ex}{textheight}}%WIDTH-LIMITED BIG WEDGE
}{textheight}%
}{0.5ex}}%
stackon[1pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
ALTERNATE ANSWER USING mathchar"0362
(the widehat
accent) RATHER THAN bigwedge
EDITED to use mathchar"0362
rather than the normal carat accent (mathchar"305E
)
A comment requested this alternate form, which is perhaps superior to the given form above.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern.1ptmathchar"0362kern.1pt}%
{rule{0ex}{textheight}}%WIDTH-LIMITED CIRCUMFLEX
}{textheight}%
}{2.4ex}}%
stackon[-6.9pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
$widehat{zb}$ is actual widehat
end{document}
EARLIER ANSWER WITH array
documentclass{article}
usepackage{scalerel}
newcommandreallywidehat[1]{arraycolsep=0ptrelax%
begin{array}{c}
stretchto{
scaleto{
scalerel*[widthof{ensuremath{#1}}]{kern-.5ptbigwedgekern-.5pt}
{rule[-textheight/2]{1ex}{textheight}} %WIDTH-LIMITED BIG WEDGE
}{textheight} %
}{0.5ex}\ % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\ % THIS STACKS THE WEDGE ATOP THE ARGUMENT
rule{-1ex}{0ex}
end{array}
}
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
You want anensuremath{}
inside yourwidthof{}
call... otherwise it fails if the argument toreallywidehat
contains any real maths. For example try it withreallywidehat{a_1+a_2}
.
– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address thenewtxmath
issue.
– Steven B. Segletes
Jan 29 at 17:57
|
show 7 more comments
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to ensuremath
on the widthof
calculation (thanks to Thruston)]
See also my answer at Serious problem with widebar for a related approach.
NEW ANSWER WITH stackengine
This answer is an improvement because it handles vertical space much better than the earlier solution.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern-.6ptbigwedgekern-.6pt}%
{rule[-textheight/2]{1ex}{textheight}}%WIDTH-LIMITED BIG WEDGE
}{textheight}%
}{0.5ex}}%
stackon[1pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
ALTERNATE ANSWER USING mathchar"0362
(the widehat
accent) RATHER THAN bigwedge
EDITED to use mathchar"0362
rather than the normal carat accent (mathchar"305E
)
A comment requested this alternate form, which is perhaps superior to the given form above.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern.1ptmathchar"0362kern.1pt}%
{rule{0ex}{textheight}}%WIDTH-LIMITED CIRCUMFLEX
}{textheight}%
}{2.4ex}}%
stackon[-6.9pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
$widehat{zb}$ is actual widehat
end{document}
EARLIER ANSWER WITH array
documentclass{article}
usepackage{scalerel}
newcommandreallywidehat[1]{arraycolsep=0ptrelax%
begin{array}{c}
stretchto{
scaleto{
scalerel*[widthof{ensuremath{#1}}]{kern-.5ptbigwedgekern-.5pt}
{rule[-textheight/2]{1ex}{textheight}} %WIDTH-LIMITED BIG WEDGE
}{textheight} %
}{0.5ex}\ % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\ % THIS STACKS THE WEDGE ATOP THE ARGUMENT
rule{-1ex}{0ex}
end{array}
}
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
You want anensuremath{}
inside yourwidthof{}
call... otherwise it fails if the argument toreallywidehat
contains any real maths. For example try it withreallywidehat{a_1+a_2}
.
– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address thenewtxmath
issue.
– Steven B. Segletes
Jan 29 at 17:57
|
show 7 more comments
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to ensuremath
on the widthof
calculation (thanks to Thruston)]
See also my answer at Serious problem with widebar for a related approach.
NEW ANSWER WITH stackengine
This answer is an improvement because it handles vertical space much better than the earlier solution.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern-.6ptbigwedgekern-.6pt}%
{rule[-textheight/2]{1ex}{textheight}}%WIDTH-LIMITED BIG WEDGE
}{textheight}%
}{0.5ex}}%
stackon[1pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
ALTERNATE ANSWER USING mathchar"0362
(the widehat
accent) RATHER THAN bigwedge
EDITED to use mathchar"0362
rather than the normal carat accent (mathchar"305E
)
A comment requested this alternate form, which is perhaps superior to the given form above.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern.1ptmathchar"0362kern.1pt}%
{rule{0ex}{textheight}}%WIDTH-LIMITED CIRCUMFLEX
}{textheight}%
}{2.4ex}}%
stackon[-6.9pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
$widehat{zb}$ is actual widehat
end{document}
EARLIER ANSWER WITH array
documentclass{article}
usepackage{scalerel}
newcommandreallywidehat[1]{arraycolsep=0ptrelax%
begin{array}{c}
stretchto{
scaleto{
scalerel*[widthof{ensuremath{#1}}]{kern-.5ptbigwedgekern-.5pt}
{rule[-textheight/2]{1ex}{textheight}} %WIDTH-LIMITED BIG WEDGE
}{textheight} %
}{0.5ex}\ % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\ % THIS STACKS THE WEDGE ATOP THE ARGUMENT
rule{-1ex}{0ex}
end{array}
}
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to ensuremath
on the widthof
calculation (thanks to Thruston)]
See also my answer at Serious problem with widebar for a related approach.
NEW ANSWER WITH stackengine
This answer is an improvement because it handles vertical space much better than the earlier solution.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern-.6ptbigwedgekern-.6pt}%
{rule[-textheight/2]{1ex}{textheight}}%WIDTH-LIMITED BIG WEDGE
}{textheight}%
}{0.5ex}}%
stackon[1pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
ALTERNATE ANSWER USING mathchar"0362
(the widehat
accent) RATHER THAN bigwedge
EDITED to use mathchar"0362
rather than the normal carat accent (mathchar"305E
)
A comment requested this alternate form, which is perhaps superior to the given form above.
documentclass{article}
usepackage{scalerel,stackengine}
stackMath
newcommandreallywidehat[1]{%
savestack{tmpbox}{stretchto{%
scaleto{%
scalerel*[widthof{ensuremath{#1}}]{kern.1ptmathchar"0362kern.1pt}%
{rule{0ex}{textheight}}%WIDTH-LIMITED CIRCUMFLEX
}{textheight}%
}{2.4ex}}%
stackon[-6.9pt]{#1}{tmpbox}%
}
parskip 1ex
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
$widehat{zb}$ is actual widehat
end{document}
EARLIER ANSWER WITH array
documentclass{article}
usepackage{scalerel}
newcommandreallywidehat[1]{arraycolsep=0ptrelax%
begin{array}{c}
stretchto{
scaleto{
scalerel*[widthof{ensuremath{#1}}]{kern-.5ptbigwedgekern-.5pt}
{rule[-textheight/2]{1ex}{textheight}} %WIDTH-LIMITED BIG WEDGE
}{textheight} %
}{0.5ex}\ % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\ % THIS STACKS THE WEDGE ATOP THE ARGUMENT
rule{-1ex}{0ex}
end{array}
}
begin{document}
$reallywidehat{zbcdefghijklm}$
$reallywidehat{zbcdefghijk}$
$reallywidehat{zbcdefghi}$
$reallywidehat{zbcdefg}$
$reallywidehat{zbcde}$
$reallywidehat{zbc}$
$reallywidehat{zb}$
$xcdotreallywidehat{a_1+a_2}cdot y$
end{document}
edited Jan 29 at 17:59
answered Mar 6 '13 at 12:29
Steven B. SegletesSteven B. Segletes
154k9197404
154k9197404
You want anensuremath{}
inside yourwidthof{}
call... otherwise it fails if the argument toreallywidehat
contains any real maths. For example try it withreallywidehat{a_1+a_2}
.
– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address thenewtxmath
issue.
– Steven B. Segletes
Jan 29 at 17:57
|
show 7 more comments
You want anensuremath{}
inside yourwidthof{}
call... otherwise it fails if the argument toreallywidehat
contains any real maths. For example try it withreallywidehat{a_1+a_2}
.
– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address thenewtxmath
issue.
– Steven B. Segletes
Jan 29 at 17:57
You want an
ensuremath{}
inside your widthof{}
call... otherwise it fails if the argument to reallywidehat
contains any real maths. For example try it with reallywidehat{a_1+a_2}
.– Thruston
Apr 14 '15 at 20:38
You want an
ensuremath{}
inside your widthof{}
call... otherwise it fails if the argument to reallywidehat
contains any real maths. For example try it with reallywidehat{a_1+a_2}
.– Thruston
Apr 14 '15 at 20:38
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
@Thruston Thank you for the correction.
– Steven B. Segletes
Apr 14 '15 at 23:02
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
Thanks for this solution which works very well (I need it in a situation where the scope of what's under the circumflex needs to be really clear). But is there a way to make it use exactly the same symbol as widehat, i.e. the circumflex instead of the wedge? Thanks a lot!
– rmh
Apr 3 '18 at 14:26
1
1
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
@user49915 See tex.stackexchange.com/questions/171907/… and let me know if that solves your issue.
– Steven B. Segletes
Jan 28 at 23:52
1
1
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address the
newtxmath
issue.– Steven B. Segletes
Jan 29 at 17:57
@user49915 Please return to that answer, and see the SUPPLEMENT I added to the answer to address the
newtxmath
issue.– Steven B. Segletes
Jan 29 at 17:57
|
show 7 more comments
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that widehat
can easily be made super-wide with the help of the mtpro2
(MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- which is all that's needed to create superwide "widehat" accents -- is free of charge and may be downloaded from this site.
documentclass{article}
usepackage[lite]{mtpro2}
begin{document}
$ widehat{abcdefghijklmnopqrstuvwxyz} $
end{document}
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
add a comment |
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that widehat
can easily be made super-wide with the help of the mtpro2
(MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- which is all that's needed to create superwide "widehat" accents -- is free of charge and may be downloaded from this site.
documentclass{article}
usepackage[lite]{mtpro2}
begin{document}
$ widehat{abcdefghijklmnopqrstuvwxyz} $
end{document}
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
add a comment |
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that widehat
can easily be made super-wide with the help of the mtpro2
(MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- which is all that's needed to create superwide "widehat" accents -- is free of charge and may be downloaded from this site.
documentclass{article}
usepackage[lite]{mtpro2}
begin{document}
$ widehat{abcdefghijklmnopqrstuvwxyz} $
end{document}
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that widehat
can easily be made super-wide with the help of the mtpro2
(MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- which is all that's needed to create superwide "widehat" accents -- is free of charge and may be downloaded from this site.
documentclass{article}
usepackage[lite]{mtpro2}
begin{document}
$ widehat{abcdefghijklmnopqrstuvwxyz} $
end{document}
answered Apr 6 '13 at 15:33
MicoMico
278k30380768
278k30380768
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
add a comment |
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
how to install the font?
– user19832
Feb 23 '14 at 14:51
how to install the font?
– user19832
Feb 23 '14 at 14:51
1
1
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
@user19832 - Have you followed the instructions provided at pctex.com/mtpro2.html?
– Mico
Feb 23 '14 at 15:57
add a comment |
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor another method, you can apply the following code, play with the scale factors and positions and choose which one you prefer. The last two I recommend but I myself prefer the last, which I am going to use myself:
documentclass{article}
usepackage{amsmath}
usepackage{amssymb}
usepackage[ngerman]{babel}
usepackage{stackengine}
usepackage{scalerel}
begin{document}
[widehat{ABCDEF}]
[stackon[0pt]{ABCDEF}{hstretch{7.0}{wedge}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{9.0}{widehat{phantom{;}}}}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{2.4}{widehat{phantom{;;;;;;;;}}}}}]
end{document}
The result would be something like this:
Have fun
Ehsan Tavakoli
add a comment |
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor another method, you can apply the following code, play with the scale factors and positions and choose which one you prefer. The last two I recommend but I myself prefer the last, which I am going to use myself:
documentclass{article}
usepackage{amsmath}
usepackage{amssymb}
usepackage[ngerman]{babel}
usepackage{stackengine}
usepackage{scalerel}
begin{document}
[widehat{ABCDEF}]
[stackon[0pt]{ABCDEF}{hstretch{7.0}{wedge}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{9.0}{widehat{phantom{;}}}}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{2.4}{widehat{phantom{;;;;;;;;}}}}}]
end{document}
The result would be something like this:
Have fun
Ehsan Tavakoli
add a comment |
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor another method, you can apply the following code, play with the scale factors and positions and choose which one you prefer. The last two I recommend but I myself prefer the last, which I am going to use myself:
documentclass{article}
usepackage{amsmath}
usepackage{amssymb}
usepackage[ngerman]{babel}
usepackage{stackengine}
usepackage{scalerel}
begin{document}
[widehat{ABCDEF}]
[stackon[0pt]{ABCDEF}{hstretch{7.0}{wedge}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{9.0}{widehat{phantom{;}}}}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{2.4}{widehat{phantom{;;;;;;;;}}}}}]
end{document}
The result would be something like this:
Have fun
Ehsan Tavakoli
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor another method, you can apply the following code, play with the scale factors and positions and choose which one you prefer. The last two I recommend but I myself prefer the last, which I am going to use myself:
documentclass{article}
usepackage{amsmath}
usepackage{amssymb}
usepackage[ngerman]{babel}
usepackage{stackengine}
usepackage{scalerel}
begin{document}
[widehat{ABCDEF}]
[stackon[0pt]{ABCDEF}{hstretch{7.0}{wedge}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{9.0}{widehat{phantom{;}}}}}]
[stackon[-8pt]{ABCDEF}{vstretch{1.5}{hstretch{2.4}{widehat{phantom{;;;;;;;;}}}}}]
end{document}
The result would be something like this:
Have fun
Ehsan Tavakoli
answered Jul 12 '15 at 17:43
Ehsan TavakoliEhsan Tavakoli
814
814
add a comment |
add a comment |
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%2f100574%2freally-wide-hat-symbol%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
3
Wouldn't you prefer $(abcdefgh)^{wedge}$?
– Benjamin McKay
Mar 2 '13 at 14:51
2
tilde version tex.stackexchange.com/questions/63545/big-tilde-in-math-mode
– percusse
Mar 2 '13 at 14:53
3
@hmmmm Yes, exactly! I'm not sure what you want it for, I'm sure that the result won't be nice, no matter how much you try. Putting the whole thing in parenthesis, and the symbol as an exponent in the very end is quite a common way to do that (e.g. with open sets, word reversals etc.). IMHO
wedge
is not the best option, and$(abcdefg)widehat{phantom{x}}$
would do a better job, but that it a matter of choice.– yo'
Mar 2 '13 at 15:18
2
@hmmmm Yes, a little wedge at the end. As a mathematician, I would prefer Fourier transforms or series written with a hat or wedge (or check) at the end of the expression, if the expression is long, because otherwise the symbol looks too big to me.
– Benjamin McKay
Mar 2 '13 at 15:55
2
You can also write
mathcal{F}(f)
for the Fourier transform off
; this is how I'd do it for longer expressions.– Hendrik Vogt
Mar 3 '13 at 15:52