我想给我的文章添加一个副标题,并且已经读到最好使用 scrartcl 类。但是,问题没有解决,副标题没有显示出来。
\documentclass[a4paper,11pt]{scrartcl} %bei Bedarf titlepage
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{enumitem}
\usepackage[official]{eurosym}
\usepackage{a4wide}
\usepackage{titling}
\usepackage[autostyle=true, german=quotes]{csquotes}
\setlength{\droptitle}{-10em}
\begin{document}
\title{Title that shows up}
\subtitle{Subtitle that should show up but does not}
\author{My name\thanks{My varsity which shows up in a footnote} which shows up}
\maketitle
Thanks for your help!
\end{document}
答案1
删除包titling
以真正使用 KOMA-Script 命令:
\documentclass[a4paper,11pt]{scrartcl} %bei Bedarf titlepage
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{enumitem}
\usepackage[official]{eurosym}
\usepackage{a4wide}% <- geometry would be better to change the page layout
%\usepackage{titling}% <- remove this
\usepackage[autostyle=true, german=quotes]{csquotes}
%\setlength{\droptitle}{-10em}% <- remove this
\begin{document}
\title{Title that shows up}
\subtitle{Subtitle that should show up but does not}
\author{My name\thanks{My varsity which shows up in a footnote} which shows up}
\maketitle
Thanks for your help!
\end{document}