diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-01 22:56:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-01 22:56:28 +0000 |
commit | 999dd6fa37bd291385b20ccf85f980eccfd2e683 (patch) | |
tree | 0556279ecc60a91218fc66f799180d9b30c6bf4a /Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def | |
parent | 612e0aeaa3a96eceef8eb6e8de16fac2d6b4d8f0 (diff) |
l3 (1jan14)
git-svn-id: svn://tug.org/texlive/trunk@32537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def b/Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def index 7fae4b147c9..154d3c8d659 100644 --- a/Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/l3kernel/l3dvipdfmx.def @@ -47,48 +47,49 @@ %% ----------------------------------------------------------------------- %% \RequirePackage{l3bootstrap} -\GetIdInfo$Id: l3drivers.dtx 4602 2013-11-18 23:19:01Z bruno $ +\GetIdInfo$Id: l3drivers.dtx 4632 2013-12-31 17:09:37Z joseph $ {L3 Experimental drivers} \ProvidesExplFile {l3dvidpfmx.def}{\ExplFileDate}{\ExplFileVersion} {L3 Experimental driver: dvipdfmx} \__expl_package_check: -\cs_new_protected_nopar:Npn \__driver_graphic_state_save: - { \tex_special:D { pdf:content~q } } -\cs_new_protected_nopar:Npn \__driver_graphic_state_restore: - { \tex_special:D { pdf:content~Q } } -\cs_new_protected:Npn \__driver_pdf_literal:n #1 - { \tex_special:D { pdf:content~ #1 } } -\cs_new_protected:Npn \__driver_pdf_literal_direct:n #1 - { \tex_special:D { pdf:literal~direct~ #1 } } +\cs_new_protected_nopar:Npn \__driver_state_save: + { \tex_special:D { pdf:bcontent } } +\cs_new_protected_nopar:Npn \__driver_state_restore: + { \tex_special:D { pdf:econtent } } +\cs_new_protected:Npn \__driver_literal:n #1 + { \tex_special:D { pdf:literal~ #1 } } +\cs_new_protected:Npn \__driver_matrix:n #1 + { \__driver_literal:n { direct~ #1 \c_space_tl 0~0~cm } } \cs_new_protected:Npn \__driver_box_use_clip:N #1 { - \__driver_graphic_state_save: - \__driver_pdf_literal_direct:n + \__driver_literal:n { q } + \__driver_literal:n { - 0 ~ + direct~ + 0~ \__dim_strip_bp:n { - \box_dp:N #1 } ~ \__dim_strip_bp:n { \box_wd:N #1 } ~ \__dim_strip_bp:n { \box_ht:N #1 + \box_dp:N #1 } ~ re~W~n } - \__driver_pdf_matrix:n { -1~0~0~-1 } - \__driver_graphic_state_save: - \__driver_pdf_matrix:n { -1~0~0~-1 } + \__driver_matrix:n { -1~0~0~-1 } + \__driver_literal:n { q } + \__driver_matrix:n { -1~0~0~-1 } \hbox_overlap_right:n { \box_use:N #1 } - \__driver_graphic_state_restore: - \__driver_graphic_state_restore: + \__driver_literal:n { Q } + \__driver_literal:n { Q } \skip_horizontal:n { \box_wd:N #1 } } \cs_new_protected_nopar:Npn \__driver_box_rotate_begin: { - \__driver_graphic_state_save: + \__driver_state_save: \box_set_wd:Nn \l__box_internal_box \c_zero_dim \fp_set:Nn \l__box_cos_fp { round ( \l__box_cos_fp , 5 ) } \fp_compare:nNnT \l__box_cos_fp = \c_zero_fp { \fp_zero:N \l__box_cos_fp } \fp_set:Nn \l__box_sin_fp { round ( \l__box_sin_fp , 5 ) } - \__driver_pdf_matrix:n + \__driver_matrix:n { \fp_use:N \l__box_cos_fp \c_space_tl \fp_compare:nNnTF \l__box_sin_fp = \c_zero_fp @@ -102,24 +103,23 @@ \fp_use:N \l__box_cos_fp } } -\cs_new_eq:NN \__driver_box_rotate_end: \__driver_graphic_state_restore: +\cs_new_eq:NN \__driver_box_rotate_end: \__driver_state_restore: \cs_new_protected_nopar:Npn \__driver_box_scale_begin: { + \__driver_state_save: \fp_set:Nn \l__box_scale_x_fp { round ( \l__box_scale_x_fp , 5 ) } \fp_set:Nn \l__box_scale_y_fp { round ( \l__box_scale_y_fp , 5 ) } - \__driver_graphic_state_save: - \__driver_pdf_matrix:n + \__driver_matrix:n { \fp_use:N \l__box_scale_x_fp \c_space_tl 0~0~ \fp_use:N \l__box_scale_y_fp } } -\cs_new_eq:NN \__driver_box_scale_end: \__driver_graphic_state_restore: -\cs_new_protected:Npn \__driver_pdf_matrix:n #1 - { \__driver_pdf_literal_direct:n { #1 \c_space_tl 0~0~cm } } +\cs_new_eq:NN \__driver_box_scale_end: \__driver_state_restore: \tl_new:N \l__driver_current_color_tl \tl_set:Nn \l__driver_current_color_tl { gray~0 } +%% \end{macrocode} \cs_new_protected_nopar:Npn \__driver_color_ensure_current: { \tex_special:D { color~push~\l__driver_current_color_tl } |