Discussion:
BUG - in minitoc 2017
(too old to reply)
Sharon Kimble
2017-07-01 08:27:53 UTC
Permalink
Raw Message
I've discovered a bug in minitoc under TeX-live 2017.

Basically, a document built with say 24 chapters, and a minitoc in all of
them only compiles 'doc.maf', 'doc.mtc' and 'doc.mtc0' and nothing else.

The same document running under TeX-live 2016 compiles all 24 minitocs
with no problems at all.

Hence my assertion that there is something wrong with minitoc under
TeX-live 2017.

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
Uwe Siart
2017-07-01 10:26:14 UTC
Permalink
Raw Message
Post by Sharon Kimble
Hence my assertion that there is something wrong with minitoc under
TeX-live 2017.
minitoc.sty in TL17 dates: [2015/07/13 v61 Package minitoc]

So I suspect that TL16 and TL17 package the same version of minitoc and
that something else goes wrong.
--
Uwe
Sharon Kimble
2017-07-01 12:41:04 UTC
Permalink
Raw Message
Post by Uwe Siart
Post by Sharon Kimble
Hence my assertion that there is something wrong with minitoc under
TeX-live 2017.
minitoc.sty in TL17 dates: [2015/07/13 v61 Package minitoc]
So I suspect that TL16 and TL17 package the same version of minitoc and
that something else goes wrong.
It seems very strange that 'file a' with 20 chapters doesn't compile 20
minitocs with TeX-live 2017, and yet the same file does compile 20
minitocs with TeX-live 2016!

In fact, every file on this computer that uses minitocs works exactly as
in the preceding paragraph.

So yesterday I spent most of the day dissecting my current projects main
file trying to see if any one particular package was causing the
problem, but I found nothing. So this morning I tried the main project
file with TeX-live 2016 and with it everything was compiled. Hence my
bug report.

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
Ulrike Fischer
2017-07-01 13:52:30 UTC
Permalink
Raw Message
Post by Sharon Kimble
Hence my assertion that there is something wrong with minitoc under
TeX-live 2017.
Why don't you show the code so that someone else can try out without
having to spent a lot time to build a test document?
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Sharon Kimble
2017-07-01 21:02:34 UTC
Permalink
Raw Message
Post by Ulrike Fischer
Post by Sharon Kimble
Hence my assertion that there is something wrong with minitoc under
TeX-live 2017.
Why don't you show the code so that someone else can try out without
having to spent a lot time to build a test document?
Thanks Ulrike.

This is the preamble that I'm using with both TeX-live 2016 and also 2017. Is this what you meant?

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper,11pt,oneside,openany,british,svgnames,dvipsnames]{report}


