# Tag Info

1

Apart from the 'usefulness' of using numbers as part of the environment name (or using l1 as label name), there are some issues here: Just use one \newtheorem for each theorem type, i.e. a Lema or a Theorem or Example etc. Reusing \newtheorem for each new lema would lead to environments all being numbered as 1 or 1.1, etc. -- this is awkward. I don't think ...

0

You must pay attention to the fact that \swapnumbers could be issued several times between theorem definitions, being effectively part of the theorem style (indeed, it acts as a “style modifier”). Therefore, the correct way of coping with the problem is to use \thm@swap (in its “inner” meaning!) to select between two predefined “marking styles”. Here is a ...

0

In the lines \apptocmd{\@begintheorem} {\myMark{#1\ #2}\ignorespaces}{}{} \apptocmd{\@opargbegintheorem}{\myMark{% #1\ #2% \ (#3)% comment this line to leave "Mickey Mouse" out \ignorespaces }}{}{} swap #1 with #2.

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 ...

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 ...

0

I can propose a simple solution with ntheorem: its break style does not seem to have the same problem with page breaks, so I patched it to do what you want: \documentclass{article} \usepackage{amsmath} \usepackage[thmmarks, amsmath, thref, hyperref]{ntheorem} \usepackage{amssymb} \usepackage{enumitem} \usepackage{lipsum} \makeatletter \newtheoremstyle{...

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 ...

0

A small extension due to the case that the proofs are in the section "Proofs:" \documentclass[11pt]{amsart} \newtheorem{pro}{Proposition}[section] \newtheorem{theo}[pro]{Theorem} \newenvironment{myproof}[2] {\paragraph{Proof of {#1} {#2} :}}{\hfill$\square$} \begin{document} \begin{theo} \label{theo} Hello \end{theo} \begin{myproof}{Theorem}{\ref{theo}} ...

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}...

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{...

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}

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{...

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{...

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 ...

Top 50 recent answers are included