The Stack Overflow podcast is back! Listen to an interview with our new CEO.
4

You mentioned in a comment that I used a \newtheorem{theorem}{Theorem}[section] command [in the preamble]. But I don't know which counter to use for what I want. Some comments and observations: If you run \newtheorem{theorem}{Theorem} in the preamble, then theorem is both the name of the environment and the name of the counter associated with that ...


4

You have two main options: \cref (provided by the cleveref package) and \autoref (provided by the hyperref package). Aside: If you don't want to make the cross-references into hyperlinks to their linked-to objects, just write \Cref*{...} and \autoref*{...} instead of \Cref{...} and \autoref{...}. \documentclass{article} % 1. load 'hyperref' after `amsthm` ...


4

Use \protect\makefirstuc, but in the definition of \ll@theorem: \documentclass{article} \usepackage{suffix} \usepackage{textcase} \usepackage{amsthm} \usepackage{thmtools} \usepackage{mfirstuc} \renewcommand{\listtheoremname}{List of Important Theorems} \renewcommand\thmtformatoptarg[1]{#1} \swapnumbers \makeatletter % \declaretheoremstyle[ headfont= \...


4

The following should be close to what your desired output looks like: \documentclass{article} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{defn}{Definition} \usepackage{enumitem} \begin{document} \begin{defn} Let G be a group. \begin{enumerate}[label=(\roman*)] \item first \item second \end{enumerate} \end{defn} \end{document}


2

You have to define also \ll@proposition. Add \let\ll@proposition=\ll@theorem before \makeatother. The command is defined, but since you change the way they are supposed to work normally, you need to redefine all of them.


1

If you make sure that \NoCaseChange is protected you can use the macros from Heiko Oberdiek's refcount package for defining your own nice macro where it is ensured that the phrase forming the desired name is extracted by means of expansion before being passed to \MakeTextLowercase: \documentclass{article} \usepackage[left=0.75in,right=0.75in]{geometry} \...


1

If you're willing to use cleveref, then also loading crossreftools allows you to determine the counter in question by referencing just any one theorem-like environment by its label: \documentclass{article} \usepackage{ntheorem} \newtheorem{theorem}{Theorem}[section] \newtheorem{prop}[theorem]{Proposition} \usepackage{cleveref} \usepackage{crossreftools} \...


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