Skip to main content

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
2 votes
2 answers
64 views

What is the canonical way to add theorems to the table of contents?

I am writing a math paper and I would like to have my theorems, lemmas, corollaries and definitions appear in the table of contents. My original code looked essentially like this: \documentclass{...
Smiley1000's user avatar
3 votes
1 answer
62 views

Problem with unnumbered theorem

I would like to include an unnumbered theorem in my text. According to what I read, one needs to define a theorem environment using \newtheorem* instead of the usual \newtheorem. However, this seems ...
dicemaster666's user avatar
3 votes
1 answer
89 views

The action of \normalfont and \textit in the theorem heading

I want to write a document with a remark environment, and the caption "Remark" should be Italics, with no bold. I have tried three ways to declare it in the following example, namely remark, ...
Asigan's user avatar
  • 199
2 votes
1 answer
43 views

Problem defining environments using \newtheorem

I'm writing my thesis and I encountered a problem while trying to use amsthm and particularly trying to define new environments using \newtheorem. \documentclass[12pt]{report} \linespread{1.5} \title{...
Euler's user avatar
  • 21
0 votes
2 answers
47 views

Getting a rule on the left side of text that skips the first line of the environment using mdframed

I'm trying to get a definition environment where there's a rule on the left side of the text, except for the first line. I currently have the MWE below using mdframed, but I don't know how to skip the ...
George's user avatar
  • 215
1 vote
1 answer
24 views

How can I have common number (i.e., share a counter) between a tcolorbox theorem environment and a standard theorem environment?

I have a document where I want to have theorems formatted using the tcolorbox package, and propositions formatted using the default formatting from the amsthm package. However, I'd also like to have ...
Naysh's user avatar
  • 187
0 votes
0 answers
24 views

svproc and amsthm incompatibility

I am writing a paper that requires the document class svproc When running a MWE \documentclass{styles/svproc} \usepackage{amsthm} \begin{document} Hello \end{document} I get the following error: ...
betaros's user avatar
  • 11
1 vote
1 answer
55 views

namecref With theorem* Environments

I'm trying to refer to the name of an amsthm theorem* environment using cleveref's namecref command. However \documentclass{article} \usepackage{amsthm} \usepackage{cleveref} \newtheorem*{note}{Note} ...
Dave's user avatar
  • 315
2 votes
1 answer
36 views

Number a theorem with subsection-number. thm-number, without chapter number

I wish to number theorem in a report with x.y if the theorem is the y-th number in section x (of some chapter), without chapter number. In other words, I want the theorem be numbered like \newtheorem{...
Asigan's user avatar
  • 199
3 votes
2 answers
157 views

How to remove the space after the amsthm caption and the dot?

I've create an unnumbered amsthm environment problem, and a numbered amsthm environment example. Then I want to make the numbered example environment be unnumbered, so I typed \let\theexample=\relax (...
Axia's user avatar
  • 514
0 votes
0 answers
34 views

Brackets after Theorems, Propositions... with amsthm, potential conflict with another package

I need to use the class indicated (you may find it here) for a paper submission. However, this class has a weird syntax for the proofs in Theorems, Propositions, etc. (this is a known fact.) The usual ...
M. Serrano's user avatar
0 votes
1 answer
25 views

How to remove the extra space between the mdframed environments?

In contrast with the amsthm environments, the gap between mdframed environments are larger than that of amsthm. The MWE is the following \PassOptionsToPackage{svgnames}{xcolor} \documentclass{book} \...
Axia's user avatar
  • 514
4 votes
1 answer
91 views

Delete word "Proof" and punctuation in latex proof environment

I want to eliminate the word "Proof" that appears right after \begin{proof} ... \end{proof} The basic ideas: \renewcommand{\proofname}{} and \begin{proof}[] \end{proof} Do not work because ...
William M.'s user avatar
0 votes
0 answers
21 views

How to make the font of theorem number independent of the theorem head font

When using amsthm with the elsarticle class, font of the number after theorem head depends on its font. Here is an example: \documentclass{elsarticle} \usepackage{amsthm} \theoremstyle{remark} \...
Gau-Syu's user avatar
  • 473
1 vote
2 answers
50 views

Refering to a theorem by its name [duplicate]

So I've seen here that you can actually have a personnalized theorem environment name but I was wondering if there was a way to refer to it as is. I've chosen the solution \documentclass{article} \...
Jolia's user avatar
  • 93
5 votes
1 answer
117 views

\cref : "Argument of \textsf has an extra }."

So I have this bit of code \begin{ex} The prototype for an abelian category is $\Mod_R$, in fact every abelian category is equivalent to a full subcategory of $\Mod_R$ as we will see in \cref{FMET}...
Jolia's user avatar
  • 93
1 vote
1 answer
52 views

Using small caps in counters with `amsthm`?

I want to use lowercase small caps for all section titles. I also want to use old style figures, and in this case I'm using mathpazo. Now, suppose I add an appendix to a document and number theorems ...
apc's user avatar
  • 848
3 votes
2 answers
95 views

Custom proof environment: spacing issue with when optional argument given

Consider the following code, the purpose of which is to have a proof environment in which the "Proof." bit is bold. \documentclass{article} \usepackage{amsthm} \renewenvironment{proof}[1][...
Oxonon's user avatar
  • 147
4 votes
1 answer
118 views

Is possible to decrease the text margin of a theorem automatically?

I am writing a LaTeX document where I formatting a mathstatement environment as into the following code. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
Antonio Maria Di Mauro's user avatar
3 votes
1 answer
152 views

`section` is reset upon changing a chapter?

The amsthm documentation states: If any theorem elements are numbered by section, and (in a book) the first such element in a chapter comes before the first section, numbering will continue from the ...
Atom's user avatar
  • 665
4 votes
2 answers
201 views

How to recreate the "dangerous bend exercise" in TeXbook with `amsthm`

I'm typing a document right now and have a warning theorem environment, created with amsthm. What intrigues me is that Knuth's The TeXbook managed to put the "dangerous bend" symbol in front ...
Gargantuar's user avatar
  • 1,132
0 votes
1 answer
56 views

draftwatermark picks up italics from the top of the next page and produces Postscript, and no large smallcaps italics fonts are available in fix-cm

Feeding latex with \RequirePackage{fix-cm} \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsthm} \usepackage[text={\textsc{Confidential \ Draft}}, angle=53.2, fontsize={92.4pt}]{...
user avatar
1 vote
1 answer
70 views

Analogue of \proofname but for the word "Theorem" [duplicate]

Let's say I'm writing a macro which defines a proof-like environment for beamer. then I can use \proofname inside the definition, and the macro works fine with the default ("english") ...
Łukasz Grabowski's user avatar
2 votes
3 answers
148 views

Count theorems like Theorem part.chapter.number

I'm using the scrreprt documentclass, which provides parts and chapters. While I found solutions to enumerate theorems like Theorem chapter.section.number, I did not manage to obtain Theorem part....
Brauer Suzuki's user avatar
4 votes
1 answer
150 views

Unwanted horizontal space with Cref command from cleveref and amsthm

I have a problem with the presence of an unwanted space when I use amsthm and cleveref. The following is a MWE that highlights the issue. \documentclass{article} \usepackage[english]{babel} \...
Kolmin's user avatar
  • 559
4 votes
1 answer
340 views

LNCS proceedings template Command \proof already defined

Trying to put my paper into LNCS format and I don't know what the source of the error here is \documentclass[runningheads]{llncs} \usepackage{amsmath,amsthm,amssymb} \usepackage[algosection,ruled,...
Hao S's user avatar
  • 868
2 votes
1 answer
59 views

Removing Unnecessary Space from Equations within Custom Environments in thmtools

I'm facing an issue while writing my thesis. Whenever a theorem ends with an equation, an additional line is added. I have to use thmtools, and I'm unsure whether I should remove this space from the ...
Daniel Checa's user avatar
0 votes
1 answer
31 views

Start the example on a new line

I'm using the following code to write out examples and solutions in my book. However, I'd like to start the example in a new line after the heading. Currently, this is what I have as the output. \...
akasteve's user avatar
0 votes
0 answers
44 views

The name of my Theorem is not bold when I use default amsthm package settings [duplicate]

here is what I have done. I am only doing this minimal example just to make sure that I have not done any customization to override the default setting. However, in the output I get the name of the ...
RStudent's user avatar
1 vote
2 answers
47 views

Redefining theorem breaks nameref

I'd like to define a command \keyifythm{<envname>} which redefines an amsthm theorem environment to take a key-value optional argument. My approach below works, but for reasons I don't ...
mbert's user avatar
  • 4,216
3 votes
1 answer
157 views

Using lthooks to locally hook into command

Following a previous question of mine, as an exercise I'm trying to mimic the behavior of thmtools with amsthm using l3keys and lthooks. Now I am stuck on the hooks part. thmtools defines prehead, ...
mbert's user avatar
  • 4,216
1 vote
3 answers
64 views

Figures not indenting with a custom environment

For my homework questions, I have multiple questions which present proof-type and standard solution-type answers. So as something similar to the standard amsthm \begin{proof}....\end{proof} ...
Ammardian's user avatar
2 votes
2 answers
64 views

Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)

In most situations, the xurl package (presented here) ensures that long urls break across lines appropriately. However, inside the optional “caption” argument of a theorem, long urls stay unbroken, as ...
Peter LeFanu Lumsdaine's user avatar
1 vote
3 answers
187 views

How to force a line break right after the name of the proof environment?

I'm not experienced with LaTeX and so I couldn't really judge if this is a trivial fix. I want to have a proof-statement on it's own line. Currently, things get displayed like this: Beweis. G1 (a ∗ b) ...
Eldinur the Kolibri's user avatar
5 votes
4 answers
220 views

Passing macro parameters with \DeclareKeys/\SetKeys

Just as an exercise I'm trying to make a keyval interface to amsthm's \newtheoremstyle in the manner of thmtools, but using the kernel's \DeclareKeys instead of keyval and kvsetkeys. Every argument of ...
mbert's user avatar
  • 4,216
2 votes
1 answer
138 views

Restate all theorems & definitions?

I am new to this community, and unfamiliar with advanced latex use (e.g. creating packages, custom build scripts, post-processing scripts) so I apologize if my question seems unusual or overly simple. ...
davidleejy's user avatar
0 votes
1 answer
82 views

Place the QED symbol for a proof that ends with a figure on the same line of the figure caption

I have a figure at the end of a proof environment (see MWE below). I would like to have the QED symbol that ends the proof on the same line of the figure caption. Placing \qedhere after or inside \...
AEW's user avatar
  • 819
2 votes
1 answer
272 views

QED in LaTeX Proof Environment

When using the proof environment provided by the amsthm package, you get an empty square box at the end of your proof as the default QED symbol. Question: Is there a way to make it automatically put &...
Miles Gould's user avatar
0 votes
1 answer
59 views

Different numeration for Theorems

\documentclass{article} %\documentclass[16pt]{report} \usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{hyperref} \usepackage{...
RFZ's user avatar
  • 395
0 votes
1 answer
34 views

Unnumbering corollaries

I would like to number the corollary of the theorem “theorem 1.2.3.” such as “corollary 1.2.3.” Instead of “corollary 1.2.3.1.”. How can I do? I’m using amsthm package.
Claudio Costantini's user avatar
4 votes
1 answer
233 views

Problem using \qedhere inside alignat

As suggested by Barbara Beeton here, I am posting this as a new question. When a proof ends in a displayed formula, to have the QED symbol in the correct place you have to use \qedhere inside the ...
brad's user avatar
  • 527
1 vote
2 answers
52 views

How to use a variable in a thmnote

I'd like to have the "theorem name" of a theorem be populated using a variable. It isn't working as I had hoped, see below. I'm especially confused because I can successfully get the "...
macbeth's user avatar
  • 123
0 votes
1 answer
87 views

Numbering Theorems, Remarks, Examples etc. with a unique counter

I would like to have a progressive numbering of Theorems, Lemmas, Corollaries, Examples, Remarks, etc. within sections. While for equations I would like a numbering within chapters. Also, I would like ...
Fradns's user avatar
  • 151
0 votes
0 answers
32 views

How to see where a definition/example ends when using the parskip package?

I like to use the parskip package, making paragraphs separated by vertical space instead of by indentation. However, since (seemingly the same amount of) vertical space is also used in amsthm to ...
Lorents's user avatar
  • 171
2 votes
2 answers
254 views

Make Theorem header a link to proof environment

I have a similar question to (Making a theorem into a link) but I was not able to adjust it accordingly. I have some proofs in an appendix and I would like to have a theorem environment where the ...
bast3456's user avatar
1 vote
1 answer
137 views

Add a latex code before and after every \newtheorem

I define a few theorems with amsthm's \newtheorem, and I want to prepend and append an hrule for each one of them. Currently I do it with \AddToHook{env/〈env name〉/before}{hrule code} and \AddToHook{...
tush's user avatar
  • 1,145
1 vote
2 answers
94 views

Environment that detects if it contains a given command/string

I defined an environment that center and box a content. \newsavebox{\tempbox} %Allows to use fbox in newenvironment \newenvironment{result}[1][\textwidth] { \begin{center} %The box will be centered \...
Flowt's user avatar
  • 181
9 votes
2 answers
3k views

"Unknown theoremstyle" warning with Springer Nature template

As displayed in the table below, the Springer Nature journal article template (available through Overleaf here or from the Springer Nature website here) is supposed to have three predefined theorem ...
user143410's user avatar
4 votes
1 answer
132 views

Annoying top margin with recent versions of tcolorbox and amsthm

After installing a fresh TeXLive (2023), I noticed an annoying issue with margins when using amsthm environments inside tcolorboxes. On the left, the (expected) result I got before updating, on the ...
Koren's user avatar
  • 41
2 votes
1 answer
95 views

How to keep lists indented in proof environment?

I have the following proof environment: \begin{proof} \leavevmode \begin{enumerate} \item[Case 1:] $3\mid n$. Then $n=3k$ for some integer $k$. Thus $n^2 = 9k^2 = 3(3k^2)$, and so $3\mid n^2$. ...
Mailbox's user avatar
  • 279

1
2 3 4 5
15