New answers tagged

5

I think that you are looking for output that looks something like this: Assuming so, then the code below does this. \documentclass{article} \usepackage{amsmath, amsthm, amssymb, thmtools} \declaretheorem[numberwithin = section]{theorem} \declaretheorem[sibling = theorem, style = definition]{definition} \declaretheorem[sibling = theorem]{lemma} \...


4

You can (ab)use the \pushQED and \popQED structure defined in amsthm: \documentclass{article} \usepackage{amsmath,amsthm} \theoremstyle{definition} \newtheorem{probleminner}{Problem} \newenvironment{problem}[1] {\pushQED{\formatsource{#1}}\probleminner} {\popQED\endprobleminner} \newcommand{\formatsource}[1]{% \leavevmode\unskip\penalty9999 \hbox{}\...


Top 50 recent answers are included