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 don't want the bold font in the Table of Contents. I am using the memoir class (and the dash chapter style). Any suggestions?

share|improve this question
    
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Christian Hupfer Aug 16 at 3:53

2 Answers 2

up vote 5 down vote accepted

Welcome to TeX.SX! Please, next time add a MWE!

For your problem, this is a solution with the commands of the memoir class:

\documentclass{memoir}

\chapterstyle{dash}

\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftchapterpagefont}{\normalfont}

\begin{document}

\tableofcontents*

\chapter{A brief introduction}
\section{\TeX\ and friends}
\chapter{\TeX\ \& \LaTeX}
\section{My favourite class: \texttt{memoir}}

\end{document}
share|improve this answer
    
@ChristianHupfer Thanks, I've edited my answer. –  user56567 Aug 16 at 6:30

Short question, short solution: The easiest way, unless there is no option within the memoir class, is to redefine the tableofcontents and disable any bold font within a \begingroup...\endgroup, i.e.

\renewcommand{\bfseries}{\relax}

This solution does not rely on particular memoir commands or external packages.

Code

\documentclass[12pt]{memoir}

\let\LaTeXStandardTableOfContents\tableofcontents

\renewcommand{\tableofcontents}{%
\begingroup%
\renewcommand{\bfseries}{\relax}%
\LaTeXStandardTableOfContents%
\endgroup%
}%

\chapterstyle{dash}

\begin{document}
\tableofcontents

\chapter{First Chapter}
\section[First section]{First Section of 1st chapter}
\chapter{Second Chapter}
\section{First Section of 2nd chapter}


\end{document}

Example output

enter image description here

share|improve this answer
1  
To the unknown downvoter: Thank you very much... it's very easy to downvote without explanation –  Christian Hupfer Aug 16 at 6:06
    
I'm not the down-voter, but I think I can see why. Redefining lower-level commands like this often has drastic and unintended consequences, and sometimes it may not even solve the problem for any number of reasons. For example, if any relevant code was using the deprecated \bf, this code wouldn't work as is. It is a solution that isn't aligned with the spirit of LaTeX, basically amounting to clicking the button for bold to un-bold part of a document (rather than making a proper design choice). Hope that helps understand the possible reasoning :) –  Sean Allred Aug 18 at 0:16
    
@SeanAllred: Not really, actually. If there are oldfashioned commands, my solution will not work, but then the class/package has to be revised anyway. In this case nothing bad happens, it will just show the usual behaviour! -- How do you think tocloft does achieve its functionality? Just definining new commands, that are not connected to the standard commands? -- No, it redefines low level commands or adds extra code to them. If I would downvote any solution that does a redefinition of a low-level command, I would have to do a lot of downvotes –  Christian Hupfer Aug 18 at 0:29
    
This is appropriate for package code, but not appropriate on the document design level or the author level. In the end, everything is resolved to primitives (\kern, \def, \advance, etc.); but I would be saddened to see these in a document side-by-side with content. –  Sean Allred Aug 18 at 0:32
    
@SeanAllred: You're right about the package code, but if the class, a package does not provide a specific feature, one has to patch the commands. I did not look into the memoir class, as I never use it -- If I would have done, so I would have seen, that it obviously loads tocloft... But in fact, I am rather disappointed about cowardly downvoting before leaving a comment with a suggestion. –  Christian Hupfer Aug 18 at 0:38

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.