General ⇒ Forcing LaTeX to "single space" exclamation point
-
- Posts: 1
- Joined: Sat Jun 19, 2010 1:18 am
Forcing LaTeX to "single space" exclamation point
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
Forcing LaTeX to "single space" exclamation point
you can use some of the features provided by the babel package to define and manage user-defined shorthands:
Code: Select all
\documentclass[english]{article}
\usepackage{babel}
\defineshorthand{!}{!\negthinspace}% define the shorthand
\useshorthands{!}% activate the user-defined shorthand(s)
\begin{document}
No! No! No!
\shorthandoff{!}% deactivate some shorthand(s)
No! No! No!
\shorthandon{!}% activate some shorthand(s)
No! No! No!
\end{document}