% Author: Marc Wäckerlin % License: LGPL \NeedsTeXFormat{LaTeX2e} \ProvidesClass{inline-images}[2018/08/15 version 1.0 ready for ctan] \RequirePackage{graphicx} \newcommand{\imageencoder}[1]{base64 -d #1.img.base64 > #1.img} \newcommand{\inlineimg}[2]{ \newwrite\tempfile \immediate\openout\tempfile=#1.base64 \immediate\write\tempfile{#2} \immediate\closeout\tempfile \immediate\write18{base64 -d #1.base64 > #1} \includegraphics{#1} }