![清理论文模板,更改标题字体](https://linux22.com/image/414917/%E6%B8%85%E7%90%86%E8%AE%BA%E6%96%87%E6%A8%A1%E6%9D%BF%EF%BC%8C%E6%9B%B4%E6%94%B9%E6%A0%87%E9%A2%98%E5%AD%97%E4%BD%93.png)
我正在使用出色的 Clean Thesis 模板,它确实很好用,但现在我很难将 thesisTitle 和 thesisSubtitle 的字体更改为 Helvitica。到目前为止,我已经插入了,\fontseries{n}\fontfamily{phv}\selectfont
但我必须在哪里进行插入?
\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\newcommand{\thesisTitle}{Effect of sugar on my hair, hand and ears}
\newcommand{\thesisSubtitle}{What happens if I eat to much of it?}
\newcommand{\thesisName}{Sugarcan and Coffeepot}
\newcommand{\thesisSubject}{Promising thing}
\newcommand{\thesisDate}{Today 2020}
\newcommand{\thesisVersion}{Second Version}
% Cover page content
\subject{\vspace{4.5cm} \thesisSubject}
\title{\thesisTitle}
\subtitle{\thesisSubtitle}
\author{\thesisName}
\date{\thesisDate}
\begin{document}
\maketitle % making the title
\end{document}
答案1
我自己找到了。\fontseries{n}\fontfamily{phv}\selectfont
必须进入控制事物而不需要额外的括号{}。
\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\newcommand{\thesisTitle}{\huge\fontseries{n}\fontfamily{phv}\selectfont Effect of sugar blabla}
\newcommand{\thesisSubtitle}{\fontseries{n}\fontfamily{phv}\selectfont What happens if I eat to much of it?}
\newcommand{\thesisName}{Sugarcan and Coffeepot}
\newcommand{\thesisSubject}{Promising thing}
\newcommand{\thesisDate}{Today 2020}
\newcommand{\thesisVersion}{Second Version}
\subject{\vspace{4.5cm} \thesisSubject}
\title{\thesisTitle}
\subtitle{\thesisSubtitle}
\author{\thesisName}
\date{\thesisDate}
\begin{document}
\maketitle % making the title
\end{document}