我有类似的东西:
\documentclass[11pt,a4paper, twocolumn]{article} % 11pt for all the article
\begin{document}
\font\myfont=cmr12 at 16pt
\title{{\myfont MY TITLE}}%Title in 16pt
\author{MY NAME}% **I need it in 12pt**
\affil{University of...}% **I need it in 9pt**
如何改变字体大小?
答案1
您可以获得精确的以适当的方式设置您需要的字体大小;方法是使用\fontsize{}{}\selectfont
可缩放的字体,允许使用所需的大小(lmodern
例如)。authblk
提供\Authfont
和\Afillfont
自定义作者和所属机构的字体属性;一个简单的补丁允许\@maketitle
您为标题选择所需的确切字体:
\documentclass[11pt, a4paper, twocolumn]{article}
\usepackage[affil-it]{authblk}
\usepackage{etoolbox}
\usepackage{lmodern}
\makeatletter
\patchcmd{\@maketitle}{\LARGE \@title}{\fontsize{16}{19.2}\selectfont\@title}{}{}
\makeatother
\renewcommand\Authfont{\fontsize{12}{14.4}\selectfont}
\renewcommand\Affilfont{\fontsize{9}{10.8}\itshape}
\title{MY TITLE}
\author{MY NAME}
\affil{University of..}
\begin{document}
\maketitle
\end{document}
答案2
使用@Henrimenke 的推荐,你可以找到它这里
\documentclass[11pt, a4paper, twocolumn]{article} % 11pt for all the article
\usepackage[affil-it]{authblk}
\begin{document}
\title{\LARGE MY TITLE} %Title in 16pt=15.84985
\author{\large MY NAME} % I need it in 12pt=11.74988
\affil{\footnotesize University of..} % I need it in 9pt=9.24994
\maketitle
\end{document}
答案3
也可以使用该包来实现更改标题大小的目标titling
:
\usepackage{titling}
\pretitle{\begin{flushleft}\LARGE\sffamily}
\posttitle{\end{flushleft}}