Tag Info

New answers tagged

1

One option to solve this is by 'brute force': since there exists the generic block environment for beamer classes, we can do the following: \begin{frame} \begin{block}{Proof} Here is the first part of my proof. \end{block} \end{frame} \begin{frame} \begin{block}{} This is where my proof continues, and ends. \qed ...


6

Here's one possibility: \documentclass{article} \usepackage{xcolor} \usepackage{xparse} \usepackage{shadethm} \newshadetheorem{env1}{Theorem} \newshadetheorem{env2}{Lemma} \newshadetheorem{env3}{Proposition} \NewDocumentEnvironment{lemma}{o} {\definecolor{shadethmcolor}{RGB}{244,156,124}% \IfNoValueTF{#1} {\begin{env2}} ...


4

Extending touhami's idea, but making it work also for nonstandard chapter numbers (like for theorems in an appendix), I make \p@theorem expand to \compare@theorem{\thetheorem}, where \compare@theorem is a protected macro; thus only \thetheorem is expanded when writing to the .aux file. The macro \compare@theorem uses \pdfstrcmp (under the abstraction ...


3

The following solution weighs way more than the rather clever approach of @touhami; in exchange you gain more flexibility regarding changes to the theorem interface. How to use it: After defining a new theorem environment using \newtheorem you can use the new command \theoremnum to specify a numbering that is indipendent from the reference mechanism. (The ...


2

This will turn off top floats for the duration. The default for article class is 2, but amsclass uses 4. Use \makeatletter\the\c@topnumber\par\makeatother to find out. \documentclass{article} \usepackage{mwe} \begin{document} \lipsum[1-3]% at least 0.7 of first page \begin{figure}[t]\includegraphics{example-image-a}\end{figure} ...


6

Here is what you want Theorem's label \renewcommand{\thetheorem}{\arabic{section}.\arabic{theorem}} LaTex uses a prefix \p@counter for cross-referencing i.e. a reference to a theorem produce \p@theorem\thetheorem in this case \p@theorem= null inside chapter and \p@theorem=chapter number outside. \p@theorem=\ifnum\thechapter=chapter of ...


2

You can do that easily with ntheorem: \documentclass[]{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{ntheorem} \usepackage{thmtools} \usepackage{lipsum} %\declaretheoremstyle[ % spaceabove=\topsep, % spacebelow=\topsep, % headfont=\normalfont\bfseries, % notefont=\normalfont\mdseries, %% notebraces={$\lbrack$}{$\rbrack$}, % ...


1

The file amsthm.sty has explicit (...) for the note and thmtools.sty (better, thm-amsthm.sty) relies on this. I suggest changing the delimiters, rather than bracing them, because also \NOTE uses it and only changing \thmhead@plain is not sufficient. \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \makeatletter %%% ...


2

Option notebraces replaces the parentheses with the given symbols with the help of macro \thmt@embrace: \def\thmt@embrace#1#2(#3){#1#3#2} Argument #1 and #2 are the new open and closing braces, \thmt@embrace is fed with the full title inclusive standard parentheses, which are detected by the parameter text (#3). However, in this case, #3 already contains ...


3

With enumitem use this code: \begin{enumerate}[label=\arabic*,font=\upshape] \item … \end{enumerate} Or even, if you don't want to have to type the optional argument each time, add this to your preamble: \usepackage{enumitem} \usepackage{etoolbox} \AtBeginEnvironment{theorem}{\setlist[enumerate,1]{label=\arabic*,font=\upshape}}


2

When using either the ntheorem or the amsthm package to declare theorem-like environments, it's important to make use of the following rules of syntax when using \newtheorem: If you want the counter of a theorem-like environment to be subordinate to, say, the section number, use a directive such as \newtheorem{theorem}{Theorem}[section] i.e., the ...


2

There are several problems; the first two are the main ones: You need to load thmtools after amsthm. Since you used \declaretheoremstyle for the shaded style, you need to define your structures using \declaretheorem instead of \newtheorem, and pass the shaded style as an option to the style key instead of using \theoremstyle. Load hyperref in the last ...



Top 50 recent answers are included