# Tag Info

## New answers tagged theorems

3

I do not know the best practises for theorems, but the normal way is that you need at least one \item outside the math mode. Please have a look on my second example which is the correct syntax here. % arara: pdflatex \documentclass{article} \usepackage{mathtools,amsthm} \newtheorem{theorem}{Theorem}[section] \begin{document} \begin{theorem} ...

3

here is a modified example, nearly the same as the original, except with % signs following all the non-final lines of the \newtheoremstyle definitions, and a more comprehensive styling in the last line of the mylemma style; although overkill, it's the easiest way to get around the "bold period" problem. also shown is the equivalent material in default style ...

3

You just have an unprotected end-of-line. The other effects can be cured by adding appropriately \normalfont. \documentclass{amsbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \makeatletter \newtheoremstyle{mytheorem} {6pt plus 0pt minus 2pt} {0pt plus 0pt minus 2pt} {\slshape} {}{\scshape} {.} {5pt plus 1pt minus 1pt} {\thmname{#1}\thmnumber{ ...

1

You can move some of the commands in to the then or else parts of the test of the third argument #3. \documentclass{amsbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{etoolbox} \newtheoremstyle{mytheorem} {6pt plus 0pt minus 2pt} {0pt plus 0pt minus 2pt} {\slshape} {}{\scshape} {.} {5pt plus 1pt minus 1pt} {\textnormal{\bfseries ...

0

Input an explicit space (\ followed by a space) after header, for example \documentclass[10pt,a4paper]{article} \usepackage{amsthm} \newtheorem{proposition}{Proposition} \begin{document} \begin{proposition}[header]\ \begin{enumerate} \item first \item second \end{enumerate} \end{proposition} \end{document} ...

1

A solution based on ntheorem, mathtools and etoolbox: \documentclass[twoside,a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsfonts} \usepackage[hmargin=3cm]{geometry} \setlength\parindent{1.1cm} \usepackage{microtype} \usepackage{mathtools, amssymb} \newtagform{bold}{\bfseries(}{)} ...

2

This might be an approximation to your wish; however, I find the numbering scheme too fussy: I see no reason for statements to be numbered under notes. If \newnote is immediately followed by \begin, a theorem-like statement is assumed. \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage{chngcntr} \usepackage{lipsum} ...

1

Only preliminary solution... indentation not done yet. \newtheorem{foo}{Foo}[section] will define an environment named foo, titled Foo and a counter named (you guess it -- foo ;-)), which is reset each time the section counter is stepped. \newtheorem{otherfoo}[foo]{Otherfoo} will define an environment named otherfoo, titled Otherfoo and no counter -- it ...

4

Andrew Swann’s answer is probably what I too would do in practice. Having said that, I think that, for future reference, it is fair to mention as well the fact that the amsthm package lets you define new theorem styles, by means of the \newtheoremstyle command. From a “theoretical” point of view, this approach is perhaps neater, and surely more general. ...

3

amsthm.sty contains \def\th@remark{% \thm@headfont{\itshape}% \normalfont % body font \thm@preskip\topsep \divide\thm@preskip\tw@ \thm@postskip\thm@preskip } so you can copy this and replace \itshape by \bfseries. You have to include the resulting code between \makeatletter...\makeatother because of the @ in the macro names. ...

0

\documentclass[a4paper]{report} \usepackage{amsthm,amsfonts} \newtheorem{theorem}{Theorem}[chapter] \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}{Definition}[chapter] % -------------------------------------------- % -------------------------------------------- % Select the appropriate switch depending on ...

9

The \newtheorem command has two mutually exclusive optional arguments, their meaning depending on the position: \newtheorem{foo}{Foo} defines the environment foo, a counter named foo and entitles it Foo \newtheorem{foo}[otherfoo]{Foo} defines the environment foo, uses (shares) the already existing counter otherfoo and the title Foo ...

2

The \text command uses the font current outside the math formula, in this case italics because you're inside a theorem statement. Use \textnormal or \mathrm. \documentclass{article} \usepackage{amsmath,amsthm} \newtheorem{proposition}{Proposition} \newcommand{\tsb}[1]{\textnormal{#1}} \begin{document} \begin{proposition} The memory requirements for the ...

3

It is important to understand the optional arguments to \newtheorem. \newtheorem{claim}{Claim} produces "Claims" numbered 1,2,3,... throughout the document. With a final optional argument \newtheorem{claimproof}{Proof of claim}[claim] produces numbers X.1,X.2,X.3,... where X is the number of the previous claim. For correct numbering of your Claims ...

3

before skip and after skip provide such spaces. You will not notice them if they are too small. \documentclass{report} \usepackage{tcolorbox} \tcbuselibrary{theorems} \newtcbtheorem[number within=section]{mytheo}{My Theorem} {colback=green!5,colframe=green!35!black,fonttitle=\bfseries,before skip=20pt plus 2pt,after skip=20pt plus 2pt}{th} ...

2

Do before and after options serve to you? They are explained in section 4.15 Embedding into the Surroundings, page 75. \documentclass{report} \usepackage{tcolorbox} \tcbuselibrary{theorems} \newtcbtheorem[number within=section]{mytheo}{My Theorem} {colback=green!5,colframe=green!35!black,fonttitle=\bfseries, before={\vspace{2cm}}, after={\vspace{1cm}}}{th} ...

Top 50 recent answers are included