My goal is to have everything in my document in a Times New Roman like font, including math. I am working with the authblk
-package to produce a title page.
I have tried with the following but the Title, Subtitle, Sections and Subsections are not with a Times font.
\documentclass[a4paper,12pt,bibliography=totoc]{scrartcl}
\usepackage[affil-it]{authblk}
\usepackage{blindtext}
\usepackage{newtxtext}
\usepackage{newtxmath}
\titlehead{This is in times \hfill}
\title{Main Title with wrong font}
\subtitle{Sub Title with wrong font}
\author[1,2,*]{First Author}
\author[1,2]{Second Author}
\author[1,3]{Third Author}
\author[2,4]{Supervisor Author}
\affil[1]{University}
\affil[2]{College}
\affil[3]{Institute}
\affil[4]{School \break}
\affil[*]{Corresponding author: [email protected] \newline Contributing authors: [email protected], [email protected], [email protected]}
\date{\today}
\begin{document}
\maketitle
\section{This}
\subsection{is in}
\subsubsection{times}
This is in times.
Same issue with:
% !TEX TS-program = xelatex
%That was the first line of code
%\usepackage{newtxtext} %newtx packages are commented
%\usepackage{newtxmath}
\usepackage{fontspec}
\setmainfont{Times New Roman}
scrartcl
has its own mechanism for defining the fonts ... Did you read the manual for MOMA-Script?