2

I need this output with the same harpoon right arrow:

\documentclass[titlepage]{article}
\usepackage[cm]{fullpage}
\usepackage{amsmath,amssymb}
\usepackage{accents}
\newcommand{\vect}[1]{\accentset{\rightharpoonup}{#1}}
\begin{document}
\[
\vect{L^2((0,T);W^{1,2}(\Omega)')}
\]
\end{document}

enter image description here

| improve this question | | | | |
3

Perhaps you can use an extensible harpoon that is has a width proportionate to the other content:

enter image description here

\documentclass{article}
\usepackage{mathtools,graphicx,accents}
\newcommand{\vect}[1]{\accentset{\xrightharpoonup{\hphantom{\scalebox{.4}{$#1$}}}}{#1}}
\begin{document}
\[
  \vect{L^2((0,T);W^{1,2}(\Omega)')}
\]
\end{document}

The content is scaled to 40% of its width (change .4 to suit your needs) and only uses the horizontal width in a \phantom. The extensible harpoon is provided as part of mathtools (which loads amsmath by default).

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.