summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/base/graphics.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-06-16 03:02:40 +0000
committerNorbert Preining <norbert@preining.info>2020-06-16 03:02:40 +0000
commit305bf45bf758ea76ec5be2a737bd8eb491f68921 (patch)
treea0d6ad7bdfc7a258d831c6dd746484263ff66b10 /macros/luatex/optex/base/graphics.opm
parent539648a9305d6107a588ecdff34b5cdce48fb930 (diff)
CTAN sync 202006160302
Diffstat (limited to 'macros/luatex/optex/base/graphics.opm')
-rw-r--r--macros/luatex/optex/base/graphics.opm19
1 files changed, 19 insertions, 0 deletions
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{<picture>}}
+
+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{<transformation>}{\copy\mypic}`.
+
+\_endinput
+
2020-04-12: \_public \clipinoval \clipincircle ; added, bug fixed