Align vector symbol with upright math letter The Next CEO of Stack Overflowupright uppercase...
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
What happened in Rome, when the western empire "fell"?
Can someone explain this formula for calculating Manhattan distance?
Is there such a thing as never melting snow?
Strength of face-nailed connection for stair steps
Easy to read palindrome checker
Towers in the ocean; How deep can they be built?
"Eavesdropping" vs "Listen in on"
How to avoid supervisors with prejudiced views?
In the "Harry Potter and the Order of the Phoenix" videogame, what potion is used to sabotage Umbridge's Speakers?
Won the lottery - how do I keep the money?
What flight has the highest ratio of timezone difference to flight time?
Purpose of level-shifter with same in and out voltages
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Aggressive Under-Indexing and no data for missing index
Reference request: Grassmannian and Plucker coordinates in type B, C, D
What difference does it make using sed with/without whitespaces?
Can Sneak Attack be used when hitting with an improvised weapon?
Why the last AS PATH item always is `I` or `?`?
AB diagonalizable then BA also diagonalizable
Physiological effects of huge anime eyes
Prepend last line of stdin to entire stdin
Why is information "lost" when it got into a black hole?
Is there a way to save my career from absolute disaster?
Align vector symbol with upright math letter
The Next CEO of Stack Overflowupright uppercase math letter with Minion and xelatexString/vector concatenation symbolTeXLive/PDFTeX fonts loading problemWhy does widehat behave differently if I insert hspace{0pt}?Two letter variables with upright DeltaRender text upright in math modeUpright sans serif greek in math modeDefining upright codimension math operatorMath equation alignment using align*upright italics (math mode)?
So basically I need to put a vector symbol (vec) on an upright letter for which I use mathrm in math mode. For example:
vec{mathrm{E}}
While Katex seems to get the alignment right on all the letters:

My pdfTeX version doesn't do so well (using the same code):

Clearly the vector symbol is positioned such that it would be aligned if the letters were in italic mode.
Which leads me to the following question:
- How can I get the vector symbol aligned with the upright math letter using pdfTeX?
pdfTeX version
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Document setup
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
Complete example
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
end{document}
math-mode fonts amsmath math-operators
|
show 4 more comments
So basically I need to put a vector symbol (vec) on an upright letter for which I use mathrm in math mode. For example:
vec{mathrm{E}}
While Katex seems to get the alignment right on all the letters:

My pdfTeX version doesn't do so well (using the same code):

Clearly the vector symbol is positioned such that it would be aligned if the letters were in italic mode.
Which leads me to the following question:
- How can I get the vector symbol aligned with the upright math letter using pdfTeX?
pdfTeX version
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Document setup
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
Complete example
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
end{document}
math-mode fonts amsmath math-operators
Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
2
The glyph used for thevecaccent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware thattextrmis the wrong command in that context, usemathrm.
– egreg
Feb 4 at 8:50
vec{{}<letter>}try adding the empty group (or akern0pt) inside the argument ofvec.
– Manuel
Feb 4 at 8:52
2
tryvv{textrm{E}}from theesvectpackage
– Hafid Boukhoulda
Feb 4 at 8:56
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36
|
show 4 more comments
So basically I need to put a vector symbol (vec) on an upright letter for which I use mathrm in math mode. For example:
vec{mathrm{E}}
While Katex seems to get the alignment right on all the letters:

My pdfTeX version doesn't do so well (using the same code):

Clearly the vector symbol is positioned such that it would be aligned if the letters were in italic mode.
Which leads me to the following question:
- How can I get the vector symbol aligned with the upright math letter using pdfTeX?
pdfTeX version
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Document setup
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
Complete example
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
end{document}
math-mode fonts amsmath math-operators
So basically I need to put a vector symbol (vec) on an upright letter for which I use mathrm in math mode. For example:
vec{mathrm{E}}
While Katex seems to get the alignment right on all the letters:

My pdfTeX version doesn't do so well (using the same code):

