Tag Info

New answers tagged

2

I (sort of accidentally) discovered that simply using \item immediately after \begin{theorem} can achieve the desired effect. For example, try \begin{theorem}[Name of Theorem] \item This is a theorem with multiple parts. \begin{enumerate} \item stuff here. \item and here. \item and here, as well. \end{enumerate} \end{theorem} I haven't ...


0

Shaded theorems in thmtools are implemented with the shadethm package, not mdframed. You can do the shading with mdframed instead by passing the option mdframed={backgroundcolor=LightGrey} to the theorem declaration. This will allow page breaks in the defintion and gives output as in the sample below. If the options you want to pass to mdframed are ...


0

Firstly, if you are being asked to use a standard template then you should not change the defaults. Otherwise, there are two approaches. Approach 1 In IEEEtran version v1.8a, theorem titles are italic by default, unless you use the compsoc option, which gives a bold italic title. If you add this option then a minimal document with a theorem gives the ...


3

You're almost there: the environment should have an argument, but the inner theorem environment should be declared with \newtheorem*, with a “variable part” in the name that's set when the environment is opened. \documentclass[xcolor=x11names,compress]{beamer} \usepackage{xcolor} \usepackage{framed} \usepackage{amsthm} \usepackage[utf8]{inputenc} ...


1

Theorem-like environments should be defined, with the svjour3 class, by using \spnewtheorem and not \newtheorem. Here's how you should do: \documentclass[smallextended,referee,envcountsect]{svjour3} \usepackage{amsmath} \usepackage{bm} \smartqed \journalname{foo} % Theorem-like environments are defined with \spnewtheorem % % Usage: % % ...


5

I'd locally patch the \@thm command in the example environment. Of course you won't be able to state theorems correctly inside the environment, but I don't think you would. \documentclass{amsart} \usepackage{etoolbox} \usepackage{lipsum} \theoremstyle{definition} \newtheorem{innerexample}{Example} \makeatletter ...


4

Here is a solution based on changemargin environment Edit: This does not answer the question of displayed equations \documentclass{amsart} \newtheoremstyle{ugh} {3pt}% hSpace above {3pt}% hSpace below {}% hBody font {}% hIndent amount {\bfseries}% hTheorem head font {:}% hPunctuation after theorem head {.5em}% hSpace after theorem head {}% hTheorem head ...


2

This code compiles fine with MiKTeX: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \newtheorem{afnSpace}{Definition}[section] \newtheorem{frameDef}[afnSpace]{Definition} %Actually 5th definition \newtheorem{frameDef s1}{Definition}[afnSpace] \begin{document} \setcounter{section}{1} \section{Affine ...


2

Just fill in the necessary parameters. \documentclass{article} \usepackage{amsthm} \newtheoremstyle{theoremdd}% name of the style to be used {\topsep}% measure of space to leave above the theorem. E.g.: 3pt {\topsep}% measure of space to leave below the theorem. E.g.: 3pt {\itshape}% name of font to use in the body of the theorem {0pt}% measure of ...


2

So you want a Borbaki style layout? It's easy to do with the ntheorem package: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[small]{titlesec} \titleformat{\section}{\normalsize\bfseries}{\thesection.}{0.5em}{} \usepackage[ thmmarks, thref]{ntheorem}% \usepackage{chngcntr} \usepackage{cleveref}% ...


0

Supposed to be a comment but there this can't be put. I can't reproduce the issue. This is what I get with the following code. \documentclass{book} \usepackage[spanish,english]{babel} \usepackage{amsmath,amssymb} \usepackage[framemethod=TikZ]{mdframed} \mdfsetup{skipabove=\topskip,skipbelow=\topskip} \newcounter{theo} \newenvironment{theo}[1][]{% ...


0

The code you posted is missing the \documentclass{...} command. This code compiles well on my machines (with the distros TeXLive 2014 and MacTeX 2014). \documentclass{article} \usepackage[many]{tcolorbox} \newtcbtheorem[number within=section]{mytheo}{My Theorem}% {colback=white,colframe=blue!50, fonttitle=\bfseries,enhanced, ...



Top 50 recent answers are included