From 398a9e99b782bc15f1c5cecfb762159b712de603 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 5 Apr 2019 21:13:04 +0000 Subject: luaimageembed (5apr19) git-svn-id: svn://tug.org/texlive/trunk@50788 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/lualatex/luaimageembed/LICENSE | 21 +++++++++++ .../doc/lualatex/luaimageembed/README.md | 41 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 Master/texmf-dist/doc/lualatex/luaimageembed/LICENSE create mode 100644 Master/texmf-dist/doc/lualatex/luaimageembed/README.md (limited to 'Master/texmf-dist/doc/lualatex') diff --git a/Master/texmf-dist/doc/lualatex/luaimageembed/LICENSE b/Master/texmf-dist/doc/lualatex/luaimageembed/LICENSE new file mode 100644 index 00000000000..aa53876ce8b --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/luaimageembed/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2017 Christian C. Sachs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Master/texmf-dist/doc/lualatex/luaimageembed/README.md b/Master/texmf-dist/doc/lualatex/luaimageembed/README.md new file mode 100644 index 00000000000..0ed617ea34e --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/luaimageembed/README.md @@ -0,0 +1,41 @@ +# luaimageembed + +LuaTeX package to embed images directly as base64-encoded strings into the document. This can be useful, e.g. to package a document with images into a single TeX file, or with automatically generated graphics. + +The image files will be decoded, written to a temporary directory, and cleaned up afterwards. + +Use at your own risk. + +## Commands + +Three commands are wrapped to allow for use with base64-encoded images: + +- `\includegraphicsembedded` (`\includegraphics`) +- `\pgfdeclareimageembedded` (`\pgfdeclareimage`) +- `\pgfimageembedded` (`\pgfimage`) + +Each takes the base64-encoded image data instead of the filename; see the example below. Supported are `png`, `jpg`, `jb2` and `pdf` images. + +## Example + +```latex +\documentclass{scrartcl} + +\usepackage{luaimageembed} +\usepackage{graphicx} + +\begin{document} +\includegraphicsembedded[width=4cm]{% +iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAAAAABzQ+pjAAAAFElEQVQI12P4z/Cf4f9/BgYGBgYA +IOsD/UqPmwUAAAAASUVORK5CYII= +} +\end{document} +``` + +## Version + +0.1 (alpha) + +## License + +MIT -- cgit v1.2.3