2
votes
2answers
70 views

Counters for Chapter and Section environments when using tcolorbox for listings

This is a followup question of this question. With my MWE I'm getting wrong Listing numbers, wrong toc (including Chapter and Section environments from listings) and wrong bookmarks in pdf toc. Any ...
2
votes
1answer
35 views

How to define a custom environment caption for table of contents?

I want to define a custom environment example. This is not a problem at all, the only thing I humble upon is the caption (short title below the element) and its listing in the table of contents or ...
4
votes
1answer
252 views

Multiple caption names for listings code (lstinputlisting) based on type of code

In my document I have used: \renewcommand\lstlistingname{Algorithm} \renewcommand\lstlistlistingname{Algorithms} to rename my lstlistings titles. The problem is that now I want to add a different ...
7
votes
2answers
158 views

How to add an environment in the table of contents?

For example, if I use amsbook document class and have the section Problems, how to include problem environments created like: \documentclass[a4paper,12pt, reqno, oneside]{amsbook} ...
6
votes
1answer
186 views

A list of all the labelled sentences

I keep adding a class of sentences in different areas of my tex: \section{...} ... sentence1 ... \subsection{...} ... sentence2 ... \section{...} ... sentence3 ... I would like to make a add ...
5
votes
1answer
232 views

write contents of an environment to document and toc

I want to write the contents of an environment to the document and the toc. Here's a MWE hacked to look (almost) like what I need. \documentclass[pdftex,12pt]{book} \usepackage{hyperref} ...
2
votes
2answers
293 views

Custom list of environments (per section)

I'd like to have a list of my custom environments at the start of each section. I read this post, but wasn't able to get the titletoc to help me. The given response worked for floats, but I couldn't ...
7
votes
3answers
605 views

Generating lists of custom environment.

I've created my own environment example, similar to theorem. Now I want to generate a list of examples, similar to list of tables or list of figures. How can I achieve this?
6
votes
3answers
1k views

Number mhchem reactions and create a \listofreactions

Is there a way to create an environment for reactions defined with mhchem that behaves similarly to equation in terms of numbering the reactions (including a \nonumber command)? Can I get a list of ...