Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package subcaption - environment subfigure #87

Open
GoogleCodeExporter opened this issue Mar 12, 2015 · 2 comments
Open

package subcaption - environment subfigure #87

GoogleCodeExporter opened this issue Mar 12, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Tufte is incompatible with the package subcaption (Tufte: SVN, LaTeX: latest 
MacTex based on LiveTex). Consider the example above:

begin{figure}
  \begin{subfigure}[b]{0.3\textwidth}
    \centering
    \begin{tikzpicture}
      \draw circle (1.25cm) {};
    \end{tikzpicture}%
    \caption{subcaption}
    \label{fig:circle}
  \end{subfigure}%
\caption{main caption}\label{fig:main}
\end{figure}


Then \ref{fig:circle} does not work (Only (??) is shown), but  \ref{fig:main} 
does.

Reference:
http://tex.stackexchange.com/questions/85816/missing-sub-caption-numbers-with-tu
fte-latex


Original issue reported on code.google.com by Wosrediinanatour on 25 Jan 2013 at 3:49

@javaprog
Copy link

The problem is with the redefinition of the \label command inside tufte floats. This also affects line references with the listings package, see this Stackoverflow post. A workaround is to pretend that the subfigure package has been loaded by setting the Boolean accordingly in your document preamble:

\makeatletter
\setboolean{@tufte@packages@subfigure}{true}
\makeatother

@javaprog
Copy link

Added pull request #114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants