Created
September 27, 2012 14:15
-
-
Save zr-tex8r/3794248 to your computer and use it in GitHub Desktop.
Using CM Bright partly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% bxcmbright.sty | |
%% pacakge declaration | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{bxcmbright}[2012/09/27 v0.2] | |
%--------------------------------------- Basic settings | |
%% math version 'bright' | |
\DeclareMathVersion{bright} | |
\SetSymbolFont{operators}{bright}{OT1}{cmbr}{m}{n} | |
\SetSymbolFont{letters}{bright}{OML}{cmbrm}{m}{it} | |
\SetSymbolFont{symbols}{bright}{OMS}{cmbrs}{m}{n} | |
% 'largesymbols' unchanged | |
\SetMathAlphabet\mathbf{bright}{OT1}{cmbr}{bx}{n} | |
% \mathsf unchanged | |
\SetMathAlphabet\mathit{bright}{OT1}{cmbr}{m}{sl} | |
\SetMathAlphabet\mathtt{bright}{OT1}{cmtl}{m}{n} | |
%% math version 'boldbright' | |
\DeclareMathVersion{boldbright} | |
\SetSymbolFont{operators}{boldbright}{OT1}{cmbr}{bx}{n} | |
\SetSymbolFont{letters}{boldbright}{OML}{cmbrm}{b}{it} | |
\SetSymbolFont{symbols}{boldbright}{OMS}{cmbrs}{m}{n} | |
% 'largesymbols' unchanged | |
\SetMathAlphabet\mathbf{boldbright}{OT1}{cmbr}{bx}{n} | |
\SetMathAlphabet\mathsf{boldbright}{OT1}{cmss}{bx}{n} | |
\SetMathAlphabet\mathit{boldbright}{OT1}{lmss}{bx}{sl} | |
\SetMathAlphabet\mathtt{boldbright}{OT1}{lmtt}{b}{n} | |
%%<*> \brightmath | |
%%<*> \boldbrightmath | |
\def\brightmath{% | |
\@nomath\brightmath | |
\mathversion{bright}% | |
} | |
\def\boldbrightmath{% | |
\@nomath\boldbrightmath | |
\mathversion{boldbright}% | |
} | |
%--------------------------------------- Advanced commands | |
%%<*> \bright | |
%%<*> \unbright | |
\DeclareRobustCommand*\bright{% | |
\@nomath\bright | |
\bxqb@convert@mv{bright}\math@version | |
\mathversion{\bxqb@res}% | |
} | |
\DeclareRobustCommand*\unbright{% | |
\@nomath\unbright | |
\bxqb@convert@mv{normal}\math@version | |
\mathversion{\bxqb@res}% | |
} | |
%%<*> \mathbright{<math>} | |
%%<*> \mathunbright{<math>} | |
\DeclareRobustCommand*\mathbright[1]{% | |
\nfss@text{\bright$\relax#1$}% | |
} | |
\DeclareRobustCommand*\mathunbright[1]{% | |
\nfss@text{\unbright$\relax#1$}% | |
} | |
%% \bxqb@convert@mv | |
\def\bxqb@convert@mv#1#2{% | |
\expandafter\let\expandafter\bxqb@res\csname | |
bxqb@mv@#1@#2\endcsname | |
\ifx\bxqb@res\relax | |
\def\bxqb@res{#1}% | |
\fi | |
} | |
\def\bxqb@mv@bright@bold{boldbright} | |
\def\bxqb@mv@bright@boldbright{boldbright} | |
\def\bxqb@mv@normal@bold{bold} | |
\def\bxqb@mv@normal@boldbright{bold} | |
%--------------------------------------- | |
%% all done | |
\endinput | |
%% EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment