Math & Scienceproblem with textminus

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

problem with textminus

Post by QwareeqMathematics »

where is the wrong in this code :

Code: Select all

$d^{T}x^{T_{i}}=d^{T}x^{T_{j}}=d_{ij}\textminus d_{ji}$

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

problem with textminus

Post by gmedina »

Hi,

as the symbol's name indicates, \textminus is not valid in math mode; you can use it in text mode (having loaded the either the textcomp or the mathcomp package).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: problem with textminus

Post by frabjous »

Just replace it with - in the above code and you should be fine.
Post Reply