TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I defined and used a new theormestyle using amsmath package:

\newtheoremstyle{standard}
  {\topsep}      % ABOVESPACE
  {\topsep}      % BELOWSPACE
  {\normalfont}  % BODYFONT % \itshape
  {0pt}          % INDENT (empty value is the same as 0pt)
  {\itshape}     % HEADFONT
  {.\ }          % HEADPUNCT
  {0pt}          % HEADSPACE. `plain` default: {5pt plus 1pt minus 1pt}
  {}             % CUSTOM-HEAD-SPEC

When I see it correctly this leads e.g. to Remark 1. instead of Remark 1.
So the number is not italized. How should I do that?
Maybe internally the \emph environment is applied to the number, neutralizing italics already in place.

share|improve this question
up vote 6 down vote accepted

Use

{\thmname{#1} \thmnumber{#2}}             % CUSTOM-HEAD-SPEC

MWE:

\documentclass{article}
\usepackage{mathtools,amsthm,amsfonts}
\newtheoremstyle{standard}
  {\topsep}      % ABOVESPACE
  {\topsep}      % BELOWSPACE
  {\normalfont}  % BODYFONT % \itshape
  {0pt}          % INDENT (empty value is the same as 0pt)
  {\itshape}     % HEADFONT
  {.\ }          % HEADPUNCT
  {0pt}          % HEADSPACE. `plain` default: {5pt plus 1pt minus 1pt}
  {\thmname{#1} \thmnumber{#2}}             % CUSTOM-HEAD-SPEC

\theoremstyle{standard}
\newtheorem{thm}{Remark}
\begin{document}
  \begin{thm}
    Let $I \subset \mathbb{R}$ be an interval.
  \end{thm}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.