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
0 votes
1 answer
35 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}]{...
AlMa0's user avatar
  • 479
1 vote
1 answer
57 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
137 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
137 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
90 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
  • 848
2 votes
1 answer
55 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
25 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
41 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
33 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
  • 3,348
3 votes
1 answer
111 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
  • 3,348
1 vote
3 answers
51 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
52 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
177 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
171 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
  • 3,348
2 votes
1 answer
105 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
45 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
0 votes
0 answers
34 views

Latex ignores newline in theoremstyle

Based on various questions online I included the following in my preamble \newtheoremstyle{break}% name {\topsep}% Space above, empty = `usual value' {\topsep}% Space below {\itshape}% Body ...
AlexConfused's user avatar
2 votes
1 answer
177 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
58 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
  • 333
0 votes
1 answer
23 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
181 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
  • 517
1 vote
2 answers
35 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
53 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
28 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
  • 154
2 votes
2 answers
146 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
128 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,103
1 vote
2 answers
85 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
5 votes
1 answer
1k 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
79 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
48 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
  • 267
0 votes
1 answer
58 views

Set qed-symbol aligned with an enumerate/align environment

When my proof end with an enumeration resp. a formula, the qed-symbol is set in a new line. But I want it to be in the last line of the enumeration resp. the formula. Here is what is looks like: Here ...
mathquester's user avatar
0 votes
0 answers
31 views

No Space between theorem and proof [duplicate]

When I end a theorem and start a proof, there is a gap between them. Like here: I don't want this gap. Is there a proper solution so that I can just deactivate this behavior for the whole document? ...
mathquester's user avatar
3 votes
1 answer
121 views

What do \pushQED and \popQED do?

I have seen the commands \pushQED and \popQED used in quite a few examples, many connected with the amsthm proof environment, but I cannot find any documentation explaining what they actually do or ...
Joel Croteau's user avatar
0 votes
1 answer
83 views

Problem in compiling the .tex file while using \usepackage{amssymb,amsmath} in TeXstudio (edited)

Me and my professor together writing a paper for IEEE Transactions on signal processing. He gave me my paper's .tex and .pdf files to make some changes. But I could not compile the given .tex file ...
shashank ranjan's user avatar
1 vote
0 answers
47 views

Removing the ".1" part in the numbering of a remark, if it is the unique remark following some theorem

I'm using the amsthm package and thmtools package to format my manuscript. I'm numbering remarks within theorems, that is, having Remark 2.1., Remark 2.2. and so on after Theorem 2. However, when only ...
Dustrain's user avatar
0 votes
1 answer
55 views

newsiamthm without a sibling?

I am using the SIAM Latex template, and I wanted to create a thm-like environment which has distinct numbering from all the other tho-like environments (which are all siblings by default). I cannot ...
Sid Jain's user avatar
0 votes
2 answers
34 views

How can I align bullet pointed examples within one example in the amsthm environment?

I am using amsthm to label examples. Rather than have each subsequent example separately, I would like to bullet point multiple examples within one labelled "example." So for instance, I ...
Christopher Gourlay's user avatar
5 votes
2 answers
139 views

Two crefname for the same item

I would like to make this procedure faster. I have a theorem with its crefname. In this theorem, I have an enumerated list. I want to associate to each item two different labels, in order to produce ...
Luca Benatti's user avatar
5 votes
2 answers
147 views

sub-examples in amsthm

I'm using the newtheorem macro in amsthm for example environments. Is there a way for a sub-example? I don't need anything fancy like indenting, just a new counter level would do. So that within say ...
kara890's user avatar
  • 53
0 votes
1 answer
43 views

Integral sign produces error if AMS theorems module is'nt used

I have a document in LyX Tufte-book class with the following preamble: \usepackage{xcolor} % for colour \usepackage{physics} \usepackage{caption} % add numbers to chapters, sections, subsections \...
kobaltishblue_312's user avatar
1 vote
1 answer
102 views

Cleveref and tcolorbox for theorems that share a counter

I'd like to have different theorem environments share the same counter using tcolorbox in beamer. However cleveref doesn't seem to pick up their names correctly. Can anyone point me to what I'm doing ...
samjindani's user avatar
0 votes
0 answers
35 views

`enumitem` with two different references

My goal is the following: Suppose I have an enumerated list inside a theorem environment using amsthm. Then I would like to reference the items inside the theorem itself or in the following proof via ...
Gargantuar's user avatar
1 vote
1 answer
41 views

Line break after definition

I use the following to have shaded definitions: \colorlet{shadecolor}{orange!15} \declaretheoremstyle[ headfont=\normalfont\bfseries, notefont=\mdseries, notebraces={(}{)}, bodyfont=\normalfont, ...
mc.math's user avatar
  • 15
2 votes
1 answer
118 views

Define a thmtools theorem in beamer

I want to use thmtools inside a beamer document, to style theorems. The MWE below gives the following error: Command \theorem already defined. Or name \end... illegal, see p.192 of the manual. How ...
tush's user avatar
  • 1,103
5 votes
2 answers
176 views

Letterspace theorem head: “T h e o r e m 1” (perhaps with amsthm, textls)

I’m trying to reproduce some old typography (a German article from 1925). In particular, its theorem and proof heads are distinguished by increased letterspacing, as for “Satz 1” here: In text, this ...
Peter LeFanu Lumsdaine's user avatar
2 votes
2 answers
38 views

Remove citation from nameref

I have some theorems/lemmas which have a reference in their name, like this: \begin{lemma}[Park's Lemma~\textnormal{\protect{\cite{park}}}]\label{lemma:parks-lemma} This is Park's Lemma \end{lemma}...
Tom's user avatar
  • 117
1 vote
3 answers
85 views

A theorem style with only a parenthesized number label

I am looking to create a theorem-like environment using the AMS LaTeX system which consists of just a parenthesized number: no other declaration like theorem, lemma, etc. Other properties (spacing ...
ol so-n-so's user avatar
3 votes
1 answer
121 views

How to create a proof environment with a different typeset name in addition to the original proof environment?

Picking up on this comment, how can I define a proof environment with a different typeset name than "Proof" (say, "Explanation") in such a way that the new environment coexists ...
Evan Aad's user avatar
  • 10.9k
0 votes
1 answer
85 views

LaTeX Error: Too many symbol fonts declared. when I try to include newtx

I am using following complete-template at overleaf Elsevier's CAS LaTeX Double-Column Template - Overleaf. Whey I try to add newtx package using \usepackage{newtx}, I get a compilation error. bare ...
alper's user avatar
  • 1,327
0 votes
1 answer
38 views

Symbol for end of proof in enumerated proof envioronment [duplicate]

With a simple proof environment as follows, \documentclass{article} \usepackage{amsmath, amsthm} \vspace{-5pt} \begin{document} \begin{proof}~\\ \item First line \item ...
Frode Alfson Bjørdal's user avatar

1
2 3 4 5
15