1

I am trying to get the output of this Latex code but, my company name is not coming in a single line if I use the \Huge relative font size.

\documentclass[14pt]{article}
\usepackage{pagecolor,lipsum}

\begin{document}    

\title{%
 \Huge BANGALORE MATHEMATICAL INSTITUTE \\
  \large Coaching for IIT-JEE/NEET/KVPY/OLYMPIADS}

\author{Director: G Ekaveera Kumar}

\maketitle
\pagecolor{cyan!30!yellow}
\end{document}
5
  • If you want to make the string BANGALORE MATHEMATICAL INSTITUTE fit on a single line, you must either use a relative font size smaller than \Huge (\huge is ok) or increase the width of the text block. Which option do you prefer?
    – Mico
    May 5 '19 at 5:06
  • i tried smaller than \Huge but not satisfied with it May 5 '19 at 5:08
  • 14pt isn't recognized either by the article document class; it recognizes only 10pt (the default), 11pt, and 12pt as fontsize-related options.
    – Mico
    May 5 '19 at 5:11
  • yes i understood May 5 '19 at 5:16
  • 1
    thanks i fixed it using class extreport May 5 '19 at 5:18
2

If 14pt is the basic document font size, then the string "Bangalore Mathematical Institute" simply cannot fit on a single line if the \Huge relative font size is in force. The largest permissible relative font size is \huge, as the following example demonstrates. Note that I also changed the all-caps title to small-caps, as I believe that all-caps text is quite unreadable.

enter image description here

\documentclass[14pt]{extarticle}
\begin{document}    
\title{%
   \huge
   \makebox[0pt]{\textsc{Bangalore Mathematical Institute}}\\[4ex]
   \Large 
   Coaching for IIT-JEE/NEET/KVPY/\textsc{Olympiads}}
\author{Director: G Ekaveera Kumar}
\maketitle
\thispagestyle{empty}
\end{document}
2

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.