我很好奇如何制作如图所示的定义和定理格式?此外,我是否可以分离两种定义或定理格式,以便在需要时使用特殊格式?
以下是我的代码:
\documentclass[a4paper, 12pt]{article}
\usepackage{geometry}
\geometry{
left=1.30in,
right=1.30in,
}
\usepackage{csquotes}
\usepackage{setspace}
\usepackage{stmaryrd}
\usepackage{lmodern, enumitem}
\usepackage{amssymb,amsmath}
\usepackage{amsthm}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{exercise}{Exercise}[section]
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\begin{document}
Trying to format theorem environment.
\end{document}