Text Formattingside effect of \newcommand{\junk}[1]{}

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
wee
Posts: 1
Joined: Thu Jun 23, 2011 6:49 pm

side effect of \newcommand{\junk}[1]{}

Post by wee »

i see some one uses this command to remove junks in latex, but find that in some cases like:
"alpha \junk{bla bla} beta", latex makes more space between "alpha" and "beta" than just "alpha beta". i suppose latex treats it like "alpha {} beta".

any ideas to remove the side effect? thx, it really bugs me for a while.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

side effect of \newcommand{\junk}[1]{}

Post by Stefan Kottwitz »

Hi,

\ignorespaces could help.

Stefan
LaTeX.org admin
Post Reply