summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-08-19 21:57:56 +0000
committerKarl Berry <karl@freefriends.org>2009-08-19 21:57:56 +0000
commita982429c5ab250219ae8c68645db5bc1f70db211 (patch)
tree8e05d5452fe0323ac18327ced80529d9f772b25c /Master/texmf-dist/tex/latex/mh
parent142010671b67b1ca76ccd52ef7d554f60011afc3 (diff)
update mh for xfrac
git-svn-id: svn://tug.org/texlive/trunk@14765 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mh')
-rw-r--r--Master/texmf-dist/tex/latex/mh/xfrac.sty48
1 files changed, 24 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/mh/xfrac.sty b/Master/texmf-dist/tex/latex/mh/xfrac.sty
index 52926379ca9..f5d92e5b979 100644
--- a/Master/texmf-dist/tex/latex/mh/xfrac.sty
+++ b/Master/texmf-dist/tex/latex/mh/xfrac.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2004, 2008 by Morten Hoegholm <mh.ctan@gmail.com>
+%% Copyright (C) 2004, 2008, 2009 by Morten Hoegholm <mh.ctan@gmail.com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -26,11 +26,11 @@
%% and the derived files
%% xfrac.sty, xfrac.pdf, xfrac.ins, xfrac.drv.
%%
-\RequirePackage{l3names}[2007/09/01]
-\ProvidesExplPackage{xfrac}{2008/08/04}{0.2}{Text fractions}
+\RequirePackage{expl3}[2009/08/05]
+\ProvidesExplPackage{xfrac}{2009/08/10}{0.2a}{Text fractions}
\RequirePackage{textcomp,graphicx,amstext}
-\RequirePackage{template}[2008/08/03] % force upgrade!!
-\RequirePackage{xparse}[2008/08/03] % force upgrade!!
+\RequirePackage{template}[2008/08/03]
+\RequirePackage{xparse}[2008/08/03]
\bool_new:N \g_cm_recommended_bool
\DeclareOption{cm-recommended}
{ \bool_gset_true:N \g_cm_recommended_bool }
@@ -54,13 +54,13 @@
v-scale = n [1] \xfrac_vscale:,
scale-factor = n [.83333] \xfrac_scalefactor:,
scale-relative = s [true]
- { \def:Npn \xfrac_relscale: {\box_ht:N\l_xfrac_slash_box}}
- { \def:Npn \xfrac_relscale: {
+ { \cs_set:Npn \xfrac_relscale: {\box_ht:N\l_xfrac_slash_box}}
+ { \cs_set:Npn \xfrac_relscale: {
\dim_eval:n { \box_ht:N\l_xfrac_temp_box + \box_dp:N\l_xfrac_temp_box }} },
scaling = s [true]
- {\def:Npn\xfrac_fontscale: {
+ {\cs_set:Npn\xfrac_fontscale: {
\fontsize{\xfrac_scalefactor: \xfrac_relscale:}{\c_zero_dim}\selectfont}}
- { \let:NN \xfrac_fontscale: \use_noop: },
+ { \cs_set_eq:NN \xfrac_fontscale: \prg_do_nothing: },
numerator-top-sep = L [\c_max_dim] \l_xfrac_numeratortopsep_fdim,
numerator-bot-sep = L [\c_max_dim] \l_xfrac_numeratorbotsep_fdim,
denominator-bot-sep = L [\c_max_dim] \l_xfrac_denominatorbotsep_fdim,
@@ -68,23 +68,23 @@
slash-left-kern = L [0pt] \l_xfrac_slashleftsep_fdim,
slash-right-mkern = n [-2mu] \l_xfrac_slashrightmsep_fmu,
slash-left-mkern = n [-1mu] \l_xfrac_slashleftmsep_fmu,
- math-mode = s [false] { \let:NN\xfrac_math: \ensuremath }
- { \let:NN \xfrac_math: \use_arg_i:n },
+ math-mode = s [false] { \cs_set_eq:NN \xfrac_math: \ensuremath }
+ { \cs_set_eq:NN \xfrac_math: \use:n },
phantom = n [8] \xfrac_phantom:,
}{
\DoParameterAssignments
\mode_if_math:TF{
- \let:NN \xfrac_textormath: \text
- \def:Npx \xfrac_slashfontchange: {\tex_fam:D \xfrac_slashsymbolfont: }
- \def:Npx \xfrac_numeratorfontchange: {\tex_fam:D \xfrac_numeratorfont: }
- \def:Npx \xfrac_denominatorfontchange: {\tex_fam:D \xfrac_denominatorfont: }
+ \cs_set_eq:NN \xfrac_textormath: \text
+ \cs_set:Npx \xfrac_slashfontchange: {\tex_fam:D \xfrac_slashsymbolfont: }
+ \cs_set:Npx \xfrac_numeratorfontchange: {\tex_fam:D \xfrac_numeratorfont: }
+ \cs_set:Npx \xfrac_denominatorfontchange: {\tex_fam:D \xfrac_denominatorfont: }
}{
- \let:NN \xfrac_textormath: \mbox
- \def:Npn\xfrac_slashfontchange: {
+ \cs_set_eq:NN \xfrac_textormath: \mbox
+ \cs_set:Npn\xfrac_slashfontchange: {
\fontfamily{\xfrac_slashsymbolfont: }\selectfont}
- \def:Npn\xfrac_numeratorfontchange: {
+ \cs_set:Npn\xfrac_numeratorfontchange: {
\fontfamily{\xfrac_numeratorfont: }\selectfont}
- \def:Npn\xfrac_denominatorfontchange: {
+ \cs_set:Npn\xfrac_denominatorfontchange: {
\fontfamily{\xfrac_denominatorfont: }\selectfont}
}
\xfrac_textormath: {
@@ -104,16 +104,16 @@
{
\dim_compare:nNnTF \l_xfrac_numeratorbotsep_fdim = \c_max_dim
{
- \def:Npn\xfrac_next: {\raisebox{\box_ht:N\l_xfrac_slash_box
+ \cs_set:Npn\xfrac_next: {\raisebox{\box_ht:N\l_xfrac_slash_box
-\box_dp:N\l_xfrac_slash_box-\height}}
}{
- \def:Npn\xfrac_next: {\raisebox{\l_xfrac_numeratorbotsep_fdim }}
+ \cs_set:Npn\xfrac_next: {\raisebox{\l_xfrac_numeratorbotsep_fdim }}
}
}
{
\dim_compare:nNnTF \l_xfrac_numeratorbotsep_fdim = \c_max_dim
{
- \def:Npn\xfrac_next: {
+ \cs_set:Npn\xfrac_next: {
\raisebox{
\box_ht:N\l_xfrac_slash_box - \l_xfrac_numeratortopsep_fdim
- \height
@@ -125,7 +125,7 @@
{You~ have~ specified~ both~ numerator-top-sep~ and~
numerator-bot-sep}
{I~ will~ pretend~ you~ didn't~ specify~ any~ of ~them}
- \def:Npn\xfrac_next: {\raisebox{\box_ht:N\l_xfrac_slash_box
+ \cs_set:Npn\xfrac_next: {\raisebox{\box_ht:N\l_xfrac_slash_box
-\box_dp:N\l_xfrac_slash_box-\height}}
}
}
@@ -220,7 +220,7 @@
\DeclareDocumentCommand \sfrac {o mom}{
\mode_if_math:TF
{
- \def:Npx \xfrac_next: {mathfam\number\fam}
+ \cs_set:Npx \xfrac_next: {mathfam\number\fam}
\IfExistsInstanceTF{xfrac}{\xfrac_next: }
{\UseInstance{xfrac}{\xfrac_next: }}
{\UseInstance{xfrac}{mathdefault}}