How can I use color declarations when setting the title of a document?
I tried
\title{\color{blue} Colors in typesetting}
but I get an error from LaTeX.
Update: The error reads as followed:
doc.tex:89: Argument of \reserved@a has an extra }.
<inserted text>
\par
l.89 \begin{document}
Can I define a declaration or an environment which works inside \title
? Or is there a way to enhance the definition of \title
to accommodate declarations?
Update 2: To give more context, the base class pandoc
uses here is beamer
, but it draws in a lot of packages. (beamer
itself behaves correct as the standard classes.)
Note: For technical reasons(*) I do not want to use
\title{\textcolor{blue}{Colors in typesetting}}
so, as stated above, it must be a color declaration.
(*) I really use pandoc
to generate the TeX document from markdown and parameter-taking commands like \command{text}
will skip "text" if I convert the markdown document to any other output format.
\color{blue}
statement is 'dangerous'. Bleeding blue colour in to the rest of the document is avoided here due to grouping. – user31729 May 27 '15 at 5:02\title{\color{blue}{My Title}}
(I would rather say\title{{\color{blue}My Title}}
, though). Unfortunately, I'm away from my desktop, now, so I cannot check with a compiler. – GuM May 27 '15 at 5:09beamer
, using\title{\color{blue}...}
works fine. – user30471 May 27 '15 at 6:07