5

This question already has an answer here:

I am currently writing a project report, and have come across a strange thing.

While making the title page, when I insert the title, if I wrote \textbf{\LARGE{Multi-Server Authentication Scheme Using Biometrics}} the output came as this:

less line height, so looks cramped

But if I change the code to \LARGE{\textbf{Multi-Server Authentication Scheme Using Biometrics}}, the output looks like this:

more line height, looks perfect

Although the above solved my problem, I am curious to know why this happens. The rest of the code needed to fully reproduce this is:

\documentclass[12pt,a4paper]{report}
\begin{document}
\begin{center}
{here goes the above codes for the title}
\end{center}
\end{document}

marked as duplicate by leandriis, Stefan Pinnow, TeXnician, Zarko, Bobyandbob May 11 at 12:45

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.

7

Compare:

\documentclass[12pt,a4paper]{report}
\begin{document}
\begin{center}
{\bfseries\LARGE Multi-Server Authentication Scheme Using Biometrics}

{\bfseries\LARGE Multi-Server Authentication Scheme Using Biometrics\par}
\end{center}
\end{document}

enter image description here

For the linespacing the current font size at the end of a paragraph is important! And, of course, \Large is a switch and has no arguments!

  • 1
    I tried this code, but it's not compiling. The error says Paragraph ended before \text@command was complete. <to be read again> – Abhisek Chaudhuri May 11 at 7:46
  • 2
    @AbhisekChaudhuri: \LARGE \textbf{Multi-Server Authentication Scheme Using Biometrics} or {\bfseries \LARGE Multi-Server Authentication Scheme Using Biometrics \par} will give you the desired output. For a more in-depth explanation you can have a look here: tex.stackexchange.com/a/48743/134144 – leandriis May 11 at 7:54
  • @AbhisekChaudhuri: Ah, I posted the wrong code. See edited answer – user187802 May 11 at 9:18

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