Clearly the vector symbol is positioned such that it would be aligned if the letters were in italic mode.
Which leads me to the following question:
- How can I get the vector symbol aligned with the upright math letter using pdfTeX?
pdfTeX version
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Document setup
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
Complete example
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
end{document}
math-mode fonts amsmath math-operators
math-mode fonts amsmath math-operators
edited Feb 4 at 17:06
a_guest
asked Feb 4 at 8:38
a_guesta_guest
25429
25429
Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
2
The glyph used for thevecaccent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware thattextrmis the wrong command in that context, usemathrm.
– egreg
Feb 4 at 8:50
vec{{}<letter>}try adding the empty group (or akern0pt) inside the argument ofvec.
– Manuel
Feb 4 at 8:52
2
tryvv{textrm{E}}from theesvectpackage
– Hafid Boukhoulda
Feb 4 at 8:56
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36
|
show 4 more comments
Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
2
The glyph used for thevecaccent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware thattextrmis the wrong command in that context, usemathrm.
– egreg
Feb 4 at 8:50
vec{{}<letter>}try adding the empty group (or akern0pt) inside the argument ofvec.
– Manuel
Feb 4 at 8:52
2
tryvv{textrm{E}}from theesvectpackage
– Hafid Boukhoulda
Feb 4 at 8:56
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36
Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
2
2
The glyph used for the
vec accent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware that textrm is the wrong command in that context, use mathrm.– egreg
Feb 4 at 8:50
The glyph used for the
vec accent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware that textrm is the wrong command in that context, use mathrm.– egreg
Feb 4 at 8:50
vec{{}<letter>} try adding the empty group (or a kern0pt) inside the argument of vec.– Manuel
Feb 4 at 8:52
vec{{}<letter>} try adding the empty group (or a kern0pt) inside the argument of vec.– Manuel
Feb 4 at 8:52
2
2
try
vv{textrm{E}} from the esvect package– Hafid Boukhoulda
Feb 4 at 8:56
try
vv{textrm{E}} from the esvect package– Hafid Boukhoulda
Feb 4 at 8:56
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36
|
show 4 more comments
2 Answers
2
active
oldest
votes
Before (vec) and after (upvec):
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
newcommandupvec[1]{!vec{,mathrm{#1}}}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};
vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};
vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};
vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};
vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};
vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};
vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
begin{equation*}
upvec A;upvec B;upvec C;upvec D;upvec E;upvec F;upvec G;
upvec H;upvec I;upvec J;upvec K;upvec L;upvec M;upvec N;
upvec O;upvec P;upvec Q;upvec R;upvec S;upvec T;upvec U;
upvec V;upvec W;upvec X;upvec Y;upvec Z
;upvec{a}
end{equation*}
[
vec Aupvec B f = upvec D vec E g
]
end{document}

add a comment |
As from comment of @Hafid Boukhoulda you could to use esvect package where you can see a different mode to write a vector. For example if you use the option [b] (usepackage[b]{esvect}), you obtain this:

Here there is a short MWE:
documentclass[12pt]{article}
usepackage{amsmath}
usepackage[b]{esvect}
begin{document}
[vv{A}, vv{B}, vv{C}, ]
end{document}
add a comment |
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%2f473286%2falign-vector-symbol-with-upright-math-letter%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
Before (vec) and after (upvec):
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
newcommandupvec[1]{!vec{,mathrm{#1}}}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};
vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};
vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};
vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};
vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};
vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};
vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
begin{equation*}
upvec A;upvec B;upvec C;upvec D;upvec E;upvec F;upvec G;
upvec H;upvec I;upvec J;upvec K;upvec L;upvec M;upvec N;
upvec O;upvec P;upvec Q;upvec R;upvec S;upvec T;upvec U;
upvec V;upvec W;upvec X;upvec Y;upvec Z
;upvec{a}
end{equation*}
[
vec Aupvec B f = upvec D vec E g
]
end{document}

add a comment |
Before (vec) and after (upvec):
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
newcommandupvec[1]{!vec{,mathrm{#1}}}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};
vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};
vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};
vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};
vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};
vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};
vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
begin{equation*}
upvec A;upvec B;upvec C;upvec D;upvec E;upvec F;upvec G;
upvec H;upvec I;upvec J;upvec K;upvec L;upvec M;upvec N;
upvec O;upvec P;upvec Q;upvec R;upvec S;upvec T;upvec U;
upvec V;upvec W;upvec X;upvec Y;upvec Z
;upvec{a}
end{equation*}
[
vec Aupvec B f = upvec D vec E g
]
end{document}

add a comment |
Before (vec) and after (upvec):
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
newcommandupvec[1]{!vec{,mathrm{#1}}}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};
vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};
vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};
vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};
vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};
vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};
vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
begin{equation*}
upvec A;upvec B;upvec C;upvec D;upvec E;upvec F;upvec G;
upvec H;upvec I;upvec J;upvec K;upvec L;upvec M;upvec N;
upvec O;upvec P;upvec Q;upvec R;upvec S;upvec T;upvec U;
upvec V;upvec W;upvec X;upvec Y;upvec Z
;upvec{a}
end{equation*}
[
vec Aupvec B f = upvec D vec E g
]
end{document}

