Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
11 views

Section Numbering without Title (`\newtheorem` inquiry)

How can I make use of \section (for numbering purposes) without the big section title. \documentclass{article} \newtheorem{theorem}{Theorem}[section] \begin{document} \section{} \begin{theorem} ...
2
votes
1answer
43 views

Chktex complains about “no italic correction found”, how to fix this?

I use the following code for custom theorems, as I like slanted text in thereoms better than italicized, using amsthm. \newtheoremstyle{thm-sl} {}{} {\slshape} % slanted text instead of italicized {}...
1
vote
1answer
22 views

Figures allowed in amsthm environments but not tcolorbox theorem environments

I can see that figures work without any error within theorem environments defined with the amsthm package, but it does not work in tcolorbox theorem environments. Rather, it throws the error "! LaTeX ...
0
votes
1answer
43 views

Change theorem color using theorem notes in the amsthm package

When defining a new theorem style in the amsthm package, you can specify what's called (according to http://web.mat.bham.ac.uk/R.W.Kaye/latex/thm.pdf) a custom head specification. In there, you can ...
2
votes
1answer
35 views

Automatic theorem list

In my need of writing a list of theorems I wrote the following code: \documentclass[b5paper, twoside, 12pt]{memoir} % packages \usepackage{amsmath, amsthm, fancyhdr, geometry, hyperref, palatino, ...
3
votes
2answers
244 views

Drop cap theorem style

I would like a theoremstyle-like definition which induces the first letter of the theorem-head to be drop-capped. I do not intend to use counters, at all, with this style. I fully intend to use other ...
-1
votes
0answers
8 views

Lemmas within proofs - numbering problem [duplicate]

I have defined the following \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}{Lemma}[theorem] I would like have few theorems in a given section (with separate numbering) and for some of ...
4
votes
2answers
57 views

Theorem numbering in starred sections

Let me start with an MWE which illustrates my question. \documentclass{book} \usepackage{amsthm} \newtheorem{theorem}{Theorem}[section] \begin{document} \chapter{Some title} \section{Another title}...
4
votes
2answers
124 views

Centering ornaments from `pgfornaments` around a theorem environment?

