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 init

stilo init makes a folder a package: a folder of documents that belong together, with the references they use.

stilo init beam
Stilo: /home/ada/beam is a package: package.texl, references/

It creates the folder if it does not exist, and then:

  • writes package.texl, which marks the folder as a package;
  • puts the Stilo library into references/, as stilo.texlz, for the data tables and charts of the package's documents.

Without a folder, it makes the current folder a package:

cd beam
stilo init

Options

OptionWhat it does
folderThe folder of the package, created if missing. Default: the current folder.
--name NAMEThe name of the package, written in package.texl. Default: the folder's name.

package.texl

package.texl is an ordinary document, which you can open in the editor and add notes to:

# beam

This folder is a Stilo package. This file marks its home folder: in an
import, `~` stands for it, as in `~/references/stilo.texlz/index.texl`. The values below
configure the package.

<% package_name = "beam" %>
<% stilo_version = "0.7.0" %>

stilo_version is the version of Stilo that made the package.

Running it again

stilo init does not overwrite anything. In a folder that is already a package, it leaves package.texl alone and only adds the Stilo library if references/stilo.texlz is missing:

Stilo: /home/ada/beam is already a package: added references/stilo.texlz

If the library is there, there is nothing to do:

Stilo: /home/ada/beam is already a package, with references/stilo.texlz: nothing to do

This is how you update the Stilo library of a package.