Before (vec) and after (upvec):
documentclass[a4paper,12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{amsmath}
newcommandupvec[1]{!vec{,mathrm{#1}}}
begin{document}
begin{equation*}
vec{mathrm{A}};vec{mathrm{B}};vec{mathrm{C}};vec{mathrm{D}};
vec{mathrm{E}};vec{mathrm{F}};vec{mathrm{G}};vec{mathrm{H}};
vec{mathrm{I}};vec{mathrm{J}};vec{mathrm{K}};vec{mathrm{L}};
vec{mathrm{M}};vec{mathrm{N}};vec{mathrm{O}};vec{mathrm{P}};
vec{mathrm{Q}};vec{mathrm{R}};vec{mathrm{S}};vec{mathrm{T}};
vec{mathrm{U}};vec{mathrm{V}};vec{mathrm{W}};vec{mathrm{X}};
vec{mathrm{Y}};vec{mathrm{Z}}
end{equation*}
begin{equation*}
upvec A;upvec B;upvec C;upvec D;upvec E;upvec F;upvec G;
upvec H;upvec I;upvec J;upvec K;upvec L;upvec M;upvec N;
upvec O;upvec P;upvec Q;upvec R;upvec S;upvec T;upvec U;
upvec V;upvec W;upvec X;upvec Y;upvec Z
;upvec{a}
end{equation*}
[
vec Aupvec B f = upvec D vec E g
]
end{document}

edited Feb 4 at 18:58
answered Feb 4 at 18:46
Steven B. SegletesSteven B. Segletes
160k9204413
160k9204413
add a comment |
add a comment |
As from comment of @Hafid Boukhoulda you could to use esvect package where you can see a different mode to write a vector. For example if you use the option [b] (usepackage[b]{esvect}), you obtain this:

Here there is a short MWE:
documentclass[12pt]{article}
usepackage{amsmath}
usepackage[b]{esvect}
begin{document}
[vv{A}, vv{B}, vv{C}, ]
end{document}
add a comment |
As from comment of @Hafid Boukhoulda you could to use esvect package where you can see a different mode to write a vector. For example if you use the option [b] (usepackage[b]{esvect}), you obtain this:

Here there is a short MWE:
documentclass[12pt]{article}
usepackage{amsmath}
usepackage[b]{esvect}
begin{document}
[vv{A}, vv{B}, vv{C}, ]
end{document}
add a comment |
As from comment of @Hafid Boukhoulda you could to use esvect package where you can see a different mode to write a vector. For example if you use the option [b] (usepackage[b]{esvect}), you obtain this:

Here there is a short MWE:
documentclass[12pt]{article}
usepackage{amsmath}
usepackage[b]{esvect}
begin{document}
[vv{A}, vv{B}, vv{C}, ]
end{document}
As from comment of @Hafid Boukhoulda you could to use esvect package where you can see a different mode to write a vector. For example if you use the option [b] (usepackage[b]{esvect}), you obtain this:

Here there is a short MWE:
documentclass[12pt]{article}
usepackage{amsmath}
usepackage[b]{esvect}
begin{document}
[vv{A}, vv{B}, vv{C}, ]
end{document}
answered 26 mins ago
SebastianoSebastiano
11.4k42164
11.4k42164
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%2f473286%2falign-vector-symbol-with-upright-math-letter%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

Show a complete minimal example, not only some snippets - this makes it much easier to test.
– Ulrike Fischer
Feb 4 at 8:49
2
The glyph used for the
vecaccent is indeed tailored for best results with italic letters, as the shape of the arrow itself shows. Katex is not a TeX engine, so it can't be used for comparison. Beware thattextrmis the wrong command in that context, usemathrm.– egreg
Feb 4 at 8:50
vec{{}<letter>}try adding the empty group (or akern0pt) inside the argument ofvec.– Manuel
Feb 4 at 8:52
2
try
vv{textrm{E}}from theesvectpackage– Hafid Boukhoulda
Feb 4 at 8:56
@UlrikeFischer I assumed the Document setup would already contain all the necessary information. Anyway I've added the complete code that produces the posted screenshot.
– a_guest
Feb 4 at 16:36