
Quiero agregar una definición en mi archivo LaTeX. Sin embargo, tengo un punto después de la palabra definición. ¿Como puedo quitarlo? Deseo:
Definición Aquí está la definición.
NO
Definición. Aquí está la definición.
\newtheorem*{definition*}{Definition}
\begin{definition*}
Here is the definition
\end{definition*}
Respuesta1
El punto parece estar definido en la macro \@thm
con la línea
\thm@headpunct{.}% add period after heading
Yo suelo xpatch
cambiar eso.
\documentclass{article}
\usepackage{amsthm,xpatch}
\makeatletter
\xpatchcmd{\@thm}{.}{}{}{}
\makeatother
\begin{document}
\makeatletter
\newtheorem*{definition*}{Definition}
\begin{definition*}
Here is the definition
\end{definition*}
\end{document}
Como referencia, aquí está la definición de \@thm
en amsthm.sty
:
\def\@thm#1#2#3{%
\ifhmode\unskip\unskip\par\fi
\normalfont
\trivlist
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@notefont{\fontseries\mddefault\upshape}%
\thm@headpunct{.}% add period after heading
\thm@headsep 5\p@ plus\p@ minus\p@\relax
\thm@space@setup
#1% style overrides
\@topsep \thm@preskip % used by thm head
\@topsepadd \thm@postskip % used by \@endparenv
\def\@tempa{#2}\ifx\@empty\@tempa
\def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}%
\else
\refstepcounter{#2}%
\def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%
\fi
\@tempa
}