Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created February 4, 2016 09:20
Show Gist options
  • Save zr-tex8r/a539d7fbeeaf0d9b34fa to your computer and use it in GitHub Desktop.
Save zr-tex8r/a539d7fbeeaf0d9b34fa to your computer and use it in GitHub Desktop.
Something that is named platexrelease.sty
% platexrelease.sty
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{platexrelease}[2015/05/07 v0.1]
%
\edef\platexreleaseversion{2015/01/01}
\RequirePackageWithOptions{latexrelease}
\ifx\requestedLaTeXdate\@undefined
\PackageWarningNoLine{platexrelease}{%
Package 'latexrelease' not found}%
\expandafter\endinput\fi
\ifx\latexreleaseversion\platexreleaseversion\else
\PackageWarningNoLine{platexrelease}{%
Version mismatch between 'latexrelease'\MessageBreak
and 'platexrelease'}%
\expandafter\endinput\fi
%--------------------------------------- \eminnershape
\IncludeInRelease{2015/01/01}{\eminnershape}{\eminnershape}%
\DeclareRobustCommand\em{%
\@nomath\em
\ifdim\fontdimen\@ne\font>\z@
\mcfamily\eminnershape
\else
\gtfamily\itshape
\fi}
\def\eminnershape{\upshape}
\EndIncludeInRelease
\IncludeInRelease{0000/00/00}{\eminnershape}{\eminnershape}%
\DeclareRobustCommand\em{%
\@nomath\em
\ifdim\fontdimen\@ne\font>\z@
\mcfamily\upshape
\else
\gtfamily\itshape
\fi}
\let\eminnershape\@undefined
\EndIncludeInRelease
%--------------------------------------- Extended Allocation
\IncludeInRelease{2015/01/01}{\e@alloc@chardef}{Extended Allocation}%
\ifx\omathchar\@undefined\else % FAM256 patched
\ifx\enablecjktoken\@undefined % pTeX
\omathchardef\e@alloc@top=65535
\let\e@alloc@chardef\omathchardef
\else % upTeX
\chardef\e@alloc@top=65535
\let\e@alloc@chardef\chardef
\fi
\fi
\EndIncludeInRelease
\IncludeInRelease{0000/00/00}{\e@alloc@chardef}{Extended Allocation}%
\let\e@alloc@top\@undefined
\let\e@alloc@chardef\@undefined
\EndIncludeInRelease
\IncludeInRelease{2015/01/01}{\e@mathgroup@top}{Extended Allocation}%
\ifx\omathchar\@undefined\else % FAM256 patched
\mathchardef\e@mathgroup@top=256
\fi
\EndIncludeInRelease
\IncludeInRelease{0000/00/00}{\e@mathgroup@top}{Extended Allocation}%
\let\e@mathgroup@top\@undefined
\EndIncludeInRelease
%--------------------------------------- all done
\endinput
%% EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment