diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/inline-images/inline-images.sty | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/inline-images/inline-images.sty b/Master/texmf-dist/tex/latex/inline-images/inline-images.sty new file mode 100644 index 00000000000..8268df98b4e --- /dev/null +++ b/Master/texmf-dist/tex/latex/inline-images/inline-images.sty @@ -0,0 +1,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} +} |