Text FormattingNo Dot after Theorem Title

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
chrisr34000
Posts: 10
Joined: Mon Aug 15, 2011 9:40 pm

No Dot after Theorem Title

Post by chrisr34000 »

Hi!

I want to generate notes, without dots at the end.
My code was:

Code: Select all

\theoremstyle{remark}
\newtheorem*{bem}{Bemerkung:}
and the output is:

Bemerkung:.

I want to get rid of the period at the and tried:

Code: Select all

\theoremstyle{remark}
\theoremstyle{dotless}
\newtheorem*{bem}{Bemerkung:}
to no avail.

Do you know what I could try?

Chris
Last edited by chrisr34000 on Wed Sep 21, 2011 12:11 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: No Dot after Theorem Title

Post by Stefan Kottwitz »

Hi Chris,

it's not clear which theorem package you are using, such as ntheorem, theorem, amsthm or thmtools ... so the best would be if you would show a small compilable example, which produces the undesired dot, so we could help to fix that.

Stefan
LaTeX.org admin
chrisr34000
Posts: 10
Joined: Mon Aug 15, 2011 9:40 pm

No Dot after Theorem Title

Post by chrisr34000 »

Hi!

Sure:

Code: Select all

\documentclass[a4paper, german, openright, 12pt]{report}
\usepackage{amsmath, amsthm, amsfonts, amssymb, amssymb, dlfltxbcodetips}
\usepackage{lmodern}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{float}            
\usepackage[ngerman]{babel}                
\usepackage{enumerate}       
\usepackage{array}            
\usepackage{pdfpages}         
\usepackage{parskip}          
\usepackage[right]{eurosym}   
\usepackage[hyphens]{url}     
\usepackage{makeidx}          
\usepackage{multicol}        
\usepackage[numbers, square]{natbib}   
\usepackage{parskip}


\usepackage{fancyhdr}
\fancyhf{}
\fancyhead[L]{\bfseries \nouppercase \leftmark}
\fancyhead[R]{\bfseries \thepage}
\setlength{\headheight}{16pt}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.5pt}
\fancyheadoffset{\marginparwidth - 1.05cm}

\everymath{\displaystyle}


\setlength{\unitlength}{1cm}
\setlength{\oddsidemargin}{0.3cm}
\setlength{\evensidemargin}{0.3cm}
\setlength{\textwidth}{15.5cm}
\setlength{\topmargin}{-1.2cm}
\setlength{\textheight}{24.5cm}
\columnsep 0.5cm

\begin{document}

\theoremstyle{definition}
\newtheorem{mydef}{Definition}[section]
\newtheorem{satzdef}[mydef]{Satz und Definition}

\theoremstyle{remark}
\newtheorem*{bem}{Bemerkung:}
\newtheorem*{bsp}{Beispiel:}
  
\begin{bem}

~

\begin{enumerate}[(i)]
\item Test1

\item Test2
\end{enumerate}

\end{bem}

\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

No Dot after Theorem Title

Post by Stefan Kottwitz »

Hi,

with compilable minimal example you will get a solution, of course: define \thm@headpunct as : instead of the default dot. In your preamble you can write:

Code: Select all

\makeatletter
\g@addto@macro\th@remark{\thm@headpunct{:}}
\makeatother
\theoremstyle{remark}
\newtheorem*{bem}{Bemerkung}
Stefan
LaTeX.org admin
chrisr34000
Posts: 10
Joined: Mon Aug 15, 2011 9:40 pm

Re: No Dot after Theorem Title

Post by chrisr34000 »

Awesome, thanks! :mrgreen:
Post Reply