YEAR
and HOLDER
entities have been configured in the Doc_Name
.ent
file, as described in Section 3.1.6, “Doc_Name.ent”.
Test_Book
and was located in the books/
directory, run the following command:
cd books/Test_Book
publican build --formats=test --langs=en-US
publican build --formats=formats
--langs=languages
formats
with a comma-separated list of the formats that you want to build, for example, --formats=html,html-single,pdf
. Replace langs
with a comma-separated list of the languages that you want to build, for example, --langs=en-US,sv-SE,uk-UA,ko-KR
.
build
actionhtml
chunk_first
and chunk_section depth
parameters in the publican.cfg
file to control how how Publican chunks sections in this format.
html-single
html-desktop
pdf
txt
epub
publican build
commands:
publican build --help
publican build
options for building a book.
publican build --formats=test --langs=languages
--formats=test
before running any other publican build
command, and before checking a book back into a version-controlled repository from which other contributors might download it.
publican build --formats=html --langs=languages
Doc_Name
/tmp/language
/html/
directory. Each chapter and major section is placed in a separate HTML file. You can control the depth at which Publican places subsections into separate HTML files with the chunk-section-depth
parameter in the publican.cfg
— refer to Section 3.1.1, “The publican.cfg file”.
publican build --formats=html-single --langs=languages
Doc_Name
/tmp/language
/html-single/
directory.
publican build --formats=pdf --langs=languages
Doc_Name
/tmp/language
/pdf/
directory.
publican build --formats=html,html-single,pdf --langs=languages
publican.cfg
file; a similar set of parameters was defined in a Makefile
. Before you build such a document in a current version of Publican (version 0.99 onwards), you must convert the Makefile
into a publican.cfg
file. Publican can do this conversion automatically:
Makefile
.
publican old2new
. Publican parses the Makefile
and creates a publican.cfg
file with equivalent parameters wherever available.
publican old2new
, Publican does not alter or delete the original Makefile
. A Makefile
and a publican.cfg
file can coexist in the same document.