Stack Exchange Network

Stack Exchange network consists of 175 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
29 views

Conflict between some packages

Here are the packages I am using, but it keeps reporting an error: LaTeX Error: Command \theoremstyle already defined. Or name \end... illegal, see p.192 of the manual. Example: \documentclass[...
2
votes
1answer
30 views

How to include \noindent to a proof environment

I'm using amsthm to get the proof environment and xpatch to modify it a bit: \usepackage{amsthm} \usepackage{xpatch} % we need to substitute . with a generic command \xpatchcmd{\proof}{.}{\...
1
vote
1answer
46 views

How to define new environment, using proof-environment

I'm using the package amsthm and I like to define my own proof environment, where the title proof is replaced by Beweis. So far, I tried \newenvironment{bew}{\begin{proof}[\textsc{\textbf{Beweis:}}]}...
1
vote
2answers
36 views

Prevent new paragraph after theorem environment

Using the theorem style as in the example below, a new paragraph is produced after the Remark. Can I prevent this? (and using the amsthm package at the same time)? \documentclass[english]{scrartcl} ...
1
vote
1answer
16 views

How to renumber a property in a chapter, using lowercase letters instead of Numbers

I want to insert several new propositions in my second section,and name it 'Prop s','Prop t'...,I hope that anyone can help me :) Here is my code. \documentclass{article} \usepackage{amsthm} \...
3
votes
1answer
26 views

How can I have a \newtheorem… environment refer to its thmnote?

I'm currently using \newtheoremstyle to produce the following output: Question: How can I easily modify my MWE (see below) so that the a's in my QED boxes say "Name of Thing", "A Different Thing", ...
0
votes
2answers
41 views

Is there a way to draw the little black square at the end of proof without using the environment \begin{proof}?

Is there a way to draw the little black square at the end of proof without using the environment \begin{proof}... \end{proof}? I know that one way is like says in this question but I'd like to know ...
4
votes
1answer
41 views

Displaymode-like theorem environment

I am having trouble recreating this theorem environment. I want to create an environment that is essentially on its own line, much like a block quote. The only code I have so far just makes the this ...
4
votes
1answer
55 views

Automatic \newpage before every theorem

Using amsthm package, is there an elegant way to automatically get a \newpage before every theorem? Edit: MWE featuring Christian Hupfer's suggestion \documentclass{article} \usepackage{amsthm} \...
2
votes
1answer
88 views

Automatic theorem list

In the accepted answer to Code between \begin{environment} and \end{environment} stored in an array it's shown how to create an automatic list of theorems using expl3 syntax. However the \...
0
votes
0answers
15 views

Are combine and newtheorem already working together?

I have the same problem as in this previous post: combine and newtheorem. Roughly, I cannot use the command \newtheorem when I am working within the combine class (see the previous post for a detailed ...
1
vote
1answer
46 views

Remove section number in references to theorems

How can I remove section number and subsections in references to theorems of the same, but not from various, subsection. For example, that would after such a code \documentclass{report} \usepackage{...
0
votes
1answer
19 views

Remarks are not italicized while using amsthm package

I am using the following code but the Remarks are not italicized while using amsthm package \documentclass[letterpaper, 10 pt, conference]{ieeeconf} % Comment this line out if you need a4paper %\...
1
vote
1answer
19 views

Change only the colour of the (bracketed part) of the title of a theorem

How may I change only the colour of the title of a theorem, i.e. the part that appears in brackets after say, "Theorem", "Definition" etc. when using the amsthm package? I have tried passing \color{...
0
votes
0answers
25 views

Extra space in Theorems', Lemmas', etc. title [duplicate]

I am using the following command to include a title (e.g. a citation) as the title of my lemma, \begin{lemma}[\cite{Mieghem11}] This is my lemma ... \end{lemma} but I'm getting an extra space ...
0
votes
0answers
23 views

Font in theorem-like environment: why is it different?

I noticed that the \itshape fonts are not the same in this picture: What is the "name" of the \itshape font in the theorem-like environment, in this case? How could I force the "normal" \itshape font ...
0
votes
0answers
22 views

Repeating Definitions

I'm using the following to create a new definition. \documentclass{article} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{definition}{Definition}[section] \begin{document} \begin{...
1
vote
1answer
12 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
70 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
29 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
47 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
55 views

table of contents like 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
255 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 ...
4
votes
2answers
62 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
129 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
39 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
39 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
1answer
40 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 ...
3
votes
1answer
55 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
17 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:...
2
votes
2answers
46 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
49 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
20 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
75 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
54 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
40 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
59 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
43 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
99 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
34 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
108 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
90 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
57 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
54 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
33 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{...
1
vote
1answer
114 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 ...