MorganBauer / tufte-latex

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

Including package subfig breaks text size and font of Figure captions #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(Please attach an example .tex file demonstrating the problem or bug.)
Just add \usepackage{subfig} to any of the samples.

Please describe the feature, problem, or bug:
As per the title, including the subfig package breaks text size and font of
Figure captions, switching them to the main text's font type and size.

What version of Tufte-LaTeX are you using?  With which TeX distribution?
TeXLive-2009, but with Tufte-LaTeX 3.5.0 from this site.

Original issue reported on code.google.com by andrebra...@gmail.com on 5 Apr 2010 at 11:14

GoogleCodeExporter commented 9 years ago
Here's a PDF illustrating the problem. Notice Figure 1's caption on the side.

Original comment by andrebra...@gmail.com on 5 Apr 2010 at 11:16

Attachments:

GoogleCodeExporter commented 9 years ago
It appears that it's not the 'subfig' package per se, but actually the 'caption'
package, which is included automatically with subfig.  Including 'caption' 
causes the
same issue, I guess it probably resets caption font definitions. 

Hope this helps to pinpoint the problem.

Original comment by andrebra...@gmail.com on 5 Apr 2010 at 11:34

GoogleCodeExporter commented 9 years ago
This looks like it might be a duplicate of issue 40.  Does using the 
[caption=false] 
option solve the problem?

  \usepackage[caption=false]{subfig}

Original comment by godbyk@gmail.com on 5 Apr 2010 at 11:55

GoogleCodeExporter commented 9 years ago
Yes, it works perfectly indeed. Perhaps the Troubleshooting section in 
sample-book
could be extended to include this information. Closed tracker issues are rarely 
seen.

Thank you so much for the fast support. Cheers

Original comment by andrebra...@gmail.com on 6 Apr 2010 at 12:08

GoogleCodeExporter commented 9 years ago
Great!

I've just added some code to the tufte-common.def file that will automatically 
set 
caption=false if you load the subfig package. I will also add some 
documentation in 
the manual about compatibility with the subfig package.

Thanks!

Original comment by godbyk@gmail.com on 6 Apr 2010 at 12:14