Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I read this question about minitoc but I can't make it work with memoir. Is there an known incompatibility between these two ?

Is it somehow possible to make it work ?

share|improve this question
    
have you checked the memoir manual for a minitoc equivalent? I would be surprised if memoir didn't have it's own implementation of minitoc, as it has this for a lot of packages. –  Mica Nov 26 '10 at 1:43
    
I checked, it seems it doesn't. –  Cedric H. Nov 26 '10 at 11:19
add comment

2 Answers 2

up vote 5 down vote accepted

There are compatibility problems between minitoc and memoir.

To work it out, I recommend to update minitoc to the latest version. Further check out the section 2.22 Use with the memoir class in the current minitoc documentation. There's even a package mtcpatchmem.sty which patches the memoir class to make both work together. The minitoc documentation tells more.

share|improve this answer
    
Thanks. Finally I gave up, I never managed to have something working. I read the doc, I discovered I had problems with unnumbered chapters, tried to correct but still... –  Cedric H. Nov 25 '10 at 22:48
    
Is minitoc important for you? In that case you might consider to use scrbook instead of memoir. Very much of the memoir features come from packages that can be loaded with scrbook. I must admit that the KOMA classes are my favorite classes. –  Stefan Kottwitz Nov 25 '10 at 22:58
    
It was more a test than a real need. I'll have a look at KOMA; but now I invested quite a lot of time tuning the document with memoir ... –  Cedric H. Nov 25 '10 at 23:55
    
@CedricH.: My experience, although probably not as illustrious, is different from Stefan's. I'm currently using minitoc to provide part-level minitocs, with memoir, without problems. The minitoc document says there shouldn't be a problem after memoir [2005/09/25], and that the patch is for that. One more thing: I'm loading minitoc after hyperref. If you'd care to post an MWP, we could all look into it a bit deeper. –  Brent.Longborough Jun 12 '12 at 20:40
add comment

You can replicate most (all?) of the functionality of minitoc with the titletoc package, which is I think is compatible with memoir. Here's a basic example:

\documentclass[oneside]{memoir}
\usepackage{titletoc}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\chapter{A chapter}
\startcontents[chapters]
\printcontents[chapters]{}{1}{}
\section{Section}
\lipsum[1]
\section{Section 2}
\lipsum
\chapter{Second chapter}
\startcontents[chapters]
\printcontents[chapters]{}{1}{}
\section{Section}
\lipsum[2]
\section{Another section}
\lipsum
\end{document}

enter image description here

share|improve this answer
    
Thanks, I'll check that ! –  Cedric H. Feb 8 '11 at 17:55
    
Why \contentsmargin{1em}? –  lpdbw Aug 8 '12 at 13:11
    
@lpdbw Not really needed. I'll take it out of the example. Thanks for pointing this out. –  Alan Munn Aug 8 '12 at 13:42
    
Do you know how I can remove the indent in front of section numbers in the partial ToC (not in the normal ToC)? –  lpdbw Aug 8 '12 at 15:17
    
You need to make a separate \titlecontents command for the partial contents. Perhaps you can ask this as a separate question, as it's a good general question about how to use titletoc that would be useful to have on the site. –  Alan Munn Aug 8 '12 at 16:17
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.