我正在用给定的 LaTeX 模板写一篇文章。通常,当我想将矢量输入为粗体非斜体字母时,我会使用命令
\boldsymbol{ \mathrm{ \Phi} }
它与基本amsmath
包含完美配合。但是,对于提供的模板,这不起作用。\boldsymbol
命令被忽略。我知道我可以使用不同的方法,例如\mathbf
或\bm
,但我想知道是什么导致了这种行为。如果它有用,我提供了模板的代码:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sth}[2016/04/21]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass[12pt,a4paper]{article}
\usepackage[margin=25mm]{geometry}% <-------- CHANGE HERE for the global margins
\usepackage{mathptmx} % for Times
\renewenvironment{maketitle}{
\setlength{\leftmargin}{0mm}% <---------- CHANGE HERE
\setlength{\topmargin}{0mm}
\vspace{7mm}\hspace{-5mm}\@author\vspace{11.25mm}
\renewcommand{\rmdefault}{phv} % Arial
\normalfont
\fontsize{20}{22.65}
\selectfont
\begin{center}
\@title\relax\end{center}\vspace{-6.45mm}
\renewcommand{\familydefault}{\rmdefault}
\normalfont
\fontsize{12}{14}\selectfont\thispagestyle{firstpage}}
\usepackage{setspace}
\renewenvironment{abstract}
{\small
\begin{center}
\end{center}
\list{}{%
\setlength{\leftmargin}{40mm}% <---------- CHANGE HERE
\setlength{\rightmargin}{0mm}%
\setstretch{1}
}%
\fontsize{10}{4mm}
\selectfont
\item\relax\vspace{-5mm}}
{\endlist}
\renewcommand{\thesection}{\fontsize{14}{5mm}\arabic{section}.}
\renewcommand{\thesubsection}{\thesection\fontsize{14}{5mm}\arabic{subsection}.}
\renewcommand{\thesubsubsection}{\thesubsection\fontsize{14}{5mm}\arabic{subsubsection}.}
\usepackage{sectsty}
\sectionfont{
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} % Arial
\fontsize{14}{5mm}\selectfont}
\usepackage{mathptmx}
\usepackage{helvet}
\renewcommand{\familydefault}{\rmdefault}
\normalfont
\fontsize{12}{13.6}\selectfont
\usepackage{indentfirst}
\setlength{\parindent}{5mm}
\setlength{\parskip}{5.65pt}
\usepackage{titlesec}
\titlespacing*{\section}{-7pt}{19.8pt}{1.4pt}
\usepackage{authblk}
\renewcommand\Authfont{\fontsize{12}{14}\selectfont}
\renewcommand{\baselinestretch}{1}
\makeatletter
\renewcommand*{\@seccntformat}[1]{\csname the#1\endcsname\hspace{4pt}}
\renewcommand\@biblabel[1]{#1.}
\makeatother
\setstretch{1}
\setlength{\abovecaptionskip}{6mm plus 3pt minus 2pt}
\setlength{\belowcaptionskip}{1.5mm plus 3pt minus 2pt}
\usepackage[font=footnotesize,labelfont=footnotesize]{caption}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancypagestyle{firstpage}{
\rhead{Header}
\renewcommand{\headrulewidth}{0.5pt}
}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}