1

This question already has an answer here:

I am writing my thesis and the font size of the chapter title is defined in the class of the document. Somehow I cannot make bigger than \fontsize{60}{70}. Even if I write \fontsize{3000}{70} I cannot observe any difference. Is there a way to change it?

Thanks

My code (in the class file):

% Numbered chapter heading style:
\renewcommand{\@makechapterhead}[1]{%
  {\singlespacing
    \parindent \z@ \raggedleft \normalfont

    \vspace*{5mm}%  
    \ifnum \c@secnumdepth >\m@ne
    \usepackage{lmodern}
\usepackage{graphicx}
    \fontsize{120}{60} \selectfont \scshape \bf \textsc \space \thechapter         % Chapter followed by number
    \par\nobreak
    \fi
    \interlinepenalty\@M
    \vspace{20mm}%  
    \huge \scshape \bf #1\par                                                            % chapter title
    \rule{\textwidth}{1pt}                                                                                  %horizontontal line                     
    \nobreak
   \vskip 40\p@
  }}

marked as duplicate by Werner, Gonzalo Medina, Paul Gessler, Mico, Malipivo Mar 7 '15 at 9:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Do you really have \usepackage{lmodern} \usepackage{graphicx} in the middle of your chapter heading definition? How can that not give multiple errors? – David Carlisle Mar 6 '15 at 16:26
  • 2
    The \usepackage lines have to be at the top level so they execute before the document starts. They can not be in the definition of \chapter. – David Carlisle Mar 6 '15 at 16:44
  • 2
    \scshape \bf is the same as \bf did you intend \scshape \bfseries which specifies bold caps and small caps (which is not available in all font families)? – David Carlisle Mar 6 '15 at 17:14
  • 1
    the comment above doesn't really seem to add any extra information. The answer given shows how to have fonts bigger than 60pt, It is hard to guess the intention of the \@makechapterhead definition in the question but the errors it generates are basically unrelated to the question in the title. – David Carlisle Mar 6 '15 at 18:48
  • 1
    If you are using KOMA script, this will break all kinds of functionality.... (The KOMA classes define \@makechapterhead so this is a guess about what thesis might be doing.) – cfr Mar 7 '15 at 1:51
7

enter image description here

\documentclass{article}
\usepackage{lmodern}

\begin{document}

one {\fontsize{5cm}{6cm}\selectfont two}

\end{document}
2

Note that if you select a font size using \fontsize and then use a regular font size command such as \huge, you will get back to the ordinarily huge size. This probably isn't an issue since I can't imagine you are trying to make the chapter title this big as well, but since your question is difficult to figure out, maybe this might be useful.

For example:

\documentclass{article}

\usepackage{lmodern}

\begin{document}

  \fontsize{60}{70}\selectfont enormous

  \huge merely huge

\end{document}

enormous vs. merely huge

Note that \bf is deprecated and undoes \scshape, as pointed out in comments. \scshape\bfseries will switch to bold small-caps if they are available (unusual).

Note that \textsc{} is not a font switch but expects an argument.

So, if you just say \textsc without curly brackets, the next token will be small-caps - typically a single letter. Compare:

  \textsc abc

  \textsc{abc}

  {\scshape abc}

font shape commands

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