# Tag Info

6

You're using wrong instructions: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{amsmath,amssymb,amsfonts} \theoremstyle{definition} \newtheorem{definition}{Definition}[section] % definitions are numbered according to sections \newtheorem{theorem}[definition]{Theorem} % theorems share the numbering with definitions ...

5

With thmtools you can update the way your theorem displays by creating a custom layout: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ bodyfont=\normalfont\itshape, headformat=\NAME\NUMBER ]{nospacetheorem} \declaretheorem[style=nospacetheorem,name=Q]{question} \begin{document} \begin{question} What is ...

5

\newtheorem{question}{Q\ignorespaces}

4

To add a dot after the chapter number in the title of the chapter only, you need to patch \@makechapterhead: \usepackage{etoolbox} \makeatletter \patchcmd{\@makechapterhead}% <cmd> {\thechapter}% <search> {\thechapter.}% <replace> {}{}% <success><failure> \makeatother To add a dot after the (any) sectional number in its ...

3

The syntax of \newtheorem can be confusing: See the amsthm documentation for more detailled explanation but in short it's like this: Use \newtheorem{theorem}{Theorem} if theorem shall be the counter (it's defined then, and Theorem is the environment name.) \newtheorem{theorem}{Theorem}[foo] if Theorem should be the environment name and foo is an ...

2

Beamer treats all the newtheorems like its own theorem environment, so if you want to adjust the spacing simply add it to the relevant beamer templates: \documentclass[12pt, aspectratio=169, noamssymb]{beamer} \usetheme{default} \setbeamertemplate{navigation symbols}{} \usepackage[T1]{fontenc} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{...

2

This is the default with ntheorem: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier, erewhon} \usepackage{amsmath} \usepackage[thmmarks, thref]{ntheorem} \usepackage{cleveref} \theoremstyle{plain} \theoremheaderfont{\bfseries\scshape\upshape}% \theorembodyfont{\itshape} \theoremseparator{.} \newtheorem{...

2

The amsthm package manual has it covered in §2.1. You can obtain it via texdoc amsthm on your system, or on CTAN I loosely quote that section: The best way to avoid these problems is to allow the list to start on a new line. One way to accomplish this is to follow the theorem head (and \label, if present) by the command \leavevmode. (For more ...

1

It's actually not true that cleveref works with beamer; for instance, \label does not accept an optional argument. Here's a hack that does what you're looking for. However, I don't think it's worthy the pain: your audience will not remember the theorem numbers, so referring to them by number will just be confusing. \documentclass{beamer} \usepackage{amsthm}...

1

The theorem like environments provide something out of the box, but here is a more general another way, where a lot of counters can be coupled and follow each other -- this is not restricted to theorem like environments. This allows to decouple the counters later on too, if requested. \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{...

Only top voted, non community-wiki answers of a minimum length are eligible