Skip to content

Commit

Permalink
version 2.1.15
Browse files Browse the repository at this point in the history
- save the current color in margin notes (fixes #5)
  • Loading branch information
aoles committed Jul 1, 2016
1 parent 51f0578 commit 7e27133
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Title: Standard styles for vignettes and other Bioconductor documents
Description: Provides standard formatting styles for Bioconductor PDF
and HTML documents. Package vignettes illustrate use and
functionality.
Version: 2.1.14
Version: 2.1.15
Author: Andrzej Oleś, Martin Morgan, Wolfgang Huber
Maintainer: Bioconductor Package Maintainer <[email protected]>
Imports: stats, utils
Expand Down
19 changes: 19 additions & 0 deletions inst/resources/tex/Bioconductor2.sty
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,25 @@
\RequirePackage{ragged2e}% expose \RaggedRight to 'footmisc' to allowing hyphenation
\RequirePackage[side, ragged, flushmargin, multiple]{footmisc}
\RequirePackage{marginfix}% prevent margin notes from overflowing the bottom margin
% Patch the internal LaTeX macro used by \marginpar to save the current color
% Fixes https://github.com/Bioconductor/BiocStyle/issues/5
% and https://github.com/shicks/marginfix/issues/13
% Implemented using the idea from http://tex.stackexchange.com/a/247854/102422
\makeatletter
\long\def \@savemarbox #1#2{%
\global\setbox #1%
\color@vbox
\vtop{%
\hsize\marginparwidth
\@parboxrestore
\@marginparreset
\color@setgroup#2\color@endgroup%
\@minipagefalse
\outer@nobreak
}%
\color@endbox
}
\makeatother
%
%% FLOATS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
Expand Down

0 comments on commit 7e27133

Please sign in to comment.