3

If I have an align/equation environment (Or any environment which is maths based) like so:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
y_{vertical} = k \sin{x}
\end{equation}



\end{document}

How can I make the word "vertical" in the maths enviroment not look really odd and italic?

  • 5
    \text{vertical} – Sigur Feb 16 at 18:33
  • 3
    Welcome to TEX.SE. – Sigur Feb 16 at 18:37
  • 3
    or: y_{\mathrm{vertical}}. – Mico Feb 16 at 19:15
  • 4
    \mathrm is better than \text here – David Carlisle Feb 16 at 20:26
  • @CarLaTeX - Done. :-) – Mico Mar 7 at 20:18
2

Since you're loading the amsmath package anyway, writing

y_{\mathrm{vertical}}

will do what you're looking to achieve. Better still, write

y^{}_{\mathrm{vertical}}

to get a slightly more pronounced downward shift of the subscript material.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
y^{}_{\mathrm{vertical}} = k \sin{x}
\end{equation}
\end{document}

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.