| 1 |
%% |
| 2 |
%% This is file `embedfile-example-plain.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% embedfile.dtx (with options: `exampleplain') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: embedfile |
| 12 |
%% Version: 2025-10-27 v2.13 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2006-2011 Heiko Oberdiek |
| 16 |
%% 2016-2025 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/embedfile/issues |
| 33 |
%% |
| 34 |
%% The Base Interpreter refers to any `TeX-Format', |
| 35 |
%% because some files are installed in TDS:tex/generic//. |
| 36 |
%% |
| 37 |
%% This work consists of the main source file embedfile.dtx |
| 38 |
%% and the derived files |
| 39 |
%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, |
| 40 |
%% dtx-attach.sty, embedfile-example-plain.tex, |
| 41 |
%% embedfile-example-collection.tex, embedfile-test1.tex, |
| 42 |
%% embedfile-test2.tex, embedfile-test3.tex, |
| 43 |
%% embedfile-test4.tex. |
| 44 |
%% |
| 45 |
% Load packages |
| 46 |
\input miniltx |
| 47 |
% \def\Gin@driver{pdftex.def} |
| 48 |
% \input graphicx.sty |
| 49 |
\input embedfile.sty |
| 50 |
\resetatcatcode |
| 51 |
|
| 52 |
% default setting |
| 53 |
\embedfilesetup{ |
| 54 |
mimetype=text/plain |
| 55 |
} |
| 56 |
|
| 57 |
% Embed files |
| 58 |
\embedfile[ |
| 59 |
filespec=example.tex, |
| 60 |
desc={Source code (plain-TeX) of this example} |
| 61 |
]{embedfile-example-plain.tex} |
| 62 |
|
| 63 |
\embedfile[ |
| 64 |
desc={Source of package `embedfile'} |
| 65 |
]{embedfile.dtx} |
| 66 |
|
| 67 |
\embedfile[ |
| 68 |
mimetype=application/pdf, |
| 69 |
desc={Documentation of package `embedfile'} |
| 70 |
]{embedfile.pdf} |
| 71 |
|
| 72 |
% Some text |
| 73 |
This example document contains three embedded files. |
| 74 |
|
| 75 |
% End of document |
| 76 |
\embedfilefinish % don't forget |
| 77 |
\bye |
| 78 |
\endinput |
| 79 |
%% |
| 80 |
%% End of file `embedfile-example-plain.tex'. |