Hot answers tagged

5

I'm not sure about the counter you want, but tcolorbox creates a \tcbcounter for each box and you can use for later reference. \documentclass{article} \usepackage[theorems]{tcolorbox} \usepackage{amsmath} \newtcbtheorem[number within=section]% {theorem} % \begin.. {Theorem} % Title {} % Style - default {theo} % label prefix; cite as ``theo:yourlabel'' \...


4

Grabbing the theorem 'BODY', i.e. the content between \begin{theorem}...\end{theorem} can be done with \RenewEnviron and the \BODY command. The \RenewEnviron command defines theorem to be a wrapper around the original version (which has been stored before into \let\theorem@@orig and \let\theorem@@origend command). The package environ provides the \BODY ...


4

As beamerposter is based in beamer class, let's dive a little bit inside beameruserguide. In page 16 we find: Therefore, we jump to section 12.4 Theorem Environments which starts with which means that all these environments are already defined as overlay-specification-aware in beamer. All these environments are like beamerblocks. If you don't want it, ...


4

Based on Christian's solution, I've introduced a magic number as left skip and the result looks like: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{xcolor} \newtcbtheorem[number within=subsection]% {theorem} % \begin.. {Theorem} % Title {%theorem style = margin apart, % Style enhanced, colback=white, colframe=lightgray, theorem ...


3

It's possible with a theorem name style and shifting a overlay out of the box with overlay={\node[...]} \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{xcolor} \newtcbtheorem[number within=subsection]% {theorem} % \begin.. {Theorem} % Title {%theorem style = margin apart, % Style enhanced, colback=white, colframe=lightgray, ...


2

I suggest you load the amsthm package and set up a new "theorem style" along the lines provided on page 10 of the user guide of the package's user guide. Then, place the citation command in the optional argument of the \begin{df}[...] instruction. The reason "?" is shown in the screenshot instead of, say, "5" is that I don't have access to the "wilson" ...


2

Let's assume the theorem in question has been defined with a package such as amsthm or ntheorem and that it's been given the "label" thm:abc. Two suggestions: Since you're loading the hyperref package, you could use the command \autoref{thm:abc} to cross-reference the theorem. In addition to loading the hyperref package, you could load the cleveref ...


2

As daleif mentionted: The numbering scheme can confuse readers, but here's a solution. The command \clevercnt checks whether (sub)section counters are greater than zero and uses the full format then, otherwise another, shorter format is used. \documentclass{book} \usepackage{amsmath} \usepackage{amsthm} \newtheorem{thm}{Theorem}[subsection] %\...


1

Update the title of the proof by supplying the appropriate reference as an optional argument: \documentclass{article} \usepackage{amsmath,amssymb,amsthm} \newtheorem{thm}{Theorem}[section] \newtheorem{cor}[thm]{Corollary} \newtheorem{defn}[thm]{Definition} \begin{document} \section{A section} \begin{defn} An integer~$n$ has odd parity (equiv.: ``is ...


1

Here's a better reimplementation; \mathrm will always choose upright medium, whereas \textrm will retain the settings of the font current outside the formula. Note some further refinements. See Better automatic spacing of differential d? for more information. \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \...



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