MorganBauer / tufte-latex

Automatically exported from code.google.com/p/tufte-latex
0 stars 0 forks source link

margin figure hypcap warning #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

all margin figure generate the following warning in e.g. sample-handout r81:

<use graphics/helix.pdf>

Package caption Warning: The option `hypcap=true' will be ignored for this
(caption)                particular \caption on input line 180.
See the caption package documentation for explanation.

I could fix it by inserting the following code between l704 and l705 of r81 in 
tufte-common.sty:

\captionsetup{type=figure}

Explanation is in section 6.5 of ftp://ctan.tug.org/tex-
archive/macros/latex/contrib/caption/caption-eng.pdf

Andy

Original issue reported on code.google.com by andytho...@web.de on 9 Apr 2009 at 8:49

GoogleCodeExporter commented 9 years ago
I don't see this warning on mine.  Can you compile the sample-handout doc with 
the
'debug' option passed to the tufte-handout class and attach the 
sample-handout.log
file for me?  I'd like to check the version of the packages you're using.

Thanks!

Original comment by godbyk@gmail.com on 10 Apr 2009 at 12:34

GoogleCodeExporter commented 9 years ago
I checked out a fresh r83. l866 has the warning.

Andy

Original comment by andytho...@web.de on 10 Apr 2009 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the log file.

It looks like you're using a newer version of the caption package than me.  I 
updated
my caption package and noticed the error.  I've applied your fix to the 
marginfigure
command and a similar one to the margintable command.  There appears to be no 
adverse
effects with this patch and the old caption package that I was using. 

I've committed this patch in r84.

Original comment by godbyk@gmail.com on 10 Apr 2009 at 4:45