Tag Info

Hot answers tagged

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 ...


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. ...


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{ ...


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

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} ...


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} ...


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 ...


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(}{)} ...


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 ...


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible