New answers tagged

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


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


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


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


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


0

Tcolorbox did the job with the following: \usepackage[theorems]{tcolorbox} \tcbset{ theostyle/.style={ fonttitle=\bfseries\upshape, fontupper=\slshape, before skip=\baselineskip, arc=0mm, boxrule=0mm, left=0mm, right=0mm, coltitle=black, colback=pale, colframe=lightblue!30, breakable, description delimiters ...


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


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


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


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] %\...



Top 50 recent answers are included