Questions tagged [amsthm]

A package that facilitates the kind of theorem setup typically needed in American Mathematical Society publications. The package offers the theorem setup of the AMS document classes (amsart, amsbook, etc.) encapsulated in LaTeX package form so that it can be used with other document classes.

Filter by
Sorted by
Tagged with
1
vote
1answer
224 views

Additional space when using postheadhook of thmtools

This problem is related to my previous question on how to put name, number and note of a theorem in the margin column. After hours of trial and error I have come up with the following solution: \...
2
votes
1answer
542 views

Theorem name, number and note in margin column with amsthm

My question is related to Theorem Name/Numbering in Margin and Theorem name and number in margin, note in text , but the answers to these previous questions do not fully solve my problem. I use ...
4
votes
2answers
123 views

List of Theorems not in pdf readers index

I am using memoir and the \listoftheorems of the thmtools package. And while it seems to beautifully work and integrate in the table of contents, it does not appear in the index listing of the pdf ...
1
vote
0answers
30 views

Changing theorem numbering after it's been defined [duplicate]

I have a header.tex file which has a large set of useful definitions and macros for a set of documents, including the lines \theoremstyle{definition} \newtheorem{nthm}{Theorem}[section] which are ...
3
votes
1answer
3k views

Error when using the amsthm package

I've got following error message when compiling for a journal article: /usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty:431: LaTeX Error: Command \proof already defined. Or name \end... ...
2
votes
1answer
256 views

Dynamic counter for corollaries of Theorems and Propositions at the same time

In the question Dynamic counters for corollaries Christian Hupfer has give a beautiful answer using his package xcntperchap in which corollaries of a Theorem receive numbers 1, 2, 3,... for each ...
2
votes
1answer
136 views

Dynamic counter for corollaries

I use the package chngcntr to number the Corollaries of a Theorem so they zero for the next Theorem, with the setting \usepackage{chngcntr} \counterwithin*{cor}{theo} and that works very nice, ...
2
votes
1answer
129 views

I would like to implement \qedhere in a class that clashes with packages that include it

I am submitting a paper that requires the LMS class file: https://www.lms.ac.uk/sites/lms.ac.uk/files/Publications/lmsclass.tar_.gz . I need to use a \qedhere to position an end-of-proof tombstone ...
4
votes
1answer
1k views

Environment with amsthm and tcolorbox - Attach boxed title to top

