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 have some trouble using the titletoc package to edit a simple ToC composed only of several sections. I would just like to turn their font from bold (which is the default font) to roman, but I am definitely making some mistake with the \titlecontents command. Here is an example:

\documentclass[12pt,a4paper]{article}
\usepackage[margin=3cm]{geometry}
\usepackage[authordate,backend=biber]{biblatex-chicago}
\bibliography{bibliography}
\usepackage[tiny]{titlesec}

\usepackage{titletoc}
% \titlecontents ???

\begin{document}
\tableofcontents
\section[Reference A]{\fullcite{bibtexkey A}}
\section[Reference B]{\fullcite{bibtexkey B}}
\section[Reference C]{\fullcite{bibtexkey C}}
\end{document}
share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

You can specify the font in the \titlecontents command:

\documentclass[10pt,letterpaper]{article}
\usepackage{lipsum,titletoc}

\titlecontents{section} % set formatting for \section -
                        % \subsection must be formatted separately 
[2.3em]                 % adjust left margin
{\rmfamily}             % font formatting
{\contentslabel{2.3em}} % section label and offset
{\hspace*{-2.3em}}
{\titlerule*[1pc]{.}\contentspage}

\begin{document}

\tableofcontents

\section{Joe}
\lipsum

\section{Blow}
\lipsum

\end{document}

which gives you:

enter image description here

titlesec and titletoc are nice but getting the arguments right is a bit challenging, a key-value interface would be easier.

share|improve this answer
    
Thank you Micheal. If you could add the details Werner mentions, that would be great. –  looreenzoo Jan 17 '12 at 18:42
    
oops - fixed according to Werner's suggestion. Notice the multiple instances of the 2.3em length parameter. These interact with one another; just change them around a bit and observe what happens, it's easier to observe in action than to explain. (It seems I deleted Werner's comment - that was unintentional. Sorry.) –  Michael Palmer Jan 17 '12 at 18:48
add 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.