![字幕未显示在 Scrartcl 文档中](https://linux22.com/image/355865/%E5%AD%97%E5%B9%95%E6%9C%AA%E6%98%BE%E7%A4%BA%E5%9C%A8%20Scrartcl%20%E6%96%87%E6%A1%A3%E4%B8%AD.png)
我想给我的文章添加一个副标题,并且已经读到最好使用 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}