我正在使用出色的 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}