summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inline-images/inline-images.sty
blob: 8268df98b4e83ea51af2e2f09de9c50e54311b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% 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}
}