I am having a weird problem when trying to produce a mini-toc in each of my chapters in a book I am doing.
I have full TeXLive distribution, and I run Linux. I used the terminal and ran the kpsewhich minitoc.sty to confirm it does have the minitoc package installed.
I can add \usepackage{minitoc} just fine, but when I try to add \dominitoc
before my \tableofcontents command as you're supposed to, it shows up red and TeXStudio does not recognize it. Same happens when you try and add \minitoc after \chapter{}.
I have separate .tex files for each chapter and I am using \include (if that is relevant).
Has anyone experienced this on TeXStudio (5.9.5) on Linux (Ubuntu 18.04) yet?
These are the other packages I'm using:
\documentclass[a4paper,12pt,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{scrextend}
\usepackage{siunitx}
\usepackage[bottom]{footmisc}
\usepackage{mathtools}
\usepackage{enumitem}
Are some of them incompatible with minitoc perhaps?
It is doing something similar when I try to use the titletoc package instead. You can add the package just fine, but when you try to use the associated commands, it is unrecognized.
Edit: upon compiling, it does not produce the mini-toc. It does create auxiliary files though.
.cwlfile (auto completion file) for the package in question. See also https://tex.stackexchange.com/q/47493. If the document compiles without error you can just ignore it. – Torbjørn T. Sep 15 '19 at 20:58minitocpackage at the end, and then\begin{document} \dominitoc \tableofcontents \chapter{f} \minitoc \section{b} \section{c} \end{document}I do get a minitoc. Does that work for you? Do you compile twice? – Torbjørn T. Sep 15 '19 at 21:09