Since release 0.12.0, Stog can be used to compile a single file, to produce standalone documents instead of complete web sites. To do so, just give Stog a file rather than a directory on the command line:

stog [options] <file>

The result is generated in the stog-output directory, or the directoty specified with the -d option.

It is also possible to give more than one file on the command lone. Each file is compiled and can reference the other documents:

stog [options] file1.html file2.html ...

The path of each document is created as if the given files were at the root of a website directory, i.e. in the following example:

stog foo/file1.html bar/gee/file2.html

the documents will be compiled to stog-output/file1.html and stog-output/file2.html.

When compiling files, Stog does not copy other files (images, ...) to the output directory. This has to be done "manually" (for example in a Makefile).

Stog comes with default templates for some document types. One of them is article, which correspond to an HTML document referring to MathJax and using the contents associated to latex-defs and authors in the document header.

Here is an example of the contents of such a document of type article:

The result can be seen here.