Code: Select all
\newcommand{\->}{\rightarrow}Code: Select all
\newcommand{\->}{\rightarrow}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
\section or \tableofcontents consist of the escape character, which is a backslash by default, and a series of letters. For the sake of remembering (mnemonity, this word should exist) those are english words.\& or \,.- active and use -> to get the symbol, but please, please don't.-> input and directly convert it, but ... There is a pretty high chance, that you will want -> (exactly those two charackter) sooner or later. For example in TikZ pictures. TikZ is a nice thing, please have a look at some examples.arara, which does the replacement automatically before the LaTeX run. If you just started with LaTeX, there are many other useful things to learn than such advanced things. Even I don't use arara or preprocessing yet, after about 20 years of using LaTeX, though I'm open for new things.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