About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.


9.4.12 Mathematical Spacing

LaTeX deals with mathematical spacing fairly well, but sometimes you may find you want to adjust the spacing yourself. Available spacing commands are listed in Table 9.15.


Table 9.15: Mathematical Spacing Commands (provided by amsmath)
Command Example Input Example Output
  $AB$ $ AB$
\thinspace or \, $A\,B$ $ A B$
\medspace or \: $A\:B$ $ A\:B$
\thickspace or \; $A\;B$ $ A\;B$
\quad $A\quad B$ $ A\quad B$
\qquad $A\qquad B$ $ A\qquad B$
\negthinspace or \! $A\!B$ $ A\!B$
\negmedspace $A\negmedspace B$ $ A\negmedspace B$
\negthickspace $A\negthickspace B$ $ A\negthickspace B$
     

Exercise 24: More Mathematics

This exercise uses the spacing command \qquad. In addition, it has a function name, diag, and it uses the \forall and ellipses symbols. It also redefines the \vec command, as was done in the previous section, uses the bmatrix environment (see §9.4.10. Arrays), and has subscripts and superscripts.

Try to reproduce the following output:

Again, you can download or view the solution.


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs