1

I'm writing an article for representation theory and I want to type downward arrow for restriction and upward arrow for induction. The $\downarrow$ and $\uparrow$ give arrows that aren't right next to the letters. E.g.

enter image description here

I want the arrows to be right next to the letters, for example enter image description here

Does anyone know which command I should use? Thanks!

  • 2
    You can always reduce the space: \!, etc. – user156344 Apr 13 at 17:21
  • 1
    welcome to tex.se! show us, how you obtain the first image of math expression in your question. – Zarko Apr 13 at 17:23
4

Surround \downarrow by {...}.

\documentclass{article}
\usepackage{amsmath,amssymb}

\begin{document}
$X{\downarrow}^G_H(h)=X(h)$
\end{document}

enter image description here

\downarrow is a relation symbol, putting it within {...} make it be treated as it belongs to the "ordinary" class.

As suggested by egreg, the same result can be achieved more elegantly using \mathord:

\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\restr}{\mathord\downarrow} 
\newcommand{\ind}{\mathord\uparrow} 

\begin{document}
$X\restr^G_H(h)=X(h)$

and

$X\ind^G_H(h)=X(h)$
\end{document}
  • Yes: \downarrow is a relation symbol. I think it would be better to define \newcommand{\restr}{\mathord\downarrow} and \newcommand{\ind}{\mathord\uparrow} – egreg Apr 13 at 21:13

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.