
我正在嘗試製作數學問題並將其分發給學生。標題中有文檔的\title
,\author
和\date
,但是
- 我想再包含兩個欄位:名稱機構我正在工作的單位及其名稱課程
- 作者的名字並不那麼重要,所以我希望它看起來更小。
下面我將留下我所擁有的 MWE,任何幫助將不勝感激。
\documentclass[12pt]{article}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\usepackage{amssymb,
amsmath,
lipsum}
\usepackage{multicol} % to insert columns
\setlength{\columnsep}{5pt}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=cyan,
filecolor=magenta,
urlcolor=blue,
}
\usepackage{parskip} % For no indentation and a bit of space in paragraphs
% to format enumerate to letters
\usepackage[inline]{enumitem} % <-- note the option 'inline'
\begin{document}
\title{Problem Set 2}
\author{Ruben Perez Sanz}
\date{7 September, 2020}
\maketitle
\lipsum
\end{document}
答案1
由於沒有為大學和課程提供安置,所以我使用了 __ 自己的大學和課程安置https://tex.stackexchange.com/a/429148/197451
\documentclass[12pt]{article}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}
{\end{trivlist}}
\usepackage{amssymb,
amsmath,
lipsum}
\usepackage{multicol} % to insert columns
\setlength{\columnsep}{5pt}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=cyan,
filecolor=magenta,
urlcolor=blue,
}
\usepackage{parskip} % For no indentation and a bit of space in paragraphs
% to format enumerate to letters
\usepackage[inline]{enumitem} % <-- note the option 'inline'
\begin{document}
\title{Problem Set 2}
\author{Ruben Perez Sanz}
\date{{\large University of \LaTeX} \\[2em]
\large Course on Fitment of Title\\[2em]
April 2018}
\maketitle
\lipsum
\end{document}