Re: table of contents problem with longtable and bibliography
- From: "Joseph Wright" <joseph.wright@xxxxxxxxxxxxxxxxxx>
- Date: 13 Mar 2007 14:03:52 -0700
On Mar 13, 7:50 pm, "Marc" <mauc...@xxxxxxxxxxxxxxxxxxx> wrote:
On Mar 13, 2:52 pm, "Dan" <lueck...@xxxxxxxx> wrote:
On Mar 13, 12:46 pm, "Marc" <mauc...@xxxxxxxxxxxxxxxxxxx> wrote:
On Mar 13, 10:30 am, Ulrike Fischer <n...@xxxxxxxxxxx> wrote:
[It doesn't matter what he wrote; he failed to follow
instructions yet again.]
I thought you had been VERY clearly told what to
do more than once and you have failed to do it
every time. How do expect to get help if you don't
do what the helpers ask?
Here is the clearest I can make it:
(Step 1) Process the following template.
%%start of template
\documentclass{___} % fill in what is in your document
\usepackage{longtable}
\begin{document}
\listoftables
A bit of text.
\begin{table}[h]\centering
\caption{A table}
\begin{tabular}{cc}
foo & bar
\end{tabular}
\end{table}
\begin{longtable}{cc}
\caption{A longtable}\\
foo & bar\\
\end{longtable}
\end{document}
%%end of template
(Step 2) If this doesn't have the effect you describe, begin
adding likely \usepackage{} commands from
your document until the effect appears.
(Step 3) Post here the resulting filled in template containing
ONLY the \usepackage commands NECESSARY
to produce the effect.
(Step 4) You may be asked to make the contents of the
class file or some package file available.
We'll take it from there. Very likely the cause is
your thesis class or some package suggested by
your template. We are NOT asking you to find the
code in those files. We can handle that -- really we
can.
Dan
I seem to be frustrating the heck out of you guys... sorry... I'm
truly trying my best to supply you with something useful... This is my
minimal code that produces the problem...
minimal.tex
\documentclass[12pt,oneside]{book}
\usepackage{minimal}
\usepackage{longtable}
\begin{document}
\listedestableaux
\begin{table}[h]\centering
\caption{A table}
\begin{tabular}{cc}
foo & bar \\
foo & bar \\
\end{tabular}
\end{table}
\begin{longtable}{cc}
\caption{A longtable}\\
foo & bar\\
\end{longtable}
\end{document}
\end{document}
-------------------------------------------------------------------------
minimal.sty
\ProvidesPackage{minimal}
\gdef\@listedestableaux{List of Wacky
Tables}
\def\tablename{T}
\def\caption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
\long\def\@caption#1[#2]#3{%
\par
\addcontentsline{\csname ext@#1\endcsname}{#1}%
{\protect\numberline{\csname fnum@#1\endcsname}{\ignorespaces #2}}
%
\begingroup
\@parboxrestore
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
\def\listedestableaux{\@restonecolfalse\if@twocolumn\@restonecoltrue
\onecolumn
\fi\chapter*{\@listedestableaux}
\@starttoc{lot}\if@restonecol
\twocolumn\fi}
\endinput
Your problem seems to be your "minimal.sty" (I guess from some local
config?). This redefines \@caption, which is used to produce the
table of contents entries, as well as the captions. This works for
standard tables, but the longtable package has its own function:
\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}
So of course the redefinition doesn't work. I'm not sure, but I'd
think you were better off not using your local file, and going instead
with a standard package that lives happily with longtable. According
to the documentation, the caption package is longtable aware, so I'd
look at that as a route to what you want.
Joseph Wright
.
- References:
- table of contents problem with longtable and bibliography
- From: maucoin
- Re: table of contents problem with longtable and bibliography
- From: Robin Fairbairns
- Re: table of contents problem with longtable and bibliography
- From: Marc
- Re: table of contents problem with longtable and bibliography
- From: Robin Fairbairns
- Re: table of contents problem with longtable and bibliography
- From: Marc
- Re: table of contents problem with longtable and bibliography
- From: Ulrike Fischer
- Re: table of contents problem with longtable and bibliography
- From: Marc
- Re: table of contents problem with longtable and bibliography
- From: Dan
- Re: table of contents problem with longtable and bibliography
- From: Marc
- table of contents problem with longtable and bibliography
- Prev by Date: Re: Wrap a single long word in a table?
- Next by Date: Re: table of contents problem with longtable and bibliography
- Previous by thread: Re: table of contents problem with longtable and bibliography
- Next by thread: Re: table of contents problem with longtable and bibliography
- Index(es):
Relevant Pages
|