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.

Imagine I have a 500 page book about complex numbers.

But I always wrote just j in math-mode as the imaginary unit. But I should have written \mathrm{j}. Is there a command I could write into my preamble to substitute all j with \mathrm{j}? It would be quite some pain in the ass, to do it for all j manually. (There are no appearances of j as running index or other meanings)

For some greek letters where I have the same problem I used:

\let\Theta\varTheta

But I don't know how to do the same for "normal letters".

Minimal example:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
j ~~is not~~ \mathrm{j}
\end{equation}

\end{document}
share|improve this question
    
It seems similiar to this one. Can you use regular expression and grep for instance to solve your problem (without LaTeX)? –  Hackbard_C Aug 4 at 15:02

1 Answer 1

up vote 8 down vote accepted
\documentclass{article}
\usepackage{amsmath}
\DeclareMathSymbol{j}{\mathalpha}{operators}{`j}

\begin{document}

\begin{equation}
j ~~is~~ \mathrm{j}
\end{equation}

\end{document}
share|improve this answer

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.