I want to set the font size of the main title to 14pt. I am using the »article« class.
Code: Select all
\documentclass[a4paper,10pt,twocolumn]{article}
Code: Select all
\documentclass[a4paper,10pt,twocolumn]{article}
NEW: TikZ book now 40% off at Amazon.com for a short time.
\maketitle
command by the etoolbox package.
Code: Select all
\documentclass[10pt,a4paper,twocolumn]{article}\usepackage[T1]{fontenc}\usepackage{etoolbox}\makeatletter\patchcmd{\@maketitle}{\LARGE}{\Large}{}{}\makeatother\title{Document Title at \texttt{14pt}}\author{dasatti}\begin{document}\maketitle\end{document}
Code: Select all
\makeatletter\patchcmd{\@maketitle}{\LARGE}{\fontsize{14}{17}\selectfont}{}{}\makeatother
\fourteenpt
with \Large
:Code: Select all
\documentclass[10pt,a4paper]{article}\usepackage[T1]{fontenc}\usepackage[left=0pt,right=0pt]{geometry}\makeatletter\newcommand*\fourteenpt{\fontsize{14}{15.5}\selectfont}\newcommand*\totht[1]{\dimexpr\ht#1+\dp#1\relax}\newcommand*\leading{{\setbox0\hbox{\strut}\the\totht0}}\newcommand*\fntsize{{\setbox0\hbox{Mg}\the\totht0}}% total size of the letters Mg\newcommand*\showsize[1]{{#1 {\ttfamily\string#1} (\f@size pt) \fntsize/\leading}\par}\makeatother\begin{document}\showsize\tiny\showsize\scriptsize\showsize\footnotesize\showsize\small\showsize\normalsize\showsize\large\showsize\fourteenpt\showsize\Large\showsize\LARGE\showsize\huge\showsize\Huge\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.