diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-14 23:28:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-14 23:28:14 +0000 |
commit | c33dd0f6eb3ee533df663d363845fc7d22578ba6 (patch) | |
tree | 537c0448e654b3e0868b94ad0e56ca6a3e9bbab8 /Master/texmf-dist/tex/latex/l3experimental/xcoffins | |
parent | e15c57294632f6474030420648f16a9bf4efbd99 (diff) |
l3* (14aug12)
git-svn-id: svn://tug.org/texlive/trunk@27406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3experimental/xcoffins')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty b/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty index 2eeee54d1ab..371fbc3f650 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/xcoffins/xcoffins.sty @@ -47,7 +47,7 @@ %% ----------------------------------------------------------------------- %% \RequirePackage{xparse} -\GetIdInfo$Id: xcoffins.dtx 3876 2012-06-30 15:35:39Z joseph $ +\GetIdInfo$Id: xcoffins.dtx 4029 2012-07-29 18:16:03Z bruno $ {L3 Experimental design-level coffins} \ProvidesExplPackage {\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} @@ -78,23 +78,50 @@ hoffset = 0 pt , voffset = 0 pt } -\NewDocumentCommand \NewCoffin { m } - { \coffin_new:N #1 } -\NewDocumentCommand \BoxToCoffin { m } +\cs_new_protected:Npn \__coffin_design_names:N #1 { - \prop_clear_new:c { l__coffin_corners_ \__int_value:w #1 _prop } - \prop_clear_new:c { l__coffin_poles_ \__int_value:w #1 _prop } - \__coffin_update_corners:N #1 - \__coffin_update_poles:N #1 + \dim_set:Nn \l__coffin_height_dim { \coffin_ht:N #1 } + \dim_set:Nn \l__coffin_depth_dim { \coffin_dp:N #1 } + \dim_set:Nn \l__coffin_width_dim { \coffin_wd:N #1 } + \dim_set:Nn \l__coffin_totalheight_dim + { \l__coffin_height_dim + \l__coffin_depth_dim } + \cs_set_eq:NN \Height \l__coffin_height_dim + \cs_set_eq:NN \Depth \l__coffin_depth_dim + \cs_set_eq:NN \Width \l__coffin_width_dim + \cs_set_eq:NN \TotalHeight \l__coffin_totalheight_dim } +\dim_new:N \l__coffin_height_dim +\dim_new:N \l__coffin_depth_dim +\dim_new:N \l__coffin_width_dim +\dim_new:N \l__coffin_totalheight_dim +\NewDocumentCommand \NewCoffin { m } + { \coffin_new:N #1 } \NewDocumentCommand \SetHorizontalCoffin { m +m } { \hcoffin_set:Nn #1 {#2} } \NewDocumentCommand \SetVerticalCoffin { m m +m } { \vcoffin_set:Nnn #1 {#2} {#3} } \NewDocumentCommand \SetHorizontalPole { m m m } - { \coffin_set_horizontal_pole:Nnn #1 {#2} {#3} } + { + \group_begin: + \__coffin_design_names:N #1 + \use:x + { + \group_end: + \coffin_set_horizontal_pole:Nnn #1 + { \exp_not:n {#2} } { \dim_eval:n {#3} } + } + } \NewDocumentCommand \SetVerticalPole { m m m } - { \coffin_set_vertical_pole:Nnn #1 {#2} {#3} } + { + \group_begin: + \__coffin_design_names:N #1 + \use:x + { + \group_end: + \coffin_set_vertical_pole:Nnn #1 + { \exp_not:n {#2} } { \dim_eval:n {#3} } + } + } \NewDocumentCommand \JoinCoffins { o |