1

How do you add subscript text within a text string e.g. I would like my the output to have the max as subscript

\text{AC generator emf_max}
  • 1
    Welcome to TeX.SE](http://meta.tex.stackexchange.com/q/1436/4301). For future reference, it is always best to compose a fully compilable MWE that sets up the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – Peter Grill Dec 05 '18 at 07:46
  • 1
    How about $\text{AC generator } \mathrm{emf}_\mathrm{max}$. I assumed you were already in math mode as you are using \text{}. – Peter Grill Dec 05 '18 at 07:48
  • or \text{AC generator }emf_{\max} – Zarko Dec 05 '18 at 07:54
  • @Peter Grill Thank you for your responses, the reason for lack of formatting is that I am performing this within Pages which supports quick latex functionality without the use of document formatting and declarations. Your answer works though I moved all text into the mathrm{} for consistency. Thank you for your answers and I would upvote your comment if I had enough reputation to do so. – S. Allen Dec 05 '18 at 08:16
  • 1
    In \mathrm you won't have spaces. – Skillmon Dec 05 '18 at 08:51
  • @Skillmon I have found that you can use \; within \mathrm{} to create a space. e.g. \mathrm{AC \; generator \; emf}_\mathrm{max} = 2N \ell v B= 2\pi N B A_{\bot} f – S. Allen Dec 05 '18 at 11:29
  • 1
    It's still a semantic difference though. Also a space would be ~, not \;, I think \; was 3/4 of a space (could be wrong here). – Skillmon Dec 05 '18 at 13:50
  • @Skillmon I think you're correct, \; does the job although ~ appears much more idiomatic. – S. Allen Dec 06 '18 at 07:03

1 Answers1

0

To create subscript text mathrm can be used, in relation to the example above; mathrm would be implemented as:

\mathrm{AC ~ generator ~ emf}_\mathrm{max}

(with use of ~ as a space as mathrm does not support native spaces.