Text Formatting\pm not showing as the +_ symbol

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

\pm not showing as the +_ symbol

Post by peaches20 »

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

Code: Select all

\documentclass[12pt,leqno]{article} 
\usepackage{amsmath, amsthm, amssymb}
\topmargin -.7in
\textheight 8in
\textwidth 6in
\oddsidemargin .25in
\evensidemargin .25in 
\parindent .15in
\everymath{\displaystyle}

\begin{equation}
f_{\pm} \pm 
\end{equation}
Thanks,
Peaches
Last edited by Stefan Kottwitz on Thu Jun 29, 2017 6:42 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

\pm not showing as the +_ symbol

Post by Stefan Kottwitz »

Hi Peaches!

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

Code: Select all

\documentclass[12pt,leqno]{article} 
\usepackage{amsmath, amsthm, amssymb}
\topmargin -.7in
\textheight 8in
\textwidth 6in
\oddsidemargin .25in
\evensidemargin .25in 
\parindent .15in
\everymath{\displaystyle}
 
\begin{document}
\begin{equation}
f_{\pm} \pm 
\end{equation}
\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 3459 times
So I think, you make something different. What do you actually write?

Stefan
LaTeX.org admin
Post Reply