\usepackage{imakeidx}
\usepackage[a4paper,left=25mm,right=25mm,top=25mm,bottom=30mm,footskip=5mm,headsep=2mm]{geometry}
\input{/home/boudiccas/research/death17/titlepage}
\usepackage[backend=biber,style=authoryear,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex}
\addbibresource{/home/boudiccas/research/hormones/hormones18/hormones18.bib}
\input{/home/boudiccas/research/codebase}
\makeindex[title=General Index,options=-s ./index.ist,columnseprule,intoc]
\makeindex[name=horm,title=Index of Hormones,options=-s ./index.ist,columnseprule,intoc,columns=2]
\makeindex[name=side,title=Index of Hormones Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
\makeindex[name=other,title=Index of Other Drugs Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
\makeindex[name=inter,title=Index of Interactions,options=-s ./index.ist,columnseprule,intoc,columns=2]
\usepackage{hyperref}
\hypersetup{linktoc=all,colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}}
\usepackage[toc,nopostdot,style=listgroup]{glossaries}
\input{hormones18.glos}
\makeglossaries
\glsenablehyper
\renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}}
\usepackage[hide]{todo}
\usepackage[firstpage]{draftwatermark}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\usepackage{everypage}
\usepackage{booktabs}
\usepackage[mark]{gitinfo2}
\usepackage[T1]{fontenc}
\usepackage{charter}
\usepackage{microtype}
\usepackage{wasysym}
\usepackage{upgreek}
\usepackage{pifont}
\usepackage{textgreek}
\usepackage{bookmark}
\usepackage{color,soul,xcolor}
\newcommand\reduline{\bgroup\markoverwith{\textcolor{red}{\rule[-0.75ex]{2pt}{1.5pt}}}\ULon}
\usepackage{caption}
\setlength\parindent{0pt} % sets indent to zero
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
\usepackage[Lenny]{fncychap}
\usepackage[toc]{multitoc}
\usepackage{minibox}
\renewcommand{\footnotesize}{\normalsize}
\usepackage{morewrites}
\usepackage{calc,tikz}
\definecolor{ocre}{HTML}{F16723}
\usepackage{imakeidx}
\renewcommand{\listtablename}{Tables}
\footnotesep\baselineskip
\setlength{\parskip}{5pt}
\usepackage{framed}
\usepackage[defaultlines=2,all]{nowidow}
\sloppy
\flushbottom
\usepackage{url}
\urlstyle{same} %%## 2017/01/30
\usepackage[useregional,showdow]{datetime2}
\usepackage{enumitem}
\setlist{nolistsep}
\setlist[itemize]{noitemsep}
\setlist[enumerate]{noitemsep}
\renewcommand*\glspostdescription{\dotfill} %%## for syn 2017/01/30
\usepackage{array}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{shadows}
\definecolor{cccolor}{rgb}{.67,.7,.67}
\usepackage{tcolorbox}
\newcommand{\breakingspace}[1]{#1\hspace{0pt}}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{sectsty}
\usepackage{minitoc}
\author{Sharon Kimble\\
(S.E.N., R.G.N)\\
***@skimble.plus.com}
\date{\today \\
Build - 2017.\thevernum}
\title{Hormones 2018}
\hypersetup{
pdfauthor={Sharon Kimble\\
(S.E.N., R.G.N)\\
***@skimble.plus.com},
pdftitle={Hormones 2018},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.1.1 (Org mode 9.0.9)},
pdflang={English}}
\begin{document}
--8<---------------cut here---------------end--------------->8---

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
Ulrike Fischer
2017-07-01 21:28:11 UTC
Permalink
Raw Message
Post by Sharon Kimble
Post by Ulrike Fischer
Why don't you show the code so that someone else can try out without
having to spent a lot time to build a test
This is the preamble that I'm using with both TeX-live 2016 and
also 2017. Is this what you meant?
Can one reproduce your problem with a preamble without textbody?

Can someelse try out code that contains references to local files
like \input{/home/boudiccas/research/death17/titlepage} and
\input{hormones18.glos}?

You want help. So please make an effort and *think* a bit. It is not
so difficult to figure out, what sort of document someone on another
PC needs who wants to reproduce your problem.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Sharon Kimble
2017-07-02 00:19:41 UTC
Permalink
Raw Message
Post by Ulrike Fischer
Post by Sharon Kimble
Post by Ulrike Fischer
Why don't you show the code so that someone else can try out without
having to spent a lot time to build a test
This is the preamble that I'm using with both TeX-live 2016 and
also 2017. Is this what you meant?
Can one reproduce your problem with a preamble without textbody?
Can someelse try out code that contains references to local files
like \input{/home/boudiccas/research/death17/titlepage} and
\input{hormones18.glos}?
You want help. So please make an effort and *think* a bit. It is not
so difficult to figure out, what sort of document someone on another
PC needs who wants to reproduce your problem.
Fair comment.

