Hola todos, estoy redactando unas notas de cálculo en Latex pero tengo problemas al implementar el paquete que permite agregar demostraciones...
La idea es poder escribir...
\begin{proof}[Demostración.]
$X$ demostración
\end{proof}
y que Latex le dé el formato adecuado.
En el preámbulo de mi tex tengo lo siguiente:
\documentclass[12pt]{article}
\textheight = 22cm
\textwidth = 16cm
\topmargin = -1cm
\oddsidemargin = 0cm
\parindent = 0mm
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage[spanish]{babel}
\usepackage{{ntheorem}}
\theoremstyle{plain}
\newtheorem{teorema}{\textbf{Teorema}}
\setlength{\theorempreskipamount}{8mm}
\setlength{\theorempostskipamount}{8mm}
\theoremstyle{definition}
\newtheorem{defi}{\textbf{Definici\'on}}
\newtheorem{ej}{\sl{Ejemplo}}
\theoremstyle{remark}
\newtheorem*{nota}{Nota}
\usepackage{amsmath,amssymb,amsfonts,latexsym,stmaryrd}
\usepackage{fix-cm}
\usepackage{anyfontsize}
\numberwithin{equation}{section}
\begin{document}
\begin{proof}[Demostración.]
$X$ demostración
\end{proof}
\end{document}
Al compilar me sale el siguiente error:
! LaTeX Error: Environment proof undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.27 \begin{proof}
[Demostración.]
?
PD: La línea 27 es \begin{proof}[Demostración.]
Espero que puedan ayudarme. Saludos!