latex作业模板(自用,因为记不住语法55)

发布时间 2023-03-26 11:51:51作者: 月隐雲後
\documentclass[12pt, a4paper, oneside]{ctexart}
\usepackage{amsmath, amsthm, amssymb, bm, graphicx, hyperref, mathrsfs}

\title{\textbf{课程作业}}
\author{Dylaaan}
\date{\today}
\linespread{1.5}
\newcounter{problemname}
\newenvironment{problem}{\stepcounter{problemname}\par\noindent\textbf{题目\arabic{problemname}. }}{\\\par}
\newenvironment{solution}{\par\noindent\textbf{解答. }}{\\\par}
\newenvironment{note}{\par\noindent\textbf{题目\arabic{problemname}的注记. }}{\\\par}

\begin{document}

\maketitle

\begin{problem}
    这里是题目. 
\end{problem}

\begin{solution}
    这里是解答. 
\end{solution}

\begin{note}
    这里是注记. 
\end{note}

\end{document}