Here is my MWE -

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper,11pt,oneside,openany,british,svgnames,dvipsnames]{report}
\usepackage{imakeidx}
\usepackage[a4paper,left=25mm,right=25mm,top=25mm,bottom=30mm,footskip=5mm,headsep=2mm]{geometry}
% \input{/home/boudiccas/research/death17/titlepage}
\usepackage[backend=biber,style=authoryear,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex}
% \addbibresource{/home/boudiccas/research/hormones/hormones18/hormones18.bib}
% \input{/home/boudiccas/research/codebase}
% \makeindex[title=General Index,options=-s ./index.ist,columnseprule,intoc]
% \makeindex[name=horm,title=Index of Hormones,options=-s ./index.ist,columnseprule,intoc,columns=2]
% \makeindex[name=side,title=Index of Hormones Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
% \makeindex[name=other,title=Index of Other Drugs Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
% \makeindex[name=inter,title=Index of Interactions,options=-s ./index.ist,columnseprule,intoc,columns=2]
\usepackage{hyperref}
\hypersetup{linktoc=all,colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}}
\usepackage[toc,nopostdot,style=listgroup]{glossaries}
% \input{hormones18.glos}
% \makeglossaries
% \glsenablehyper
% \renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}}
\usepackage[hide]{todo}
\usepackage[firstpage]{draftwatermark}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\usepackage{everypage}
\usepackage{booktabs}
\usepackage[mark]{gitinfo2}
\usepackage[T1]{fontenc}
\usepackage{charter}
\usepackage{microtype}
\usepackage{wasysym}
\usepackage{upgreek}
\usepackage{pifont}
\usepackage{textgreek}
\usepackage{bookmark}
\usepackage{color,soul,xcolor}
\newcommand\reduline{\bgroup\markoverwith{\textcolor{red}{\rule[-0.75ex]{2pt}{1.5pt}}}\ULon}
\usepackage{caption}
\setlength\parindent{0pt} % sets indent to zero
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
\usepackage[Lenny]{fncychap}
\usepackage[toc]{multitoc}
\usepackage{minibox}
\renewcommand{\footnotesize}{\normalsize}
\usepackage{morewrites}
\usepackage{calc,tikz}
\definecolor{ocre}{HTML}{F16723}
\usepackage{imakeidx}
\renewcommand{\listtablename}{Tables}
\footnotesep\baselineskip
\setlength{\parskip}{5pt}
\usepackage{framed}
\usepackage[defaultlines=2,all]{nowidow}
\sloppy
\flushbottom
\usepackage{url}
\urlstyle{same} %%## 2017/01/30
\usepackage[useregional,showdow]{datetime2}
\usepackage{enumitem}
\setlist{nolistsep}
\setlist[itemize]{noitemsep}
\setlist[enumerate]{noitemsep}
\renewcommand*\glspostdescription{\dotfill} %%## for syn 2017/01/30
\usepackage{array}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{shadows}
\definecolor{cccolor}{rgb}{.67,.7,.67}
\usepackage{tcolorbox}
\newcommand{\breakingspace}[1]{#1\hspace{0pt}}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{sectsty}
\usepackage{minitoc}
\author{Sharon Kimble\\
(S.E.N., R.G.N)\\
***@skimble.plus.com}
\title{Hormones 2018}
\hypersetup{
pdfauthor={Sharon Kimble\\
(S.E.N., R.G.N)\\
***@skimble.plus.com},
pdftitle={Hormones 2018},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 25.1.1 (Org mode 9.0.9)},
pdflang={English}}
\begin{document}

\maketitle
\tableofcontents

\dominitoc


\chapter{Illegal drugs}
\label{sec:orgdfcb0c8}
\minitoc

\section{Amphetamine}
\label{sec:orgde0624a}
\label{e730b546-41be-4b8a-8cae-258b6a61fb22}

\subsection{Also known as}
\label{sec:org7298943}

Whizz, sulph, paste, billy, base, amphetamine sulphate, speed
\index[name]{whizz|see{Amphetamine}}\index[name]{sulph|see{Amphetamine}}\index[name]{paste|see{Amphetamine}}\index[name]{billy|see{Amphetamine}}
\index[name]{base|see{Amphetamine}}\index[name]{amphetamine sulphate|see{Amphetamine}}\index[name]{speed|see{Amphetamine}}\index[name]{Amphetamine}



\chapter{Legalised drugs}
\minitoc
\label{sec:orgc10f288}


\section{Alcohol}
\label{sec:org84e4289}
\label{f9703893-9380-44aa-ae28-e4e90bf96b4f}

\subsection{Also known as}
\label{sec:org1595fc8}

booze, bevvy, ethyl alcohol, ethanol
\index[name]{booze|see{Alcohol}}\index[name]{bevy|see{Alcohol}}\index[name]{Alcohol}
\index[name]{ethyl alcohol|see{Alcohol}}\index[name]{ethanol|see{Alcohol}}




\chapter{Harm reduction}
\label{sec:org0a796df}
\minitoc

\subsection{Safer drug use}
\label{sec:orgf9a3f06}

The following information is intended to provide general harm reduction advice.

