Text FormattingNo space after \&

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
trophi20
Posts: 7
Joined: Thu Apr 02, 2020 7:17 pm

No space after \&

Post by trophi20 »

Hello,

I want to write following in LaTex: "A&B", like written without spaces before and after the &.

How can I do that?

Thank you!

EDIT:
A\&{}B is working, but is this the "right" version?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

No space after \&

Post by Bartman »

It also seems to work without braces.

Code: Select all

\documentclass[border=1pt]{standalone}
\begin{document}
A\&B
\end{document}
Post Reply