[latex3-commits] [latex2e-public] r1490 - pagebox key added from old pdftex.def, back end support (or not) to be added another day in graphics-def)

noreply at latex-project.org noreply at latex-project.org
Thu Jun 1 17:33:29 CEST 2017


Author: carlisle
Date: 2017-06-01 17:33:29 +0200 (Thu, 01 Jun 2017)
New Revision: 1490

Modified:
   trunk/required/graphics/graphicx.dtx
Log:
pagebox key added from old pdftex.def, back end support (or not) to be added another day in graphics-def)

Modified: trunk/required/graphics/graphicx.dtx
===================================================================
--- trunk/required/graphics/graphicx.dtx	2017-05-31 20:38:29 UTC (rev 1489)
+++ trunk/required/graphics/graphicx.dtx	2017-06-01 15:33:29 UTC (rev 1490)
@@ -167,6 +167,8 @@
 % \item[quiet] Turns off writing information about graphics to the |.log|.
 % \item[page] The page of a multi-page PDF graphic to be used.
 % \item[interpolate] Enables interpolation of bitmap images by viewers.
+% \item[pagebox] Specifies which PDF box should b eused for the natural image size, one of 
+% mediabox, cropbox, bleedbox, trimbox, artbox. The default is driver-specific.
 % \end{description}
 %
 % The arguments are interpreted left to right. |clip|, |draft|, |bb|,,
@@ -586,6 +588,30 @@
 %    \end{macrocode}
 % \end{key}
 %
+% \begin{key}{Gin}{pagebox}
+% \changes{v1.1a}{2017/06/01}{New pagebox key}
+%  Specify which PDF box to use for the natural image size in PDF inclusions.
+%    \begin{macrocode}
+\define at key{Gin}{pagebox}{%
+        \expandafter\let\expandafter\Gin at pagebox
+            \csname Gin at pagebox@#1\endcsname
+        \ifx\Gin at pagebox\relax
+          \let\Gin at pagebox\@empty
+          \@warning{%
+            Unknown value `#1' for `pagebox'.\MessageBreak
+            Supported values:\MessageBreak
+            mediabox, cropbox, bleedbox, trimbox, artbox%
+          }%
+        \fi
+      }
+      \def\Gin at pagebox@mediabox{mediabox}%
+      \def\Gin at pagebox@cropbox{cropbox}%
+      \def\Gin at pagebox@bleedbox{bleedbox}%
+      \def\Gin at pagebox@trimbox{trimbox}%
+      \def\Gin at pagebox@artbox{artbox}%
+%    \end{macrocode}
+% \end{key}
+%
 % \begin{macro}{\Gin at boolkey}
 % Helper function for defining boolean valued functions. The order of
 % arguments allows |\lowercase| to only act on the user-supplied



More information about the latex3-commits mailing list