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, along with a few others, am writing a project report, where different subsections have been authored by different people. When I build the table of contents using the \tableofcontents tag, it would be really helpful if the subsection named could bear with them the name of the authors in tiny letters. Is this possible? We are using the documentclass article.

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

You could define a command for this purpose, making use of the optional argument of the sectioning commands. In the example below \autsection has two mandatory arguments: the first one for the section title and the second one for the authors (of course, make the format adjustments that best suit your needs):

\documentclass{article}

\newcommand\autsection[2]{%
  \section[#1~/ {\normalfont\small\itshape#2}]{#1}}

\begin{document}

\tableofcontents

\autsection{Strategies against widows}{Paul Isamber}

\autsection{The exact placement of superscripts and subscripts}{Joseph Wright and Timothy Hall}

\end{document}

enter image description here

share|improve this answer
    
This works perfect for me in memoir. How would I add the descripton to the section as well, a la chapterprecis? –  Kristian Nordestgaard May 27 at 17:55
    
Hey, I figured it out myself. Probably very hacky, though: \newcommand\mysection[2]{% \section[#1~/ {\normalfont\small\itshape#2}]{#1}{\hspace{3em}\normalfont\small\itshape#2\\\\}} –  Kristian Nordestgaard May 27 at 18:14
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.