I tried to change the size of my title, and found this: How can I change the font size of the authors and the affiliation in Latex?, but I was unable to do it because an error message kept popping up that said:

No \title given. [...{\fontsize{40pt}{49.2pt}\selectfont\@title]

Any help would be welcome!

Here is my code so far:



{\LARGE \@title}{\fontsize{40pt}{49.2pt}\selectfont\@title}{}{}

    \node [text=white] {\normalfont \Large \bfseries #1};
      \node [text=white,inner sep=0pt,outer sep=0pt] (textnode) {\normalfont \Large \bfseries #1};
      \shade[path fading=tikztitle,fit fading=false,left color=green,right color=black]
      (textnode.south west) rectangle (textnode.north east);

\title{\tikztextbf{The logic of tautologies!!}} 


  • When I add \end{document} to your code, it compiles without error. You need to make sure the example produces the problem you are reporting. – cfr Jan 11 '17 at 1:49
  • What does this have to do with \makeletter? – cfr Jan 11 '17 at 1:50
  • It now has the problem. – D.R Jan 11 '17 at 2:16
  • What are you trying to do? That attempts to typeset stuff before \begin{document} which is obviously going to end in tears ;). – cfr Jan 11 '17 at 2:27
  • How do I typeset after \begin{document}? Do I copy and paste the title formatting stuff after the \begin{document}? Sorry if this question is silly, I'm kind of new to LaTeX. – D.R Jan 11 '17 at 4:08

Just change

\normalfont \Large \bfseries



or whatever you wish it to be.

{\LARGE \@title}{\fontsize{40pt}{49.2pt}\selectfont\@title}{}{}

This tells LaTeX to do the following:

  1. Switch to \LARGE.
  2. Typeset the title.
  3. Switch to 40pt font with 49.2pt baseline skip.
  4. Typeset the title again.

Moreover, you are telling LaTeX to do this before:

  1. \begin{document};
  2. specifying a title.

Try to see it from LaTeX's perspective: what can it do but complain?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.