
정리/정리/추론에 대해 가능한 것과 동일한 굵은 글꼴로 예제를 제시하는 라텍스 문서를 얻으려면 어떻게 해야 합니까?
답변1
원하는 대로 일반 설명을 정의할 수 있습니다. 사람들은 이에 대해 서로 다른 기대를 갖는 경향이 있기 때문에 미리 정의된 정리와 같은 환경은 없습니다.
\documentclass{article}
\usepackage{amsthm} % for \theoremstyle and proof
\newtheorem{thm}{Theorem}[section] % theorems will be numbered according to section
\newtheorem{lem}[thm]{Lemma} % lemmas share the counter with theorems
\newtheorem{cor}[thm]{Corollary} % ditto
\theoremstyle{definition} % body text will be upright
\newtheorem{defn}[thm]{Definition}
\newtheorem{exa}[thm]{Example}
\begin{document}
\section{A title}
\begin{lem}
This is a lemma.
\end{lem}
\begin{thm}
This is a theorem.
\end{thm}
\begin{proof}
Here's its proof.
\end{proof}
\begin{exa}
An example to illustrate the theorem.
\end{exa}
\end{document}
답변2
다양한 선택이 있습니다. 좋은 것 중 하나는 amsthm입니다. 여기에 예가 있습니다.
\documentclass{minimal}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
\newtheorem{lem}{Lemma}
\newtheorem{cor}{Corollary}
\newtheorem{exm}{Example}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{thm} \lipsum[2] \end{thm}
\begin{lem} \lipsum[3] \end{lem}
\begin{cor} \lipsum[4] \end{cor}
\begin{exm} \lipsum[5] \end{exm}
\lipsum[6]
\end{document}
더 많은 패키지가 CTAN에 있습니다.http://www.ctan.org/topic/maths-theorem.