\begin{itemize}
\item \hyperref[sec:org582ba9b]{Alcohol},
\item \hyperref[sec:orgb636470]{Amphetamines},
\item \hyperref[sec:org95600f8]{Methadone} (\cite{0434}).
\end{itemize}

\clearpage

\subsubsection{Alcohol}
\label{sec:org582ba9b}
\begin{itemize}
\item Although alcohol is legal, it is a depressant drug.
\item Drinking on an empty stomach can cause you to become more drunk more quickly because the alcohol
will get into your bloodstream and to your brain faster; so always make sure you eat a meal before
you start drinking.
\end{itemize}

\subsubsection{Amphetamines}
\label{sec:orgb636470}

\begin{itemize}
\item Amphetamines are stimulants.
\item They will keep you awake for long periods of time before the comedown.
\item Using more than one stimulant drug at a time drug can put your heart under significant stress.
\item Don't inject - injecting amphetamine can become compulsive and is very risky.
\item If you do inject, always use clean needles and never share any equipment.
\end{itemize}

\subsubsection{Methadone}
\label{sec:org95600f8}
\begin{itemize}
\item Methadone is prescribed as a substitute to street heroin when users have become dependent. It is used to reduce from opiates and helps to stabilise a users lifestyle.
\item You should take methadone orally at the dosage it has been prescribed - is the safest way to take it.
\item It is recommended that methadone is taken once daily, at the same time each day.
\end{itemize}


\chapter{Fruit}
\minitoc

\section{Banana}
A most wonderous fruit or maybe a vegetable?

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse lobortis, lectus et eleifend
laoreet, tellus mauris fermentum neque, vel tempus justo enim et urna. Nullam malesuada leo sed nibh
blandit sagittis. Nulla rhoncus sem vitae nisl ultricies ullamcorper. Nunc posuere aliquam nunc
vitae feugiat. Suspendisse vel venenatis mi. Maecenas scelerisque nulla sed dui tempor molestie.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
Vivamus tincidunt mi eget est auctor in lobortis urna sodales. Praesent interdum congue neque ut
laoreet. Nam dapibus, mi ac gravida condimentum, dui quam vestibulum eros, sed euismod libero metus
a risus.

\subsection{Fruitbat}

Maecenas vitae lacus turpis. Aliquam erat volutpat. Donec ullamcorper, risus sit amet commodo
consectetur, leo justo blandit eros, nec sagittis orci libero a urna. Curabitur viverra volutpat
ornare. Aenean nec mauris nunc. Fusce enim lorem, fringilla eget eleifend eget, vulputate ut odio.
Nam dictum urna id sem ultricies ornare. Maecenas eu urna non urna iaculis luctus eu ut arcu.
Phasellus vitae nisi sed augue rhoncus rutrum non in est. Nunc vel ante at sapien pharetra lacinia
sit amet non orci. Praesent ornare ante at augue malesuada consequat. Suspendisse eget nisi augue, a
imperdiet mauris. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac
turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac nisl in nisi
semper bibendum. Ut nulla augue, condimentum sed auctor vitae, consectetur nec mauris. Maecenas
neque purus, tempus eu eleifend quis, faucibus ut nisl. Duis ut neque ipsum, sit amet facilisis
dolor. Etiam condimentum, libero in faucibus imperdiet, lacus mauris tempor libero, non scelerisque
sapien dolor eget purus. Maecenas in dui at sapien elementum luctus.

\chapter{Ipsum}
\minitoc

Aenean eget neque ligula, vel vulputate libero. Maecenas suscipit molestie sollicitudin. Curabitur
sit amet felis a libero venenatis suscipit. Phasellus quis laoreet purus. Proin risus ligula,
volutpat vel posuere eget, tempus ultricies tellus. Pellentesque adipiscing viverra blandit.
Vestibulum eget sapien nulla. Nam interdum consequat felis at malesuada. Sed at tellus sed urna
commodo tristique. Vivamus id tortor nec lacus lobortis euismod condimentum vitae lorem. Sed ac
sapien arcu. Sed tempus semper ante, et sollicitudin purus molestie nec. Vestibulum malesuada,
ligula at cursus scelerisque, tellus neque ornare magna, ut consectetur sapien neque rhoncus neque.
Donec placerat scelerisque sapien, sed volutpat dui varius nec. In tempor placerat aliquet. Sed
tempus lacus sed felis consequat tincidunt tincidunt neque commodo.

