Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stilo pack

stilo pack [folder] [-o FILE]

Packs a package folder into one file, a packed package named *.texlz, to share as one file. Stilo opens it read-only.

stilo pack steel
Stilo: packed 3 files into /home/ada/steel.texlz
sha256 12bc89180ae93bc618fb719d7d36ebd951713885467bcfd5abc0793cee2fe53a

The second line is the file's fingerprint (SHA-256): the same files always give the same packed file and the same fingerprint, and any change inside gives another one. Compare fingerprints to know whether two people have the same package.

To use the packed package in another package, put it in that package's references/ folder and import it by its name:

stilo pack steel -o beam/references/steel-revA.texlz
<% texl.import("~/references/steel-revA.texlz") ~> (lib -> bind "steel" lib.data) %>

Arguments and options

ArgumentDefaultMeaning
folderthe current folderThe package to pack. It must have a package.texl.
-o, --output FILEthe folder's name with .texlz, next to the folderThe file to write. An existing file is replaced.

What goes in

Every file of the folder goes in, documents and other files, in their folders. Left out are hidden files and folders (their names start with a dot, as .git and the .trash of deleted files), links, and the files that git is told to ignore.

A folder without package.texl is not packed, and stilo pack exits with status 1:

stilo: /home/ada/notes: not a package (no package.texl)