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 am using a style file for an edited book that I didn't create and can't figure out a TOC command. Here's the problem: The list of authors in the TOC spans two lines, but the second line is not indented like the first line.

Here's how the \chapter command is used:

\chapter{Title}
\chapterauthors{AuthorX,\affilmark{1} AuthorY,\affilmark{2} Authorz,\affilmark{3}
\chapteraffil{
\affilmark{1}AffiliationX\\
\affilmark{2}AffiliationY\\
\affilmark{3}AffiliationZ}
}

Here's how I think the line for chapter authors is formatted in the TOC:

{\let\chapteraffil\eatone\let\affilmark\eatone
\addtocontents{toc}{\string\nobreak
\vskip\authorskip
\string\noindent\vrule height 9pt width0pt\hskip\chapskip#1\hfill\vskip\chapheight} \ \vskip3pt}}

And just before that we get some definitions:

\newdimen\chapskip
\chapskip=26pt
\newdimen\chapheight
\newdimen\authorskip

And elsewhere, \authorskip is defined as:

\authorskip=-6pt
\chapheight3pt

I can't make heads or tails of all the commands in \addtocontents. Can anyone else see why the second line wouldn't be indented like the first? Have I provided enough info or even the right info? Ideally my edit will be to the style file and not with an additional package, but I'm also desperate.

share|improve this question

closed as too localized by lockstep, diabonas, Werner, Kurt, Guido May 12 '13 at 21:57

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  Corentin Apr 25 '13 at 17:30
    
I think it would be better to see some more of the code. Could you please provide a link to the style file? (You could upload it elsewhere and then provide a link in an edit to your question). –  Gonzalo Medina Apr 25 '13 at 18:05
    
Afraid the full style file is a beast: ca.wiley.com/WileyCDA/Section/id-301843.html. Ended up with a graceful solution. Msg me so I can write more if you're interested. –  Sarah Apr 25 '13 at 18:35