
¿Cómo se puede conseguir que un documento de látex presente un ejemplo en el mismo tipo de letra en negrita que se puede hacer para teoremas/lemas/corolarios?
Respuesta1
Puede definir declaraciones generales como desee; no existe un entorno predefinido similar a un teorema, porque la gente tiende a tener expectativas diferentes al respecto.
\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}
Respuesta2
Hay varias opciones. Uno bueno es amstm. Aquí hay un ejemplo.
\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}
Más paquetes están en CTAN enhttp://www.ctan.org/topic/maths-theorem.