我正在尝试从头开始重新创建以下标题外观
这是我迄今为止的尝试:
\documentclass[paper=A4, fontsize =11pt ]{scrartcl} % A4 Paper and 11pt font size
\usepackage[english]{babel} % English language
\usepackage{amsmath,amsfonts,amsthm,amssymb} % American Mathematical Society packages
\usepackage{geometry} % Geometry package
\usepackage{datetime } % Date and time package
\usepackage{fancyhdr} % Custom headers and footers
\pagestyle{fancyplain} % Makes all pages in the document conform to the custom headers and footers
\fancyhead{} % Removes page header
\fancyfoot{} % Removes page footer
\renewcommand{\headrulewidth}{0pt} % Remove header underlines
\renewcommand{\footrulewidth}{0pt} % Remove footer underlines
\title{
\normalfont \normalsize
\text{Long title element} \\ [11pt]
\text{Title element}\\ [14pt]
\begin{flushleft}
Text
\end{flushleft}
}
\begin{document}
\maketitle
Something
\end{document}
我正在努力解决的问题是如何右对齐日期,但我会很感激并欢迎任何关于如何改进文本的其他建议。
答案1
你可以简单地修改你的flushleft
环境
\begin{flushleft}
Text \hfill \today
\end{flushleft}
我只是暂时忽略了如何防止\maketitle
打印额外的日期。
\documentclass[paper=A4, fontsize =11pt ]{scrartcl} % A4 Paper and 11pt font size
\usepackage[english]{babel} % English language
\usepackage{amsmath,amsfonts,amsthm,amssymb} % American Mathematical Society packages
\usepackage{geometry} % Geometry package
\usepackage{datetime2} % Date and time package
\usepackage{fancyhdr} % Custom headers and footers
\pagestyle{fancyplain} % Makes all pages in the document conform to the custom headers and footers
\fancyhead{} % Removes page header
\fancyfoot{} % Removes page footer
\renewcommand{\headrulewidth}{0pt} % Remove header underlines
\renewcommand{\footrulewidth}{0pt} % Remove footer underlines
\title{
\normalfont \normalsize
\text{Long title element} \\ [11pt]
\text{Title element}\\ [14pt]
\begin{flushleft}
Text \hfill \today
\end{flushleft}
}
\begin{document}
\maketitle
Something
\end{document}