Skip to content

Commit dceac14

Browse files
committed
1 parent 4c0b728 commit dceac14

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

tufte-common.def

+5-20
Original file line numberDiff line numberDiff line change
@@ -1200,16 +1200,13 @@
12001200
\ifthenelse{\equal{#1}{b}\OR\equal{#1}{B}}%
12011201
{\renewcommand{\floatalignment}{b}\@tufte@float@debug{Presumed position: [bottom]}}%
12021202
{\renewcommand{\floatalignment}{t}\@tufte@float@debug{Presumed position: [top]}}%
1203-
% Capture the contents of the \caption and \label commands to use later
1203+
% Capture the contents of the \caption command to use later
12041204
\global\let\@tufte@orig@caption\caption%
12051205
\global\let\@tufte@orig@label\label%
1206-
\renewcommand{\caption}{\optparams{\@tufte@caption}{[][0pt]}}%
1207-
\renewcommand{\label}[1]{\@tufte@label{##1}}%
1208-
% Handle subfigure package compatibility
1209-
\ifthenelse{\boolean{@tufte@packages@subfigure}}{%
1210-
% don't move the label while inside a \subfigure or \subtable command
1211-
\global\let\label\@tufte@orig@label%
1212-
}{}% subfigure package is not loaded
1206+
\renewcommand{\caption}{%
1207+
% Now also capture the contents of the \label command to use later
1208+
\let\label\@tufte@label%
1209+
\optparams{\@tufte@caption}{[][0pt]}}%
12131210
\@tufte@orig@float{#2}[#1]%
12141211
\ifthenelse{\boolean{@tufte@float@star}}%
12151212
{\setlength{\@tufte@float@contents@width}{\@tufte@fullwidth}}%
@@ -1870,18 +1867,6 @@
18701867
}
18711868

18721869

1873-
%%
1874-
% Detect if the subfigure package has been loaded
1875-
1876-
\newboolean{@tufte@packages@subfigure}
1877-
\setboolean{@tufte@packages@subfigure}{false}
1878-
\AtBeginDocument{%
1879-
\@ifpackageloaded{subfigure}
1880-
{\gsetboolean{@tufte@packages@subfigure}{true}}
1881-
{\gsetboolean{@tufte@packages@subfigure}{false}}%
1882-
}
1883-
1884-
18851870
%%
18861871
% Detect of the float package has been loaded
18871872

0 commit comments

Comments
 (0)