LaTeX-Template for inline images (base64 encoded).
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
Marc Wäckerlin 4a203ae1d6 documentation fixed 6 anni fa
examples example rebuilt 6 anni fa
screenshots example rebuilt 6 anni fa
AUTHORS initial release, ready for ctan 6 anni fa
LICENSE Initial commit 6 anni fa
README.md documentation fixed 6 anni fa
autogen.sh initial release, ready for ctan 6 anni fa
configure.ac initial release, ready for ctan 6 anni fa
inline-images.sty converter script cannot be configured 6 anni fa
makefile.am initial release, ready for ctan 6 anni fa
release.sh initial release, ready for ctan 6 anni fa

README.md

LaTeX-Template for Inline Images

If you want your document to be self contained, you might want to decare inline images in base64 encoding.

Just use:

\usepackage{inline-images}
…
\inlineimg{<filename>}{<base64 encoded raw image data>}

This creates a file <filename>.base64 containning a copy of the raw image data, then a sytsem shell is executed to convert the raw data to the binary image and a file <filename> is created, which is then include in your document.

Note: The LaTeX compiler must be able to execute system commands, so option --shell-escape is required.

Note: It is desiged for Unix systems and it requires the command line tool base64 installed. Compilation calls base64 -d <filename>.img.base64 > <filename>.img.

Example

This example code:

\documentclass[a5]{article}
\usepackage[paperwidth=6cm,paperheight=4cm]{geometry}

\usepackage{inline-images}

\newcommand{\img}{iVBORw0KGgoAAAANSUhEUgAAAMgAAADIC … BQ8f/JOcTkviE7+QAAAABJRU5ErkJggg==}

\begin{document}
\inlineimg{example.png}{\img}

© 2018 Marc Wäckerlin
\end{document}

After compilation:

xelatex --shell-escape -synctex=1 -interaction=nonstopmode example.tex

Results in this example document:

example screenshot

Need More

If you are missing a feature or a configuration option, consult the project page. Just open a ticket and the author will care about it. Or extend it, it's lgpl.