General ⇒ How to print out '[' and '#' contained in documents
How to print out '[' and '#' contained in documents
I am sorry to ask such a stupid question. I am just beginning to learn LaTex. I try to print the '['and '#'out in my document, but I can not work it out. The text is like this: "[Q & P], #1, #2, #3." Wish to get help from some masters. THX!!
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to print out '[' and '#' contained in documents
The open square bracket
Regards
Nicola Talbot
[
shouldn't cause a problem, unless it follows a command that can have an optional argument. The ampersand &
and hash #
are special characters and need to be escaped:Code: Select all
[Q \& P], \#1, \#2, \#3.
Nicola Talbot
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/