Duis non sem eu tortor elementum sollicitudin. Quisque eget urna nisi. Aenean euismod molestie
ligula, sed iaculis turpis rhoncus vel. Phasellus lobortis dictum turpis, nec sagittis purus
elementum vitae. Donec pretium sem nec nulla condimentum id mattis neque eleifend. Ut eget pharetra
dui. Duis placerat arcu at sem scelerisque at ultrices lectus porttitor. Integer nec urna id ligula
tincidunt porta. Duis risus elit, vehicula non aliquet sit amet, congue a sapien. Curabitur
molestie, est a tincidunt fringilla, sem nulla ultricies ante, non egestas enim tellus non nulla.
Vivamus porta nibh nec erat ultrices in posuere ligula gravida. Proin sit amet massa vel leo
pulvinar faucibus sit amet sed nisl. Vivamus sagittis dui eget dolor euismod posuere. Donec a neque
massa, a vulputate dui. Phasellus tincidunt rhoncus lorem in vehicula. Morbi eu enim sit amet justo
dictum porta semper vel turpis.

\chapter{lorum}
\minitoc

In odio ipsum, fermentum id porttitor vel, mollis imperdiet ante. Fusce blandit dictum orci, ut
cursus arcu fringilla suscipit. Praesent dignissim feugiat eros, at feugiat tellus consequat non.
Pellentesque libero lacus, tristique nec fermentum id, consectetur quis justo. Curabitur in sem
suscipit risus pulvinar laoreet. In id purus sed massa dignissim fringilla. In et purus libero.
Vivamus et orci at leo suscipit faucibus ut ut dolor. Cras ac massa et nisl vestibulum ultricies.
Morbi ultricies mi quis tortor consequat egestas. Curabitur ante mauris, tincidunt quis iaculis at,
sollicitudin egestas purus. Etiam ut augue tellus, sed porttitor risus. Donec odio tortor, dignissim
ut accumsan vitae, tincidunt ac nunc. Integer eu ipsum at ipsum rutrum bibendum. Suspendisse
ultricies, nibh id luctus venenatis, justo nisi tempus orci, in dapibus nulla tortor et arcu.
Praesent ullamcorper lacus id elit tincidunt id consectetur eros congue.

\end{document}
--8<---------------cut here---------------end--------------->8---

I've just tested this file under TeX-live 2017 - no minitocs developed,
and then under TeX-live 2016 and it generates minitocs.

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
Ulrike Fischer
2017-07-02 16:47:43 UTC
Permalink
Raw Message
Post by Sharon Kimble
Here is my MWE -
Well looking at your preamble I don't would call it minimal.
Post by Sharon Kimble
\tableofcontents
\dominitoc
This is wrong. The correct order is

\dominitoc
\tableofcontents


I can't tell you why your document worked in TL2016, I suspect some
side effect from the morewrites package which no longer happens in
TL2017. But with smaller documents the wrong order would fail there
too.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Sharon Kimble
2017-07-02 17:20:54 UTC
Permalink
Raw Message
Post by Ulrike Fischer
Post by Sharon Kimble
Here is my MWE -
Well looking at your preamble I don't would call it minimal.
Post by Sharon Kimble
\tableofcontents
\dominitoc
This is wrong. The correct order is
\dominitoc
\tableofcontents
I can't tell you why your document worked in TL2016, I suspect some
side effect from the morewrites package which no longer happens in
TL2017. But with smaller documents the wrong order would fail there
too.
Ulrike, you sir are a genius!

That simple idea has completely cured my minitoc problem and its now all
working completely as it should!

For the sake of the archives, and anyone looking in the future, here is
the solution -

--8<---------------cut here---------------start------------->8---
\usepackage{hyperref}
\hypersetup{linktoc=all,colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}}
\usepackage{sectsty}
\usepackage{minitoc}
\dominitoc
\usepackage[toc,nopostdot,style=listgroup]{glossaries}
\input{hormones18.glos}
\makeglossaries
\glsenablehyper
\renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}}
--8<---------------cut here---------------end--------------->8---

Thank you very much for this, which is simple and now minitoc completely
works with TeX-live 2017.

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
Loading...