下面是我的 LaTeX 标记的骨架:
\documentclass[11pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[margin=1.25cm, bottom=2cm]{geometry}
\newcommand{\name}{Name}
\newcommand{\hw}{1}
\title{\vspace{-50pt}
\Huge \name
\\\vspace{20pt}
\huge Class name\hfill Assignment \hw}
\author{}
\date{}
\pagestyle{myheadings}
\markright{\textnormal{\name\hfill Assignment \hw\qquad\hfill}}
\begin{document}
\maketitle
blah blah
\end{document}
看起来像这样:
我想在“作业 1”下方指定的位置添加截止日期。
答案1
将该\huge Class...
行替换为:
\huge Class name\hfill \begin{tabular}{l}Assignment \hw\\Due date\end{tabular}}
如果你希望将“课程名称”与“作业”的基线对齐,则使用此项
\huge Class name\hfill \begin{tabular}[t]{l}Assignment \hw\\Due date\end{tabular}}
(请注意额外的[t]
选项...)