CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/scontents


scontents — Stores contents in memory or files

  • Version: 1.9
  • Date: 2020-01-21
  • Author: Pablo González


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> .


The package loads and depends on updated versions of:


The package scontents is present in TeXLive and MiKTeX, use the package manager to install.

For manual installation, download scontents.zip and unzip it, then run:

$ pdftex scontents.ins

and move all files to appropriate locations:

  scontents.tex      -> TDS:tex/generic/scontents/
  scontents-code.tex -> TDS:tex/generic/scontents/
  scontents.sty      -> TDS:tex/latex/scontents/
  t-scontents.mkiv   -> TDS:tex/context/third/scontents/
  scontents.pdf      -> TDS:doc/latex/scontents/
  README.md          -> TDS:doc/latex/scontents/
  scontents.dtx      -> TDS:source/latex/scontents/
  scontents.ins      -> TDS:source/latex/scontents/

then run mktexlsr.


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.


The scontents package may be modified and distributed under the terms and conditions of the Project Public License, version 1.3c or greater.


  • README.md (this file)
  • scontents.pdf (documentation)
  • scontents.dtx (master file that produced all files)
  • scontents.ins (installer to extract all files)

Download the contents of this package in one zip archive (380.1k).

scontents – Stores contents in memory or files

This package stores valid 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.

Bug trackerhttps://github.com/pablgonz/scontents/issues
Version1.9 2020-01-21
LicensesThe Project Public License 1.3c
Copyright2019–2020 Pablo González
MaintainerPablo González Luengo
Contained inTeX Live as scontents
MiKTeX as scontents
TopicsExperimental 3
File management
Guest Book Sitemap Contact Contact Author