答案1
这是一个theoremstyle
使用文档声明新内容的可能解决方案amsthm
:
\documentclass{article}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{amsthm}
\newtheoremstyle{note}%
{3pt}%Space above
{3pt}%Space below
{}%Body font
{}%Indent amount
{}%Theorem head font
{.}%Punctuation after theorem head
{.5em}%Space after theorem head
{\textcolor{blue}{\textbf{\thmname{#1} \thmnumber{#2}}}}% Theorem head spec (can be left empty, meaning ‘normal’)
\theoremstyle{note}
\newtheorem{thm}{Exemplo}
\begin{document}
\begin{thm}
\lipsum[1]
\end{thm}
\end{document}