From 305bf45bf758ea76ec5be2a737bd8eb491f68921 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 16 Jun 2020 03:02:40 +0000 Subject: CTAN sync 202006160302 --- macros/luatex/optex/base/graphics.opm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'macros/luatex/optex/base/graphics.opm') diff --git a/macros/luatex/optex/base/graphics.opm b/macros/luatex/optex/base/graphics.opm index bc88a16de0..be2cfdab7e 100644 --- a/macros/luatex/optex/base/graphics.opm +++ b/macros/luatex/optex/base/graphics.opm @@ -421,5 +421,24 @@ \_endcode % ------------------------------------- +The \^`\inspic` is defined by `\pdfximage` and `\pdfrefximage` primitives. +If you want to use one picture more than once in your document, then the +following code is recommended: +\begtt \catcode`\<=13 +\newbox\mypic +\setbox\mypic = \hbox{\picw=3cm \inspic{}} + +My picture: \copy\mypic, again my picture: \copy\mypic, etc. +\endtt +This code downloads the picture data to the PFD oputput only once (when +`\setbox` is processed). Each usage of `\copy\mypic` puts only a pointer to +the picture data in the PDF. + +If you want to copy the same picture in different sizes, then choose +a \"basic size" used in `\setbox` and all different sizes can be realized by +the \^`\transformbox{}{\copy\mypic}`. + +\_endinput + 2020-04-12: \_public \clipinoval \clipincircle ; added, bug fixed -- cgit v1.2.3