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 that sets a particular spacing for the List of Figures (LoF) and List of Tables (LoT) in my Table of Contents. However, I am using longtable for all my tables, and it is changing the LoT spacing by redefining @caption and @makecaption. I am unfamiliar with the code, so I haven't been able to identify what exactly I need to change in the longtable code in order to achieve the spacing I want. I'd like to be able to change the spacing to 10pt. I've tried changing the \vskip value from \baselineskip to 10pt, but this didn't seem to do anything. I should also say that the style file that I'm currently using is very rickety, so I can't resort to the caption package without causing chaos.

\def\LT@caption{%
  \noalign\bgroup
    \@ifnextchar[{\egroup\LT@c@ption\@firstofone}\LT@capti@n}
\def\LT@c@ption#1[#2]#3{%
  \LT@makecaption#1\fnum@table{#3}%
  \def\@tempa{#2}%
  \ifx\@tempa\@empty\else
     {\let\\\space
     \addcontentsline{lot}{table}{\protect\numberline{\thetable}{#2}}}%
  \fi}
\def\LT@capti@n{%
  \@ifstar
    {\egroup\LT@c@ption\@gobble[]}%
    {\egroup\@xdblarg{\LT@c@ption\@firstofone}}}
\def\LT@makecaption#1#2#3{%
  \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
    \sbox\@tempboxa{#1{#2: }#3}%
    \ifdim\wd\@tempboxa>\hsize
      #1{#2: }#3%
    \else
      \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
    \fi
    \endgraf\vskip\baselineskip}%
  \hss}}}

Thanks for any suggestions.

share|improve this question

migrated from stackoverflow.com Dec 21 '11 at 4:30

This question came from our site for professional and enthusiast programmers.

closed as too localized by Marco Daniel, egreg, Stefan Kottwitz Feb 4 '12 at 21:45

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! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Dec 21 '11 at 4:46
3  
Have you tried loading your style file after loading the longtable package? –  Peter Grill Dec 21 '11 at 5:51
4  
The \vskip you found is the vertical skip between \caption and contents, so it has nothing to do with the LoT. The only line affecting the LoT is \addcontentsline{lot}{table}{\protect\numberline{\thetable}{#2}}}%. Since this simply uses \addcontentsline I do not see how this should affect vertical spacing in the LoT. But without knowing your style file one can only guess. So for an effective answer you should post a MWE and upload your style file. –  Axel Sommerfeldt Dec 21 '11 at 10:45