
LaTeX 파일에 정의를 추가하고 싶습니다. 그러나 단어 정의 뒤에 점이 있습니다. 어떻게 제거할 수 있나요? 나는 원해요:
정의 여기에 정의가 있습니다
아니다
정의. 정의는 다음과 같습니다.
\newtheorem*{definition*}{Definition}
\begin{definition*}
Here is the definition
\end{definition*}
답변1
\@thm
점은 다음과 같은 매크로로 정의된 것 같습니다.
\thm@headpunct{.}% add period after heading
나는 xpatch
그것을 바꾸는 데 사용합니다.
\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}
\@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
}