Questions tagged [newtheorem]
The `\newtheorem` command is used to create environments appropriate for typesetting theorems, lemmas, corollaries and similar structures, which are used in mathematical texts.
179 questions
0 votes
1 answer
32 views
How to access and modify theorem counter
For various reasons I need to access the theorem counter, increase it by once manually, and then continue with the normal counter. Here is a minimal NON-WORKING example to show what I have in mind: \...
2 votes
1 answer
81 views
How to define a macro which generates new custom amsthm theorem environments with manual numbering?
I'm currently trying to generalize user egreg's answer to a similar question where the asker wanted to create a new customized amsthm theorem environment which supports manual numbering in its ...
0 votes
0 answers
48 views
How can I get the Definition and Theorem environment like these in LaTeX [duplicate]
How can I get the Definition and Theorem environment like these in LaTeX? My original setting in the preamble is \documentclass[binding=0.6cm,twoside]{sapthesis} \usepackage{microtype} \usepackage[...
0 votes
1 answer
77 views
amsthm: modify indentation of proof head
I have a tex file: \documentclass{article} \usepackage{amsthm,mathtools,amssymb,enumitem} \usepackage{zref-clever} \zcsetup{cap=true,comp=false,sort=false} \newcommand{\addtheorem}[2]{% \AddToHook{...
2 votes
1 answer
112 views
Put a symbol at the end of every environment using \theoremstyle{definition}
I have a tex file: \documentclass[11pt]{amsart} \usepackage{zref-clever} \usepackage{stix,bera} \zcsetup{cap=true} \usepackage[hypertexnames=false]{hyperref} \hypersetup{ colorlinks=true, ...
2 votes
1 answer
36 views
Colored theorem in beamer [duplicate]
I like to use a certain style of beamer but when I try to use theorem environment I can not see the highlighting of the title of the theorem like I usually do. Here is my exemple code, in this I see ...
3 votes
1 answer
70 views
Caption of theorem overlaps with next line
I stumbled upon the following problem: I defined some theorem environments and I prefer the theoremstyle break. If the following line contains a formula like a sum, then it might overlap with the ...
4 votes
1 answer
312 views
Unnumbered Remark in Scientific Workplace
I use Scientific Workplace 5.5, and I'm interested in making Remark unnumbered. By default, Preamble contains \newtheorem{remark}[theorem]{Remark} I changed this to \newtheorem{remark}{Remark} which ...
0 votes
1 answer
42 views
Issue with \ekvcSecondaryKeys: why my usage cause errors?
I meet a strange issue when using \ekvcSecondaryKeys. Here is my MWE: \ekvcSplit\NewTheorem{% name=,%#1 numberlike=,%#2 display=,%#3 numberin=,%#4 refname=,%#5 Refname=,%#6 style=,%#7 }{%...
3 votes
1 answer
159 views
\newtheorem problems if I don't label chapter
I discovered a very strange behavior. If you run the following code, you will get an error (I use TexStudio and TexLive on a Mac M1): \documentclass{book} \usepackage{amsthm} \usepackage{hyperref} \...
1 vote
1 answer
54 views
How can customise Definition environment to a specific style?
I want to add the definition number inside a blue box, as shown in the image. I've tried several approaches but haven't been successful. Any suggestions on how to do this? Thanks \documentclass[10pt]{...
3 votes
1 answer
102 views
Strange error during the use of `\newtheorem`
Yesterday I went back on adding more content to some informal notes I started to write long ago. The main file including the preamble with all definition used (and possibly something more) is shown ...
2 votes
1 answer
86 views
Connected counters
The basic idea is that I am going to have examples of english sentences and then alternative formalizations of them. I want an arabic counter (‘eg’ in MWE) for the english sentences and an ...
2 votes
1 answer
592 views
Define your own “list of …”
I'm currently working on a book, and I want to create a list of examples. I tried lots of solutions available online, but none suited me well - see for example: https://texblog.org/2008/07/13/define-...
4 votes
1 answer
155 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. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...