FRUNDIS(1) | General Commands Manual | FRUNDIS(1) |
frundis
—
frundis |
-T format
[-a ] [-s ]
[-t ] [-x ]
[-o output-file]
[path] |
frundis
program reads an UTF-8 encoded file given by
path, or standard input if no file is given as argument,
written in the frundis
language as documented in
frundis_syntax(5), and exports it to LaTeX, XHTML, EPUB,
markdown or groff mom.
The options are as follows:
-T
formatlatex
,
xhtml
, epub
,
markdown
or mom
.-a
-s
is no longer the default.-o
output-file-a
is
specified, this option is mandatory and specifies the name of a new
directory that will contain all the necessary files. For EPUB, zipping has
to be done manually after.-s
-t
-x
frundis
uses the following environment variables:
FRUNDISLIB
frundis
included source
files.$ frundis -a -T xhtml input.frundis
> output.html
To print a standalone XHTML:
$ frundis -a -s -T xhtml
input.frundis > output.html
To create a directory with XHTML files and an index:
$ frundis -T xhtml -o output-dir
input.frundis
To create an EPUB file, assuming the zip program from http://infozip.sourceforge.net/ is installed:
$ frundis -T epub -o output-dir
input.frundis
$ cd output-dir
$ zip -X0 ../my-epub.epub
mimetype
$ zip -Xur9D ../my-epub.epub
*
To produce a LaTeX document without a preamble:
$ frundis -T latex input.frundis >
output.tex
To produce a complete LaTeX document:
$ frundis -s -T latex input.frundis
> output.tex
To produce a pdf document using groff mom output format:
$ frundis -s -T mom input.frundis
> output.mom
$ pdfmom -k -t output.mom >
output.pdf
frundis
:
file:lnum:macro:
messageThe file field specifies the name of the
source file in which an error was encountered. It can be
stdin
when reading from standard input. The
lnum field specifies the number of the line in the
source file where the error has been detected. The
macro field is the name of the macro being called (if
any). One or more message fields provide further
details on the nature of the error.
The file, lnum and macro fields appear only when it makes sense.
April 17, 2017 | OpenBSD 6.5 |