LaTeX-Template for inline images (base64 encoded).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
383 B

% Author: Marc Wäckerlin
% License: LGPL
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{inline-images}[2018/08/15 version 1.0 ready for ctan]
\RequirePackage{graphicx}
\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}
}