General ⇒ Redefine reserved character
Redefine reserved character
for a reserved character such as the caret (^)? For example, if I want to reduce the space after every superscript, i.e. i would want a^b to be replaced by a^b\! systematically?
Many thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Redefine reserved character
welcome to the board!
You could make ^ to an active character and then define a macro for it:
Code: Select all
\catcode`^=\active
\newcommand{^}[1]{{\sp{#1}\!}}