Here is my minimal code: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{pgfornament} \newtheorem{thm}{...
2
votes
0answers
38 views

Adding parentheses to number of theorem [closed]

I am trying to add parentheses to number of definition. I found such link, but it doesn't work for me: it gives me error "Missing number treated as zero" \documentclass[a4paper,12pt]{article} \...
2
votes
1answer
29 views

Indented theorem and proof environemnts

I would like to be able to recreate the following theorem style, where the main body of a theorem/proof/definition etc. is indented by a variable amount. I would also like to end a theorem proof with ...
2
votes
1answer
53 views

Unnecessary dots in theorems and figure numbers

I know, that it is possible to add dot after the chapter / section / subsection number. But if I use \renewcommand{\thechapter}{\arabic{chapter}.} \renewcommand{\thesection}{\thechapter\arabic{...
0
votes
0answers
22 views

LaTeX URL error occurs, but only if the URL is hidden

I have an environment that I sometimes hide using the environ package. I also include hyperlinks using hyperref, some of which contain the % sign. I'm running into a confusing issue where LaTeX fails ...
0
votes
1answer
38 views

What's wrong with Requirepackage[leqno]{amsthm}?

I try to write my own documentclass, but something goes wrong when I add an option [leqno] for the package amsthm \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mybook}[2018/05/28 Free LaTeX text book ...
0
votes
0answers
12 views

Why does my proof not indent new paragraphs? [duplicate]

Sorry if this is a repeated question - I have been unable to find a solution on stackexchange. Here is my code \documentclass[12pt]{article} %\usepackage[margin=1.5cm]{geometry} \usepackage{...
3
votes
1answer
44 views

How can I change the space between lines in theorem?

I am using the amsthm package. I need to change the space between the lines of the paragraph in the body of the all theorems only in the theorem environment and not in the other parts of my report.. ...
1
vote
0answers
16 views

Conflict between amsthm, cref, and hyperref [duplicate]

I cannot determine why this does not compile unless I remove amsthm which I normally include, though I don't exactly know why. \documentclass{article} \usepackage{amsthm} \usepackage{mathtools, ...
2
votes
1answer
20 views

Is there a way to reference theorems which are inside intertext commands?

I am trying to reference a theorem that is inside an intertext: \documentclass{article} \usepackage{amsmath,amsthm} \newtheorem{theorem}{Theorem} \begin{document} \begin{align*} \intertext{\begin{...
2
votes
1answer
14 views

Proof environment with long header causes many problems. How to avoid them?

Suppose we have defined a lemma environment with the amstheorem package. And suppose the proof environment is available via the ams packages. Please consider this example. \begin{lemma} \label{lem:...
1
vote
2answers
38 views

\qedhere warning in description in proof

When I design my iff-proof as follows, I get this warning: The \qedhere command may not work correctly here Is there any way to fix this warning, since the result looks fine, or accomplish this ...
2
votes
2answers
25 views

Additional Vertical Spacing When Using \begin{quote} \begin{thm}

I wish to place one of my theorems inside a quote, in the following way. \begin{quote} \begin{thm}[My Theorem] statement... \end{thm} \end{quote} However, this causes erroneous white space to ...
1
vote
1answer
38 views

Definitions and theorem numbering

I am new to theorems and definitions of the amsthm package and what I am trying to achieve might be really simple. I have the following theorems: \theoremstyle{definition} \newtheorem{matriceDef}{...
2
votes
2answers
19 views

Remove horizontal space between proof and start of the proof

I am trying to prove some theorem by using proof environment, but somehow the result is different when I use article as my document class and aip-cp document class. The result when I use article as ...
2
votes
0answers
68 views

Formatting an implication cycle proof

Some theorems/lemmata/propositions start with "If [...] then the following are equivalent:". After this, an enumeration (i), (ii), (iii) follows. The proof is usually done in an "implication cycle":...
1
vote
0answers
39 views

How to change the style of a theorem at LyX?

As a continue to this question - Why the amstools doesn't work here? - I think to ask it from a different view: I'm using this at Lyx and I want to change the style of the theorems like here: ...
1
vote
0answers
38 views

cleveref switches the reference order

Suddenly, in a unique example that I can't seem to reproduce in a MWE, cleveref switches the order of my references. Here's my configuration of cleveref and the theorems: \usepackage[backref=page]{...
0
votes
0answers
52 views

Why the amstools doesn't work here?

Look at this file, when I compile it at LyX it says that: And here is the file: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless ...
2
votes
2answers
40 views

Removing the word “theorem” or defn from a listoftheorems

How can I remove the word theorem/defintion from a list of theorems: \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[numberwithin=section]{defn} ... \listoftheorems \begin{defn}[My ...
4
votes
2answers
72 views

Indent the new line in a theorem environment

I have been looking after a solution to this for a while and have found none. I'm trying to create a Theorem environment, through amsthm, such that there will be a linebreak (just like the break ...
2
votes
1answer
33 views

How to put the amsthm title right of text

How can I put the title of a theorem environment right of the text. Example: \begin{definition}[Titel] Some Text \end{definition} The result should look like this. Where the tile is Strukturbaum ...
2
votes
1answer
102 views

How to make cleveref compress different-level theorems?

Whenever you have differently deep sections in your document and wish to number your theorems (as well as notes, lemmas, propositions, ...) according to the currently deepest level, you tend to write ...
5
votes
2answers
85 views

Odd custom theorem behavior when trying to set default value of optional argument

MWE: \documentclass{book} \usepackage{amsthm} \usepackage{enumitem} \usepackage{xparse} \usepackage{hyperref} \usepackage{lipsum} \newtheoremstyle{fctaylor}% name {\topsep}% Space above {\...
1
vote
1answer
52 views

Indenting paragraphs within a custom theorem environment

Issue: In my custom theorem environment I would like the beginning line of a new paragraph within the theorem environment to immediately follow the line above it and also be indented: MWE: \...
3
votes
0answers
53 views

Correcting formatting for framed theorems

I have been using the following code to create overhang for my theorems (and other theorem-like environments) for a while now. \documentclass{article} \usepackage{amsthm} \usepackage{mdframed} \...
4
votes
1answer
28 views

Add parenthesis () around counter, remove period from Example

I have a hard time formatting my text in Latex. I am trying to add parenthesis to my counters. This should be a working example: \documentclass[paper]{paper} \usepackage[ngerman]{babel} \usepackage{...
0
votes
1answer
84 views

Package amsthm Warning: The \qedhere command… in Documenta style

I am trying to adjust my manuscript to Documenta style which can be found here (\documentclass[10pt,a4paper,twoside]{article}). Whenever I use the \qedhere-command at the end of an equation- or ...
1
vote
1answer
28 views

Enumerate align problem inside theorem

I am trying to add a separation between the beginning of a theorem environment and an enumeration. I want this: Theorem (1) (2) (3) And not this: Theorem (1) (2) (3) I know a solution is ...
2
votes
2answers
85 views

Vertically Align qedsymbol in final proof equation

Consider the following MWE: \documentclass{article} \usepackage{amsmath} ...
1
vote
1answer
49 views

Change headers of smfbook.cls

I'm using a template which is essentially the smfbook template (provided here). I love it, but I would like to change some details: The first is the headers. By default, in even pages we get ''...
4
votes
1answer
43 views

The word “theorem” of a theorem is not bold if it appears inside another environment

I'm typing up solutions to a problem set. I've defined a theorem and solution environment, as in the following document. \documentclass{article} \usepackage{amsthm} \theoremstyle{plain} \newtheorem{...
2
votes
1answer
86 views

Enumerating theorems with numbers and letters

I want to have my theorem environments to enumerate using both numbers and letters. Right now I have this: \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem}[section] \begin{...
0
votes
0answers
38 views

setting counter for theorem and lemma in mdframed

I am trying to set counter for theorems and lemmas, here is my codes \documentclass{tufte-handout} \usepackage[utf8]{inputenc} \usepackage{mdframed} % Framed Theorems \usepackage[usenames,dvipsnames]...
1
vote
0answers
20 views

Newtheorem, disable textit inside math mode

I have following command from amsthm in my document: \newtheorem{mytheorem}{Theorem}[chapter] With the following usage: \begin{mytheorem} The following holds: $A = B + C$ \end{mytheorem} Inside "...
2
votes
2answers
60 views

Continuing an earlier theorem-like environment with amsthm & thmtools

When using amsthm, I want to be able to continue a particular theorem-like environment (in my case, an example) later. The continued environment should have the same number as the one it continues ...
1
vote
1answer
112 views

Which packages define \openbox [duplicate]

I'm assembling a thesis by pasting articles into an old template. Template contains includes many packages, and when I try to include amsthm I get error that \openbox is already defined. I was trying ...
1
vote
1answer
57 views

White space in a theorem beginning with a list

This question is about how to get rid of the white space in a theorem beginning with a list between the theorem caption and the first item: \documentclass{article} \usepackage{amsthm} \usepackage{...
0
votes
0answers
40 views

Theorem statement

I am writing the theorem using: \begin{theorem}[theorem title] Theorem statement... \end{theorem} But the the theorem’s statement appears directly next to the title, How can I get it on the new ...
3
votes
1answer
35 views

Horizontal spacing in environments

I don't seem to understand how spacing in environments works: Look at \documentclass{article} \usepackage{amsthm} \newenvironment{myproof}{\par\noindent\textit{Proof.}}{\qed} \newenvironment{...
0
votes
1answer
40 views

Switch body font shape of newtheorem automatically

It is interesting that \emph will switch the shape of font automatically based on the current font is italic or not, e.g., \emph{This is \emph{non-italic} italic}. will produce something like: ...
1
vote
1answer
165 views

Indentation of text in a theorem environment by the length of its title

I wrote a Math report, and I wanted to indent a whole paragraph in my definition, such that it's aligned with the end of the word definition. For a while I used minipage and it works well : \begin{...