Hi.
I have to have dot after number of theorem but before title of theorem.
For example, instead
"Theorem 1.1 (Euler)."
I must do
"Theorem 1.1. (Euler)".
How to do it?
Text Formatting ⇒ dot in theorem environment
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
dot in theorem environment
Hi,
it depends. There are various theorem environments, styles, and packages, such as amsthm, ntheorem, thmtools, or simple LaTeX theorems. What are you using?
Can you post a simple compilable example that shows your theorem (with short dummy text)? Then it should be easy for us to adjust.
Stefan
it depends. There are various theorem environments, styles, and packages, such as amsthm, ntheorem, thmtools, or simple LaTeX theorems. What are you using?
Can you post a simple compilable example that shows your theorem (with short dummy text)? Then it should be easy for us to adjust.
Stefan
LaTeX.org admin
dot in theorem environment
Code: Select all
\documentclass[12pt,a4paper]{article}%
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{polski}
\usepackage[polish]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}%
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{tikz}
\newtheorem{theorem}{Twierdzenie}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\begin{document}
\begin{theorem}[Euler]
$a^2+b^2=c^2$
\end{theorem}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
dot in theorem environment
This removes the dot after the name:
The number appearance is like you define as numbering in the document, either with or without dot.
Stefan
Code: Select all
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{.}{}{}{}
\makeatother
Stefan
LaTeX.org admin