2

enter image description here

\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage{ntheorem}
\usepackage{thmtools,xcolor}

\makeatletter

\renewtheoremstyle{plain}{ 
{\item[\hskip\labelsep \theorem@headerfont ##1\\red ##2\theorem@separator]}    
{\item[\hskip\labelsep \theorem@headerfont ##1\\red ##2\\blue(##3)\theorem@separator]}
}

\makeatother

\setlength{\theorempreskipamount}{7mm} 
\setlength{\theorempostskipamount}{7mm}

\theoremstyle{plain} 
\theorembodyfont{\normalfont}
\theoremheaderfont{\scshape\large}

\newtheorem{ejemplo}{Ejemplo}
\newtheorem{defi}{Definición}

\begin{document}

\chapter{Resol}

\begin{defi}[Polinomio característico]
    Si $A$ es una matriz cuadrada de orden $n$, al polinomio
\end{defi}

\end{document}
  • 2
    Welcome to TeX SX! What are you asking, exactly? – Bernard Dec 17 '16 at 0:17
0

Using thmtools, this is fairly straight forward:

enter image description here

\documentclass{article}

\usepackage{amsthm,mathpazo}
\usepackage{thmtools,xcolor}
\usepackage[utf8]{inputenc}

\colorlet{theoremnamecolor}{blue!30!black}
\colorlet{theoremnumbercolor}{red!80!black}
\declaretheoremstyle[
  spaceabove = 7mm,
  spacebelow = 7mm,
  headfont = \color{theoremnamecolor}\normalfont\bfseries,
  notefont = \color{theoremnamecolor}\normalfont\mdseries,
  notebraces = {(}{)},
  headformat = \NAME{} \textcolor{theoremnumbercolor}{\NUMBER}\NOTE,
  headpunct = {},
  bodyfont = \normalfont\itshape
]{plain}

\theoremstyle{plain} 

\newtheorem{defi}{Definición}[section]

\begin{document}

\section{A section}

\begin{defi}[Polinomio característico]
Si $A$ es una matriz cuadrada de orden $n$, al polinomio
\end{defi}

\end{document}
  • Thank you the code is correct XD I dont speak english ..Merry Chritsmas – Dennis Miranda Dec 26 '16 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.