tufte-latex icon indicating copy to clipboard operation
tufte-latex copied to clipboard

Longtables don't have sidenote captions

Open GoogleCodeExporter opened this issue 9 years ago • 3 comments

When using the longtable environment, table captions are placed on the top of 
the table, rather than on the side margin.

I am using tufte-latex 3.5.0 and pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 
2009/Debian).

I attached a sample file.

Original issue reported on code.google.com by [email protected] on 11 Dec 2013 at 2:33

Attachments:

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

Any insights into how to address this issue?

stefanv avatar Sep 18 '18 19:09 stefanv

I also walked into this. I'm getting the longtables in from Pandoc, so somehow need to support the full longtable syntax while wrapping it inside a margintable.

rikhuijzer avatar Sep 25 '21 10:09 rikhuijzer

Apparently, David Carlisle solved this a long time ago:

\makeatletter
\def\LT@makecaption#1#2#3{%
  \noalign{\smash{\hbox{\kern\textwidth\rlap{\kern\marginparsep
  \parbox[t]{\marginparwidth}{%
\@tufte@caption@font \@tufte@caption@justification \noindent 
   #1{#2: }\ignorespaces #3}}}}}}
\makeatother

source: https://tex.stackexchange.com/a/183344/92217.

rikhuijzer avatar Sep 25 '21 14:09 rikhuijzer