|
1200 | 1200 | \ifthenelse{\equal{#1}{b}\OR\equal{#1}{B}}%
|
1201 | 1201 | {\renewcommand{\floatalignment}{b}\@tufte@float@debug{Presumed position: [bottom]}}%
|
1202 | 1202 | {\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 |
1204 | 1204 | \global\let\@tufte@orig@caption\caption%
|
1205 | 1205 | \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]}}% |
1213 | 1210 | \@tufte@orig@float{#2}[#1]%
|
1214 | 1211 | \ifthenelse{\boolean{@tufte@float@star}}%
|
1215 | 1212 | {\setlength{\@tufte@float@contents@width}{\@tufte@fullwidth}}%
|
|
1870 | 1867 | }
|
1871 | 1868 |
|
1872 | 1869 |
|
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 |
| - |
1885 | 1870 | %%
|
1886 | 1871 | % Detect of the float package has been loaded
|
1887 | 1872 |
|
|
0 commit comments