16

I need a font size of 16pt for the title and 12pt for the authors. I'm writing an article class document in 11pt:

\documentclass[11pt, a4paper, twocolumn]{article}
1

3 Answers 3

18

This will let you put whatever font you desire in the title: (just replace \myfont)

\documentclass[11pt, a4paper, twocolumn]{article}
\begin{document}
\font\myfont=cmr12 at 40pt
\title{{\myfont Who knows}}
\author{{\Huge A.~U.~Thor}}
\maketitle
Paper.
\end{document}

You can also use \Large or \Huge instead of \myfont, to fit the rest of the document style (this way LaTeX will only change the size of the font)

2
  • Thank you alexsh, it worked. The title is fine now. I just need change the size font of the authors.
    – D.MerBet
    Aug 13, 2013 at 14:39
  • I added the one for the author, essentially the same thing, you can also make other choices for the font, just like you can for the title. If you are interested in different fonts available for TeX/LaTeX, check out the font catalog at tug.dk/FontCatalogue/allfonts.html. If this answer works, please mark it as acceptable.
    – alexsh
    Aug 13, 2013 at 17:14
2

As stated in a comment above and in many other questions on this site, it is a bad practice to add formatting markup in \title, \author or any command that has a semantics meaning (including sectioning commands).

Instead to the titlesec or titling packages (that are the "standard" answer), I would suggest to load the etoolbox package and use its \patchcmd command like this (for the title, the printing in performed by \@maketitle):

\documentclass[11pt, a4paper, twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\@maketitle}{\LARGE}{\Huge}{\typeout{OK 1}}{\typeout{Failed 1}}
\patchcmd{\@maketitle}{\large \lineskip}{\Large \lineskip}{\typeout{OK 2}}{\typeout{Failed 2}}
\makeatother

\title{A simple example of \textbackslash Huge title}
\author{Nice and \textbackslash Large author}
\date{\today}

\begin{document}
\maketitle
\end{document}

yieding : enter image description here

in place of

enter image description here

In order to know which replacement (here \LARGE and \large \lineskip) one has to perform, look at the definition of the command, by using :

  • Either the \meaning or the \show commands printing command definition in the pdf and in the terminal respectively.
  • Or similarly, for protected commands, the \ShowCommand (LaTeX2e fall 2020) or \showcmd (package show2e).
  • Or, on the command line, texdef -t latex -c article -F @maketitle.
0

It is quite simple, download the template and remplace the command \title{Resumé title} in the template by the two following lines: \font\myfont=cmr12 at 15pt and \title{{\myfont I am the title}} and your problem is solved.....

5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .