summaryrefslogtreecommitdiff
path: root/doc/context/sources
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-12-28 11:57:23 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-12-28 11:57:23 +0100
commit2f8058544f8a3fead8186bdcb3835f1f67416cc3 (patch)
tree499caa2670374128935c3e4ef663a6a578703df1 /doc/context/sources
parent979450762f4ef3b885fd63984c91165726494564 (diff)
downloadcontext-2f8058544f8a3fead8186bdcb3835f1f67416cc3.tar.gz
2018-12-28 11:09:00
Diffstat (limited to 'doc/context/sources')
-rw-r--r--doc/context/sources/general/manuals/graphics/graphics.tex63
1 files changed, 34 insertions, 29 deletions
diff --git a/doc/context/sources/general/manuals/graphics/graphics.tex b/doc/context/sources/general/manuals/graphics/graphics.tex
index 84a5acc22..463fba1e3 100644
--- a/doc/context/sources/general/manuals/graphics/graphics.tex
+++ b/doc/context/sources/general/manuals/graphics/graphics.tex
@@ -250,36 +250,41 @@ The actually inclusion of this image happened with:
\stopsubject
-\startsubject[title=The backend]
+% \startsubject[title=The backend]
+%
+% Traditionally \TEX\ sees an image as just a box with dimensions and in \LUATEX\
+% it is actually a special kind of rule that carries information about what to
+% inject in the final (\PDF) file. In regular \LUATEX\ the core formats \type
+% {pdf}, \type {png}, \type {jpg} and \type {jp2} are dealt with by the backend but
+% in \CONTEXT\ we can use \LUA\ instead. We might default to that method at some
+% point but for now you need to enable that explicitly:
+%
+% \starttyping[option=TEX]
+% \enabledirectrive[graphics.pdf.uselua]
+% \enabledirectrive[graphics.jpg.uselua]
+% \enabledirectrive[graphics.jp2.uselua]
+% \enabledirectrive[graphics.png.uselua]
+% \stoptyping
+%
+% All four can be enabled with:
+%
+% \starttyping[option=TEX]
+% \enabledirectrive[graphics.uselua]
+% \stoptyping
+%
+% Performance|-|wise only \PNG\ inclusion can be less efficient, but only when you
+% use interlaced images or large images with masks. It makes no real sense in a
+% professional workflow to use the (larger) interlaced images, and masks are seldom
+% used at high resolutions, so in practice one will not really notice loss of
+% performance.
+%
+% The advantage of this method is that we can provide more options, intercept bad
+% images that make the backend abort and lessen the dependency on libraries.
+%
+% \stopsubject
+
+\startsubject[title=Basic formats]
-Traditionally \TEX\ sees an image as just a box with dimensions and in \LUATEX\
-it is actually a special kind of rule that carries information about what to
-inject in the final (\PDF) file. In regular \LUATEX\ the core formats \type
-{pdf}, \type {png}, \type {jpg} and \type {jp2} are dealt with by the backend but
-in \CONTEXT\ we can use \LUA\ instead. We might default to that method at some
-point but for now you need to enable that explicitly:
-
-\starttyping[option=TEX]
-\enabledirectrive[graphics.pdf.uselua]
-\enabledirectrive[graphics.jpg.uselua]
-\enabledirectrive[graphics.jp2.uselua]
-\enabledirectrive[graphics.png.uselua]
-\stoptyping
-
-All four can be enabled with:
-
-\starttyping[option=TEX]
-\enabledirectrive[graphics.uselua]
-\stoptyping
-
-Performance|-|wise only \PNG\ inclusion can be less efficient, but only when you
-use interlaced images or large images with masks. It makes no real sense in a
-professional workflow to use the (larger) interlaced images, and masks are seldom
-used at high resolutions, so in practice one will not really notice loss of
-performance.
-
-The advantage of this method is that we can provide more options, intercept bad
-images that make the backend abort and lessen the dependency on libraries.
\stopsubject