## LaTeX forum ⇒ General ⇒ Help me backslash

LaTeX specific issues not fitting into one of the other forums of this category.
kullboys
Posts: 1
Joined: Fri Dec 01, 2017 6:32 am

### Help me backslash

Hello,

I got a working latex code (got from somebody) which has this syntax:
CODE:
`[SELECT ALL] [EXPAND/COLLAPSE] [DOWNLOAD] (UNTITLED.TEX) OPEN IN OVERLEAFnewcommand* \{\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.

Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm
This is not a valid latex code. Errors are expected. Seems like some parser removed and added backslashes.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 8544
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Welcome to the forum!

The correct syntax is:

`\newcommand*{\ABC}{ABCDEFG}`

A backslash is used for commands and macros (so called "control sequences"). Everything that starts with a backslash \, is a command or macro (well, control sequence in TeX speak). This line above creates a macro called `\ABC`, that contains the text ABCDEFG.

If you would see stuff like `\(`, `\[`, or `\{`, these are actually macros too, just short.

Stefan

Marcus Bettin
Posts: 2
Joined: Tue Oct 03, 2017 11:07 am
Thanks for the code!
That book of ra play com website is really something! For the guys like me there are options to get more games. It's so great! I can always get more there.

### Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 9 guests