I have a number of "design principle" statements that I'm introducing throughout the document. I'm currently using a custom theorem environment defined using amsthm for them, but I'm happy to use something else if necessary.

The result is a lot of bits throughout the document that look like:

It should do stuff.

Which would then show up as "Principle 1: It should do stuff"

I would like to create a page at the end of the document which restates all of these principles in order (with links to them in context ideally), so the resulting page would look like:

Principle 1: It should do stuff.

Principle 2: And it should do it well

Principle 3: etc.

I've looked into using thmtools for this, but if it supports this I haven't been able to figure out how: listoftheorems will give me an index page for all theorems, but not show their contents, and restattheorem will allow me to achieve the desired effect for each individual entry but not for every entry in order.

1 Answer 1


What you're describing sounds kind like a glossary to me, so here's an attempt using the glossaries package. (Disclaimer: I really don't know much about glossaries in LaTeX).

Create the file example.tex below, then compile with:

>> pdflatex example.tex
>> makeglossaries example
>> pdflatex example.tex

(My text editor uses latexmk, which did all of that for me. But that's the command line version. I'm guessing that makeglossaries comes with most TeX distributions.)

Contents of example.tex:


\usepackage{amsthm} % for styling
\usepackage{environ} % allows access to environment body during definition



% Usage:
% \begin{principle}{labelName}
% content
% \end{principle}
% NOTE: labelName is required and should be unique---it's used
% to label the internal principleDefinition environment and is
% used as the glossary keys.
        name={Principle \ref{#1}},
    \glsadd{#1} % adds glossary entry printed list. 
\renewcommand*{\glstextformat}[1]{p #1}


    Cats are good, $\int f(x) dx$


    Dogs are good, $\sqrt{121}$

    Demons are bad, OK.



If the principle glossary seems not to be updating correctly, try deleting the auxiliary files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .