| 1 |
%% |
| 2 |
%% This is file `embedfile-example-collection.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% embedfile.dtx (with options: `examplecollection') |
| 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 |
\NeedsTeXFormat{LaTeX2e} |
| 46 |
\documentclass{article} |
| 47 |
\usepackage[bookmarks=false]{hyperref} |
| 48 |
% provides \pdfstringdef that is then used by `title' and |
| 49 |
% other keys. |
| 50 |
\usepackage{embedfile}[2019/12/03] |
| 51 |
\embedfilesetup{ |
| 52 |
view=details, |
| 53 |
initialfile=embedfile.pdf |
| 54 |
} |
| 55 |
\embedfilefield{file}{ |
| 56 |
type=file, |
| 57 |
title={File name} |
| 58 |
} |
| 59 |
\embedfilefield{description}{ |
| 60 |
type=desc, |
| 61 |
title={Description} |
| 62 |
} |
| 63 |
\embedfilefield{date}{ |
| 64 |
type=moddate, |
| 65 |
title={Date} |
| 66 |
} |
| 67 |
\embedfilefield{size}{ |
| 68 |
type=size, |
| 69 |
title={Size} |
| 70 |
} |
| 71 |
\embedfilefield{type}{ |
| 72 |
type=text, |
| 73 |
title={Type}, |
| 74 |
visible=false |
| 75 |
} |
| 76 |
\embedfilesort{ |
| 77 |
type, |
| 78 |
date=descending |
| 79 |
} |
| 80 |
\begin{document} |
| 81 |
An example for embedded files as collection. |
| 82 |
You need Acrobat Reader 8 or higher. |
| 83 |
|
| 84 |
\embedfile[ |
| 85 |
desc={Source file of package `embedfile'}, |
| 86 |
description.prefix={Package: }, |
| 87 |
type.value={DTX} |
| 88 |
]{embedfile.dtx} |
| 89 |
|
| 90 |
\embedfile[ |
| 91 |
desc={Documentation of package `embedfile'}, |
| 92 |
description.prefix={Package: }, |
| 93 |
type.value={PDF} |
| 94 |
]{embedfile.pdf} |
| 95 |
|
| 96 |
\embedfile[ |
| 97 |
desc={The source for this example}, |
| 98 |
description.prefix={Example: }, |
| 99 |
type.value={TEX} |
| 100 |
]{\jobname.tex} |
| 101 |
|
| 102 |
\end{document} |
| 103 |
\endinput |
| 104 |
%% |
| 105 |
%% End of file `embedfile-example-collection.tex'. |