| 1 | ## scontents — Stores LaTeX contents in memory or files |
| 2 | |
| 3 | Release v2.6 \[2025-11-20\] |
| 4 | |
| 5 | ## Description |
| 6 | |
| 7 | This package allows to store LaTeX code, including _verbatim_, in <code>⟨sequences⟩</code> |
| 8 | using the `l3seq` module of `expl3`. The <code>⟨stored content⟩</code> can be used |
| 9 | as many times as desired in the document, additionally you can write to <code>⟨external files⟩</code> |
| 10 | or show it in <code>⟨verbatim style⟩</code>. This package is fully compatible with _tagged_ PDF. |
| 11 | |
| 12 | ## Requirements |
| 13 | |
| 14 | The minimum required is LaTeX release 2024-11-01. |
| 15 | |
| 16 | ## Installation |
| 17 | |
| 18 | The package <code>⟨scontents⟩</code> is present in `TeX Live` and `MiKTeX`, use the |
| 19 | package manager to install. |
| 20 | |
| 21 | For manual installation, download [scontents.zip](http://mirrors.ctan.org/macros/latex/contrib/scontents.zip) and unzip it, |
| 22 | then run: |
| 23 | |
| 24 | ``` |
| 25 | $ luatex scontents.ins |
| 26 | ``` |
| 27 | |
| 28 | Now the different files must be moved into the different directories in your |
| 29 | installation `TDS` tree or in your `TEXMFHOME`: |
| 30 | |
| 31 | ``` |
| 32 | scontents.tex -> TDS:tex/generic/scontents/scontents.tex |
| 33 | scontents-code.tex -> TDS:tex/generic/scontents/scontents-code.tex |
| 34 | scontents.sty -> TDS:tex/latex/scontents/scontents.sty |
| 35 | t-scontents.mkiv -> TDS:tex/context/third/scontents/t-scontents.mkiv |
| 36 | scontents.pdf -> TDS:doc/latex/scontents/scontents.pdf |
| 37 | scontents.dtx -> TDS:source/latex/scontents/scontents.dtx |
| 38 | scontents.ins -> TDS:source/latex/scontents/scontents.ins |
| 39 | ``` |
| 40 | |
| 41 | then run `mktexlsr`. To produce the documentation with source code run `luatex scontents.ins` and |
| 42 | `lualatex scontents.dtx` three times. |
| 43 | |
| 44 | ## Examples |
| 45 | |
| 46 | The file <code>⟨scontents.pdf⟩</code> contains attached examples, which can be extracted |
| 47 | from the PDF viewer or from the command line by running: |
| 48 | |
| 49 | ``` |
| 50 | $ pdfdetach -saveall scontents.pdf |
| 51 | ``` |
| 52 | |
| 53 | and then you can use the excellent `arara` tool to compile them. |
| 54 | |
| 55 | ## License |
| 56 | |
| 57 | The package <code>⟨scontents⟩</code> may be modified and distributed under the terms and |
| 58 | conditions of the [LaTeX Project Public License](https://www.latex-project.org/lppl/), version 1.3c or greater. |
| 59 | |
| 60 | ## Contents |
| 61 | |
| 62 | - README.md (this file) |
| 63 | - scontents.pdf (documentation) |
| 64 | - scontents.dtx (master file that produced all files) |
| 65 | - scontents.ins (installer to extract all files) |
| 66 | |
| 67 | ## Author and copyright |
| 68 | |
| 69 | Copyright 2019 — 2025 by Pablo González L. |