Generalbackslash

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

backslash

Post by manojg »

Hello,

I got a working latex code (got from somebody) which has this syntax:

Code: Select all

newcommand* \{\ABC} \{ABCDEFG}
As I understood, the backslash removes the white space. But I am getting error due to the two backslashes outside {}.

Any suggestions?

Thanks.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
Joined: Mon Mar 10, 2008 9:44 pm

backslash

Post by Stefan Kottwitz »

A backslash doesn't remove whitspace. It's used at the beginning of control sequences, such as commands.

A correct syntax would be:

Code: Select all

\newcommand*{\ABC}{ABCDEFG}
Stefan
LaTeX.org admin
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Re: backslash

Post by manojg »

Thanks Stefan
Post Reply