Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to write this command below but it doesnt work.

$$\triangle$^m$
share|improve this question
5  
This question got bumped due to an edit to one of the answers. Before voting it down, please read tex.blogoverflow.com/2012/08/maintaining-a-balance –  Loop Space Oct 4 '12 at 10:17
    
To address the OP’s apparent misconception: You may have been told to write $\triangle$ to get the △ shape, but that’s because you need to be in “math mode” to use the \triangle command. A single $ puts you into math mode, where you can use both the \triangle command and the superscript operator. –  J. C. Salomon Oct 4 '12 at 12:27
add comment

2 Answers

up vote 13 down vote accepted

You have additional $ signs in your code snippet. The superscript ^, and subscript _ need to be in math mode.

Use $\triangle^m$ for superscript. If you want a subscript use $\triangle_m$. If you intention is to make the entire term a sub- or superscript then you'll need to enclose it with a {} group.

enter image description here

Note:

  • For the superscript version, I think it looks better if you slightly move the superscript to the left via a \kern.
  • If your intent is to use display math you should use \[ and \] instead of $$ delimiters. See Why is \[ ... \] preferable to $$?.

Code:

\documentclass[fleqn]{article}
\usepackage{amsmath}

\begin{document}
Inline math: $\triangle^m \quad \triangle_m$
%
\[ \text{Display math:}\quad \triangle^m \quad \triangle_m \]
%
If the entire term is to be super or sub script:
\[ \text{Display math:}\quad x_{\triangle^m} \quad x_{\triangle_m} \]
\end{document}
share|improve this answer
add comment
  • If you want to produce an dollar sign followed by a triangle followed by a dollar sign followed by a superscript m, the correct syntax is $\$\triangle\$^m$.
  • If you want to produce a subscript triangle and a superscript m, the correct syntax is ${}_\triangle^m$.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.