I would like to use tcolorbox to create boxes for environments created with amsthm. MWE: \documentclass{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
5
votes
1answer
104 views

What is the most elegant way to reference a named proposition using cross-references with cleveref and amsthm?

I have a document in which I have a named proposition, which I wish to reference by its acronym. Since it is named, it ought not be numbered. Still, I'd like to reference it using a cross-reference, ...
11
votes
2answers
4k views

New theorem environment with manual theorem number

I am wondering how to create a new theorem environment / style which allows me to insert the theorem number manually. That is, I am imagining something like \begin{newtheorem}{2.3'}[title] ...
2
votes
2answers
754 views

Dash after theorem number: e.g. Theorem 1'

I would like to present a second version of a theorem (of, say, Theorem 1) and I would like to denote it by Theorem 1'. I reckon the best way to go about it might be to define a new theorem style or ...
2
votes
1answer
723 views

thmtools: Footnotes in theorem names and notes

I am using the thmtools package as a frontend to amsthm to typeset various types of theorems. Sometimes I feel the need to put a footnote either directly at the theorem name or inside the theorem note....
1
vote
2answers
145 views

How can I remove the space before a custom theorem-like environment header?

I have created a custom theorem-like environment using the package thmtools commands \declaretheoremstyle and \declaretheorem. The header of the environment is supposed to be given as an option at the ...
3
votes
1answer
108 views

counter also should be in italic in amsthm package

In my document, I need some theorem heading in italic and some in bold face, I have using the below tag: \documentclass{book} \usepackage{amsthm} \newtheoremstyle{note}% name {3pt}% Space above1 {3pt}...
3
votes
1answer
10k views

Hypothesis with amsthm package

I'm trying to write a null hypothesis with my thesis, and I found this question Hypothesis in latex. But when I tried it, it did not work for me, as I had a typesetting error and the xcolor and ...
12
votes
2answers
1k views

Clash between newtxmath and amsthm packages

I'm writing a document with a book structure using only these few packages: \documentclass[letterpaper, 10pt, oneside]{book} \usepackage{XCharter} \usepackage[xcharter]{newtxmath} \usepackage[cal=...
2
votes
1answer
152 views

\qedhere in RTL documents

In RTL documents, the QED symbol typically appear on the left side of the page, at the last line of the proof (flushed). Many proofs end with an equation, and it those cases it is customary to use the ...
1
vote
1answer
181 views

Aligning equations when the number of columns change

I want to have some equations aligned in two columns followed by a single centered equation, i.e. something that looks like multiple align enviroments, one after another, but with no excessive space ...
2
votes
1answer
91 views

Passing a tikzcd as an argument of a theorem style environment

I would like to pass a tikz-cd environment as an argument of a theorem (between []). Unfortunately, in the below code, the tikz-cd environment is shown partially. Is there a way to fix it? \...
3
votes
0answers
668 views

Placement of amsthm's proof and theorem environments

Since when I started LaTeXing I've always wrote the proof environment inside the theorem, but I see many templates or answers in which first the theorem is ended and then the proof is begun. Namely, ...
2
votes
0answers
362 views

Importing and Exporting LyX files with AMS environments

I'm having some trouble converting LyX files that use AMS environments back and forth between the .lyx format and the .tex format. To see what I mean, here is a minimal example. Starting with the ...
2
votes
2answers
469 views

Italic colon of remark environment (using `amsthm`), but numbering is in normal font

Usually I don't like the dot after theorem headers. Because of that, I added the following line to my preamble: \g@addto@macro{\thm@space@setup}{\thm@headpunct{:}} which works very well. But with ...
0
votes
1answer
641 views

Setting the first counter in amsthm

I am editing my lecture notes and use the amsthm package. As I missed some of the lectures, I would like to set the counter of the first theorem on the page to some number. Only the first one, e.g. 12....
3
votes
1answer
630 views

Cleveref does not capitalize German theorem names

When using cleveref in combination with German theorem names from amsthm, referenced theorem names are not capitalized (but they should be). Referenced chapter names are capitalized as expected. MWE:...
3
votes
1answer
104 views

How do I change counter to `Alph` format of a counter in tcolorbox

I am trying to implement the idea of a bigthm counter---so make the numbering Alph format--- in a tcolorbox theoremlike environment. With the amsthm package, what I needed to do was \newtheorem{...
2
votes
1answer
283 views

How can a tombstone be put flush right in an environment with tags?

I know that, if a theorem's proof ends with a displayed maths environment of a type such as align* or align, then, in order to get the QED tombstone placed on that environment's last line (rather than ...
4
votes
3answers
466 views

Starting theorem version numbering at 1.0 instead of 1.1

How I make the numbering in the following file start at 1.0 instead of 1.1? setcounter{dfnv}{-1} doesn't do anything. \documentclass[12pt]{article} \usepackage{amsthm} \usepackage{amsmath} \...
0
votes
1answer
100 views

Versioning Theorem numbers with amsthm

I would like to have different versions of the same theorem or definition. So version 0 of definition 1 would be called "Definition 1.0" and version 1 would be called "Definition 1.1". The file ...
3
votes
1answer
350 views

Avoid parentheses around optional header material in theorem environment for ams style?

This is a follow-up question on Avoid parentheses around optional header material in theorem environment. I want to do exactly the same (remove the parenthesis around the theorem optional header in ...
2
votes
1answer
326 views

Putting the \qed sign at the right place when using answer package

In the following document I have used the package "answer" and when I end a solution I put a \qed sign at the end of solution. This works fine except if the solution terminates with an equation and ...
0
votes
1answer
208 views

Compressing ranges of labels of different types?

How to compress a range of references of different types? Let us assume the following code: \documentclass{article} \usepackage{amsthm} \usepackage{cleveref} \newtheorem{thm}{Theorem}[section] \...
1
vote
1answer
465 views

Ampersand, &, inside a theorem?

When I try to write the symbol "&" inside a theorem it looks different than I want it to. Is there a way to get the symbol inside the theorem? Here is what I get: Here is the code: \...
2
votes
0answers
223 views

mdframed: continuous background for adjacent blocks

Is it possible for multiple mdframed blocks to have a contiguous background and border if they are next to each other? Here's an example: These blocks are one after the other in code. They appear ...
5
votes
1answer
2k views

Pandoc LaTeX to HTML and theorem environments

I am using Pandoc to convert LaTeX files to HTML files. Since these LaTeX files are mathematical documents, they contain theorem-like environments using amsthm. In the output HTML files these ...
4
votes
3answers
412 views

Too much space when using the Display Math Mode with the Theorem Environment

So I'd quite like to include the Display Math Mode (rather than just doing things inline so that they are bigger) within the theorem environment, like this: \documentclass{article} \usepackage{...
4
votes
1answer
306 views

How to prevent a pagebreak after the head of custom amsthm enviorement

I have defined a custom amsthm environment for my theorems and such, because I want to have a line break after the header. \newtheoremstyle{teo} {15pt} % ABOVESPACE {} % BELOWSPACE {\...
1
vote
2answers
97 views

Adding section numbering to boxed environment

I have the following boxed environment in with I would like to add section numbering. It should say "Bevis #.#" instead of just "Bevis". Image of what I currently have The code I'm using \...
3
votes
2answers
913 views

Numbering Theorems/Definitions in Lyx according to Subsection, Line Breaks after Text

I am currently using Document > Settings > Modules > Theorems (Numbered by Type within Sections) in Lyx. However, I need my theorems/definitions to be numbered according to subsection instead. i.e. ...
1
vote
1answer
393 views

Redefine theoremstyle

(Admittedly a strange question). I have the following TeX files: macros1.tex macros2.tex main.tex main.tex includes macros1.tex and macros2.tex in that order. I am not allowed to edit macros1.tex or ...
3
votes
1answer
351 views

How to use cleveref in lipics?

I have to use the lipics-v2016 class (http://drops.dagstuhl.de/styles/lipics-v2016/lipics-v2016-authors.tgz) and I also want to use cleveref. The problem is that \cref{label} where label refers to a ...
3
votes
1answer
722 views

Theorem environment generates missing `\begin{document}` eror

Consider \documentclass{article} \usepackage{amsthm} \newtheoremstyle{boldtheorem} {} {} {\itshape} {} {} {\itshape} {} {\bfseries} {.} { } {\thmnumber{#2}\ifx #3\relax\relax\thmname{ #1}\else\...
3
votes
2answers
1k views

Dot & swap numbers

I wanted to have something like 1.1.1. Theorem and not Theorem 1.1.1. So i used \swapnumbers to do it, but it gives me 1.1.1 Theorem. I just want to add a dot after the theorem/definition number. \...
2
votes
1answer
676 views

Can't use amsthm option with ntheorem, and no QED markers

I'm trying to get QED markers to show up at the end of a proof only, using ntheorem but run into a couple of problems. First, using the amsthm option with ntheorem doesn't work: \documentclass[...
2
votes
1answer
572 views

Writing theorem conditions with automatic numbering and labels

I'm trying to write conditions that are required for a theorem to be valid such that the condition is automatically numbered AND is able to be referenced at a later time (e.g. a link can be used to go ...
5
votes
1answer
222 views

\verb in theorem environment option

I would like to like to use \verb in theorem environment option, but it seems not work as I expected. \documentclass{article} \usepackage{amsthm} \newtheorem*{dfn*}{Definition} \begin{document} \...
0
votes
1answer
506 views

Decrease horizontal space in enumitem lists [duplicate]

To subdivide longer proofs of theorems, I use two list environments defined using enumitem: pfsteps for numbered steps and pfparts for labeled parts. Horizontal space problems 1) In the pfsteps ...
5
votes
2answers
8k views

customization of theorem, lemma, definition, … in ieeeconf

I am working with following ieeeconf-based template: \documentclass[letterpaper, 10 pt, conference]{ieeeconf} % Comment this line out if you need a4paper \IEEEoverridecommandlockouts ...
2
votes
2answers
2k views

Command \example already defined

I cannot use \example from any of the Theorems modules because LaTeX says "Command \example already defined" to the line \newtheorem{example}[thm]{\protect\examplename} generated by Lyx. I am using ...
1
vote
1answer
228 views

How to keep track of “Examples” in a math document

I'm not sure if this has already been asked, but I have been curious if amsthm also contains support for "examples". For example, I would like to have something like \begin{example} ... \end{...

1
3 4
5
6 7
12