Image Placement

From Wiki
Revision as of 20:23, 8 February 2018 by Hraban (talk | contribs) (New! First section: measures)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

< Using–Graphics >

If you’re using ConTeXt for complex layout tasks, you need to calculate with image sizes. Often it makes sense to use Lua functions.

Measures in pure ConTeXt

Beware, TeX calculates internally in "scaled points" (sp), 1 sp = 1/65536 pt.

\setupexternalfigures[location=default]
\getfiguredimensions[hacker.jpg]
% defines a bunch of variables, e.g.:
\figurefullname
\figurefilepath
\figurefilename
\figurefiletype