2

According to package documentation, adding "contents" as an argument should add the recipe titles to the TOC, but it's not working.

\documentclass[11pt, a4paper, openright]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage[nonumber, contents, index]{cuisine}
\usepackage{enumitem}
\usepackage{cclicenses}
\usepackage{makeidx}
\usepackage{nicefrac}
\makeindex
\begin{document}
[...]
\pagebreak

\tableofcontents*

\chapter{Lista de abreviaturas}
[...]
\mainmatter
[...]
\chapter{Massas e seus molhos}

\begin{recipe}{Massa de macarrão básica}{1 porção}{}
\ingredient[100]{g}{farinha de trigo}
\ingredient[1]{}{ovo}
[...]
\end{recipe}
\end{document}

Output:

enter image description here

1
  • Welcome! I guess we need to add \end{document} to get that to compile?
    – cfr
    Aug 15, 2017 at 3:50

1 Answer 1

1

Add

\setcounter{tocdepth}{2}

or (thanks to daleif's comment)

\settocdepth{subsection}

before \begin{document}. The package adds recipes as sub-sections, rather than sections, which is below the level which Memoir puts in the contents by default. Increasing that level solves the problem.

3
  • 1
    In memoir terms \settocdepth{subsection} might be even easier to understand (does the same)
    – daleif
    Aug 15, 2017 at 6:24
  • @daleif Thanks. I've edited with that line, which may well be easier, as you say. (I didn't know Memoir let you do that, so thanks for the information.)
    – cfr
    Aug 15, 2017 at 12:47
  • Please read what I wrote and compare 😉
    – daleif
    Aug 15, 2017 at 13:26

You must log in to answer this question.

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