summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def')
-rw-r--r--Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def54
1 files changed, 14 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def b/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
index be740d35d28..07ba441e09e 100644
--- a/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
+++ b/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
@@ -13,7 +13,7 @@
%%
%% Do not distribute a modified version of this file.
%%
-%% File: l3drivers.dtx Copyright(C) 2011-2014 The LaTeX3 Project
+%% File: l3drivers.dtx Copyright(C) 2011-2015 The LaTeX3 Project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -46,35 +46,21 @@
%%
%% -----------------------------------------------------------------------
%%
-\GetIdInfo$Id: l3drivers.dtx 5435 2014-10-16 21:27:50Z joseph $
+\GetIdInfo$Id: l3drivers.dtx 6213 2015-10-18 09:48:17Z joseph $
{L3 Experimental drivers}
\ProvidesExplFile
{l3pdfmode.def}{\ExplFileDate}{\ExplFileVersion}
{L3 Experimental driver: PDF mode}
-\cs_if_exist:NTF \pdftex_pdfsave:D
- {
- \cs_new_eq:NN \__driver_state_save: \pdftex_pdfsave:D
- \cs_new_eq:NN \__driver_state_restore: \pdftex_pdfrestore:D
- }
- {
- \cs_new_protected_nopar:Npn \__driver_state_save:
- { \pdftex_pdfliteral:D { q } }
- \cs_new_protected_nopar:Npn \__driver_state_restore:
- { \pdftex_pdfliteral:D { Q } }
- }
+\cs_new_protected_nopar:Npn \__driver_state_save:
+ { \pdftex_pdfsave:D }
+\cs_new_protected_nopar:Npn \__driver_state_restore:
+ { \pdftex_pdfrestore:D }
\cs_new_protected:Npn \__driver_literal:n #1
{ \pdftex_pdfliteral:D {#1} }
\cs_new_protected:Npn \__driver_literal_direct:n #1
{ \pdftex_pdfliteral:D direct {#1} }
-\cs_if_exist:NTF \pdftex_pdfsetmatrix:D
- {
- \cs_new_protected:Npn \__driver_matrix:n #1
- { \pdftex_pdfsetmatrix:D {#1} }
- }
- {
- \cs_new_protected:Npn \__driver_matrix:n #1
- { \__driver_literal:n { #1 \c_space_tl 0~0~cm } }
- }
+\cs_new_protected:Npn \__driver_matrix:n #1
+ { \pdftex_pdfsetmatrix:D {#1} }
\cs_new_protected:Npn \__driver_box_use_clip:N #1
{
\__driver_state_save:
@@ -129,26 +115,14 @@
\tl_new:N \l__driver_current_color_tl
\tl_set:Nn \l__driver_current_color_tl { 0~g~0~G }
\int_new:N \l__driver_color_stack_int
-\cs_if_exist:NTF \pdftex_pdfcolorstack:D
+\cs_new_protected_nopar:Npn \__driver_color_ensure_current:
{
- \cs_new_protected_nopar:Npn \__driver_color_ensure_current:
- {
- \pdftex_pdfcolorstack:D \l__driver_color_stack_int push
- { \l__driver_current_color_tl }
- \group_insert_after:N \__driver_color_reset:
- }
- \cs_new_protected_nopar:Npn \__driver_color_reset:
- { \pdftex_pdfcolorstack:D \l__driver_color_stack_int pop \scan_stop: }
- }
- {
- \cs_new_protected_nopar:Npn \__driver_color_ensure_current:
- {
- \__driver_literal:n { \l__driver_current_color_tl }
- \group_insert_after:N \__driver_color_reset:
- }
- \cs_new_protected_nopar:Npn \__driver_color_reset:
- { \__driver_literal:n { \l__driver_current_color_tl } }
+ \pdftex_pdfcolorstack:D \l__driver_color_stack_int push
+ { \l__driver_current_color_tl }
+ \group_insert_after:N \__driver_color_reset:
}
+\cs_new_protected_nopar:Npn \__driver_color_reset:
+ { \pdftex_pdfcolorstack:D \l__driver_color_stack_int pop \scan_stop: }
%%
%%
%% End of file `l3pdfmode.def'.