
Quero adicionar uma definição no meu arquivo LaTeX. No entanto, tenho um ponto após a definição da palavra. Como posso removê-lo? Eu quero:
Definição Aqui está a definição
NÃO
Definição. Aqui está a definição
\newtheorem*{definition*}{Definition}
\begin{definition*}
Here is the definition
\end{definition*}
Responder1
O ponto parece estar definido na macro \@thm
com a linha
\thm@headpunct{.}% add period after heading
Eu uso xpatch
para mudar isso.
\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}
Para referência, aqui está a definição de \@thm
in 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
}