MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.27
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/texlive/texmf-dist/tex/latex/l3kernel/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
%%
%% This is file `l3pdfmode.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% l3drivers.dtx  (with options: `package,pdfmode')
%% 
%% EXPERIMENTAL CODE
%% 
%% Do not distribute this file without also distributing the
%% source files specified above.
%% 
%% Do not distribute a modified version of this file.
%% 
%% File: l3drivers.dtx Copyright(C) 2011-2012 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
%% license or (at your option) any later version.  The latest version
%% of this license is in the file
%%
%%    http://www.latex-project.org/lppl.txt
%%
%% This file is part of the "l3kernel bundle" (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%%
%% The released version of this bundle is available from CTAN.
%%
%% -----------------------------------------------------------------------
%%
%% The development version of the bundle can be found at
%%
%%    http://www.latex-project.org/svnroot/experimental/trunk/
%%
%% for those people who are interested.
%%
%%%%%%%%%%%
%% NOTE: %%
%%%%%%%%%%%
%%
%%   Snapshots taken from the repository represent work in progress and may
%%   not work or may contain conflicting material!  We therefore ask
%%   people _not_ to put them into distributions, archives, etc. without
%%   prior consultation with the LaTeX Project Team.
%%
%% -----------------------------------------------------------------------
%%
\RequirePackage{l3bootstrap}
\GetIdInfo$Id: l3drivers.dtx 4280 2012-11-07 07:13:51Z joseph $
  {L3 Experimental drivers}
\ProvidesExplFile
  {l3pdfmode.def}{\ExplFileDate}{\ExplFileVersion}
  {L3 Experimental driver: PDF mode}
\__expl_package_check:
\cs_if_exist:NTF \pdftex_pdfsave:D
  {
    \cs_new_eq:NN \__driver_graphic_state_save:    \pdftex_pdfsave:D
    \cs_new_eq:NN \__driver_graphic_state_restore: \pdftex_pdfrestore:D
  }
  {
    \cs_new_protected_nopar:Npn \__driver_graphic_state_save:
      { \pdftex_pdfliteral:D { q } }
    \cs_new_protected_nopar:Npn \__driver_graphic_state_restore:
      { \pdftex_pdfliteral:D { Q } }
  }
\cs_new_protected:Npn \__driver_pdf_literal:n #1
  { \pdftex_pdfliteral:D {#1} }
\cs_new_protected:Npn \__driver_pdf_literal_direct:n #1
  { \pdftex_pdfliteral:D direct~{#1} }
\cs_new_protected:Npn \__driver_box_use_clip:N #1
  {
    \__driver_graphic_state_save:
    \__driver_pdf_literal_direct:n
      {
        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
      }
    \hbox_overlap_right:n { \box_use:N #1 }
    \__driver_graphic_state_restore:
    \skip_horizontal:n { \box_wd:N #1 }
  }
\cs_new_protected_nopar:Npn \__driver_box_rotate_begin:
  {
    \__driver_graphic_state_save:
    \box_set_wd:Nn \l__box_internal_box \c_zero_dim
    \fp_set:Nn \l__box_cos_fp
      {
        \fp_compare:nNnTF \l__box_cos_fp = \c_zero_fp
          { 0 }
          { round ( \l__box_cos_fp , 5 ) }
      }
    \fp_set:Nn \l__box_sin_fp { round ( \l__box_sin_fp , 5 ) }
    \__driver_pdf_matrix:n
      {
        \fp_use:N \l__box_cos_fp \c_space_tl
        \fp_compare:nNnTF \l__box_sin_fp = \c_zero_fp
          { 0~0 }
          {
            \fp_use:N \l__box_sin_fp
            \c_space_tl
            \fp_eval:n { -\l__box_sin_fp }
          }
        \c_space_tl
        \fp_use:N \l__box_cos_fp
      }
  }
\cs_new_eq:NN \__driver_box_rotate_end: \__driver_graphic_state_restore:
\cs_new_protected_nopar:Npn \__driver_box_scale_begin:
  {
    \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
      {
        \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_if_exist:NTF \pdftex_pdfsetmatrix:D
  {
    \cs_new_protected:Npn \__driver_pdf_matrix:n #1
      { \pdftex_pdfsetmatrix:D {#1} }
  }
  {
    \cs_new_protected:Npn \__driver_pdf_matrix:n #1
      { \__driver_pdf_literal:n { #1 \c_space_tl 0~0~cm } }
  }
\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:
      {
        \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 }
  }
  {
    \cs_new_protected_nopar:Npn \__driver_color_ensure_current:
      {
        \__driver_pdf_literal:n { \l__driver_current_color_tl }
        \group_insert_after:N \__driver_color_reset:
      }
    \cs_new_protected_nopar:Npn \__driver_color_reset:
      { \__driver_pdf_literal:n { \l__driver_current_color_tl } }
  }
%% 
%%
%% End of file `l3pdfmode.def'.

MMCT - 2023