Guest User

xfloat fix

a guest
Sep 13th, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.72 KB | None | 0 0
  1. % Save LaTeX kernel version of \@xfloat
  2. \makeatletter
  3. \let\my@xfloat\@xfloat
  4. \makeatother
  5. % Create a modified copy of \@xfloat using the kernel definition
  6. \makeatletter
  7. \def\@xfloat#1[#2]{
  8.    \my@xfloat#1[#2]%
  9.    \def\baselinestretch{1}%
  10.    % I COMMENTED THIS PART BELOW.  
  11. %   \@normalsize \normalsize
  12. %}
  13. %\makeatother
  14. %
  15. %%%
  16. %%% Reset baselinestretch within footnotes and floats. Originally stolen
  17. %%% from Stanford thesis style.
  18. %%%
  19. %\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
  20. %   \@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner
  21. %      \@parmoderr\@floatpenalty\z@
  22. %    \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
  23. %       \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
  24. %       \@tfor \@tempa :=#2\do
  25. %                        {\if\@tempa h\advance\@tempcnta \@ne\fi
  26. %                         \if\@tempa t\advance\@tempcnta \tw@\fi
  27. %                         \if\@tempa b\advance\@tempcnta 4\relax\fi
  28. %                         \if\@tempa p\advance\@tempcnta 8\relax\fi
  29. %         }\global\count\@currbox\@tempcnta}\@fltovf\fi
  30. %    \global\setbox\@currbox\vbox\bgroup
  31. %    \def\baselinestretch{1}
  32. %   OLD SPACING TWEAK CONTINUES BELOW
  33.     \ifx\undefined\selectfont
  34.     \small\normalsize
  35.     \else
  36.     \@newbaseline
  37.     \fi
  38.     \boxmaxdepth\z@
  39.     \hsize\columnwidth \@parboxrestore}
  40. \long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize
  41.    \interlinepenalty\interfootnotelinepenalty
  42.    \splittopskip\footnotesep
  43.    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
  44.    \hsize\columnwidth \@parboxrestore
  45.   \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
  46.    {\rule{\z@}{\footnotesep}\ignorespaces
  47.      #1\strut}}}
Advertisement
Add Comment
Please, Sign In to add comment