LaTeX forum ⇒ Text Formatting\pm not showing as the +_ symbol

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
peaches20
Posts: 6
Joined: Thu Oct 25, 2012 4:28 pm

\pm not showing as the +_ symbol

Postby peaches20 » Thu Jun 29, 2017 5:59 pm

Hi,

I have a couple of equations that have the +_ symbol and have coded the as \pm but it is typesetting as pm instead of +_ . Can anyone help with this -- am I using the wrong symbol. Below is my preamble and partial equation

  1. \documentclass[12pt,leqno]{article}
  2. \usepackage{amsmath, amsthm, amssymb}
  3. \topmargin -.7in
  4. \textheight 8in
  5. \textwidth 6in
  6. \oddsidemargin .25in
  7. \evensidemargin .25in
  8. \parindent .15in
  9. \everymath{\displaystyle}
  10.  
  11. \begin{equation}
  12. f_{\pm} \pm
  13. \end{equation}


Thanks,
Peaches
Last edited by Stefan Kottwitz on Thu Jun 29, 2017 6:42 pm, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 8523
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Thu Jun 29, 2017 6:47 pm

Hi Peaches!

You showed good code, but it would be perfect to post a compilable Infominimal working example. Like this:

  1. \documentclass[12pt,leqno]{article}
  2. \usepackage{amsmath, amsthm, amssymb}
  3. \topmargin -.7in
  4. \textheight 8in
  5. \textwidth 6in
  6. \oddsidemargin .25in
  7. \evensidemargin .25in
  8. \parindent .15in
  9. \everymath{\displaystyle}
  10.  
  11. \begin{document}
  12. \begin{equation}
  13. f_{\pm} \pm
  14. \end{equation}
  15. \end{document}


Now every reader can compile it or even open it by just one click in the online compiler Overleaf. When just a snippet ist posted, you may lose a dozen readers who don't make the effort to construct a complete document rom this.

With your code, I get:

pm.png
pm.png (6.76 KiB) Viewed 295 times


So I think, you make something different. What do you actually write?

Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 8 guests