# Equation var with apostrophes? [closed]

Hi I want to write this:

So I wrote this:

$\{m'_{i}\}$


Without success, (I get errors/warning) How do I write the apostrophe in Latex?

Thanks;)

## closed as unclear what you're asking by Andrew Swann, siracusa, TeXnician, Bobyandbob, MiloAug 29 '18 at 10:49

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• It works without errors. Can you please add a minimal example that illustrates your problem? – Hendrik Vogt Jan 15 '11 at 13:40
• It seems that my file got corrupted or so... I don't know but It works now after I restored it to a past version ;) – nacho4d Jan 15 '11 at 14:57

You could use \prime:
$\{m^\prime_{i}\}$

$\{m'_{i}\}$ works for me as well.
• I would promote the use of ^\prime since ' does exactly this. – Hendrik Vogt Jan 15 '11 at 13:43
• @Hendrik: yes, can be read in latex.ltx where \active@math@prime is defined. Though similarly one could write _\prime and this time there's no shortcut, so it could be good to know about \prime and it's worth a try if ' doesn't work as expected any more. – Stefan Kottwitz Jan 15 '11 at 13:50