定义自定义字体
\font\authfont=cmr10.5 at 10pt
现在,我尝试使用它,但将其加粗:
\author{
%\expandafter\showthe\font
\authfont{
\textbf{
...
}}}
但是,它不是粗体。我也尝试过切换组合 (bold(authfont))
我正在为一个会议准备这篇论文,其中有一个大型现有样式表(emnlp2020.sty),但不确定为什么这种行为不起作用
答案1
该模板是公开可用的,示例.tex
文件以
\documentclass[11pt,a4paper]{article}
\usepackage[hyperref]{emnlp2020}
\usepackage{times}
\usepackage{latexsym}
\renewcommand{\UrlFont}{\ttfamily\small}
% This is not strictly necessary, and may be commented out,
% but it will improve the layout of the manuscript,
% and will typically save some space.
\usepackage{microtype}
%\aclfinalcopy % Uncomment this line for the final submission
%\def\aclpaperid{***} % Enter the acl Paper ID here
%\setlength\titlebox{5cm}
% You can expand the titlebox if you need extra space
% to show all the authors. Please do not make the titlebox
% smaller than 5cm (the original size); we will check this
% in the camera-ready version and ask you to change it back.
\newcommand\BibTeX{B\textsc{ib}\TeX}
\title{Instructions for EMNLP 2020 Proceedings}
\author{First Author \\
Affiliation / Address line 1 \\
Affiliation / Address line 2 \\
Affiliation / Address line 3 \\
\texttt{email@domain} \\\And
Second Author \\
Affiliation / Address line 1 \\
Affiliation / Address line 2 \\
Affiliation / Address line 3 \\
\texttt{email@domain} \\}
\date{}
\begin{document}
\maketitle
结果是
这就是会议经理们想. 不要试图超越标准他们想。
如果我取消注释该\aclfinalcopy
行,结果是
作者部分的字体为 12pt,作者姓名自动为粗体,所属机构自动为中等粗细,甚至比您想要获取的字体还要大,并且按照说明为 Times \usepackage{times}
。
答案2
cmr
表示罗马字体,你应该使用cmb
\font\authfont=cmb10 at 10pt
\author{%
\authfont%
...
}
由于您没有提供完整的信息MWE
,我只是纠正了代码中的错误......