%2C%20mas%20a%20numera%C3%A7%C3%A3o%20est%C3%A1%20em%20fonte%20normal.png)
Normalmente não gosto do ponto após os cabeçalhos dos teoremas. Por causa disso, adicionei a seguinte linha ao meu preâmbulo:
\g@addto@macro{\thm@space@setup}{\thm@headpunct{:}}
o que funciona muito bem. Mas com essa opção, recebo dois pontos em itálico após o remark
cabeçalho, o que é bom quando não há numeração, mas com a numeração habilitada, o número é escrito em fonte normal, não em itálico. É possível colocar o número em itálico também ou, alternativamente, colocar os dois pontos em fonte normal,nãodefinindo um novo estilo de teorema?
Quero que os dois pontos estejam em fonte normal em um caso e em itálico no outro caso ao mesmo tempo ou, alternativamente, para colocar o número em itálico.
\documentclass{article}
\usepackage{amsthm}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem*{remark*}{Remark}
\makeatletter
\g@addto@macro{\thm@space@setup}{\thm@headpunct{:}}
\makeatother
\begin{document}
\begin{remark}
Here is a numbered remark.
\end{remark}
\begin{remark*}
Here is an unnumbered remark.
\end{remark*}
\end{document}
Atualizar:O problema para mim de usar dois pontos em forma ascendente em todos os lugares era o espaçamento entre os cabeçalhos em itálico não numerados e os dois pontos. Com \/
tudo funcionando bem, veja os comentários abaixo.
Responder1
O amsthm
pacote define internamente uma macro \@upn
para manter o número na posição vertical, independentemente da fonte do cabeçalho. Ao refiná-lo para uma macro vazia, o número será impresso na fonte do cabeçalho.
\documentclass{article}
\usepackage{amsthm}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem*{remark*}{Remark}
\makeatletter
\g@addto@macro{\thm@space@setup}{\thm@headpunct{:}}
\renewcommand{\@upn}{} % to use the same font for the number as for the head
\makeatother
\begin{document}
\begin{remark}
Here is a numbered remark.
\end{remark}
\begin{remark*}
Here is an unnumbered remark.
\end{remark*}
\end{document}
Responder2
Mudanças como essas são melhor tratadas com thmtools
.
\documentclass{article}
\usepackage{amsthm,thmtools}
\declaretheoremstyle[
headfont=\normalfont\itshape,
headpunct=\textup{:},
bodyfont=\normalfont,
]{myremark}
\declaretheoremstyle[
headfont=\normalfont\itshape,
headpunct=:,
bodyfont=\normalfont,
]{myremarknonum}
\theoremstyle{myremark}
\newtheorem{remark}{Remark}
\theoremstyle{myremarknonum}
\newtheorem*{remark*}{Remark}
\begin{document}
Some text to show the context. Some text to show the context.
Some text to show the context. Some text to show the context.
Some text to show the context.
\begin{remark}
Here is a numbered remark.
\end{remark}
\begin{remark*}
Here is an unnumbered remark.
\end{remark*}
\end{document}
Para ser honesto, prefiro dois pontos verticais em ambos os casos.