Directory macros/latex/contrib/scontents
scontents — Stores LaTeX contents in memory or files
Release v2.1 [2024-06-14]
Description
This package allows to store LaTeX
code, including "verbatim", in <sequences>
using the l3seq
module of expl3
. The <stored content>
can be used as many times as desired in the document, additionally you can write to <external files>
or show it in <verbatim style>
.
Requirements
The package loads and depends on updated versions of:
Installation
The package scontents
is present in TeX Live
and MiKTeX
, use the package manager to install.
For manual installation, download scontents.zip and unzip it, then run:
$ luatex scontents.ins
Now the different files must be moved into the different directories in your installation TDS
tree or in your TEXMFHOME
:
scontents.tex -> TDS:tex/generic/scontents/scontents.tex scontents-code.tex -> TDS:tex/generic/scontents/scontents-code.tex scontents.sty -> TDS:tex/latex/scontents/scontents.sty t-scontents.mkiv -> TDS:tex/context/third/scontents/t-scontents.mkiv scontents.pdf -> TDS:doc/latex/scontents/scontents.pdf scontents.dtx -> TDS:source/latex/scontents/scontents.dtx scontents.ins -> TDS:source/latex/scontents/scontents.ins
then run mktexlsr
. To produce the documentation with source code run luatex scontents.ins
and lualatex scontents.dtx
three times.
Examples
The file <scontents.pdf>
contains attached examples, which can be extracted from the PDF viewer or from the command line by running:
$ pdfdetach -saveall scontents.pdf
and then you can use the excellent arara
tool to compile them.
License
The scontents package may be modified and distributed under the terms and conditions of the LaTeX Project Public License, version 1.3c or greater.
Contents
- README.md (this file)
- scontents.pdf (documentation)
- scontents.dtx (master file that produced all files)
- scontents.ins (installer to extract all files)
Author and copyright
Copyright 2019-2023 by Pablo González L.
Download the contents of this package in one zip archive (430.1k).
scontents – Stores LaTeX contents in memory or files
This package stores valid LaTeX code in memory (sequences) using the l3seq module of expl3. The stored content (including verbatim) can be used as many times as desired in the document, additionally can be written to external files if desired.
Package | scontents |
Support | https://github.com/pablgonz/scontents/issues |
Repository | https://github.com/pablgonz/scontents |
Version | 2.1 2024-06-14 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2019–2024 Pablo González L. |
Maintainer | Pablo González Luengo |
Contained in | TeX Live as scontents MiKTeX as scontents |
Topics | Experimental LaTeX3 File management |