1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-24 01:46:04 +02:00
crowbook/docs/book/book.html
Elisabeth Henry f05bb3019d Update guide
2018-06-01 18:15:28 +02:00

3351 lines
247 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="viewport" content="width=device-width">
<meta name="author" content="Élisabeth Henry">
<link rel = "icon" href = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIKICAgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTQ0IDE0NDsiCiA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jA1NDQ5OCwtMS43MzUzMjQgLTAuNjk2MDAxLC0xLjU3MSAwLjAxMTA1LC0zLjQxMTU1OCAxLjU4MDA1MSwtNC4xMDc1NTggMC43MDE0OCwtMC4zMTE2MjIgMS40NTI2MSwtMC4zMjgzNzEgMi4xMzUwMSwtMC4xMjY1MTkgQSA0MC4yODk3NzksNDAuMjg5Nzc5IDAgMCAxIDY5LjI1NjgzOCwzMS4xMTcwODEgYyAwLjEzODQzOCwtMC40MzkyOTIgMC4zNjU1NjMsLTAuODU3MzU0IDAuNzA0NDgxLC0xLjIxMzQzMyAwLjU5MzUsLTAuNjIxIDEuMzgxNTc5LC0wLjk0MzMzMyAyLjE3NjcwNCwtMC45NjE4MzMgeiIKICAgICBpZD0icGF0aDMtNCIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPjwvc3ZnPg==">
<title>Crowbook User Guide</title>
<style type = "text/css">
body {
font-family: "Linux Libertine", "Georgia", serif;
text-align: justify;
font-size: 100%;
}
p {
text-indent: 1.25em;
margin:0;
hyphens: auto;
}
blockquote {
margin: 1em;
font-style: italic;
}
code {
font-size: 80%;
font-family: "Linux Libertine Mono", monospace;
background-color: #F0F0F0;
}
pre {
font-family: "Linux Libertine Mono", monospace;
margin: 1em;
padding-top: 0;
background-color: #F0F0F0;
white-space: pre-wrap;
word-wrap: break-word;
}
/* Try to disable hyphenation in titles */
h1, h2, h3, h4, h5, h5 {
adobe-hyphenate: none;
-ms-hyphens: none; /* Trident (Windows) */
-moz-hyphens: none; /* Gecko (Firefox) */
-webkit-hyphens: none; /* Webkit */
-epub-hyphens: none; /* EPUB 3 */
hyphens: none; /* Futur standard */
}
h1, h2, h3, h4, h5, h6 {
text-align: left;
font-family: Linux Biolinum, sans-serif;
font-variant: small-caps;
}
/* Title of a part */
h1.part {
font-size: 250%;
text-align: center;
}
/* The `Part X` section of a part */
h2.part {
font-size: 175%;
text-align: center;
}
/* The "Chapter X" section of a chapter */
span.chapter-header {
font-size: 75%;
}
/* Title of the book */
h1.title {
text-align: center;
font-size: 300%;
}
/* Author */
h2.author {
text-align: right;
font-size: 200%;
}
/* Subtitle */
h2.subtitle {
text-align: center;
font-size: 200%;
}
/* When toc is displayed inlined */
#toc ol, #toc ul {
padding: 0;
margin-left: 1em;
}
#toc li {
list-style-type: none;
margin: 0; padding: 0;
}
#toc li:before {
content: none;
}
#cover img {
width: 100%;
max-height: 100%;
}
.image {
margin: auto;
width: 80%;
}
.image img {
width: 100%;
max-height: 100%;
}
.rule {
text-align: center !important;
margin-top: 1em;
margin-bottom: 1em;
font-weight: bold;
page-break-inside: avoid;
break-inside: avoid;
page-break-after: avoid;
break-after: avoid;
}
/* The number of the note in an expanded footnote (e.g. [3]) */
.note-number {
font-weight: bold;
margin-right: 1em;
}
td.note-number {
vertical-align: top;
}
/* When footnotes (try to) be diplayed as margin notes */
.sidenote {
display: block;
float: right;
width: 30%;
border: 1px solid black;
margin: 1em;
padding: .5em;
margin-right: -1.5em;
}
.sidenote .note-number {
float: left;
}
/* The div class displaying notes at the end of a chapter */
div.notes {
text-align: justify;
border-top: thin dashed black;
margin-top: 1em;
}
table.notes {
border-collapse: collapse;
border-style: hidden;
}
table.notes tr td {
margin-left: 1em;
margin-right: 1em;
}
table.notes tr td p {
text-indent: 0;
}
/* Every markdown table is included in a <div class = "table"> */
.table {
margin: 1em;
}
.table table {
width: 80%;
margin: 0 auto;
border-style: solid;
border-width: thin;
border-color: black;
border-collapse: collapse;
}
.table table th, .table table td {
border-style: solid;
border-width: 1px;
text-align: center;
}
.table table th {
font-weight: bold;
font-variant: small-caps;
}
span.initial {
float: left;
font-size: 285%;
font-weight: bold;
margin-right: 0.05em;
line-height: 0.8em;
}
p.first-para {
text-indent: 0;
}
/* Use this for escape narrow space so it is non-breaking */
.nnbsp {
/* white-space: nowrap;*/
word-spacing: -0.13em;
/* Following necessary for Kobo EPUB3 reader??? */
margin: 0;
padding: 0;
}
/* Default HTML CSS file includes default EPUB CSS file */
/* Colours for the navigation menu (toc) */
nav {
background: #181818;
color: #cdd4da;
border-right-color: #cdd4da;
}
nav {
border-right: solid thin #cdd4da;
}
#nav a:link {
color: #cdd4da;
}
#nav a:visited {
color: #cdd4da;
}
a:link {
color: #3399ff;
}
a:visited {
color: #0066cc;
}
a:hover {
color: #66b3ff;
}
body {
background-color: #181818;
color: #cdd4da;
}
pre, code {
background-color: #1d1f21;
}
/* Colours for top and footer */
#top {
background-color: #cdd4da;
color: #181818;
}
footer {
background-color: #cdd4da;
color: #181818;
}
footer a, #top a {
color: #040C62;
}
footer a:hover, #top a:hover {
color: #00A8F6;
}
/* Additional elements */
/* Grammar error */
.grammar-error {
color: red;
text-decoration-line: underline;
text-decoration-style: double;
}
p.first-para:first-letter {
font-size: 300%;
float: left;
font-weight: bold;
margin-right: 0.05em;
line-height: 1em;
}
/* The nav element corresponding to the navigation menu */
nav {
z-index: 2;
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 20%;
overflow-y: auto;
font-size: 80%;
margin-left: 0;
border-right-width: 2px;
border-right-style: dashed;
}
#nav code {
background-color: transparent;
}
#nav a:link {
text-decoration: none;
}
#nav a:visited {
text-decoration: none;
}
#nav {
text-align: left;
}
#nav h2 {
text-align: center;
}
#nav li {
list-style-type: none;
text-indent: -1em;
}
#nav li:before {
content: none;
}
#nav ul {
padding-right: 1em;
padding-left: 1.5em;
}
/* The menu containing the button to display the navigation bar */
#menu {
position: fixed;
z-index: 2;
top: 0em;
left: 1em;
transition: left 1s;
}
#menu img {
opacity: 0.5;
}
#menu img:hover {
opacity: 1.0;
cursor: pointer;
}
#menu-button {
height: 1.5em;
padding: 0.5em;
}
#book-button {
height: 1.5em;
padding: 0.5em;
float: left;
}
/* Hide navigation bar */
#nav {
left: -21%;
transition: left 1s;
}
/* The main content of the book */
#content {
overflow-y: auto;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
transition: margin-left 1s;
}
/* Used for multifiles HTML */
.prev_chapter {
text-align: left;
text-indent: 0;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
.next_chapter {
text-align: right;
margin-top: 1em;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
/* Improving readability for the HTML format only */
p, blockquote, li, .image {
margin-right: auto;
max-width: 33em;
}
blockquote {
padding: 1em;
}
#content {
text-align: center;
}
#page {
display: inline-block;
text-align: justify;
max-width: 33em;
}
#nav-container {
top: 0;
width: 100%;
}
#nav-title {
top: 0;
}
#toolbar {
top: 0;
float: left;
}
#toolbar img {
cursor: pointer;
}
footer {
margin-top: 2em;
margin-bottom: 0;
}
#top {
margin-top: 0;
margin-bottom: 1em;
}
#top p {
font-family: "Linux Biolinum";
font-weight: bold;
font-variant: small-caps;
}
footer, #top {
padding-top: .25em;
padding-bottom: .25em;
margin-left: 0;
margin-right: 0;
text-align: center;
transition: margin-left 1s;
}
footer a, #top a {
text-decoration: none;
}
footer p, #top p {
text-indent: 0;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.5em;
margin-top: 0.5em;
max-width: 33em;
}
</style>
<style type = "text/css" media = "print">
#page {
display: block;
}
.chapter {
page-break-before: always;
}
#menu {
display: none;
}
#nav {
display: none;
}
</style>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-21%";
document.getElementById("content").style.marginLeft = "0%";
document.getElementById("menu").style.left = "1em";
/* if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}*/
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "20%";
document.getElementById("menu").style.left = "20%";
/* if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}*/
}
}
</script>
</head>
<body>
<script type = 'application/ld+json'>
{
"@context": "http://schema.org/",
"@type": "Book",
"author": "Élisabeth Henry",
"name": "Crowbook User Guide",
"version": "0.14.1",
"license": "This guide is published under the Creative Commons Attribution-ShareAlike 4.0-International license.",
"about": "Crowbook allows to render a book written in Markdown in various formats. This is some kind of manual for it, and a way to demonstrate and test it.",
"inLanguage": "en"
}
</script>
<nav id = "nav">
<div id = "nav-title">
<h2><a href = "#link-0">Crowbook User Guide</a></h2>
</div>
<ul>
<li><a href="#link-1">1. Crowbook</a>
<ul><li><a href="#link-2">1.1. Example</a></li>
<li><a href="#link-3">1.2. Installing</a></li>
<li><a href="#link-6">1.3. Dependencies</a></li>
<li><a href="#link-7">1.4. Quick tour</a></li>
<li><a href="#link-8">1.5. Current features</a></li>
<li><a href="#link-18">1.6. Contributors</a></li>
<li><a href="#link-19">1.7. Acknowledgements</a></li>
<li><a href="#link-20">1.8. ChangeLog</a></li>
<li><a href="#link-21">1.9. Contributing</a></li>
<li><a href="#link-22">1.10. Library</a></li>
<li><a href="#link-23">1.11. License</a></li>
</ul>
</li>
<li><a href="#link-24">2. Arguments</a>
<ul><li><a href="#link-25">2.1. <code>--create</code></a></li>
<li><a href="#link-26">2.2. <code>--single</code></a></li>
<li><a href="#link-27">2.3. <code>--set</code></a></li>
<li><a href="#link-28">2.4. <code>--list-options</code></a></li>
<li><a href="#link-29">2.5. <code>--print-template</code></a></li>
<li><a href="#link-30">2.6. <code>--stats</code></a></li>
<li><a href="#link-31">2.7. <code>--proofread</code></a></li>
<li><a href="#link-32">2.8. <code>--autograph</code></a></li>
<li><a href="#link-34">2.9. <code>--verbose</code></a></li>
<li><a href="#link-35">2.10. <code>--to</code></a></li>
<li><a href="#link-37">2.11. <code>--output</code></a></li>
<li><a href="#link-38">2.12. <code>--lang</code></a></li>
</ul>
</li>
<li><a href="#link-40">3. The configuration file</a>
<ul><li><a href="#link-41">3.1. Configuration in an inline YAML block</a></li>
<li><a href="#link-42">3.2. The list of files</a></li>
<li><a href="#link-45">3.3. Crowbook options</a></li>
<li><a href="#link-60">3.4. Full list of options</a></li>
</ul>
</li>
<li><a href="#link-77">4. Markdown format</a>
<ul><li><a href="#link-78">4.1. Tables</a></li>
<li><a href="#link-79">4.2. Footnotes</a></li>
<li><a href="#link-80">4.3. Superscript and subscript</a></li>
<li><a href="#link-81">4.4. “Standalone” images</a></li>
<li><a href="#link-82">4.5. Interactive fiction</a></li>
</ul>
</li>
<li><a href="#link-83">5. Templates</a>
<ul><li><a href="#link-84">5.1. Create and edit template</a></li>
<li><a href="#link-88">5.2. List of templates</a></li>
<li><a href="#link-102">5.3. List of accessible variables</a></li>
</ul>
</li>
<li><a href="#link-106">6. Proofreading with Crowbook</a>
<ul><li><a href="#link-107">6.1. Enabling proofreading</a></li>
<li><a href="#link-108">6.2. Repetition detection</a></li>
<li><a href="#link-109">6.3. Grammar checking</a></li>
</ul>
</li>
<li><a href="#link-112">7. Interactive fiction</a>
<ul><li><a href="#link-113">7.1. Basics</a></li>
<li><a href="#link-114">7.2. The interactive fiction renderer</a></li>
<li><a href="#link-115">7.3. Using Javascript in your interactive fiction</a></li>
<li><a href="#link-116">7.4. Embedding Makdown in your Javascript code embedded in your Markdown</a></li>
<li><a href="#link-117">7.5. Conditional blocks</a></li>
<li><a href="#link-118">7.6. Interactive fiction options</a></li>
</ul>
</li>
<li><a href="#link-119">8. Tips and tricks</a>
<ul><li><a href="#link-120">8.1. Using Crowbook with Emacs markdown mode</a></li>
<li><a href="#link-122">8.2. Embedding fonts in an EPUB file</a></li>
</ul>
</li>
<li><a href="#link-123">9. Contributing</a>
<ul><li><a href="#link-124">9.1. Internationalization</a></li>
</ul>
</li>
<li><a href="#link-125">ChangeLog</a>
<ul><li><a href="#link-126">unreleased</a></li>
<li><a href="#link-127">0.14.0 (2017-11-26)</a></li>
<li><a href="#link-128">0.14.0-beta (2017-10-08)</a></li>
<li><a href="#link-129">0.13.0 (2017-07-14)</a></li>
<li><a href="#link-130">0.12.0 (2017-06-05)</a></li>
<li><a href="#link-131">0.11.4 (2017-03-21)</a></li>
<li><a href="#link-132">0.11.3 (2017-03-19)</a></li>
<li><a href="#link-133">0.11.2 (2017-03-05)</a></li>
<li><a href="#link-134">0.11.1 (2017-01-05)</a></li>
<li><a href="#link-135">0.11.0 (2016-12-31)</a></li>
<li><a href="#link-136">0.10.4 (2016-12-16)</a></li>
<li><a href="#link-137">0.10.3 (2016-11-19)</a></li>
<li><a href="#link-138">0.10.2 (2016-10-21)</a></li>
<li><a href="#link-139">0.10.1 (2016-10-18)</a></li>
<li><a href="#link-140">0.10.0 (2016-10-18)</a></li>
<li><a href="#link-141">0.9.1 (2016-09-29)</a></li>
<li><a href="#link-142">0.9.0 (2016-09-23)</a></li>
<li><a href="#link-143">0.8.0 (2016-09-19)</a></li>
<li><a href="#link-144">0.7.0 (2016-09-11)</a></li>
<li><a href="#link-145">0.6.0 (2016-09-09)</a></li>
<li><a href="#link-146">0.5.1 (2016-04-14)</a></li>
<li><a href="#link-147">0.5.0 (2016-04-02)</a></li>
<li><a href="#link-148">0.4.0 (2016-03-01)</a></li>
<li><a href="#link-149">0.3.0 (2016-02-27)</a></li>
<li><a href="#link-150">0.2.2 (2016-02-25)</a></li>
<li><a href="#link-151">0.2.1 (2016-02-25)</a></li>
<li><a href="#link-152">0.2.0 (2016-02-25)</a></li>
<li><a href="#link-153">0.1.0 (2016-02-21)</a></li>
</ul>
</li>
<li><a href="#link-154">GNU LESSER GENERAL PUBLIC LICENSE</a></li>
</ul>
</nav>
<div id = "content">
<div id = "top"><p id = "para-346">Crowbook User Guide 0.14.1</p>
</div>
<div id = "page">
<header>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz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7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gMTA0LjMzMDcxLDkzOS41MDUwNiA1MDAsMCIKICAgICAgIGlkPSJwYXRoNDEzNi01LTMiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgICAgaW5rc2NhcGU6dHJhbnNmb3JtLWNlbnRlci14PSI3MS40Mjg1NzIiCiAgICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXk9Ii0yNDIuODU3MTYiIC8+CiAgPC9nPgo8L3N2Zz4K"
alt = "Table of contents" title = "Table of contents" />
</div>
<h2 class="author">Élisabeth Henry</h2>
<h1 id = "link-0" class="title" >Crowbook User Guide</h1>
</header>
<div id = "chapter-0" class = "chapter">
<h1 id = 'link-1'><span class = 'chapter-header'>Chapter 1</span><br />Crowbook</h1><p id = "para-1"><a href = "https://travis-ci.org/lise-henry/crowbook"><img src = "https://travis-ci.org/lise-henry/crowbook.svg?branch=master" title = "" alt = "Travis status" /></a> <a href = "https://ci.appveyor.com/project/lise-henry/crowbook"><img src = "https://ci.appveyor.com/api/projects/status/bnj1rg76khth0aia?svg=true" title = "" alt = "Appveyor status" /></a></p>
<p id = "para-2">Crowbooks aim is to allow you to write a book in Markdown without worrying about formatting or typography, and let the program generate HTML, PDF and EPUB output for you. Its focus is novels and fiction, and the default settings should (hopefully) generate readable books with correct typography without requiring you to worry about it.</p>
<h2 id = "link-2">1.1. Example</h2>
<p id = "para-3">To see what Crowbooks output looks like, you can read the Crowbook guide rendered in <a href = "http://lise-henry.github.io/crowbook/book/book.html">HTML</a>, <a href = "http://lise-henry.github.io/crowbook/book/book.pdf">PDF</a> or <a href = "http://lise-henry.github.io/crowbook/book/book.epub">EPUB</a>.</p>
<p id = "para-4">You can also play with the <a href = "http://vps.crowdagger.fr/crowbook/">online demo version</a>.</p>
<h2 id = "link-3">1.2. Installing</h2>
<p id = "para-5">There are two ways to install Crowbook: either using precompiled binaries, or compiling it using <code>cargo</code>.</p>
<h3 id = "link-4">Binaries</h3>
<p id = "para-6">See <a href = "https://github.com/lise-henry/crowbook/releases">the releases page</a> to download a precompiled binary for your architecture (currently: Linux, Windows and MacOSX). Just extract the archive and run <code>crowbook</code> (or <code>crowbook.exe</code> on Windows). You might also want to copy the binary somewhere in your <code>PATH</code> for later usage.</p>
<p id = "para-7">If you are on Debian GNU/Linux or Ubuntu (on a PC architecture), you can also download <code>.deb</code> packages on <a href = "https://github.com/lise-henry/crowbook/releases">the releases page</a>.</p>
<h3 id = "link-5">Using Cargo</h3>
<p id = "para-8"><a href = "https://crates.io/">Cargo</a> is the <a href = "https://www.rust-lang.org/">Rust</a>s package manager. You can <a href = "https://www.rust-lang.org/downloads.html">install it here</a>. Once it is done:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> cargo install crowbook
</span></pre><p id = "para-9">will automatically download the latest <code>crowbook</code> release on <a href = "https://crates.io/crates/crowbook">crates.io</a>, compile it, and install it on your system.</p>
<blockquote><p id = "para-10">Some dependencies also require building C libraries; you might thus also need to install a C compiler and <code>make</code>/<code>cmake</code> build tools. You can also try to build a version of Crowbook without optional features: <code>cargo install crowbook --no-default-features --features “clap”</code> will disable syntactic highlighting and proofreading, requiring less dependencies.</p>
</blockquote>
<h2 id = "link-6">1.3. Dependencies</h2>
<p id = "para-11">While there should be, strictly speaking, no real dependencies to be able to run Crowbook (it is published as a statically compiled binary), some features require additional commands to work correctly:</p>
<ul>
<li>EPUB rendering requires the <code>zip</code> command to be present on your system;</li>
<li>PDF rendering requires a working installation of LaTeX (preferably <code>xelatex</code>).</li>
</ul>
<h2 id = "link-7">1.4. Quick tour</h2>
<p id = "para-12">The simplest command is:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook </span><span style="color:#657b83;">&lt;</span><span style="color:#839496;">BOOK</span><span style="color:#657b83;">&gt;
</span></pre><p id = "para-13">where <code>BOOK</code> is a configuration file. Crowbook will parse this file and generate HTML, EPUB, and/or PDF output formats, according to the settings in the configuration file.</p>
<p id = "para-14">To create a new book, assuming you have a list of Markdown files, you can generate a template configuration file with the <code>--create</code> argument:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook my.book</span><span style="color:#268bd2;"> --create</span><span style="color:#839496;"> chapter_</span><span style="color:#859900;">*</span><span style="color:#839496;">.md
</span></pre><p id = "para-15">This will generate a default <code>my.book</code> file, which youll need to complete. This configuration file contains some metadata, options, and lists the Markdown files.</p>
<p id = "para-16">For short books containing only a single Markdown file, it is possible to embed some metadata at the beginning of the file and use the <code>--single</code> or <code>-s</code> option to run <code>crowbook</code> directly on this Markdown file and avoid creating a separate book configuration file:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> -s</span><span style="color:#839496;"> text.md
</span></pre><p id = "para-17">For more information, see the chapters on <a href = "#chapter-1">the arguments supported by <code>crowbook</code></a> and on <a href = "#chapter-2">the configuration file</a>.</p>
<h2 id = "link-8">1.5. Current features</h2>
<h3 id = "link-9">Output formats</h3>
<p id = "para-18">Crowbook supports HTML, PDF and EPUB (either version 2 or 3) as output formats. See the Crowbook User Guide rendered in <a href = "http://lise-henry.github.io/crowbook/book/book.html">HTML</a>, <a href = "http://lise-henry.github.io/crowbook/book/book.epub">EPUB</a> and <a href = "http://lise-henry.github.io/crowbook/book.pdf">PDF</a>.</p>
<h3 id = "link-10">Input format</h3>
<p id = "para-19">Crowbook uses <a href = "https://crates.io/crates/pulldown-cmark">pulldown-cmark</a> and thus should support most of <a href = "http://commonmark.org/">CommonMark Markdown</a>. Inline HTML, however, is not implemented, and probably wont be, as the goal is to have books that can also be generated in PDF (and maybe ODT).</p>
<h3 id = "link-11">Typographic “cleaning”</h3>
<p id = "para-20">Maybe the most specific “feature” of Crowbook is that it does its best to “clean” the input text before rendering it. By default, it removes superfluous spaces and tries to use curly quotes. If the books language is set to french, it also tries to respect french typography by replacing spaces with non-breaking ones when it is appropriate (e.g. before ?, !, ; or :).</p>
<blockquote><p id = "para-21">Please <a href = "https://github.com/lise-henry/crowbook/issues/new">open an issue</a> describing typographic rules if you want them to be implemented for other languages.</p>
</blockquote>
<h3 id = "link-12">Links handling</h3>
<p id = "para-22">Crowbook tries to correctly translate local links in the input Markdown files: e.g. if you have a link to a Markdown file that is part of your book, it will be transformed into a link inside the document.</p>
<h3 id = "link-13">Inline YAML blocks</h3>
<p id = "para-23">Crowbook supports inline YAML blocks:</p>
<pre><span style="color:#839496;">---
</span><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Me
title</span><span style="color:#839496;">: </span><span style="color:#2aa198;">My title
</span><span style="color:#839496;">---
</span></pre><p id = "para-24">This is mostly useful when Crowbook is run with the <code>--single</code> argument (receiving a single Markdown file instead of a book configuration file), for short texts that only contain one “chapter”.</p>
<h3 id = "link-14">Proofreading</h3>
<p id = "para-25">Crowbook can also generate “proofreading” copies in HTML or PDF, highlighting grammar errors and repetitions. For more information, see <a href = "#chapter-5">the proofreading chapter of the guide</a>.</p>
<h3 id = "link-15">Interactive fiction</h3>
<p id = "para-26">Crowbook has experimental support for writing interactive fiction (only for HTML). For more information, read the <a href = "#chapter-6">interactive fiction chapter</a>.</p>
<h3 id = "link-16">Customization</h3>
<p id = "para-27">While the default settings will hopefully generate something that should look “good enough”, it is possible to customize the output, essentially by providing different <a href = "#chapter-4">templates</a>.</p>
<h3 id = "link-17">Bugs</h3>
<p id = "para-28">See the <a href = "https://github.com/lise-henry/crowbook/issues">githubs issue tracker</a>.</p>
<h2 id = "link-18">1.6. Contributors</h2>
<ul>
<li><a href = "http://stephanemourey.fr/">Stéphane Mourey</a> <code>&lt;s+crowbook AT stephanemourey DOT fr&gt;</code></li>
<li><a href = "https://github.com/hirschenberger">Falco Hirschenberger</a></li>
</ul>
<h2 id = "link-19">1.7. Acknowledgements</h2>
<p id = "para-29">Besides the <a href = "https://www.rust-lang.org/">Rust</a> compiler and standard library, Crowbook uses the following libraries: <a href = "https://crates.io/crates/pulldown-cmark">pulldown-cmark</a>, <a href = "https://crates.io/crates/yaml-rust">yaml-rust</a>, <a href = "https://crates.io/crates/mustache">mustache</a>, <a href = "https://github.com/kbknapp/clap-rs">clap</a>, <a href = "https://crates.io/crates/chrono">chrono</a>, <a href = "https://crates.io/crates/uuid">uuid</a>, <a href = "https://crates.io/crates/mime_guess">mime_guess</a>, <a href = "https://crates.io/crates/crossbeam">crossbeam</a>, <a href = "https://crates.io/crates/walkdir">walkdir</a>, <a href = "https://crates.io/crates/rustc-serialize">rustc-serialize</a>, <a href = "https://crates.io/crates/caribon">caribon</a>, <a href = "https://crates.io/crates/hyper">hyper</a>, <a href = "https://crates.io/crates/url">url</a>, <a href = "https://crates.io/crates/lazy_static">lazy_static</a>, <a href = "https://crates.io/crates/regex">regex</a>, <a href = "https://crates.io/crates/term">term</a>, <a href = "https://crates.io/crates/numerals">numerals</a>, <a href = "https://crates.io/crates/syntect">syntect</a>.</p>
<p id = "para-30">It can also embed <a href = "https://highlightjs.org/">Highlight.js</a> in HTML output to enable syntax highlighting for code blocks.</p>
<p id = "para-31">It also uses configuration files from <a href = "https://github.com/japaric/rust-everywhere">rust-everywhere</a> to use <a href = "https://travis-ci.org/">Travis</a> and <a href = "http://www.appveyor.com/">Appveyor</a> to generate binaries for various platforms on each release.</p>
<p id = "para-32">While Crowbook directly doesnt use them, there was also inspiration from <a href = "http://pandoc.org/">Pandoc</a> and <a href = "https://github.com/azerupi/mdBook">mdBook</a>.</p>
<p id = "para-33">Also, the <a href = "https://validator.w3.org/">W3C HTML validator</a> and the <a href = "http://validator.idpf.org/">IDPF EPUB validator</a> prove very useful during development and testing.</p>
<h2 id = "link-20">1.8. ChangeLog</h2>
<p id = "para-34">See <a href = "#chapter-9">ChangeLog</a>.</p>
<h2 id = "link-21">1.9. Contributing</h2>
<p id = "para-35">See <a href = "#chapter-8">how you can contribute to Crowbook</a>.</p>
<p id = "para-36">If you find this project useful, you can also support its author by <a href = "https://www.paypal.me/crowdagger">making a Paypal donation</a>.</p>
<h2 id = "link-22">1.10. Library</h2>
<p id = "para-37">While the main purpose of Crowbook is to be run as a standalone program, the code is written as a library, so if you want to build on it you can use it as such. You can look at the generated documentation on <a href = "https://docs.rs/releases/search?query=crowbook">docs.rs</a>.</p>
<p id = "para-38">Note that, in order to facilitate code reuse, some features have been split to separate libraries:</p>
<ul>
<li><a href = "https://github.com/lise-henry/epub-builder">epub-builder</a> makes it easier to generate EPUB files.</li>
<li><a href = "https://github.com/lise-henry/crowbook-text-processing/">crowbook-text-processing</a> contains all the “typographic” functions (smart quotes, handling of non-breaking spaces in french, ...).</li>
<li><a href = "https://github.com/lise-henry/crowbook-intl/">crowbook-intl</a> is used for the internationalization (translation) process.</li>
</ul>
<h2 id = "link-23">1.11. License</h2>
<p id = "para-39">Crowbook is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL), version 2.1 or (at your option) any ulterior version. See <a href = "#chapter-10">LICENSE</a> for more information.</p>
<p id = "para-40">Crowbooks logo is licensed under the <a href = "https://creativecommons.org/licenses/by/4.0/deed.en">Creative Commons Attribution 4.0 International license</a>, based on the <a href = "https://commons.wikimedia.org/wiki/File:Rust_programming_language_black_logo.svg">Rust logo</a> by Mozilla Corporation.</p>
<p id = "para-41">Crowbook includes binary (minified) CSS and Javascript files from <a href = "https://highlightjs.org/">Highlight.js</a>, written by Ivan Sagalaev, licensed under the following terms:</p>
<blockquote><p id = "para-42">Copyright (c) 2006, Ivan Sagalaev</p>
<p id = "para-43">All rights reserved.</p>
<p id = "para-44">Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of highlight.js nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p id = "para-45">THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</blockquote>
</div><div id = "chapter-1" class = "chapter">
<h1 id = 'link-24'><span class = 'chapter-header'>Chapter 2</span><br />Arguments</h1><p id = "para-46">Crowbook can take a number of arguments, generally in the form:</p>
<pre><span style="color:#b58900;">crowbook </span><span style="color:#859900;">[</span><span style="color:#839496;">OPTIONS</span><span style="color:#859900;">] [</span><span style="color:#839496;">BOOK</span><span style="color:#859900;">]
</span></pre><p id = "para-47">The most important argument is obviously the book configuration file. It is mandatory in most cases: if you dont pass it, Crowbook will simply display an error. In a normal use case this is the only argument youll need to pass, as most options will be set in this configuration file.</p>
<p id = "para-48">It is, however, possible to pass more arguments to <code>crowbook</code>:</p>
<h2 id = "link-25">2.1. <code>--create</code></h2>
<p id = "para-49"><b>Usage</b>: <code>crowbook [BOOK] --create file_1.md file_2.md ...</code></p>
<p id = "para-50">(or <code>crowbook [BOOK] -c file_1.md file_2.md ...</code>)</p>
<p id = "para-51">Creates a new book from a list of Markdown files. It will generate a book configuration file with all file names specified as chapters. It either prints the result to stdout (if <code>BOOK</code> is not specified) or generate the file <code>BOOK</code> (or abort if it already exists).</p>
<pre><span style="color:#b58900;">crowbook</span><span style="color:#839496;"> foo.book</span><span style="color:#268bd2;"> --create</span><span style="color:#839496;"> chapter_1.md chapter_2.md chapter_3.md
</span></pre><p id = "para-52">will thus generate a file <code>foo.book</code> containing:</p>
<pre><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Your name
title</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Your title
lang</span><span style="color:#839496;">: </span><span style="color:#2aa198;">en
</span><span style="color:#586e75;">## Output formats
# Uncomment and fill to generate files
# output.html: some_file.html
# output.epub: some_file.epub
# output.pdf: some_file.pdf
# Or uncomment the following to generate PDF, HTML and EPUB files based on this file&#39;s name
# output: [pdf, epub, html]
# Uncomment and fill to set cover image (for EPUB)
# cover: some_cover.png
## List of chapters
</span><span style="color:#2aa198;">+ chapter_1.md
+ chapter_2.md
+ chapter_3.md
</span></pre><p id = "para-53">while</p>
<pre><span style="color:#b58900;">crowbook</span><span style="color:#268bd2;"> --create</span><span style="color:#839496;"> chapter_1.md chapter_2.md chapter_3.md
</span></pre><p id = "para-54">will print the same result, but to stdout (without creating a file).</p>
<h2 id = "link-26">2.2. <code>--single</code></h2>
<p id = "para-55"><b>Usage</b>: <code>crowbook --single &lt;FILE&gt;</code></p>
<p id = "para-56">(or <code>crowbook -s &lt;FILE&gt;</code>)</p>
<p id = "para-57">This argument allows you to give <code>crowbook</code> a single Markdown file. This file can contain an inline YAML block to set some book options. Inline YAML blocks must start and end with a line containing only <code>---</code> (three dashes). E.g:</p>
<pre><span style="color:#839496;">---
</span><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Joan Doe
title</span><span style="color:#839496;">: </span><span style="color:#268bd2;">A short story
output</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">html</span><span style="color:#839496;">, </span><span style="color:#2aa198;">epub</span><span style="color:#839496;">, </span><span style="color:#2aa198;">pdf</span><span style="color:#839496;">]
---
</span><span style="color:#2aa198;">Content of the story in Markdown.
</span></pre><p id = "para-58">If this YAML block is not at the beginning of a file, it must also be preceded by a blank line.</p>
<p id = "para-59">This allows to not have to write a <code>.book</code> configuration file for a short story or an article. <code>crowbook -s foo.md</code> is rougly equivalent to having a book configuration file containing:</p>
<pre><span style="color:#268bd2;">! </span><span style="color:#2aa198;">foo.md
</span></pre><p id = "para-60">That is, the chapter heading (if any) wont be displayed in the output documents (though they still appear in the TOC).</p>
<blockquote><p id = "para-61">Note that by default, using <code>--single</code> or <code>-s</code> sets the default LaTeX class of the book to <code>article</code> instead of <code>book</code>.</p>
</blockquote>
<h2 id = "link-27">2.3. <code>--set</code></h2>
<p id = "para-62"><b>Usage</b>: <code>crowbook &lt;BOOK&gt; --set [KEY] [VALUE]...</code></p>
<p id = "para-63">This argument takes a list of <code>KEY</code> <code>VALUE</code> pairs and allows setting or overriding a book configuration option. All valid options in the configuration files are valid as keys. For more information, see <a href = "#chapter-2">the configuration file</a>.</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook foo.book</span><span style="color:#268bd2;"> --set</span><span style="color:#839496;"> tex.paper.size a4paper
</span></pre><p id = "para-64">will override the paper size for PDF generation.</p>
<h2 id = "link-28">2.4. <code>--list-options</code></h2>
<p id = "para-65"><b>Usage</b>: <code>crowbook --list-options</code></p>
<p id = "para-66">(or <code>crowbook -l</code>)</p>
<p id = "para-67">Displays all the valid options that can be used, whether in a book configuration file, with <code>--set</code>, or in an inline YAML block.</p>
<h2 id = "link-29">2.5. <code>--print-template</code></h2>
<p id = "para-68"><b>Usage</b>: <code>crowbook --print-template &lt;TEMPLATE&gt;</code></p>
<p id = "para-69">Prints the built-in template to stdout. Useful if you want to customize the appearance of your document. E.g., if you want to modify the CSS used for HTML rendering:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> --print-template</span><span style="color:#839496;"> html.css </span><span style="color:#657b83;">&gt;</span><span style="color:#839496;"> my_style.css
</span><span style="color:#586e75;"># edit my_style.css in your favourite editor
</span><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook my.book</span><span style="color:#268bd2;"> --set</span><span style="color:#839496;"> html.css my_style.css
</span><span style="color:#586e75;"># or add &quot;html.css: my_style.css&quot; in my.book
</span></pre><h2 id = "link-30">2.6. <code>--stats</code></h2>
<p id = "para-70"><b>Usage</b>: <code>crowbook --stats &lt;BOOK&gt;</code></p>
<p id = "para-71">(or <code>crowbook -S &lt;BOOK&gt;</code>)</p>
<p id = "para-72">Display some statistics (word and character counts) about the book. If you use the <code>--verbose</code> or <code>-v</code> option (and your version of Crowbook has been compiled with support for this feature) you will get advanced statistics such as Felsch readability index.</p>
<h2 id = "link-31">2.7. <code>--proofread</code></h2>
<p id = "para-73"><b>Usage</b>: <code>crowbook --proofread &lt;BOOK&gt;</code></p>
<p id = "para-74">(or <code>crowbook -p &lt;BOOK&gt;</code>)</p>
<p id = "para-75">Equivalent to <code>--set proofread true</code>. Enable proofreading. See <a href = "#chapter-5">Proofreading</a>.</p>
<h2 id = "link-32">2.8. <code>--autograph</code></h2>
<p id = "para-76"><b>Usage</b>: <code>crowbook --autograph &lt;BOOK&gt;</code></p>
<p id = "para-77">(or <code>crowbook -a &lt;BOOK&gt;</code>)</p>
<p id = "para-78">Prompts for a an autograph execution. This is a Markdown block that will be inserted at the beginning of the book.</p>
<h3 id = "link-33">Example</h3>
<pre><span style="color:#839496;">$ crowbook --autograph my.book
CROWBOOK 0.14.0
Enter autograph:
To my dear friend John,
Cheers, *Joan*
^D
</span></pre><p id = "para-79">will add the block of text that was entered to all output files.</p>
<h2 id = "link-34">2.9. <code>--verbose</code></h2>
<p id = "para-80"><b>Usage</b>: <code>crowbook &lt;BOOK&gt; --verbose</code></p>
<p id = "para-81">If this flag is set, Crowbook will print more warnings it detects while parsing and rendering.</p>
<h2 id = "link-35">2.10. <code>--to</code></h2>
<p id = "para-82"><b>Usage</b>: <code>crowbook &lt;BOOK&gt; --to [FORMAT]</code></p>
<p id = "para-83">(or <code>crowbook &lt;BOOK&gt; -t [FORMAT]</code>)</p>
<p id = "para-84">Generate only the specified format. <code>FORMAT</code> must be either <code>epub</code>, <code>pdf</code>, <code>html</code>, <code>html.dir</code>, <code>odt</code> or <code>tex</code>.</p>
<p id = "para-85">If an output file for the format is not specified in the book configuration file, <code>crowbook</code> will fail to render PDF, ODT and EPUB, whereas it will print HTML and TeX files on stdout. It is, however, possible to specify a file with the <code>--output</code> option.</p>
<h3 id = "link-36">Examples</h3>
<pre><span style="color:#b58900;">crowbook</span><span style="color:#268bd2;"> --to</span><span style="color:#839496;"> html foo.book
</span></pre><p id = "para-86">will generate some HTML, and prints it either to the file specified by <code>output.html</code> in <code>foo.book</code>, or to stdout if it is not specified.</p>
<pre><span style="color:#b58900;">crowbook</span><span style="color:#268bd2;"> --to</span><span style="color:#839496;"> pdf</span><span style="color:#268bd2;"> --output</span><span style="color:#839496;"> foo.pdf foo.book
</span></pre><p id = "para-87">will generate a <code>foo.pdf</code> file.</p>
<h2 id = "link-37">2.11. <code>--output</code></h2>
<p id = "para-88"><b>Usage</b>: <code>crowbook &lt;BOOK&gt; --to &lt;FORMAT&gt; --output &lt;FILE&gt;</code></p>
<p id = "para-89">(or <code>crowbook -t &lt;FORMAT&gt; -o &lt;FILE&gt; &lt;BOOK&gt;</code>)</p>
<p id = "para-90">Specifies an output file. Only valid when <code>--to</code> is used.</p>
<h2 id = "link-38">2.12. <code>--lang</code></h2>
<p id = "para-91"><b>Usage</b>: <code>crowbook --lang &lt;LANG&gt;</code></p>
<p id = "para-92">(or <code>crowbook -L &lt;LANG&gt;</code>)</p>
<p id = "para-93">Set the runtime language used by Crowbook. Currently, only a french translation is available. By default, Crowbook uses the <code>LANG</code> environment variable to determine which language to use, but this option allows to override it (e.g. for operating systems that dont use such an option, such as Windows).</p>
<h3 id = "link-39">Example</h3>
<p id = "para-94"><code>$ crowbook --lang fr --help</code></p>
<p id = "para-95">will display Crowbooks help message in french.</p>
<blockquote><p id = "para-96">Note that this argument has nothing to do with the <code>lang</code> option that you can set in the book configuration file, which specifies the language <em>of the book</em>. This argument specifies the language of the text messages that Crowbook will display while running, but has no effect on the generated documents.</p>
</blockquote>
</div><div id = "chapter-2" class = "chapter">
<h1 id = 'link-40'><span class = 'chapter-header'>Chapter 3</span><br />The configuration file</h1><p id = "para-97">If you want to use Crowbook for your book, this configuration file is all youll have to add, beside the Markdown files containing the text of your book.</p>
<p id = "para-98">The format is not very complicated. This is an example of it:</p>
<pre><span style="color:#586e75;"># metadata
</span><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Joan Doe
title</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Some book
lang</span><span style="color:#839496;">: </span><span style="color:#268bd2;">en
output</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">html</span><span style="color:#839496;">, </span><span style="color:#2aa198;">pdf</span><span style="color:#839496;">, </span><span style="color:#2aa198;">epub</span><span style="color:#839496;">]
</span><span style="color:#586e75;"># list of chapters
</span><span style="color:#839496;">- </span><span style="color:#2aa198;">preface.md
+ chapter_1.md
+ chapter_2.md
+ chapter_3.md
+ chapter_4.md
</span><span style="color:#839496;">- </span><span style="color:#2aa198;">epilogue.md
</span></pre><p id = "para-99">Basically, it is divided in two parts:</p>
<ul>
<li>a list of options, under the form <code>key: value</code>, following YAML syntax.</li>
<li>a list of Markdown files.</li>
</ul>
<p id = "para-100">Lines starting with the <code>#</code> characters are comments and are discarded.</p>
<h2 id = "link-41">3.1. Configuration in an inline YAML block</h2>
<p id = "para-101">Sometimes, you only have one Markdown file and might not want to have a separate configuration file. In this case, you can specify options at the beginning of your Markdown file, using an inline YAML block, separated by two lines containing only <code>---</code>:</p>
<pre><span style="color:#839496;">---
author: Joan Doe
title: Some (short) book
lang: en
output: [html, pdf, epub]
</span><span style="color:#b58900;">---
# </span><span style="color:#cb4b16;">Some (short) book
</span><span style="color:#839496;">The book content, formatted in Markdown.
</span></pre><p id = "para-102">This method only allows to set up options: you cant include a list of chapters in this way, since the only “chapter” that will be included is this Markdown file itself.</p>
<p id = "para-103">You can then use</p>
<pre><span style="color:#b58900;">crowbook</span><span style="color:#268bd2;"> -s</span><span style="color:#839496;"> some_book.md
</span></pre><p id = "para-104">to generate output formats from this Markdown file.</p>
<blockquote><p id = "para-105">By default (unless <code>input.yaml_blocks</code> is set to true), Crowboook will only read those inline blocks when it is runned with <code>crowbook --single</code> (or <code>crowbook -s</code>).</p>
</blockquote>
<h2 id = "link-42">3.2. The list of files</h2>
<p id = "para-106">There are various options to include a Markdown file.</p>
<ul>
<li><code>+ file_name.md</code> includes a numbered chapter.</li>
<li><code>- file_name.md</code> includes an unnumbered chapter.</li>
<li><code>! file_name.md</code> includes a chapter whose title wont be displayed (except in the table of contents); this is useful for e.g. including a copyright at the beginning or the book, or for short stories where there is only one chapter.</li>
<li><code>42. file_name.md</code> specifies the number for a chapter.</li>
<li><code>@</code> includes a part instead of a chapter.</li>
</ul>
<p id = "para-107">So a typical usage might look like this:</p>
<pre><span style="color:#268bd2;">! </span><span style="color:#2aa198;">copyright.md
</span><span style="color:#839496;">- </span><span style="color:#2aa198;">preface.md
0. chapter_0.md </span><span style="color:#586e75;"># We want to start at chapter 0 instead of 1
# Next chapters can be numbered automatically
</span><span style="color:#2aa198;">+ chapter_1.md
+ chapter_2.md
</span><span style="color:#839496;">...
</span></pre><p id = "para-108">There are two important things to note:</p>
<ol>
<li>you must <em>not</em> use quotes around the file names.</li>
<li>the paths of these files are relative to the directory where your configuration file is. This means you can run <code>crowbook books/my_trilogy/first_book/config.book</code> without being in the books directory.</li>
</ol>
<p id = "para-109">Also note that you dont have to specify a title. This is because the title of the chapter is inferred from the Markdown document. To go back to our previous example:</p>
<pre><span style="color:#839496;">+ chapter_1.md
</span></pre><p id = "para-110">does not specify a chapter title, because it will read it directly in <code>chapter_1.md</code>, e.g.:</p>
<pre><span style="color:#b58900;"># </span><span style="color:#cb4b16;">The day I was born </span><span style="color:#b58900;">#
</span><span style="color:#839496;">...
</span></pre><p id = "para-111">Ideally, you should have one and only one level-one header (i.e. chapter title) in each Markdown file. If you have more than one, it might mess with the table of contents in some cases (e.g. for EPUB).</p>
<h3 id = "link-43">Parts</h3>
<p id = "para-112">Parts are included using the <code>@</code> character, followed by the same characters than for chapters:</p>
<pre><span style="color:#839496;">@+ numbered_part.md
+ chapter_01.md
+ chapter_02.md
@- unnumbered_part.md
+ chapter_03.md
+ chapter_04.md
@42. part_with_number_42.md
+ chapter_05.md
</span></pre><p id = "para-113">However, you usually dont really want to have a content directly below the part, only chapters (though it can be useful to add an introduction before the first chapter of this part), so there is also a more straighforward way to use parts, using only the <code>@</code> character followed by the (markdown-formatted) title of this part:</p>
<pre><span style="color:#839496;">@ Beginning
+ chapter_01.md
+ chapter_02.md
@ Middle
+ chapter_03.md
+ chapter_04.md
@ Appendix
- notes.md
</span></pre><p id = "para-114">With this shortcut, parts are always numbered.</p>
<h3 id = "link-44">Subchapters</h3>
<p id = "para-115">If you write your book to be rendered by Crowbook, it is better to have one Markdown file per chapter. It is, however, possible to work with divisions at lower levels. In order to properly include these files, you can use the following syntax:</p>
<pre><span style="color:#839496;">-- section.md
--- subsection.md
---- subsubsection.md
</span></pre><blockquote><p id = "para-116">Note that there isnt different syntax for numbered or unnumbered sections/subsections: you can only change the numbering scheme at the chapter level.</p>
</blockquote>
<p id = "para-117">When including those files, Crowbook will include them in the table of content as part of the previous chapter (or section for subsections, and so on). It will also adjust the header levels of the Markdown files, so, in the previous example, a level-1 header in <code>section.md</code> will be displayed as a level-2 header in the book, and a level-1 header in <code>subsection.md</code> as a level-3 header.</p>
<blockquote><p id = "para-118">This can cause issues as only six levels of headers are supported; hence, if you include a level-5 header in <code>subsubsection.md</code>, it will cause an error.</p>
</blockquote>
<h2 id = "link-45">3.3. Crowbook options</h2>
<p id = "para-119">The first part of the configuration file is dedicated to pass options to Crowbook. This is <a href = "https://en.wikipedia.org/wiki/YAML">YAML syntax</a>, so each line should be of the form <code>key: value</code>. Note that in most cases you dont have to put string in quotes, e.g.:</p>
<pre><span style="color:#268bd2;">title</span><span style="color:#839496;">: </span><span style="color:#2aa198;">My title
</span></pre><p id = "para-120">It is however possible (and sometimes necessary) to escape some characters using quotes around strings:</p>
<pre><span style="color:#268bd2;">title</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">My: title!</span><span style="color:#839496;">&quot;
</span></pre><p id = "para-121">It is possible to use multiline strings with <code>&gt;-</code> and then indenting the lines that are part of the string:</p>
<pre><span style="color:#268bd2;">title</span><span style="color:#839496;">: </span><span style="color:#859900;">&gt;</span><span style="color:#93a1a1;">-
</span><span style="color:#2aa198;"> A
long
title
</span><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#2aa198;">Joan Doe
</span></pre><p id = "para-122">will set <code>title</code> to <code>“A long title”</code>. See <a href = "https://en.wikipedia.org/wiki/YAML#Block_literals">block literals in YAML</a> for more information on the various way to insert multiline strings (which mostly change the way newlines will or wont be inserted).</p>
<p id = "para-123">A final note on the syntax: all options must be set <em>before</em> the first chapter inclusion (that is, a line beginning with +, -, x. (where <code>x</code> is a number) or !).</p>
<h3 id = "link-46">Metadata</h3>
<p id = "para-124">Metadata are data about the book. Except for <code>cover</code>, which points to an image file, all its fields are strings. The main metadata are:</p>
<ul>
<li><code>author</code></li>
<li><code>title</code></li>
<li><code>subtitle</code></li>
<li><code>lang</code>, the language of the book. The unicode language code should be used, e.g. <code>en_GB</code> or <code>en</code>, <code>fr_FR</code>, or <code>fr</code>...</li>
<li><code>cover</code>, a path to an image file for the cover of the book (not displayed in all output formats).</li>
</ul>
<p id = "para-125">There are also additional metadata:</p>
<ul>
<li><code>subject</code></li>
<li><code>description</code></li>
<li><code>license</code></li>
<li><code>version</code></li>
<li><code>date</code></li>
</ul>
<p id = "para-126">You can define your own metadata by starting an option name with <code>metadata.foo</code>.</p>
<p id = "para-127">All metadata are accessible from templates, see <a href = "#chapter-4">Templates</a>.</p>
<h3 id = "link-47">The <code>import</code> special option</h3>
<p id = "para-128">The special <code>import</code> option allows you to include the options of another book configuration file. E.g., assuming that you want some common options to be applied to both <code>foo.book</code> and <code>bar.book</code>, you can create a <code>common.book</code> file:</p>
<pre><span style="color:#268bd2;">author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Joan Doe
lang</span><span style="color:#839496;">: </span><span style="color:#268bd2;">en
license</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">Copyright (C) Joan Doe. All rights reserved.</span><span style="color:#839496;">&quot;
</span><span style="color:#268bd2;">html.header</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">[Joan Doe&#39;s website](http://joan-doe.com)</span><span style="color:#839496;">&quot;
</span><span style="color:#268bd2;">tex.template</span><span style="color:#839496;">: </span><span style="color:#2aa198;">my_template.tex
</span></pre><p id = "para-129">You can then include this file in <code>foo.book</code>:</p>
<pre><span style="color:#268bd2;">import</span><span style="color:#839496;">: </span><span style="color:#268bd2;">common.book
title</span><span style="color:#839496;">: </span><span style="color:#2aa198;">Foo
+ foo_01.md
+ foo_02.md
</span></pre><p id = "para-130">Or include it in <code>bar.book</code>, but override some of its features:</p>
<pre><span style="color:#268bd2;">import</span><span style="color:#839496;">: </span><span style="color:#268bd2;">common.book
title</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Bar
license</span><span style="color:#839496;">: </span><span style="color:#2aa198;">CC-BY-SA </span><span style="color:#586e75;"># Override the license from common.book
</span><span style="color:#2aa198;">+ bar_01.md
</span></pre><h3 id = "link-48">Output options</h3>
<p id = "para-131">These options specify which files to generate.</p>
<p id = "para-132">Note that all file paths are relative to the directory where the configuration file is, not to the one where you run <code>crowbook</code>. So if you set</p>
<pre><span style="color:#268bd2;">output.epub</span><span style="color:#839496;">: </span><span style="color:#2aa198;">foo.epub
</span></pre><p id = "para-133">and run</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook some/dir/config.book
</span></pre><p id = "para-134"><code>foo.epub</code> will be generated in <code>some/dir</code>, not in your current directory.</p>
<p id = "para-135">Crowbook will try to generate each of the <code>output.xxx</code> files that are specified. That means that youll have to set at least one of those if you want a call to</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook my.book
</span></pre><p id = "para-136">to generate anything. (Its still possible to generate a specific format, and only this one, by using the <code>--to</code> and <code>--output</code> argument on the command line).</p>
<p id = "para-137">Note that some formats depend on some commands being installed on your system. Most notably, Crowbook depends on LaTeX (<code>xelatex</code> by default, though you can specify another command to use with <code>tex.command</code>) to generate a PDF file, so PDF rendering wont work if it is not installed on your system. Crowbook also uses the <code>zip</code> command to generate the EPUB and ODT files.</p>
<p id = "para-138">Current output options are:</p>
<ul>
<li><code>output.html</code>: renders a standalone HTML file.</li>
<li><code>output.html.dir</code>: renders a HTML directory with one page by chapter.</li>
<li><code>output.epub</code>: renders an EPUB file.</li>
<li><code>output.tex</code>: renders a LaTeX file.</li>
<li><code>output.pdf</code>: renders a PDF file (using <code>tex.command</code>).</li>
</ul>
<p id = "para-139">(There are other output options for generating proofreading files, see <a href = "#chapter-5">Proofreading</a>, and interactive fiction, see <a href = "#chapter-6">Interactive fiction</a>.)</p>
<h4 id = "link-49">The <code>output</code> option</h4>
<p id = "para-140">Setting output file names manually can be a bit tedious, and is not always necessary. You can also specify a list of output formats with the <code>output</code> option:</p>
<pre><span style="color:#268bd2;">output</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">pdf</span><span style="color:#839496;">, </span><span style="color:#2aa198;">epub</span><span style="color:#839496;">, </span><span style="color:#2aa198;">html</span><span style="color:#839496;">]
</span></pre><p id = "para-141">This is similar to the alternative syntax for YAML list:</p>
<pre><span style="color:#268bd2;">output</span><span style="color:#839496;">:
- </span><span style="color:#2aa198;">pdf
</span><span style="color:#839496;">- </span><span style="color:#2aa198;">epub
</span><span style="color:#839496;">- </span><span style="color:#2aa198;">html
</span></pre><p id = "para-142">This option will set default output path for PDF, EPUB and HTML according to the book configuration file name. So, if your book is <code>my_book.book</code> (or <code>my_book.md</code>), it will generate <code>my_book.pdf</code>, <code>my_book.html</code> and <code>my_book.epub</code>.</p>
<blockquote><p id = "para-143">You can also infer the output file name by specifying “auto” to e.g. <code>output.html</code>. The previous example is thus equivalent to</p>
<pre><span style="color:#268bd2;">output.pdf</span><span style="color:#839496;">: </span><span style="color:#268bd2;">auto
output.epub</span><span style="color:#839496;">: </span><span style="color:#268bd2;">auto
output.html</span><span style="color:#839496;">: </span><span style="color:#2aa198;">auto
</span></pre></blockquote>
<h4 id = "link-50"><code>output.base_path</code></h4>
<p id = "para-144">Additionally, the <code>output.base_path</code> option allows you to set where the output files will be written (relatively to the book configuration file). E.g.,</p>
<pre><span style="color:#268bd2;">output.base_path</span><span style="color:#839496;">: </span><span style="color:#268bd2;">docs/book
output.epub</span><span style="color:#839496;">: </span><span style="color:#2aa198;">book.epub
</span></pre><p id = "para-145">will render the EPUB file in <code>docs/book/book.epub</code>.</p>
<h3 id = "link-51">Input options</h3>
<p id = "para-146">Crowbook does its best to improve the typography of your text. Default settings should be good enough for most usages, but you can enable/disable specific options:</p>
<ul>
<li><code>input.clean</code> (default: <code>true</code>): if set to <code>false</code>, will disable all typographic “cleaning”. The algorithm is dependent on the language, though currently there is only a variant implemented for <code>fr</code> (french), dealing with the specific non-breaking spaces rules for this language.</li>
<li><code>input.clean.smart_quotes</code> (default: <code>true</code>): if set to <code>false</code>, disable the “smart quote” feature, that (tries to) replace straight quotes with curly ones. As it is an heuristics and cant be perfect, you might want to disable it in some circumstances.</li>
<li><code>input.clean.ligature_dashes</code> (default: <code>false</code>): if set to <code>true</code>, will convert <code>--</code> to en dash (<code></code>) and <code>---</code> to em dash (<code></code>). This can be useful if you want to use these characters but cant access them easily on your keymap; however, as it can also cause problems if you <em>do</em> want to have two successive dashes, it is disabled by default.</li>
<li><code>input.clean.ligature_guillemets</code> (default: <code>false</code>) is a similar feature for french guillemets, replacing <code>&lt;&lt;</code> and <code>&gt;&gt;</code> to <code>«</code> and <code>»</code>.</li>
</ul>
<h3 id = "link-52">Generic options for rendering</h3>
<p id = "para-147">These options allow to configure the rendering; they are used (or at least should be) for all formats.</p>
<ul>
<li><code>rendering.highlight</code> (default: <code>syntect</code>): specify if and how to perform syntax highlighting for code blocks. Valid values are:<ul>
<li><code>syntect</code>: uses the <a href = "https://crates.io/crates/syntect">syntect</a> library to perform syntax highlighting. This has the advantage of also enabling syntax highlighting for LaTeX/PDF and EPUB formats; however syntect support doesnt seem to work on Windows.</li>
<li><code>highlight.js</code>: this will use (and embed) <a href = "https://highlightjs.org/"><code>highlight.js</code></a> for HTML rendering, and will not perform any syntax highlighting for other output formats.</li>
<li><code>none</code>: disable syntax highlighting. If your version of Crowbook (as is the case for Windows builds) isnt built with <code>syntect</code> support, it will default to <code>none</code> if you try to use it.</li>
</ul>
</li>
<li><code>rendering.highlight.theme</code>: only used if <code>rendering.highlight</code> is set to <code>syntect</code>, selects the theme to use for syntax highlighting. Default is “InspiredGitHub”. Valid theme names are “InspiredGitHub”, “Solarized (dark)”, “Solarized (light)”, “base16-eighties.dark”, “base16-mocha.dark”, “base16-ocean.dark” and “base16-ocean.light”.</li>
<li><code>rendering.num_depth</code>: an integer that represents the maximum level of numbering for your book. E.g., <code>1</code> will only number chapters, while <code>2</code> will number chapters, sections, but not anything below that. <code>6</code> is the maximum level and turns numbering on for all headers. (Default is <code>1</code>.) This also affects what levels will be displayed in the table of contents.</li>
<li><code>rendering.chapter</code> and <code>rendering.part</code>: the strings that will be used to design chapter and part. E.g., if you want your parts to show as “Book III” instead of “Part III”, you can set <code>rendering.part: Book</code>.</li>
<li><code>rendering.part.roman_numerals</code> and <code>rendering.chapter.roman_numerals</code>: these two booleans allow you to specify if you want roman numerals for part or chapter numbers (default is <code>true</code> for part numbers, and <code>false</code> for chapter numbers).</li>
<li><code>rendering.inline_toc</code>: if set to true, Crowbook will include a table of contents at the beginning of the document.</li>
<li><code>rendering.inline_toc.name</code>: the name of this table of contents as it should be displayed in the document.</li>
<li><code>rendering.initials</code>: if set to true, Crowbook will use initials, or “lettrines”, displaying the first letter of each chapter bigger than the others.</li>
<li><code>rendering.part.reset_counter</code>: set it to <code>false</code> if you dont want your chapter numbers to start again at 1 at each part.</li>
</ul>
<h3 id = "link-53">HTML Options</h3>
<p id = "para-148">These options allow you to customize the HTML rendering (used both by the default HTML standalone renderer and the HTML multifile renderer):</p>
<ul>
<li><code>html.icon</code>: allows to set a <code>favicon</code> for the page.</li>
<li><code>html.header</code> and <code>html.footer</code> allow to set a custom (Markdown) string at the top and at the bottom of the HTML page. This is actually a template, so you can access metadata, such as <code>{{{author}}}</code>, <code>{{{title}}}</code>, or <code>{{{version}}}</code> in it. See the <a href = "#chapter-4">template</a> chapter for more information on the fields you can use.</li>
<li><code>html.css</code> allows to set up a custom CSS file. You can also redefine the colours in a file and set it using <code>html.css.colours</code>.</li>
<li><code>html.css.add</code> allows you to add some specific lines of CSS in your book configuration file, that will be appended after the default CSS template.</li>
<li><code>html.highlight.theme</code> is similar to <code>rendering.highlight.theme</code> but only sets the theme for HTML output.</li>
</ul>
<h4 id = "link-54">Options for standalone HTML</h4>
<p id = "para-149">There are a few options specific to the standalone HTML renderer (default, set with <code>output.html</code>):</p>
<ul>
<li><code>html.standalone.one_chapter</code>, if set to true, will only display one chapter at a time (using Javascript), making it look similarly to the multifile HTML.</li>
<li><code>html.standalone.template</code> allows you to change or modify the HTML template for standalone HTML.</li>
</ul>
<h3 id = "link-55">Options for LaTeX/PDF rendering</h3>
<p id = "para-150">These options allow you to customize the LaTeX renderer (and, thus, the generated PDF documents):</p>
<ul>
<li><code>tex.template</code> specifies a different LaTeX template.</li>
<li><code>tex.class</code> changes the LaTeX class used.</li>
<li><code>tex.paper.size</code> and <code>tex.font.size</code> (default <code>a5paper</code> and <code>10pt</code>) allows to modify the page and font size .</li>
<li><code>tex.margin.left</code>, <code>tex.margin.right</code>, <code>tex.margin.top</code> and <code>tex.margin.bottom</code> specify the margin of the page.</li>
<li><code>tex.links_as_footnotes</code> can be set to <code>false</code> if you dont want links to also appear as footnotes (which means losing them if it is actually printed).</li>
<li><code>tex.highlight.theme</code>: similar to <code>rendering.highlight.theme</code>, but only sets the theme for LaTeX/PDF rendering.</li>
</ul>
<h3 id = "link-56">Options for EPUB rendering</h3>
<p id = "para-151">There are also options specific to the EPUB format:</p>
<ul>
<li><code>epub.version</code> can be set to 2 or 3 (default 2).</li>
<li><code>epub.css</code> can be useful if you want to specify a customized stylesheet.</li>
<li><code>epub.highlight.theme</code>: similar to <code>rendering.highlight.theme</code> but only sets a theme for EPUB output.</li>
</ul>
<h3 id = "link-57">Resources options</h3>
<p id = "para-152">These options allow to embed additional files for some formats (currently, only EPUB). This can be useful for embedding fonts.</p>
<h4 id = "link-58">resources.files</h4>
<p id = "para-153">A list of files or directories that should be added.</p>
<pre><span style="color:#268bd2;">resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">font1.otf</span><span style="color:#839496;">, </span><span style="color:#2aa198;">font2.otf</span><span style="color:#839496;">]
</span></pre><p id = "para-154">It is also possible to specify a directory (or multiple directories). So if you have a <code>fonts</code> directories containing <code>font1.otf</code> and <code>font2.otf</code>,</p>
<pre><span style="color:#268bd2;">resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">fonts</span><span style="color:#839496;">]
</span></pre><p id = "para-155">will be equivalent to:</p>
<pre><span style="color:#268bd2;">resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">fonts/font1.otf</span><span style="color:#839496;">, </span><span style="color:#2aa198;">fonts/font2.otf</span><span style="color:#839496;">]
</span></pre><p id = "para-156"><b>default</b>: not set</p>
<h4 id = "link-59">resources.out_path</h4>
<p id = "para-157">This option determine where (in which directory), <em>in the resulting document</em>, those files will be copied. The default is <code>data</code>, so by default the <code>resources.files</code> in the first example above will search <code>font1.otf</code> and <code>font2.otf</code> <em>in the same directory than the <code>.book</code> file</em>, and will copy them to <code>data/font1.otf</code> and <code>data/font2.otf</code> <em>in the EPUB file</em>. This is therefore this last path that you should use if you want to access those files e.g. in a custom CSS stylesheet.</p>
<p id = "para-158">Note that if you pass directories to <code>resources.files</code>, the whole directory would be copied. So assuming <code>fonts/</code> contains <code>font1.otf</code> and <code>font2.otf</code></p>
<pre><span style="color:#268bd2;">resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">fonts</span><span style="color:#839496;">]
</span><span style="color:#268bd2;">resources.path</span><span style="color:#839496;">: </span><span style="color:#2aa198;">data
</span></pre><p id = "para-159">will copy these two files to <code>data/fonts/font1.otf</code> and <code>data/fonts/font2.otf</code> (and not <code>data/font1.otf</code> and <code>data/font2.otf</code>).</p>
<p id = "para-160">Similarly, the whole path of <code>resources.files</code> is copied, so</p>
<pre><span style="color:#268bd2;">resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">fonts/font1.otf</span><span style="color:#839496;">, </span><span style="color:#2aa198;">fonts/font2.otf</span><span style="color:#839496;">]
</span></pre><p id = "para-161">will yield the same result.</p>
<p id = "para-162"><b>default</b>: <code>data</code></p>
<h2 id = "link-60">3.4. Full list of options</h2>
<p id = "para-163">Here is the complete list of options. You can always look at it by running <code>crowbook --list-options</code> or <code>crowbook -l</code>.</p>
<h3 id = "link-61">Metadata</h3>
<ul>
<li><b><code>author</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>“”</code></li>
<li>Author of the book</li>
</ul>
</li>
<li><b><code>title</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>“”</code></li>
<li>Title of the book</li>
</ul>
</li>
<li><b><code>lang</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>en</code></li>
<li>Language of the book</li>
</ul>
</li>
<li><b><code>subject</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Subject of the book (used for EPUB metadata)</li>
</ul>
</li>
<li><b><code>description</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Description of the book (used for EPUB metadata)</li>
</ul>
</li>
<li><b><code>cover</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path to the cover of the book</li>
</ul>
</li>
</ul>
<h3 id = "link-62">Additional metadata</h3>
<ul>
<li><b><code>subtitle</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Subtitle of the book</li>
</ul>
</li>
<li><b><code>license</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>License of the book. This information will be displayed on PDF documents</li>
</ul>
</li>
<li><b><code>version</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Version of the book</li>
</ul>
</li>
<li><b><code>date</code></b><ul>
<li><b>type</b>: metadata</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Date the book was revised</li>
</ul>
</li>
</ul>
<h3 id = "link-63">Output options</h3>
<ul>
<li><b><code>output</code></b><ul>
<li><b>type</b>: list of strings</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Specify a list of output formats to render</li>
</ul>
</li>
<li><b><code>output.epub</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for EPUB rendering</li>
</ul>
</li>
<li><b><code>output.html</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for HTML rendering</li>
</ul>
</li>
<li><b><code>output.html.dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output directory name for HTML rendering</li>
</ul>
</li>
<li><b><code>output.tex</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for LaTeX rendering</li>
</ul>
</li>
<li><b><code>output.pdf</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for PDF rendering</li>
</ul>
</li>
<li><b><code>output.odt</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for ODT rendering</li>
</ul>
</li>
<li><b><code>output.html.if</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for HTML (interactive fiction) rendering</li>
</ul>
</li>
<li><b><code>output.base_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>“”</code></li>
<li>Directory where those output files will we written</li>
</ul>
</li>
</ul>
<h3 id = "link-64">Rendering options</h3>
<ul>
<li><b><code>rendering.highlight</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>syntect</code></li>
<li>If/how highligh code blocks. Possible values: “syntect” (default, performed at runtime), “highlight.js” (HTML-only, uses Javascript), “none”</li>
</ul>
</li>
<li><b><code>rendering.highlight.theme</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>InspiredGitHub</code></li>
<li>Theme for syntax highlighting (if rendering.highlight is set to syntect)</li>
</ul>
</li>
<li><b><code>rendering.initials</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Use initials (lettrines) for first letter of a chapter (experimental)</li>
</ul>
</li>
<li><b><code>rendering.inline_toc</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display a table of content in the document</li>
</ul>
</li>
<li><b><code>rendering.inline_toc.name</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>“{{{loc_toc}}}”</code></li>
<li>Name of the table of contents if it is displayed in document</li>
</ul>
</li>
<li><b><code>rendering.num_depth</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>1</code></li>
<li>The maximum heading levels that should be numbered (0: no numbering, 1: only chapters, ..., 6: all)</li>
</ul>
</li>
<li><b><code>rendering.chapter</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>How to call chapters</li>
</ul>
</li>
<li><b><code>rendering.part</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>How to call parts (or books, episodes, ...</li>
</ul>
</li>
<li><b><code>rendering.chapter.roman_numerals</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If set to true, display chapter number with roman numerals</li>
</ul>
</li>
<li><b><code>rendering.part.roman_numerals</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>If set to true, display part number with roman numerals</li>
</ul>
</li>
<li><b><code>rendering.part.reset_counter</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>If set to true, reset chapter number at each part</li>
</ul>
</li>
<li><b><code>rendering.chapter.template</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>“{{{number}}}. {{{chapter_title}}}”</code></li>
<li>Naming scheme of chapters, for TOC</li>
</ul>
</li>
<li><b><code>rendering.part.template</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>“{{{number}}}. {{{part_title}}}”</code></li>
<li>Naming scheme of parts, for TOC</li>
</ul>
</li>
</ul>
<h3 id = "link-65">Special option</h3>
<ul>
<li><b><code>import</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Import another book configuration file</li>
</ul>
</li>
</ul>
<h3 id = "link-66">HTML options</h3>
<ul>
<li><b><code>html.icon</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path to an icon to be used for the HTML files(s)</li>
</ul>
</li>
<li><b><code>html.highlight.theme</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>If set, set theme for syntax highlighting for HTML output (syntect only)</li>
</ul>
</li>
<li><b><code>html.header</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Custom header to display at the beginning of html file(s)</li>
</ul>
</li>
<li><b><code>html.footer</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Custom footer to display at the end of HTML file(s)</li>
</ul>
</li>
<li><b><code>html.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a stylesheet for HTML rendering</li>
</ul>
</li>
<li><b><code>html.css.add</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Some inline CSS added to the stylesheet template</li>
</ul>
</li>
<li><b><code>html.css.colours</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a stylesheet for the colours for HTML</li>
</ul>
</li>
<li><b><code>html.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a javascript file</li>
</ul>
</li>
<li><b><code>html.css.print</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a media print stylesheet for HTML rendering</li>
</ul>
</li>
<li><b><code>html.highlight.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set another highlight.js version than the bundled one</li>
</ul>
</li>
<li><b><code>html.highlight.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set another highlight.js CSS theme than the default one</li>
</ul>
</li>
<li><b><code>html.side_notes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display footnotes as side notes in HTML/Epub (experimental)</li>
</ul>
</li>
<li><b><code>html.escape_nb_spaces</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Replace unicode non breaking spaces with HTML entities and CSS</li>
</ul>
</li>
<li><b><code>html.chapter.template</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>&lt;h1 id = link-{{{link}}}&gt;{{#has_number}}&lt;span class = chapter-header&gt;{{{header}}} {{{number}}}&lt;/span&gt;{{#has_title}}&lt;br /&gt;{{/has_title}}{{/has_number}}{{{title}}}&lt;/h1&gt;</code></li>
<li>Inline template for HTML chapter formatting</li>
</ul>
</li>
<li><b><code>html.part.template</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>&lt;h2 class = part&gt;{{{header}}} {{{number}}}&lt;/h2&gt; &lt;h1 id = link-{{{link}}} class = part&gt;{{{title}}}&lt;/h1&gt;</code></li>
<li>Inline template for HTML part formatting</li>
</ul>
</li>
</ul>
<h3 id = "link-67">Standalone HTML options</h3>
<ul>
<li><b><code>html.standalone.template</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of an HTML template for standalone HTML</li>
</ul>
</li>
<li><b><code>html.standalone.one_chapter</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display only one chapter at a time (with a button to display all)</li>
</ul>
</li>
<li><b><code>html.standalone.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a javascript file</li>
</ul>
</li>
</ul>
<h3 id = "link-68">Multifile HTML options</h3>
<ul>
<li><b><code>html.dir.template</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a HTML template for multifile HTML</li>
</ul>
</li>
</ul>
<h3 id = "link-69">Interactive fiction HTML options</h3>
<ul>
<li><b><code>html.if.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a javascript file</li>
</ul>
</li>
<li><b><code>html.if.new_turn</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Javascript code that will be run at the beginning of each segment</li>
</ul>
</li>
<li><b><code>html.if.end_turn</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Javascript code that will be run at the end of each segment</li>
</ul>
</li>
<li><b><code>html.if.new_game</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Javascript code that will be run at the beginning of a game</li>
</ul>
</li>
</ul>
<h3 id = "link-70">EPUB options</h3>
<ul>
<li><b><code>epub.version</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>2</code></li>
<li>EPUB version to generate (2 or 3)</li>
</ul>
</li>
<li><b><code>epub.highlight.theme</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>If set, set theme for syntax highlighting for EPUB output (syntect only)</li>
</ul>
</li>
<li><b><code>epub.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a stylesheet for EPUB</li>
</ul>
</li>
<li><b><code>epub.css.add</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Inline CSS added to the EPUB stylesheet template</li>
</ul>
</li>
<li><b><code>epub.chapter.xhtml</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of an xhtml template for each chapter</li>
</ul>
</li>
<li><b><code>epub.toc.extras</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Add Title and (if set) Cover in the EPUB table of contents</li>
</ul>
</li>
<li><b><code>epub.escape_nb_spaces</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Replace unicode non breaking spaces with HTML entities and CSS</li>
</ul>
</li>
</ul>
<h3 id = "link-71">LaTeX options</h3>
<ul>
<li><b><code>tex.highlight.theme</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>If set, set theme for syntax highlighting for LaTeX/PDF output (syntect only)</li>
</ul>
</li>
<li><b><code>tex.links_as_footnotes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Add foontotes to URL of links so they are readable when printed</li>
</ul>
</li>
<li><b><code>tex.command</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>xelatex</code></li>
<li>LaTeX command to use for generating PDF</li>
</ul>
</li>
<li><b><code>tex.template</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a LaTeX template file</li>
</ul>
</li>
<li><b><code>tex.template.add</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Inline code added in the LaTeX template</li>
</ul>
</li>
<li><b><code>tex.class</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>book</code></li>
<li>LaTeX class to use</li>
</ul>
</li>
<li><b><code>tex.paper.size</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>a5paper</code></li>
<li>Specifies the size of the page.</li>
</ul>
</li>
<li><b><code>tex.margin.left</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Specifies left margin (note that with book class left and right margins are reversed for odd pages, thus the default value is 1.5cm for book class and 2cm else)</li>
</ul>
</li>
<li><b><code>tex.margin.right</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Specifies right margin(note that with book class left and right margins are reversed for odd pages, thus the default value is 2.5cm for book class and 2cm else)</li>
</ul>
</li>
<li><b><code>tex.margin.top</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>“2cm”</code></li>
<li>Specifies top margin</li>
</ul>
</li>
<li><b><code>tex.margin.bottom</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>“1.5cm”</code></li>
<li>Specifies left margin</li>
</ul>
</li>
<li><b><code>tex.title</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>If true, generate a title with \maketitle</li>
</ul>
</li>
<li><b><code>tex.font.size</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Specify latex font size (in pt, 10 (default), 11, or 12 are accepted)</li>
</ul>
</li>
<li><b><code>tex.hyperref</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>If disabled, dont try to find references inside the document</li>
</ul>
</li>
<li><b><code>tex.stdpage</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If set to true, use stdpage package to format a manuscript according to standards</li>
</ul>
</li>
</ul>
<h3 id = "link-72">Resources option</h3>
<ul>
<li><b><code>resources.files</code></b><ul>
<li><b>type</b>: list of strings</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Whitespace-separated list of files to embed in e.g. EPUB file; useful for including e.g. fonts</li>
</ul>
</li>
<li><b><code>resources.out_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>data</code></li>
<li>Paths where additional resources should be copied in the EPUB file or HTML directory</li>
</ul>
</li>
<li><b><code>resources.base_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path where to find resources (in the source tree). By default, links and images are relative to the Markdown file. If this is set, it will be to this path.</li>
</ul>
</li>
<li><b><code>resources.base_path.links</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set base path but only for links. Useless if resources.base_path is set</li>
</ul>
</li>
<li><b><code>resources.base_path.images</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for images. Useless if resources.base_path is set</li>
</ul>
</li>
<li><b><code>resources.base_path.files</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for additional files. Useless if resources.base_path is set.</li>
</ul>
</li>
<li><b><code>resources.base_path.templates</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for templates files. Useless if resources.base_path is set</li>
</ul>
</li>
</ul>
<h3 id = "link-73">Input options</h3>
<ul>
<li><b><code>input.clean</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Toggle typographic cleaning of input markdown according to lang</li>
</ul>
</li>
<li><b><code>input.clean.smart_quotes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>If enabled, tries to replace vertical quotations marks to curly ones</li>
</ul>
</li>
<li><b><code>input.clean.ligature.dashes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If enabled, replaces -- to en dash ('') and --- to em dash ('—')</li>
</ul>
</li>
<li><b><code>input.clean.ligature.guillemets</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If enabled, replaces &lt;&lt; and &gt;&gt; to french “guillemets” ('«’ and ‘»’)</li>
</ul>
</li>
<li><b><code>input.yaml_blocks</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Enable inline YAML blocks to override options set in config file</li>
</ul>
</li>
</ul>
<h3 id = "link-74">Crowbook options</h3>
<ul>
<li><b><code>crowbook.html_as_text</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Consider HTML blocks as text. This avoids having &lt;foo&gt; being considered as HTML and thus ignored.</li>
</ul>
</li>
<li><b><code>crowbook.markdown.superscript</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If enabled, allow support for superscript and subscript using respectively foo<sup>up</sup> and bar<sub>down</sub> syntax.</li>
</ul>
</li>
<li><b><code>crowbook.temp_dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: ``</li>
<li>Path where to create a temporary directory (default: uses result from Rusts std::env::temp_dir())</li>
</ul>
</li>
<li><b><code>crowbook.zip.command</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>zip</code></li>
<li>Command to use to zip files (for EPUB/ODT)</li>
</ul>
</li>
</ul>
<h3 id = "link-75">Output options (for proofreading)</h3>
<ul>
<li><b><code>output.proofread.html</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for HTML rendering with proofread features</li>
</ul>
</li>
<li><b><code>output.proofread.html.dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output directory name for HTML rendering with proofread features</li>
</ul>
</li>
<li><b><code>output.proofread.pdf</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for PDF rendering with proofread features</li>
</ul>
</li>
</ul>
<h3 id = "link-76">Proofreading options (only for output.proofread.* targets)</h3>
<ul>
<li><b><code>proofread</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If set to false, will disactivate proofreading even if one of output.proofread.x is present</li>
</ul>
</li>
<li><b><code>proofread.languagetool</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If true, try to use language tool server to grammar check the book</li>
</ul>
</li>
<li><b><code>proofread.languagetool.port</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>8081</code></li>
<li>Port to connect to languagetool-server</li>
</ul>
</li>
<li><b><code>proofread.grammalecte</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If true, try to use grammalecte server to grammar check the book</li>
</ul>
</li>
<li><b><code>proofread.grammalecte.port</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>8080</code></li>
<li>Port to connect to grammalecte server</li>
</ul>
</li>
<li><b><code>proofread.repetitions</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If set to true, use Caribon to detect repetitions</li>
</ul>
</li>
<li><b><code>proofread.repetitions.max_distance</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>25</code></li>
<li>Max distance between two occurences so it is considered a repetition</li>
</ul>
</li>
<li><b><code>proofread.repetitions.fuzzy</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Enable fuzzy string matching</li>
</ul>
</li>
<li><b><code>proofread.repetitions.fuzzy.threshold</code></b><ul>
<li><b>type</b>: float</li>
<li><b>default value</b>: <code>0.2</code></li>
<li>Max threshold of differences to consider two strings a repetition</li>
</ul>
</li>
<li><b><code>proofread.repetitions.ignore_proper</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Ignore proper nouns for repetitions</li>
</ul>
</li>
<li><b><code>proofread.repetitions.threshold</code></b><ul>
<li><b>type</b>: float</li>
<li><b>default value</b>: <code>2.0</code></li>
<li>Threshold to detect a repetition</li>
</ul>
</li>
</ul>
<p id = "para-164">Note that these options have a type, which in most case should be pretty straightforward (a boolean can be <code>true</code> or <code>false</code>, an integer must be composed by a number, a string is, well, any string (note that you might need to use quotes if it includes some characters that may lead the YAML parser to read it as an array, an integer or a list), and a list of strings is a list containing only strings, see <a href = "https://en.wikipedia.org/wiki/YAML#Basic_components">YAML syntax</a>). The <code>path</code> type might puzzle you a bit, but its equivalent to a string, except Crowbook will consider it relatively to the book file. The <code>template path</code> type is just the <code>path</code> of a template. Metadata are just strings.</p>
</div><div id = "chapter-3" class = "chapter">
<h1 id = 'link-77'><span class = 'chapter-header'>Chapter 4</span><br />Markdown format</h1><p id = "para-165">Crowbook uses <a href = "https://github.com/google/pulldown-cmark">pulldown-cmark</a>, which is an implementation of <a href = "http://commonmark.org/">CommonMark</a>, so for more information on Markdown syntax, you can refer to this website.</p>
<p id = "para-166">However, pulldown-cmark also implements a handful of unofficial extensions, and Crowbook also adds its own variants, so there are a few syntax elements that are not covered by the CommonMark reference.</p>
<h2 id = "link-78">4.1. Tables</h2>
<p id = "para-167">Tables can be included in your Markdown file. E.g.:</p>
<pre><span style="color:#839496;">| Author | Book |
|</span><span style="color:#657b83;">--------------------</span><span style="color:#839496;">|</span><span style="color:#657b83;">----------------------------</span><span style="color:#839496;">|
| Anne Rice | Interview With the Vampire |
| Terry Pratchett | Hogfather |
| George Martin | A Dance with Dragons |
</span></pre><p id = "para-168">will render as</p>
<div class = "table">
<table>
<tr>
<th> Author </th><th> Book </th></tr>
<tr>
<td> Anne Rice </td><td> Interview With the Vampire </td></tr>
<tr>
<td> Terry Pratchett </td><td> Hogfather </td></tr>
<tr>
<td> George Martin </td><td> A Dance with Dragons </td></tr>
</table>
</div>
<blockquote><p id = "para-169">Crowbook doesnt currently support specifying column alignment.</p>
</blockquote>
<h2 id = "link-79">4.2. Footnotes</h2>
<p id = "para-170">Footnotes can be specified the following way:</p>
<pre><span style="color:#839496;">Footnotes can be useful[^1] and make you look clever.
[</span><span style="color:#b58900;">^1</span><span style="color:#839496;">]: </span><span style="color:#2aa198;">But </span><span style="color:#839496;">you shouldn&#39;t use them too much.</span><span style="color:#839496;">
</span></pre><p id = "para-171">Will be rendered as:</p>
<blockquote><p id = "para-173">Footnotes can be useful<a href = "#note-dest-1"><sup id = "note-source-1">[1]</sup></a> and make you look clever.</p>
</blockquote>
<p id = "para-174">You can use multiple paragraphs in a footnote definition. This can sometimes be useful, but it can also be tricky, as if you only let an empty line before the next paragraph, it will also be included in the footnote. And probably the next one and the following one too:</p>
<pre><span style="color:#839496;">This is a footnote usage[^1].
[</span><span style="color:#b58900;">^1</span><span style="color:#839496;">]: </span><span style="color:#2aa198;">This </span><span style="color:#839496;">is obviously part of the footnote definition.</span><span style="color:#839496;">
This is less obviously ALSO part of the footnote definition.
This is NOT part of the foonote.
</span></pre><p id = "para-175">Due to its own quirks, Crowbook will duplicate footnotes if you reference them multiple times:</p>
<pre><span style="color:#839496;">This footnote is unique[^2] but referenced twice[^2].
[</span><span style="color:#b58900;">^2</span><span style="color:#839496;">]: </span><span style="color:#2aa198;">Or </span><span style="color:#839496;">is it?</span><span style="color:#839496;">
</span></pre><blockquote><p id = "para-178">This footnote is unique<a href = "#note-dest-2"><sup id = "note-source-2">[2]</sup></a> but referenced twice<a href = "#note-dest-3"><sup id = "note-source-3">[3]</sup></a>.</p>
</blockquote>
<h2 id = "link-80">4.3. Superscript and subscript</h2>
<p id = "para-179">Crowbook 0.12.0 added experimental support for superscript and subscript, using respectively <code>foo^up^</code> and <code>bar~down~</code> syntax, which will render as “foo<sup>up</sup>" and “bar<sub>down</sub>" ; this feature is quite a hack above the Markdown parsing library, and as such might cause issue if you mix it with other Markdown syntax elements (or, in the previous example, for smart quote detection). This is why youll need to enable it with <code>crowbook.mardown.superscript</code>.</p>
<h2 id = "link-81">4.4. “Standalone” images</h2>
<p id = "para-180">This is not <em>per se</em> a new syntactic element, but Crowbook distinguish two kind of images, according to their position in the document:</p>
<ul>
<li>standalone images, which are the only elements of a paragraph;</li>
<li>inline images, which are placed in a container containing other elements.</li>
</ul>
<p id = "para-181">Standalone images will typically be resized to fill the width of the page, while inline images are not resized.</p>
<p id = "para-182">This image is on its own paragraph, and thus considered “standalone” and resized to fit width:</p>
<div class = "image">
<img src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAADAPAAAwDwEQo/h8AAAAB3RJTUUH4QcOERMAPzhBcQAACalJREFUeNrtnHtwVsUVwH9JDI8IUgoaFQHBiJiA4ZkWBRQcKY5YtDZDoUxFaam2CHQ6Mlo7KmmnVXHoY7StnbZW2/HRTqvTB+1UHXG0Kmh5k9pOQ4OmFAQKkgARCekf93yTzc3eu7v37pf7RT0zO/N9d++ePXvu7tnz2oXChunADD6ESBgHNAE1mrppQLuUmZr6qcDeiLYfCCgCNihMmhaq26bU1cuzHMxQ6l4Hit/PjDofWA2UhJ5/FHhHYUQrUC51i5XnufIlqRsCHFeeHwYGhXCXAj8ExvR05hUD/5aBvg1crdQt1DDpCLBG8zxXHgSOaZ4vUvBeBxyU542aD9ej4CPAntBgvyuD2hPDKNeyD+gLPBR6vkdo6LFwDtDikVGu5YjQkNcl5gNGCMEbgUuAMnneDzg1Ic5jwHPAn4GjCXGUAf0VWmYAbwitFY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pLAWgdHbaozxOsctf58p7fNVfq6J+HyfcpxTC+l1ehdy6N5ZOBa4Mei7M8Xr7eLWflEwjHFLqc4qAQ+Tcdhw/0S+zCpDReLVeAbniFIQVbhQuDvFm1rCMKgcbCDIIHqdDoOGz4Vdl2lhfmGr/WdPM7ATcDHSX4Xzf0G2j+bxCpwhQWG+jc1z3p5YmAtQZxjpsW7Ovn4X0Obhd3l6Ygrr4Xev1yWgK/0i1LMma/DCKJvszXOikyP/FdaCt1XCeKut9M56/1HJEuwdFG7Hg75AleJ/bzZkvaqfDJwnGa2LbdUttVB/Q2/d7TkkqNcsiTqCc4Nv0B0Cl9eoEZKaWgASdSDRnEGLBTb2xYq6AiU/ydh39NDOMeT4M4YX3e5XAv81hOudSICtouJWCrMrRLX1hRP/Vzng2Zf15L4vBvmMin5hn4+kPi6PzCcN9xEcNqnnuxhi2xmu/L40VNDhciVN0RHy33d0WSfvpE731tGcAgod6fhCHoAnINdsD5fpYUecgVoFLTQNZP1JzIb9nnsZ6/I8zWa/lvowVBCR5TvoDgmcrAIfaDqQYOdrZvRqgk2hyB+0U5wHqXHX9JdBfyArocVB9H5cONxOm4A0eWoLJa6M+gcRXuHrkmVxQSJoufzPoZiOl9+ODOkn6oJSNtDOutUpW4D3X83YcHAJJFfUzV16vngaZr6yaJoV/MhRMIMjclVUPB/QxRWXpMKRCkAAAAASUVORK5CYII=" title = "" alt = "Logo" />
</div><p id = "para-183">While this one <img src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAADAPAAAwDwEQo/h8AAAAB3RJTUUH4QcOERMAPzhBcQAACalJREFUeNrtnHtwVsUVwH9JDI8IUgoaFQHBiJiA4ZkWBRQcKY5YtDZDoUxFaam2CHQ6Mlo7KmmnVXHoY7StnbZW2/HRTqvTB+1UHXG0Kmh5k9pOQ4OmFAQKkgARCekf93yTzc3eu7v37pf7RT0zO/N9d++ePXvu7tnz2oXChunADD6ESBgHNAE1m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ExBYL03IMOdfw/hQ6jlY0iRydS5AX6AOGKPTYlFVxyEYLkfvQH633EYMtUczFLzi0G0dwtOw9xWI6Avw0wqKwhV9ZjPOozPhGLPJuSmWrHi470zb8JhrlGHiIjoPZLjBP6XuOWDdJ8xRvMoxtE0GS6TCxgRMdHDK5uA46utRz2v5nEg56oLR/WWzzpMw728L2X55WPvQmONVoI1xt4RTg1yloGiVLeSBBwL1PQvNyt8W4dpIyzjzRwaf3tIPKMCAFTX8Avqf47pLAWgdHbaozxOsctf58p7fNVfq6J+HyfcpxTC+l1ehdy6N5ZOBa4Mei7M8Xr7eLWflEwjHFLqc4qAQ+Tcdhw/0S+zCpDReLVeAbniFIQVbhQuDvFm1rCMKgcbCDIIHqdDoOGz4Vdl2lhfmGr/WdPM7ATcDHSX4Xzf0G2j+bxCpwhQWG+jc1z3p5YmAtQZxjpsW7Ovn4X0Obhd3l6Ygrr4Xev1yWgK/0i1LMma/DCKJvszXOikyP/FdaCt1XCeKut9M56/1HJEuwdFG7Hg75AleJ/bzZkvaqfDJwnGa2LbdUttVB/Q2/d7TkkqNcsiTqCc4Nv0B0Cl9eoEZKaWgASdSDRnEGLBTb2xYq6AiU/ydh39NDOMeT4M4YX3e5XAv81hOudSICtouJWCrMrRLX1hRP/Vzng2Zf15L4vBvmMin5hn4+kPi6PzCcN9xEcNqnnuxhi2xmu/L40VNDhciVN0RHy33d0WSfvpE731tGcAgod6fhCHoAnINdsD5fpYUecgVoFLTQNZP1JzIb9nnsZ6/I8zWa/lvowVBCR5TvoDgmcrAIfaDqQYOdrZvRqgk2hyB+0U5wHqXHX9JdBfyArocVB9H5cONxOm4A0eWoLJa6M+gcRXuHrkmVxQSJoufzPoZiOl9+ODOkn6oJSNtDOutUpW4D3X83YcHAJJFfUzV16vngaZr6yaJoV/MhRMIMjclVUPB/QxRWXpMKRCkAAAAASUVORK5CYII=" title = "" alt = "Logo" /> is embedded in a paragraph and its size is unchanged.</p>
<h2 id = "link-82">4.5. Interactive fiction</h2>
<p id = "para-184">Crowbook also adds some syntax for interactive fiction, to make embedding Javascript code easier. It is only enabled for the interactive fiction renderer. For more information, see the <a href = "#chapter-6">chapter on this matter</a>.</p>
</div><div id = "chapter-4" class = "chapter">
<h1 id = 'link-83'><span class = 'chapter-header'>Chapter 5</span><br />Templates</h1><p id = "para-186">Crowbook allows the user to specify a number of templates.<a href = "#note-dest-4"><sup id = "note-source-4">[4]</sup></a></p>
<p id = "para-187">Each of this template can be overriden by a custom one, by setting e.g.:</p>
<pre><span style="color:#268bd2;">html.css</span><span style="color:#839496;">: </span><span style="color:#2aa198;">my_template.css
</span></pre><p id = "para-188">in the book configuration file. The templates that you are most susceptible to modify are the following:</p>
<ul>
<li><code>html.css</code>: stylesheet for HTML output;</li>
<li><code>epub.css</code>: stylesheet for EPUB output;</li>
<li><code>tex.template</code>: template of a LaTeX file.</li>
</ul>
<h2 id = "link-84">5.1. Create and edit template</h2>
<p id = "para-189">Except for inline templates, which are set directly in the book configuration file:</p>
<pre><span style="color:#586e75;"># Template that modify how a chapter title is displayed
</span><span style="color:#268bd2;">rendering.chapter.template</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">{{{loc_chapter}}} {{{number}}}: {{{chapter_title}}}</span><span style="color:#839496;">&quot;
</span><span style="color:#586e75;"># CSS code added to default CSS templates (but don&#39;t override it)
</span><span style="color:#268bd2;">html.css.add</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">h1 { background-color: red; }</span><span style="color:#839496;">&quot;
</span><span style="color:#268bd2;">epub.css.add</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">h1 { background-color: gray; }</span><span style="color:#839496;">&quot;
</span><span style="color:#586e75;"># LaTeX code added to default LaTeX template (but doesn&#39;t override it)
</span><span style="color:#268bd2;">template.tex.add</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">\usepackage{libertineotf}</span><span style="color:#839496;">&quot;
</span></pre><p id = "para-190">most templates must be in a separate file:</p>
<pre><span style="color:#268bd2;">tex.template</span><span style="color:#839496;">: </span><span style="color:#2aa198;">my_template.tex
</span></pre><h3 id = "link-85"><code>--print-template</code></h3>
<p id = "para-191">The easiest way to create a new template is to start with the default one. In order to do so, you can use the <code>--print-template</code> argument:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> --print-template</span><span style="color:#839496;"> tex.template </span><span style="color:#657b83;">&gt;</span><span style="color:#839496;"> my_template.tex
</span></pre><p id = "para-192">In order to get the <code>chapter.xhtml</code> template for EPUB3, youll also have to use <code>--set epub.version 3</code>:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> --print-template</span><span style="color:#839496;"> epub.chapter.xhtml</span><span style="color:#268bd2;"> --set</span><span style="color:#839496;"> epub.version 3 </span><span style="color:#657b83;">&gt;</span><span style="color:#839496;"> my_epub3_template.xhtml
</span></pre><h3 id = "link-86">Mustache syntax</h3>
<p id = "para-193">Crowbook uses <a href = "https://crates.io/crates/mustache">rust-mustache</a> as its templating engine, which allows to use <a href = "http://mustache.github.io/">Mustache</a> syntax in the templates.</p>
<p id = "para-195">It mainly boils down to using <code>{{{foo}}}</code><a href = "#note-dest-5"><sup id = "note-source-5">[5]</sup></a> to insert the value of variable <code>foo</code> in the document:</p>
<pre><span style="color:#586e75;">&lt;</span><span style="color:#268bd2;">h1 </span><span style="color:#b58900;">class </span><span style="color:#657b83;">= </span><span style="color:#839496;">&quot;</span><span style="color:#657b83;">title</span><span style="color:#839496;">&quot; </span><span style="color:#586e75;">&gt;</span><span style="color:#839496;">{{{title}}}</span><span style="color:#586e75;">&lt;</span><span style="color:#268bd2;">h1</span><span style="color:#586e75;">&gt;
&lt;</span><span style="color:#268bd2;">h2 </span><span style="color:#b58900;">class </span><span style="color:#657b83;">= </span><span style="color:#839496;">&quot;</span><span style="color:#657b83;">author</span><span style="color:#839496;">&quot;</span><span style="color:#586e75;">&gt;</span><span style="color:#839496;">{{{author}}}</span><span style="color:#586e75;">&lt;/</span><span style="color:#268bd2;">h2</span><span style="color:#586e75;">&gt;
</span></pre><p id = "para-196">Mustache also provides the possibility of checking whether a variable is set:</p>
<pre><span style="color:#839496;">{{#foo}}
Foo exists
{{/foo}}
{{^foo}}
Foo does not exist
{{^foo}}
</span></pre><p id = "para-197">Crowbook uses this and sets some variables to <code>true</code> to allow templates to conditionally include some portions. E.g., in <code>html.css</code>:</p>
<pre><span style="color:#657b83;">{</span><span style="color:#839496;">{#lang_fr</span><span style="color:#657b83;">}</span><span style="color:#839496;">}
</span><span style="color:#586e75;">/* Make list displays &#39;&#39; instead of bullets */
</span><span style="color:#b58900;">ul li </span><span style="color:#657b83;">{
</span><span style="color:#859900;">list-style-type</span><span style="color:#839496;">: &#39;</span><span style="color:#2aa198;"></span><span style="color:#839496;">&#39;;
</span><span style="color:#859900;">padding-left</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">.5</span><span style="color:#859900;">em</span><span style="color:#839496;">;
</span><span style="color:#657b83;">}
{</span><span style="color:#839496;">{/lang_fr</span><span style="color:#657b83;">}</span><span style="color:#839496;">}
</span></pre><p id = "para-198">In this case, Crowbook sets a variable whose name is equal to <code>lang_foo</code> to <code>true</code>, allowing to have different styles for some elements according to the language.</p>
<p id = "para-199">For more information about Mustache syntax, see the <a href = "http://mustache.github.io/mustache.5.html">Mustache manual</a>.</p>
<h4 id = "link-87">Syntax in LaTeX</h4>
<p id = "para-201">Since LaTeX already uses a lot of curly brackets, the default template sets an altenative syntax to access variables, with <code>&lt;&lt;&amp;foo&gt;&gt;</code><a href = "#note-dest-6"><sup id = "note-source-6">[6]</sup></a>:</p>
<pre><span style="color:#859900;">\title</span><span style="color:#839496;">{&lt;&lt;</span><span style="color:#cb4b16;">&amp;</span><span style="color:#839496;">title&gt;&gt;}
</span><span style="color:#859900;">\author</span><span style="color:#839496;">{&lt;&lt;</span><span style="color:#cb4b16;">&amp;</span><span style="color:#839496;">author&gt;&gt;}
&lt;&lt;#has_date&gt;&gt;</span><span style="color:#859900;">\date</span><span style="color:#839496;">{&lt;&lt;</span><span style="color:#cb4b16;">&amp;</span><span style="color:#839496;">date&gt;&gt;}&lt;&lt;/has_date&gt;
</span></pre> <h3 id = "link-89">html.js</h3>
<p id = "para-202">The javascript file used by both the standalone HTML renderer and the multiple files HTML renderer.</p>
<p id = "para-203">This is not currently an actual template, just a plain javascript file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-90">html.css</h3>
<p id = "para-204">The main CSS file used by both the standalone HTML renderer and the multiple files HTML renderer.</p>
<h3 id = "link-91">html.css.colours</h3>
<p id = "para-205">A CSS file containing only colour settings. Used by <code>html.css</code>.</p>
<p id = "para-206">This is not currently an actual template, just a plain CSS file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-92">html.css.print</h3>
<p id = "para-207">An additional CSS file used by both the standalone HTML renderer and the multiple files HTML renderer. Its purpose is to provide CSS instructions for printing (i.e., when the user clicks the <code>print</code> button in her browser).</p>
<p id = "para-208">This is not currently an actual template, just a plain CSS file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-93">html.highlight.js</h3>
<p id = "para-209">A javascript file used by both HTML renderers to highlight codes in code blocks. It should be a variant of <a href = "https://highlightjs.org/">highlight.js</a>.</p>
<p id = "para-210">This is not an actual template, just a plain javascript file.</p>
<h3 id = "link-94">html.highlight.css</h3>
<p id = "para-211">A CSS file used by both HTML renderers to set the theme of <a href = "https://highlightjs.org/">highlight.js</a>. It should, though, be an highlight.js theme.</p>
<p id = "para-212">This is not an actual template, just a plain CSS file.</p>
<h3 id = "link-95">html.standalone.js</h3>
<p id = "para-213">A javascript file used only by the standalone HTML renderer. Its main purpose is to handle the displaying of a single chapter at a time when <code>one_chapter</code> is set to true.</p>
<h3 id = "link-96">html.standalone.template</h3>
<p id = "para-214">The main HTML template for standalone HTML renderer.</p>
<h3 id = "link-97">html.dir.template</h3>
<p id = "para-215">The main HTML template for multiple files HTML renderer.</p>
<h3 id = "link-98">tex.template</h3>
<p id = "para-216">The main (and currently only) template used by the LaTeX renderer.</p>
<h3 id = "link-99">epub.chapter.xhtml</h3>
<p id = "para-217">This template is the main template used by the Epub renderer. It contains the XHTML template that will be used for each chapter.</p>
<h3 id = "link-100">epub.css</h3>
<p id = "para-218">This template is used by the Epub renderer and contains the style sheet.</p>
<h3 id = "link-101">Inline templates</h3>
<p id = "para-219">Crowbook also has some inline templates, that are set in the book configuration file:</p>
<ul>
<li><code>tex.template.add</code>, <code>html.css.add</code> and <code>epub.css.add</code> allow to specify some LaTeX or CSS code directly in the book configuration file. This code will be added respectively to <code>tex.template</code>, <code>html.css</code> or <code>epub.css</code> template. For CSS templates, this code is inserted at the end of the template (allowing to redefine rules that are set by the template); for the LaTeX template, the code is inserted at the end of the preambule, just before the <code>\begin{document}</code> tag, allowing to redefine commands.</li>
<li><code>rendering.inline_toc.name</code> sets the name of the inline table of content, if it is displayed. By default, is is set to <code>{{{loc_toc}}}</code>, that is, a localised version of “Table of Contents”.</li>
<li><code>rendering.chapter.template</code> sets the naming scheme for chapters, while <code>rendering.part.template</code> does the same for part. These are used only for text-only output, such as in the TOC. <code>html.chapter.template</code> and <code>html.part.template</code> allow to change the HTML formatting for parts and chapters. <em>These options should probably only be used if you know what youre doing, as they can break the document.</em> If you only need to change the name of chapters or parts, use <code>rendering.part</code> and <code>rendering.chapter</code> instead.</li>
</ul>
<h2 id = "link-102">5.3. List of accessible variables</h2>
<h3 id = "link-103">Metadata</h3>
<p id = "para-220">For every template, Crowbook exports all of the metadata:</p>
<ul>
<li><code>author</code>;</li>
<li><code>title</code>;</li>
<li><code>subtitle</code>;</li>
<li><code>lang</code>;</li>
<li><code>subject</code>;</li>
<li><code>description</code>;</li>
<li><code>license</code>;</li>
<li><code>version</code>;</li>
<li><code>date</code>;</li>
<li>any option <code>metadata.foo</code> defined in the book configuration file will also be exported as <code>metadata_foo</code>.</li>
</ul>
<p id = "para-221">These metadata can contain Markdown, which will be rendered. E.g., setting <code>date: “20th of **september**”</code> will render <code>september</code> in bold, using <code>&lt;b&gt;</code> tag for HTML or <code>\textbf</code> for LaTeX. If you need to use these data in places that dont support formatted text (e.g. in meta tags), you can use the raw content by accessing <code>xxx_raw</code> instead (e.g., <code>author_raw</code>, <code>title_raw</code>, ...). (Note that the content of the raw metadata is <em>not</em> HTML-escaped, so in this case you might want to use <code>{{xxx_raw}}</code> instead of <code>{{{xxx_raw}}}</code>.)</p>
<p id = "para-222">For each metadata <code>foo</code> that is set, Crowbook also inserts a <code>has_foo</code> bool set to true. This allows to use Mustaches section for some logic, e.g.:</p>
<pre><span style="color:#839496;">{{{title}}}
{{#has_version}}, version {{{version}}}{{/has_version}}
</span></pre><p id = "para-223">will avoid rendering “, version” when <code>version</code> is not set.</p>
<h3 id = "link-104">Localisation strings</h3>
<p id = "para-224">For all templates, Crowbook also exports some localisation strings <code>loc_foo</code>. They currently include:</p>
<div class = "table">
<table>
<tr>
<th> Localisation key </th><th> Value in english </th></tr>
<tr>
<td> <code>loc_toc</code> </td><td> Table of contents </td></tr>
<tr>
<td> <code>loc_cover</code> </td><td> Cover </td></tr>
<tr>
<td> <code>loc_title</code> </td><td> Title </td></tr>
<tr>
<td> <code>loc_chapter</code> </td><td> Chapter </td></tr>
<tr>
<td> <code>loc_part</code> </td><td> Part </td></tr>
<tr>
<td> <code>loc_notes</code> </td><td> Notes </td></tr>
<tr>
<td> <code>loc_display_all</code> </td><td> Display all chapters </td></tr>
<tr>
<td> <code>loc_display_one</code> </td><td> Display one chapter </td></tr>
</table>
</div>
<h3 id = "link-105">Template-dependent values</h3>
<p id = "para-225">Crowbook also exports some additional fields for some templates, see below.</p>
<div class = "table">
<table>
<tr>
<th> Mustache tag </th><th> Value </th><th> Available in... </th></tr>
<tr>
<td> <code>content</code> </td><td> A rendered version of the book or chapters content </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code>, <code>tex.template</code>, <code>epub.chapter.xhtml</code> </td></tr>
<tr>
<td> <code>toc</code> </td><td> A rendered version of the table of contents </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>has_toc</code></td><td> Set to <code>true</code> if the table of contents is not empty </td><td> <code>html.standalone.template</code> </td></tr>
<tr>
<td> <code>colours</code></td><td> The content of <code>html.css.colours</code> </td><td> <code>html.css</code> </td></tr>
<tr>
<td> <code>footer</code> </td><td> The content of <code>html.footer</code> </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>header</code> </td><td> The content of <code>html.header</code> </td><td> <code>html.standalone.template</code>, <code>html.dirtemplate</code> </td></tr>
<tr>
<td> <code>script</code> </td><td> The javascript file for this HTML document </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>style</code> </td><td> The CSS file for this HTML document, that is, a rendered version of <code>html.css</code> </td><td> <code>html.standalone.template</code> </td></tr>
<tr>
<td> A variable whose name corresponds to <code>lang</code> in book options (e.g. <code>lang_en</code> if lang is set to “en”, <code>lang_fr</code> if it is set to “fr”, ...) </td><td> <code>true</code> </td><td> <code>html.css</code>, <code>epub.css</code> </td></tr>
<tr>
<td> <code>chapter_title</code> </td><td> The title of current chapter </td><td> <code>html.dir.template</code>, <code>epub.chapter.xhtml</code>, <code>rendering.chapter.template</code> </td></tr>
<tr>
<td> <code>chapter_title_raw</code> </td><td> The title of current chapter (raw text without HTML formatting) </td><td> <code>html.dir.template</code>, <code>epub.chapter.xhtml</code>, <code>rendering.chapter.template</code> </td></tr>
<tr>
<td> <code>json_data</code> </td><td> Contains structured data with books metadata in JSON-LD format </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>highlight_code</code> </td><td> True if <code>html.highlight_code</code> is true </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>highlight_css</code> </td><td> The content of <code>html.highlight.css</code> </td><td> <code>html.standalone.template</code> </td></tr>
<tr>
<td> <code>highlight_js</code> </td><td> The base64-encoded content of <code>html.highlight.js</code> </td><td> <code>html.standalone.tempate</code> </td></tr>
<tr>
<td> <code>common_script</code> </td><td> The content of <code>html.js</code> </td><td> <code>html.single.js</code> </td></tr>
<tr>
<td> <code>one_chapter</code> </td><td> True if <code>html.standalone.one_chapter</code> is true, else not present </td><td> <code>html.standalone.template</code>, <code>html.standalone.js</code> </td></tr>
<tr>
<td> <code>book.svg</code> </td><td> The base64-encoded image of the button to display all chapters </td><td> <code>html.standalone.js</code>, <code>html.standalone.template</code> </td></tr>
<tr>
<td> <code>pages.svg</code> </td><td> The base64-encoded image of the button to display one chapter at a time </td><td> <code>html.standalone.js</code>, <code>html.standalone.template</code> </td></tr>
<tr>
<td> <code>favicon</code> </td><td> The <code>&lt;link rel = “icon” ...&gt;</code> tag if <code>html.icon</code> is set </td><td> <code>html.standalone.template</code>, <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>menu_svg</code> </td><td> The base64-encoded image of the hamburger menu image </td><td> <code>html.standalone.template</code> </td></tr>
<tr>
<td> <code>prev_chapter</code> </td><td> Title and a link of previous chapter </td><td> <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>next_chapter</code> </td><td> Title and a link of nexts chapter </td><td> <code>html.dir.template</code> </td></tr>
<tr>
<td> <code>class</code> </td><td> The content of <code>tex.class</code> </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>book</code> </td><td> True if <code>tex.class</code> is <code>book</code>, not set else </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>tex_lang</code> </td><td> The babel equivalent of <code>lang</code> </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>tex_title</code> </td><td> Set to true to run <code>\maketitle</code> </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>tex_size</code> </td><td> The font size to pass to the LaTeX class </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>has_tex_size</code> </td><td> Set to true if <code>tex_size</code> is set </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>margin_left</code>, <code>margin_right</code>, <code>margin_top</code>, <code>margin_bottom</code> </td><td> The margins of the document </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>initials</code> </td><td> True if <code>rendering.initials</code> is true, not set else </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>additional_code</code> </td><td> Set to the content of <code>tex.template.add</code>, <code>html.css.add</code> or <code>epub.css.add</code> </td><td> <code>tex.template</code>, <code>html.css</code>, <code>epub.css</code> </td></tr>
</table>
</div>
</div><div id = "chapter-5" class = "chapter">
<h1 id = 'link-106'><span class = 'chapter-header'>Chapter 6</span><br />Proofreading with Crowbook</h1><p id = "para-226">Crowbook includes some proofreading features, that can be enabled if you set one of the</p>
<ul>
<li><code>output.proofread.html</code></li>
<li><code>output.proofread.html_dir</code></li>
<li><code>output.proofread.pdf</code></li>
</ul>
<p id = "para-227">output files (or include <code>proofread.pdf</code> in the list of formats to render to <code>output</code>). This allows you to generate different files for publishing and proofreading (you probably dont want to publish a version that highlights your grammar errors or your repetitions).</p>
<p id = "para-228">Current proofreading features are:</p>
<ul>
<li>repetition detection;</li>
<li>grammar check.</li>
</ul>
<h2 id = "link-107">6.1. Enabling proofreading</h2>
<p id = "para-229">Since proofreading can take quite a lot of time, particularly for a long book, it is disabled by default. Youll have to run</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> --proofread</span><span style="color:#839496;"> my.book
</span></pre><p id = "para-230">or</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> -p</span><span style="color:#839496;"> my.book
</span></pre><p id = "para-231">to generate proofreading copies. Alternatively, if you want it to be activated each time you run <code>crowbook</code> on this book (which is <em>not</em> recommanded for long books, particularly if you want to perform a grammar check), you can set</p>
<pre><span style="color:#268bd2;">proofread</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span></pre><p id = "para-232">in the book configuration file.</p>
<h2 id = "link-108">6.2. Repetition detection</h2>
<p id = "para-233">Repetition detection is enabled with:</p>
<pre><span style="color:#268bd2;">proofread.repetitions</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span></pre><p id = "para-234">It uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> library to detect the repetition in your text. Since the notion of a repetition is relatively arbitrary, it is possible to adapt the settings. Default are:</p>
<pre><span style="color:#586e75;"># The maximum distance between two identical words to
# consider them a repetition
</span><span style="color:#268bd2;">proofread.repetitions.max_distance</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">25
</span><span style="color:#586e75;"># The minimal number of occurences to consider it a repetition
</span><span style="color:#268bd2;">proofread.repetitions.threshold</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">2.0
</span><span style="color:#586e75;"># Ignore proper nouns (words starting by a capital,
# not at a beginning of a sentence)
</span><span style="color:#268bd2;">proofread.repetitions.ignore_proper</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span><span style="color:#586e75;"># Activate fuzzy string matching
</span><span style="color:#268bd2;">proofread.repetitions.fuzzy</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span><span style="color:#586e75;"># The maximal ratio of difference to consider
# that two words are identical
# (E.g., with 0.2, &quot;Rust&quot; and &quot;Lust&quot; won&#39;t be
# considered as the same word, but they will be with 0.5)
</span><span style="color:#268bd2;">proofread.repetitions.fuzzy.threshold</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">0.2
</span></pre><p id = "para-235">For more information, see <a href = "https://github.com/lise-henry/caribon">Caribon</a>s documentation.</p>
<blockquote><p id = "para-236">Currently, repetitions are not displayed in PDF proofreading output.</p>
</blockquote>
<h2 id = "link-109">6.3. Grammar checking</h2>
<h3 id = "link-110">With Languagetool</h3>
<p id = "para-237">Crowbook can use <a href = "https://languagetool.org/">LanguageTool</a> to detect grammar errors in your text. It is, however, a bit more complex to activate.</p>
<p id = "para-238">First, youll have to activate this feature in your book configuration file:</p>
<pre><span style="color:#586e75;"># Activate language tool support
</span><span style="color:#268bd2;">proofread.languagetool</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span><span style="color:#586e75;"># (Optional) Sets the port number to connect to (default below)
</span><span style="color:#268bd2;">proofread.languagetool.port</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">8081
</span></pre><p id = "para-239">Youll then have to download the stand-alone version of <a href = "https://languagetool.org/">LanguageTool</a>. It includes a server mode, which youll have to launch:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> java</span><span style="color:#268bd2;"> -cp</span><span style="color:#839496;"> languagetool-server.jar org.languagetool.server.HTTPServer</span><span style="color:#268bd2;"> --port</span><span style="color:#839496;"> 8081
</span></pre><p id = "para-240">You can also use the LanguageTool GUI (<code>languagetool.jar</code>) and start the server from the menu “Text Checking -&gt; Options”. This also allows you to configure LanguageTool more precisely by activating or deactivating rules.</p>
<p id = "para-241">You can then run Crowbook, and it will highlight grammar errors in HTML or PDF proofreading output files.</p>
<blockquote><p id = "para-242">Note: running a grammar check on a long book (like a novel) can take up to a few minutes.</p>
</blockquote>
<h3 id = "link-111">With Grammalecte</h3>
<p id = "para-243"><a href = "http://grammalecte.net/">Grammalecte</a> is a grammar checker specialized for the french language. If the language of your book is french, you can use it in a similar fashion to languagetool:</p>
<pre><span style="color:#586e75;"># Activate grammalecte support
</span><span style="color:#268bd2;">proofread.grammalecte</span><span style="color:#839496;">: </span><span style="color:#b58900;">true
</span><span style="color:#586e75;"># (Optional) Sets the port number to connect to (default below)
</span><span style="color:#268bd2;">proofread.grammalecte.port</span><span style="color:#839496;">: </span><span style="color:#6c71c4;">8080
</span></pre><p id = "para-244">Youll also need to run the Grammalecte server. First <a href = "https://www.dicollecte.org/#download_div">download the CLI and server version</a>, then:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> python3 server.py
</span></pre><p id = "para-245">You can then run Crowbook with <code>--proofread</code> to check the grammar of your book. It is possible to run both LanguageTool and Grammalecte on the same book (though might take a while for a long book...).</p>
</div><div id = "chapter-6" class = "chapter">
<h1 id = 'link-112'><span class = 'chapter-header'>Chapter 7</span><br />Interactive fiction</h1><p id = "para-246">Version <code>0.12.0</code> added experimental support for writing interactive fiction.</p>
<blockquote><p id = "para-247">Since this support is experimental, it means it can change at anytime, and there is no guarentee that the interactive fiction you write for the current version of Crowbook will work with the next release, even if it isnt a major release.</p>
</blockquote>
<h2 id = "link-113">7.1. Basics</h2>
<p id = "para-248">If you want to have a non-linear story, you can simply use Markdown links just as you would for any other link:</p>
<pre><span style="color:#839496;">* [Open the treasure chest](</span><span style="color:#2aa198;">open_chest.md</span><span style="color:#839496;">)
* [It might be trapped, stay away from it](</span><span style="color:#2aa198;">stay_away.md</span><span style="color:#839496;">)
</span></pre><p id = "para-249">All Crowbook renderers should render this correctly, allowing the reader to “choose her adventure”. Note, however, that you still need to include all these Markdown files in you book configuration files.</p>
<h2 id = "link-114">7.2. The interactive fiction renderer</h2>
<p id = "para-250">While the above allows you to generate correct EPUB and PDF files, it will still display all the content if the reader chooses to read your book linearly. While this may not be a problem, you might want to only display the part of the book that the reader is actually exploring.</p>
<p id = "para-251">In order to do so, you can use the interactive fiction html renderer:</p>
<pre><span style="color:#268bd2;">output.html.if</span><span style="color:#839496;">: </span><span style="color:#2aa198;">my_book.html
</span></pre><p id = "para-252">This output is similar to the standalone HTML output, except the option to display only a chapter at a time is always true, and there is no way to display the table of contents.</p>
<h2 id = "link-115">7.3. Using Javascript in your interactive fiction</h2>
<p id = "para-253">While the above allows the reader to choose his own path, its interactivity is quite limited. With the interactive fiction renderer, it is possible to include Javascript code in your Markdown files, using a code block element:</p>
<pre><span style="color:#839496;">You open the chest, and you find a shiny sword. Yay!
user_has_sword = true;
</span></pre><p id = "para-254">This Javascript code can return a string value, which will be displayed inside the document according to the readers previous choices:</p>
<pre><span style="color:#839496;">You encounter a goblin, armed with a knife!
if (user_has_sword) {
return &quot;You kill him with your sword, congratulations!&quot;;
} else {
return &quot;You don&#39;t have any weapon, you die :(&quot;;
}
</span></pre><blockquote><p id = "para-255">Note that <em>only</em> the interactive fiction renderer supports this way of embedding Javascript code. If you try to render a document containing such code blocks to EPUB, PDF, or the “normal” HTML renderer, they will be displayed as regular code blocks.</p>
</blockquote>
<h2 id = "link-116">7.4. Embedding Makdown in your Javascript code embedded in your Markdown</h2>
<p id = "para-256">If you want to include Markdown formatting in the Javascript code (to display a passage or another without having to write HTML code), you can use the <code>@"..."@</code> syntax:</p>
<pre><span style="color:#839496;"> @&quot;You face a troll!&quot;@
if (user_has_sword) {
@&quot;* [Attack him with your sword](fight_troll.md)&quot;@
} else {
@&quot;* [Better run away](run_away.md)&quot;@
}
</span></pre><p id = "para-257">Note that in this case you dont need to return a value, this is done behind your back. Similarly, <code>@"..."@</code> blocks dont require semicolons.</p>
<p id = "para-258">If you need to access the value of a Javascript variable inside this Markdown code, you can use the <code>{{...}}</code> syntax:</p>
<pre><span style="color:#839496;"> var name = prompt(&quot;Enter your name&quot;, &quot;world&quot;);
@&quot;Hello, {{name}}&quot;@
</span></pre><h2 id = "link-117">7.5. Conditional blocks</h2>
<p id = "para-259">Sometimes, you want some text (or Javascript code) to only be displayed (or run) when the reader reads this passage the first time, or alternatively when she goes back to it. While it is trivial to add some code to check that, it is a common enough pattern to justify its own variant : youll juste have to insert a named code block with the number:</p>
<pre><span style="color:#839496;">```1
@&quot;Only displayed at first passage&quot;@
```
```2
@&quot;Only displayed at second passage&quot;@
```
```&gt;2
@&quot;Displayed at passage 3, 4 and so on.
```
</span></pre><h2 id = "link-118">7.6. Interactive fiction options</h2>
<p id = "para-260">As other renderers, there are options specific to the interactive fiction.</p>
<p id = "para-261"><b>html.if.new_game</b> allows you to specify the path to a Javascript that will be run at the beginning of the game. Since this code is not embedded in a function and is at the root (and the beginning) of the document, it is a good place to declare all the functions and the global variables you might need for your interactive fiction mechanics. e.g.:</p>
<pre><span style="color:#268bd2;">html.if.new_game</span><span style="color:#839496;">: </span><span style="color:#2aa198;">some_file.js
</span></pre><p id = "para-262"><b>html.if.new_turn</b> and <b>html.if.end_turn</b> allow you to specify some Javascript code that will be executed at the beginning and the end of each segment. Unlike <code>html.if.new_game</code>, the (usually shorter) code is specified inline, and can return a string value that will be displayed at the beginning and the end of each segment. This is exactly like including code blocks at the beginning or the end of each of your Markdown file. E.g.:</p>
<pre><span style="color:#268bd2;">html.if.new_turn</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">nb_turns += 1;</span><span style="color:#839496;">&quot;
</span><span style="color:#268bd2;">html.end_turn</span><span style="color:#839496;">: &quot;</span><span style="color:#2aa198;">return &#39;Turn: &#39; + nb_turns;</span><span style="color:#839496;">&quot;
</span></pre><p id = "para-263"><b>html.if.script</b> allows you to specify the name of a Javascript file to override the default script.</p>
</div><div id = "chapter-7" class = "chapter">
<h1 id = 'link-119'><span class = 'chapter-header'>Chapter 8</span><br />Tips and tricks</h1><h2 id = "link-120">8.1. Using Crowbook with Emacs markdown mode</h2>
<p id = "para-264">If you use <a href = "https://www.gnu.org/software/emacs/">Emacs</a> as a text editor, there is a nice <a href = "http://jblevins.org/projects/markdown-mode/">Markdown mode</a> to edit Markdown files.</p>
<p id = "para-265">It is possible to use Crowbook for HTML previewing in this mode, which <a href = "http://xkcd.com/1742/">requires only minimal configuration and tweaking</a>:</p>
<pre><span style="color:#839496;">(custom</span><span style="color:#657b83;">-</span><span style="color:#859900;">set</span><span style="color:#657b83;">-</span><span style="color:#839496;">variables
&#39;(markdown</span><span style="color:#657b83;">-</span><span style="color:#839496;">command &quot;</span><span style="color:#2aa198;">crowbook - -qs --to html --output -</span><span style="color:#839496;">&quot;))
</span></pre><p id = "para-266">You can then use <code>markdown-preview</code> (or <code>C-c C-c p</code>) to run Crowbook on this file and preview it in your browser, or run <code>markdown-live-preview-mode</code> to see a live preview (updated each time you save your file) in Emacs integrated browser.</p>
<h3 id = "link-121">Some explanations if it looks a bit cryptic to you</h3>
<p id = "para-267">We set <code>markdown-command</code> to <code>crowbook</code>, the reason for this is a bit obvious. The arguments we give to crowbook might be a bit less obvious:</p>
<ul>
<li>the fist argument, <code>-</code>, is actually the book file: it tells <code>crowbook</code> to read it from standard input.</li>
<li><code>-qs</code> or <code>--quiet --single</code> tells Crowbook that is a a standalone markdown file, and not a book configuration file, and to be a bit quiet on error/info messages;</li>
<li><code>--to html</code> specifies that HTML must be generated;</li>
<li><code>--output -</code> tells Crowbook to display the result on the stdout, even if you set <code>output.html</code> to <code>some_file.html</code>.</li>
</ul>
<h2 id = "link-122">8.2. Embedding fonts in an EPUB file</h2>
<p id = "para-268">In order to embed fonts in an EPUB file, youll first have to edit the stylesheet, which you can first obtain with:</p>
<pre><span style="color:#b58900;">$</span><span style="color:#839496;"> crowbook</span><span style="color:#268bd2;"> --print-template</span><span style="color:#839496;"> epub.css </span><span style="color:#657b83;">&gt;</span><span style="color:#839496;"> my_epub_stylesheet.css
</span></pre><p id = "para-269">Youll need to use the <a href = "https://developer.mozilla.org/fr/docs/Web/CSS/@font-face"><code>@font-face</code> attribute</a>:</p>
<pre><span style="color:#859900;">@font-face </span><span style="color:#657b83;">{
</span><span style="color:#859900;">font-family</span><span style="color:#839496;">: </span><span style="color:#2aa198;">MyFont</span><span style="color:#839496;">;
</span><span style="color:#859900;">src</span><span style="color:#839496;">: </span><span style="color:#859900;">url</span><span style="color:#839496;">(</span><span style="color:#2aa198;">data/my_font.ttf</span><span style="color:#839496;">);
</span><span style="color:#657b83;">}
</span></pre><p id = "para-270">Then you can add <code>my_font.ttf</code> to the files that need to be added to the EPUB zip file:</p>
<pre><span style="color:#268bd2;">title</span><span style="color:#839496;">: </span><span style="color:#268bd2;">My Book
author</span><span style="color:#839496;">: </span><span style="color:#268bd2;">Me
cover</span><span style="color:#839496;">: </span><span style="color:#268bd2;">cover.png
output.epub</span><span style="color:#839496;">: </span><span style="color:#268bd2;">book.epub
resources.files</span><span style="color:#839496;">: [</span><span style="color:#2aa198;">my_font.ttf</span><span style="color:#839496;">]
</span></pre><p id = "para-271">(Note that youll have to repeat the process for the different <code>font-weight</code> and <code>font-style</code> variants of your font if you want it to display correctly when there is some text in <b>bold</b>, <em>italics</em>, or <b><em>both</em></b>.)</p>
</div><div id = "chapter-8" class = "chapter">
<h1 id = 'link-123'><span class = 'chapter-header'>Chapter 9</span><br />Contributing</h1><p id = "para-272">Crowbook is a free software, and you can contribute to it. There are some things that can be accessible even if you dont know anything about programming.</p>
<h2 id = "link-124">9.1. Internationalization</h2>
<p id = "para-273">Crowbook aims to support multiple languages. However, unfortunately, currently only english, french, and (in a more limited way) spanish are currently supported. If you want to have better support for the language you write in, there are easy things you can do:</p>
<ul>
<li>Provide a translation for the few strings that Crowbook insert into the rendered documents. This is really easy, as there are currently less than a dozen of them, and you just need to create a new variant of the <a href = "https://github.com/lise-henry/crowbook/blob/master/lang/en.yaml"><code>lang/en.yaml</code></a> file.</li>
<li>Open an <a href = "https://github.com/lise-henry/crowbook/issues">issue</a> about the typographic rules in your language, if Crowbook doesnt cover them.</li>
<li>Provide a translation for the Crowbook program. It requires creating a variant of the <a href = "https://github.com/lise-henry/crowbook/blob/master/lang/fr.po"><code>.po</code> file</a>, which is a bit more work because (at this time) its around 1,500 lines (and less a priority than the first item of this list, as this translation only affects the the command-line interface and not the rendered documents).</li>
</ul>
</div><div id = "chapter-9" class = "chapter">
<h1 id = 'link-125'>ChangeLog</h1><h2 id = "link-126">unreleased</h2>
<ul>
<li><code>--stats</code> can now display more statistics when used with the <code>--verbose</code> option (if support for advanced statistics is compiled)</li>
<li>LaTeX outputs now make uses of user-defined <code>rendering.chapter</code> and <code>rendering.part</code></li>
<li>Dependencies update</li>
</ul>
<h2 id = "link-127">0.14.0 (2017-11-26)</h2>
<ul>
<li>New option:<ul>
<li><code>autograph</code> is an autograph added after title.</li>
</ul>
</li>
<li>User interface:<ul>
<li>new argument <code>--autograph</code> prompts for an autograph.</li>
<li><code>--list-options</code> and <code>--stats</code> now use colours if available.</li>
<li>options description with <code>--list-options</code> are now wrapped.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Preserve errors/warnings order with fancy UI.</li>
<li>Clean secondary bar when there is an error instead of hanging the UI.</li>
<li>LaTeX: fancy headers only applies to fancy pages (not chapter pages).</li>
</ul>
</li>
</ul>
<h2 id = "link-128">0.14.0-beta (2017-10-08)</h2>
<ul>
<li>Bugfixes:<ul>
<li>EPUB: escape quotes in content.opf.</li>
<li>LaTeX/PDF: allow hyphenations in typewriter font.</li>
</ul>
</li>
<li>User interface:<ul>
<li>User interface is quite fancier, with progress bars and all</li>
<li>Debug/warning/info levels should be displayed in a more coherent manner</li>
<li>New <code>--no-fancy</code> option if you dont like the fancy UI (or if it doesnt work in your terminal)</li>
<li>New <code>--force-emoji</code> option to force emoji usage.</li>
</ul>
</li>
<li>Library interface:<ul>
<li>Removed <code>Book::set_verbosity</code> method (uses a logger library instead).</li>
</ul>
</li>
<li>Now requires rustc &gt;= 1.20.0</li>
</ul>
<h2 id = "link-129">0.13.0 (2017-07-14)</h2>
<ul>
<li>Breaking changes:<ul>
<li>The <code>template.tex</code> template was quite modified. Crowbook now uses custom command for most markdown elements, defined in the template. This allow an user to redefine the way the book is rendered without having to modify Crowbook itself. Unfortunately, as tex templates for previous Crowbook versions wont work anymore.</li>
<li>the <code>resources.files</code> option is now a YAML list of strings, instead of a comma-seprated string.</li>
</ul>
</li>
<li>Add support for grammalecte grammar checker.</li>
<li><code>crowbook</code> command takes a new argument, <code>-S</code> or <code>--stats</code> which displays stats on the book (currently, words and characters count).</li>
<li>Interactive fiction:<ul>
<li>Added conditional blocks.</li>
</ul>
</li>
<li>Options:<ul>
<li><code>output.xxx</code> options can now take the “auto” value, which will infer the output file name based on the book file name.</li>
<li><code>output</code> is a new option that can specify a series of format to render, with default output file name.</li>
<li><code>proofread.grammalecte</code> and <code>proofread.grammalecte.port</code> allow respectively to enable grammar checking with Grammalecte and (optionnally) to specify the port to connect.</li>
<li><code>tex.margin.left</code>, <code>tex.margin.right</code>, <code>tex.margin.bottom</code> and <code>tex.margin.top</code> are new options that allow to specify margins for LaTeX/PDF outputs.</li>
<li><code>tex.paper_size</code> was renamed <code>tex.paper_size</code>.</li>
</ul>
</li>
<li>HTML:<ul>
<li>Add JSON-LD structured data to the books HTML files.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>LaTeX: fix rendering of part/chapter (part previously displayed as chapter and its first chapter as part)</li>
<li>EPUB:<ul>
<li>Fix <code>.rule</code> so it is centered despite KOBO CSS injection.</li>
</ul>
</li>
<li>Fix resources/images inclusion when they are symlinks to the actual file.</li>
</ul>
</li>
</ul>
<h2 id = "link-130">0.12.0 (2017-06-05)</h2>
<p id = "para-274">This release includes a few new features, such as the possiblity to include Markdown files as section/subsections and not only as chapter, experimental support for superscript and subscript, and yet more experimental support for writing interactive fiction.</p>
<ul>
<li>Book configuration file:<ul>
<li>It is now possible to include subchapters using the <code>--</code> command (with one dash per sublevel: <code>--- foo.md</code> will include <code>foo.md</code> as a subsection).</li>
</ul>
</li>
<li>Markdown:<ul>
<li>Added support for superscript and subscript features, using respectively <code>foo^up^</code> or <code>bar~down~</code> syntax.</li>
</ul>
</li>
<li>New options:<ul>
<li><code>rendering.chapter</code>: change what is displayed in place of “chapter”.</li>
<li><code>rendering.part</code>: change what is displayed in place of “part”.</li>
<li><code>html.chapter.template</code> and <code>html.part.template</code> allow to tune a little how the chapters and parts are displayed in HTML.</li>
<li><code>tex.hyperref</code>, if set to <code>false</code>, will disable hyperrefs for local links. Can be useful for some files.</li>
<li><code>crowbook.html_as_text</code>, if set to false, will not treat HTML as text but ignore it.</li>
<li><code>subtitle</code>, as its name suggest, set the subtitle of a book.</li>
<li><code>crowbook.markdown.superscript</code> can enable or disable superscript/subscript “extension”.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Change the way chapters are displayed by default.</li>
<li>PDF output now has a better-looking (hopefully) title page.</li>
<li>Internal links are a bit more flexible, e.g. if you link to <code>Readme.html</code> it will now try to link to the chapter corresponding to <code>Readme.md</code>.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>LaTeX:<ul>
<li>Fix bug in syntax highlighting.</li>
<li>Fix label placements (and thus navigation inside PDF document).</li>
</ul>
</li>
<li>EPUB:<ul>
<li>Add unnamed but numbered chapters to the TOC.</li>
<li>Fix HTML escaping issue for chapter titles.</li>
<li>Fix the way parts were handled in the TOC.</li>
</ul>
</li>
<li>Book configuration file:<ul>
<li>Fix issue when setting custom number for parts.</li>
</ul>
</li>
</ul>
</li>
<li>Crowbook now requires rustc &gt;= 1.17.0</li>
</ul>
<h2 id = "link-131">0.11.4 (2017-03-21)</h2>
<ul>
<li>An image can now be considered standalone even if it is inside a link.</li>
<li>Bugfixes:<ul>
<li>HTML/EPUB: use raw (not HTML rendered) metadata in the places where HTML code is not appropriate. Templates can use this metadata with the <code>foo_raw</code> value.</li>
<li>HTML/EPUB: fix double-escaping/rendering issues in titles.</li>
<li>EPUB:<ul>
<li>Escape title and author before feeding them to epub-builder.</li>
<li>Fix content.opf issue by not rendering first chapters title (marked as beginning of document) in <code>&lt;guide&gt;</code>.</li>
</ul>
</li>
</ul>
</li>
<li>Rendering:<ul>
<li>HTML/EPUB: standalone images are now displayed centered.</li>
</ul>
</li>
</ul>
<h2 id = "link-132">0.11.3 (2017-03-19)</h2>
<ul>
<li>When crowbook parses the books contents, it now detects which features are used. This is useful in various ways:<ul>
<li>The ODT renderer only displays a global warning showing the lists of used features that are not implemented, instead of a warning each time such a feature is encountered.</li>
<li>The LaTeX and HTML/EPUB renderers only initialize <code>syntect</code> (which can take some time) if code blocks are used in the document.</li>
<li>The LaTeX renderer only requires LaTeX packages that are actually used in the document.</li>
</ul>
</li>
<li>Command-line interface:<ul>
<li>Warnings are now displayed by default.</li>
<li>The (undocumented) <code>--debug</code> argument has been removed.</li>
<li>The status of some messages have been modified (“warning” to “debug” or “error” to “warning”).</li>
</ul>
</li>
<li>Deprecated option:<ul>
<li><code>crowbook.verbose</code> has been deprecated, at it should be set by the CLI.</li>
</ul>
</li>
</ul>
<h2 id = "link-133">0.11.2 (2017-03-05)</h2>
<ul>
<li>General:<ul>
<li>When there is an error setting an option from the book configuration file (e.g. because it is an invalid key), print an error but do not abort, only ignore this specific option.</li>
</ul>
</li>
<li>New options:<ul>
<li><code>tex.stdpage</code>: if set to <code>true</code>, will use the <code>stdpage</code> package to render the book according to standards for submitting manuscripts.</li>
<li><code>rendering.highlight.theme</code> allows to specifies a theme for syntax highlighting (only used if <code>rendering.highlight</code> is set to “syntect”).</li>
<li><code>html.highlight.theme</code>, <code>epub.highlight.theme</code> and <code>tex.highlight.theme</code> allow to specify a theme for HTML/EPUB/LaTeX renderers (only used with syntect).</li>
</ul>
</li>
<li>Deprecated option:<ul>
<li><code>proofread.nb_spaces</code>.</li>
</ul>
</li>
<li>Rendering:<ul>
<li><code>[syntect](https://crates.io/crates/syntect)</code> is now the default for <code>rendering.highlight</code>. Concretely, this means that by default syntax highlighting is now done when <code>crowbook</code> is run instead of using <code>[highlight.js](https://highlightjs.org/)</code>.</li>
<li>EPUB:<ul>
<li>Now sets the “cover-image” property and meta so readers should display cover correctly.</li>
<li>Narrow non-breaking spaces should display more correctly on KOBO ereaders (hoping this wont break the way they are displayed everywhere else).</li>
</ul>
</li>
</ul>
</li>
<li>Proofreading:<ul>
<li>Repetition detection is now a bit less of an hack, and should cause less problems when used in conjunction with grammar checking. It now also works on PDF output (so the way it is highlighted could be improved).</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fix <code>mimetype</code> of EPUB files (make sure it is always “stored” and not “deflated” by the <code>zip</code> command).</li>
<li>Avoid initializing <code>syntect</code> (at the cost of performances) if it is not used.</li>
<li>Avoid creating an empty file if some book renderer fails (e.g. EPUB or ODT because <code>zip</code> command is not present).</li>
</ul>
</li>
</ul>
<h2 id = "link-134">0.11.1 (2017-01-05)</h2>
<ul>
<li>Rendering:<ul>
<li>Avoid page break before or after a separating rule.</li>
<li>Add support for <a href = "https://crates.io/crates/syntect">syntect</a> for syntax highlighting. This is activated by setting <code>rendering.highlight</code> to <code>syntect</code> (see below).</li>
<li>EPUB:<ul>
<li>Set back HTML escape of narrow non-breaking spaces to <code>true</code> by default (it caused problems on some readers, but cause much more serious one if <code>false</code>).</li>
<li>Add more information to guide/nav landmarks.</li>
</ul>
</li>
<li>LaTeX/PDF:<ul>
<li>Improve the way code blocks are displayed, using the <code>mdframed</code> package.</li>
<li>Try to reduce the issues of too long lines when using code and code blocks, by inserting <code>\allowbreak{}</code> directive after some characters (<code>.</code>, <code>/</code>, <code>_</code>, ...).</li>
<li>Block quotes are now displayed in italics.</li>
<li>Tables now use <code>tabularx</code>, which allows to break too long lines (it still doesnt break pages, though).</li>
</ul>
</li>
</ul>
</li>
<li>New options:<ul>
<li><code>rendering.highlight</code> can be set to <code>none</code>, <code>highlight.js</code> (by default, enables syntax highlighting via Javascript, but only on HTML document) or <code>syntect</code> (doesnt necessitate javascript, and can work in EPUB or LaTeX, but more experimental at this point).</li>
</ul>
</li>
<li>Deprecated options:<ul>
<li><code>html.highlight_code</code> (use <code>rendering.highlight</code> instead).</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>HTML (standalone): fix the template that contained invalid HTML code.</li>
</ul>
</li>
</ul>
<h2 id = "link-135">0.11.0 (2016-12-31)</h2>
<p id = "para-275">Substantial changes in this release, the more important one being support for parts!</p>
<ul>
<li><b>Breaking changes</b>: the API has undergone some breaking changes, hoping they will be the last ones for a while. API should now be more simple and consistent (?). This version contains also substantial options renaming (see below).</li>
<li>Crowbook now supports parts (above the “chapter” level), using the @ character in the book configuration file.</li>
<li>Command-line interface:<ul>
<li>Behaviour of <code>--to</code> should now be consistent for all output formats.</li>
<li>If <code>--output</code> is set to <code>-</code>, prints to stdout.</li>
<li>Conversely, if <code>&lt;BOOK&gt;</code> is set to <code>-</code>, reads from stdin.</li>
<li>Path specified by <code>--output</code> is now interpreted relatively to current directory (and not depending on where <code>&lt;BOOK&gt;</code> is or its options).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Chapters with no titles now have an empty title added (so it can at least display e.g. “Chapter X”).</li>
<li>EPUB:<ul>
<li>The <code>toc.ncx</code> file now displays links to “title” and (if set) “cover” (can be deactivated, see below).</li>
<li>The <code>toc.ncx</code> file now displays toc levels below chapter.</li>
<li>The table of contents is now displayed inline if <code>rendering.inline_toc</code> is set to <code>true</code>.</li>
</ul>
</li>
</ul>
</li>
<li>New options:<ul>
<li><code>epub.toc.extras</code>, set to <code>true</code> by default, will add links to the title and the cover (if it is set) in the table of contents.</li>
<li><code>epub.escape_nb_spaces</code>, similar to <code>html.escape_nb_spaces</code> and set to false by default since at least Kobo reader dont seem to be able to understand the CSS to escape those nb spaces...</li>
<li><code>rendering.chapter.roman_numerals</code>, if set to <code>true</code>, will display chapter numbers using roman numerals.</li>
<li><code>rendering.part.roman_numerals</code>, if set to <code>true</code> (it is by default) will display part numbers using roman numerals.</li>
<li><code>rendering.part.template</code> specifies the numbering scheme of parts.</li>
<li><code>rendering.part.reset_counter</code>, if set to <code>true</code> (it is by default), resets chapter number to zero after a part.</li>
</ul>
</li>
<li>Renamed options:<ul>
<li><code>import_config</code> renamed to <code>import</code>.</li>
<li><code>rendering.chapter_template</code> renamed to <code>rendering.chapter.template</code>.</li>
<li><code>html_single.html</code> renamed to <code>html.standalone.template</code>.</li>
<li><code>html_single.js</code> renamed to <code>html.standalone.js</code>.</li>
<li><code>html_single.one_chapter</code> renamed to <code>html.standalone.one_chapter</code>.</li>
<li><code>output.html_dir</code> renamed to <code>output.html.dir</code>.</li>
<li><code>output.proofread.html_dir</code> renamed to <code>output.proofread.html.dir</code>.</li>
<li><code>html_dir.index.html</code> and <code>html.dir.chapter.html</code> have been merged and both renamed to <code>html.dir.template</code>.</li>
<li><code>tex.font_size</code> renamed to <code>tex.font.size</code>.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>EPUB:<ul>
<li>Fix duplicate HTML escaping (resulting in e.g. “&amp;” instead of “&amp;”).</li>
</ul>
</li>
<li>HTML directory:<ul>
<li>Fix panic when trying to generate html directory in “../xxx” (<a href = "https://github.com/lise-henry/crowbook/issues/23">#23</a>).</li>
<li>Fix “previous chapter” links that were not displayed when “html.header” was set.</li>
</ul>
</li>
<li>HTML:<ul>
<li>Fix the way initial letter is displayed if <code>rendering.initials</code> is true.</li>
</ul>
</li>
</ul>
</li>
<li>Internationalization:<ul>
<li>Strings in generated Crowbook documents (such as “Table of contents”, “Title”, “Cover” and such) are now translated in spanish.</li>
</ul>
</li>
</ul>
<h2 id = "link-136">0.10.4 (2016-12-16)</h2>
<ul>
<li>New options:<ul>
<li><code>tex.font_size</code> specifies an optional font size (in pt) passed to the LaTeX class (must be 10, 11 or 12).</li>
<li><code>tex.title</code> can be set to <code>false</code> to avoid rendering the title with <code>\maketitle</code>.</li>
<li><code>tex.paper_size</code> specifies the paper size for PDF output.</li>
<li><code>tex.template.add</code>, <code>html.css.add</code> and <code>epub.css.add</code>allow to specify inline LaTex or CSS code in the book configuration file that will be added respectively to <code>tex.template.add</code>, <code>html.css.add</code> and <code>epub.css.add</code>.</li>
<li><code>html.icon</code> allows to specify the path of an icon for HTML documents.</li>
</ul>
</li>
<li>Command-line interface:<ul>
<li>Paths that are displayed should now be normalized, e.g. “foo/bar.pdf” instead of “baz/../foo/bar.pdf”.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>HTML:<ul>
<li>The default CSS style has been slightly modified.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id = "link-137">0.10.3 (2016-11-19)</h2>
<ul>
<li>Building:<ul>
<li>Crowbook now requires rustc &gt;= 1.13.0 to build.</li>
<li>Pre-built binaries now all include the proofreading feature.</li>
<li>Linux binaries are now linked against <code>musl</code> library so they should really work on any Linux platform.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fixed escaping of <code>author</code> and <code>title</code> fields.</li>
<li>Fixed text cleaning in ODT rendering that causes corrupt files to be generated.</li>
</ul>
</li>
<li>CommandLine Interface:<ul>
<li>Crowbook displays clearer error messages when unable to launch <code>latex</code> or <code>zip</code> commands.</li>
<li>Crowbook uses <code>term</code> library in order to display colours correctly on e.g. Windows.</li>
<li>The new argument <code>--lang</code> (or <code>-L</code>) allows to set the runtime language used by Crowbook, overriding <code>LANG</code> environment variable.</li>
<li><code>--list-options</code> no longer uses colours as it caused problems depending on the terminal or when piping to <code>less</code>.</li>
</ul>
</li>
</ul>
<h2 id = "link-138">0.10.2 (2016-10-21)</h2>
<p id = "para-276">Only minor changes in this version:</p>
<ul>
<li>Options:<ul>
<li><code>author</code> and <code>title</code>s default values are both set to the empty string, instead of <code>Anonymous</code> and <code>Untitled</code>.</li>
<li><code>input.autoclean</code> has been renamed <code>input.clean</code>.</li>
<li><code>input.smart_quotes</code> has been renamed <code>input.clean.smart_quotes</code>.</li>
<li>new option: <code>input.clean.ligature.dashes</code> will (if set to true) replace <code>--</code> to en dash (<code></code>) and <code>---</code> to em dash (<code></code>).</li>
<li>new option: <code>input.clean.ligature.guillemets</code> will (if set to true) replace <code>&lt;&lt;</code> and <code>&gt;&gt;</code> to french guillemets (<code>«</code> and <code>»</code>).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>HTML: if <code>html_single.one_chapter</code> and <code>rendering.inline_toc</code> are both set to true, only render the TOC if currently displayed chapter is the first.</li>
</ul>
</li>
</ul>
<h2 id = "link-139">0.10.1 (2016-10-18)</h2>
<p id = "para-277">Fixed a bug in <code>fr.po</code> translation that prevented building from fresh install.</p>
<h2 id = "link-140">0.10.0 (2016-10-18)</h2>
<p id = "para-278">This release contains some breaking changes (mostly for the API, which has been split in separate libraries). It alse features some internationalization support, and the program should now be tranlated if your <code>LANG</code> environment variable is set to french.</p>
<ul>
<li><b>Breaking changes</b>:<ul>
<li>Templates:<ul>
<li>Conditional inclusion depending on <code>lang</code> must now be done using <code>lang_LANG</code> (e.g. <code>lang_fr</code>, <code>lang_en</code>, and so on). This might impact custom <code>epub.css</code> and <code>html.css</code> templates.</li>
</ul>
</li>
<li>API:<ul>
<li>The <code>escape</code> module has been moved to a separate crate, <code>crowbook_text_processing</code>. The <code>cleaner</code> module is no longer public, but the features it provided are also available in <code>crowbook_text_processing</code>.</li>
</ul>
</li>
</ul>
</li>
<li>New options:<ul>
<li><code>html.css.colours</code> allows to provide a CSS file that only redefine the colour scheme. Such a file can be built from <code>crowbook --print-template html.css.colours</code>.</li>
<li><code>input.smart_quotes</code>: if set to <code>true</code>, tries to replace <code>'</code> and <code>"</code> by curly quotes.</li>
</ul>
</li>
<li>Command line interface:<ul>
<li>Crowbook is now (imperfectly) localized in french, and can be translated to other languages.</li>
<li>Added the <code>--quiet</code> (or <code>-q</code>) argument, that makes crowbook run without displaying any messages (except some error messages at this point).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>HTML:<ul>
<li>The table of contents menu is no longer displayed in the HTML single renderer if it doesnt contain at least two elements.</li>
<li>The default colour theme has been modified a little.</li>
</ul>
</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fix the escaping of non-breaking spaces in EPUB, as <code>&amp;nbsp;</code> and its friends arent valid entities in XHTML, apparently.</li>
</ul>
</li>
</ul>
<h2 id = "link-141">0.9.1 (2016-09-29)</h2>
<p id = "para-279">This release mainly introduces generation of proofreading copies, allowing, if they are set (and <code>crowbook</code> was compiled with the <code>proofread</code> feature) to generate proofreading copies, using tools to check grammar and detect repetitions. These features are currently experimental.</p>
<ul>
<li>New options:<ul>
<li><code>html.escape_nb_spaces</code>, if set to true (by default), will replace unicode non breaking spaces with HTML entites and CSS so it can display correctly even if readers dont have a browser/font supporting these unicode symbols.</li>
<li>Output files for proofread documents: <code>output.proofread.html</code>, <code>output.proofread.html_dir</code> and <code>output.proofread.pdf</code>.</li>
<li>Proofread options <code>proofread.repetitions</code> and <code>proofread.nb_spaces</code> have been added.<ul>
<li><code>proofread.nb_spaces</code>, if set to true, highlights non-breaking spaces so it is easier to check the correct typography of a book. Note that it requires that <code>html.escape_nb_spaces</code> be set to true (default) to work.</li>
<li><code>proofread.reppetitions</code>, if set to true, uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> to highlight repetitions in a document. It also uses the settings <code>proofread.repetitions.fuzzy</code>, <code>proofread.repetitions.max_distance</code>, <code>proofread.repetitions.threshold</code>, <code>proofread.repetitions.fuzzy.threshold</code>, <code>proofread.repetitions.ignore_proper</code>. Note that this feature is not built by default, youll have to build crowbook with <code>cargo build --release --features “repetitions”</code>.</li>
</ul>
</li>
</ul>
</li>
<li>New default settings for options:<ul>
<li><code>tex.command</code> is now <code>xelatex</code> by default.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>LaTeX:<ul>
<li>Add support for xelatex in the default template.</li>
</ul>
</li>
<li>Improved french cleaner (see <a href = "https://crowdagger.github.io/textes/articles/heuristique.html">an article (in french)</a> that talks about what it does).</li>
</ul>
</li>
<li>Crowbook user guide: documentation has been updated to correctly reflect 0.9.x options.</li>
<li>API:<ul>
<li><code>clap</code> dependency is now optional, people who want to use Crowbook as a library should include it with <code>crowbook = { version = “0.9”, default-features = false }</code>. (<code>clap</code> is still required to build a working binary).</li>
</ul>
</li>
</ul>
<h2 id = "link-142">0.9.0 (2016-09-23)</h2>
<p id = "para-280">The main objective of this release is to clean public interfaces, in order to limit breaking changes in the future. <em>Ideally</em>, all pre-1.0 releases should thus be 0.9.x. Concretely, this meant three things:</p>
<ul>
<li>reducing the surface of Crowbooks library API;</li>
<li>cleaning options names</li>
<li>cleaning the names exported in templates and document them, in order not to break user-defined templates in future (non-breaking) releases. More detailed changes for this release:</li>
<li><b>Breaking change for users</b>: removed <code>tex.short</code> option, replaced by a more generic <code>tex.class</code> (default being <code>book</code>). <code>html.crowbook_link</code> has also been removed.</li>
<li>Renamed options. Using the old name will print a deprecation warning but will still work for a while.<ul>
<li><code>temp_dir</code> -&gt; <code>crowbook.temp_dir</code></li>
<li><code>zip.command</code> -&gt; <code>crowbook.zip.command</code></li>
<li><code>verbose</code> -&gt; <code>crowbook.verbose</code></li>
<li><code>html.print_css</code> -&gt; <code>html.css.print</code></li>
<li><code>html.display_chapter</code> -&gt; <code>html_single.one_chapter</code></li>
<li><code>html.script</code> -&gt; <code>html_single.js</code></li>
<li><code>numbering</code> -&gt; <code>rendering.num_depth</code></li>
<li><code>numbering_template</code> -&gt; <code>rendering.chapter_template</code></li>
<li><code>display_toc</code> -&gt; <code>rendering.inline_toc</code></li>
<li><code>toc_name</code> -&gt; <code>rendering.inline_toc.name</code></li>
<li><code>enable_yaml_blocks</code> -&gt; <code>input.yaml_blocks</code></li>
<li><code>use_initials</code> -&gt; <code>rendering.initials</code></li>
<li><code>autoclean</code> -&gt; <code>input.autoclean</code></li>
<li><code>html_dir.css</code> -&gt; <code>html.css</code> (not really renamed, <code>html_dir.css</code> isactually removed as there is no point in having different CSS for standalone and multifile HTML rendering, is it?)</li>
</ul>
</li>
<li>New options:<ul>
<li>More metadata: <code>license</code>, <code>version</code> and <code>date</code>. These metadata are not treated by the renderers, but they are exported to the templates: <code>{{{metadata}}}</code> allows to access the content. If they are present, a <code>has_metadata</code> is also set to true, allowing to do something like <code>{{{title}}} {{#has_version}}version {{{version}}} {{/has_version}}</code>.</li>
<li>Yet more metadata: it is possible to add custom metadata by prefixing it with <code>metadata.</code>. They will then be accessible in the templates, with dots ('.') replaced by underscores ('_'). E.g., with <code>metadata.foo: bar</code> you can access it in your templates with <code>{{{metadata_foo}}}</code>.</li>
<li><code>output.base_path</code> specifies a directory where the output files (set by <code>output.FORMAT</code> will be written.</li>
<li><code>resources.base_path.templates</code> specifies where templates can be found.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Metadata can now contain Markdown and will be rendered by the renderers. This might not be a good idea for common fields (e.g. “title”), though. Use with caution.</li>
<li><code>rendering.inline_toc.name</code> can use <code>{{{loc_toc}}}</code> to specify a localized name.</li>
<li>HTML:<ul>
<li><code>html.top</code> and <code>hstml.footer</code> are now considered as templates, so you can use some <code>{{{metadata}}}</code> in it.</li>
<li>Improved the way footnotes are displayed.</li>
<li>In standalone HTML, footnotes are rendered at the end of the document instead of at the end of the chapter, unless <code>html_single.one_chapter</code> is true.</li>
</ul>
</li>
<li>LaTeX:<ul>
<li>If <code>tex.class</code> is set to <code>article</code>, chapters will be displayed as <code>\sections</code> since <code>article</code> class doesnt handle chapters.</li>
<li>Except if <code>tex.class</code> is set to <code>book</code>, margins are now symmetrical.</li>
<li>LaTex template now uses <code>version</code> and <code>date</code>.</li>
</ul>
</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li><code>import_config</code> only import options from another book file that are not equal to the default ones and that havent already been set by the caller. E.g., <code>author: foo</code> then <code>import_config: bar.book</code> wont erase the author previously set.</li>
<li><code>import_config</code> now correctly translates the imported books paths.</li>
</ul>
</li>
<li>Crowbook program:<ul>
<li>Still working to improve error messages.</li>
<li><code>crowbook --list-options</code> uses colours. This might hurt your eyes.</li>
<li>Display an error message when mustache cant compile a template, instead of panicking.</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>Added static methods to <code>Logger</code> to allows displaying messages more easily/prettily.</li>
<li>Reduce pubic APIs surface so less changes will need to be considered breaking in the future.</li>
</ul>
</li>
</ul>
<h2 id = "link-143">0.8.0 (2016-09-19)</h2>
<p id = "para-281">This release adds support for syntax higlighting in code blocks, customized top and footer blocks for HTML rendering, and the special <code>import_config</code> option that allows to import options from another book file. It also provides (hopefully) better error messages.</p>
<ul>
<li>New options:<ul>
<li><code>import_config</code>is not really an option, but allows to import another configuration file, useful if you share a same set of options between multiple books.</li>
<li><code>use_initials</code> (set to false by default) makes Crowbook use initials (“lettrines”) at start of each chapter. Support is still experimental.</li>
<li><code>html.highlight_code</code> (set to true by default) allows syntax highlighting for code blocks, using highlight.js.</li>
<li><code>html.higlight.css</code> and <code>html.highlight.js</code> can be used to provide other themes (default is default.css) and an highlight.js build that support other languages.</li>
<li><code>html.footer</code> allows to specify custom footer. If not set, <code>html.crowbook_link</code> allows to disable “Generated by Crowbook” message.</li>
<li><code>html.top</code> allows to specify a custom header that will be displayed at the top of HTML file(s).</li>
</ul>
</li>
<li>Deprecated options:<ul>
<li><code>side_notes</code> has been renamed <code>html.side_notes</code>.</li>
</ul>
</li>
<li>Crowbook program:<ul>
<li>All output formats are now rendered concurrently.</li>
<li>Better error messages. Crowbook now tries to give more information when displaying an error, with the file name where a problem was found, and, in some cases, the line. It also tries to detect errors (such as files not found) sooner.</li>
<li>Some “warning” messages have also been “moved” to error messages, to make sure they are displayed even when crowbook isnt runned with <code>--verbose</code>.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Hidden chapter now produce empty <code>\chapter*{}</code> and <code>&lt;h1&gt;</code> in LaTeX and HTML. This allow to delimit a chapter break even if nothing is displayed.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Navigation menu of standalone HTML didnt include a call to javascript when <code>html.display_chapter</code> was set to true, meaning it didnt display the chapter correctly.</li>
<li>Implementations of <code>Image</code> and <code>StandaloneImage</code> were reversed in LaTeX.</li>
<li><code>StandaloneImage</code> urls were not adjusted (meanning that running <code>crowbook</code> from another directory failed).</li>
<li>Image paths are now found correctly in HtmlDir rendering even if <code>crowbook</code> is called from another directory (same fix as 0.6s for Epub and LaTeX, which was forgotten for HtmlDir).</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>In order to have better error messages, there was a need to refactor the <code>Error</code> type, and make more methods return <code>Result&lt;X&gt;</code> instead of <code>X</code>. The API is, therefore, quite modified.</li>
<li>Added a <code>Renderer</code> trait used by the various renderers.</li>
<li>Removed some methods from public API.</li>
</ul>
</li>
</ul>
<h2 id = "link-144">0.7.0 (2016-09-11)</h2>
<p id = "para-282">This releases renders images differently when they are on a standalone paragraph or inside a paragraph.</p>
<ul>
<li>Internal/API:<ul>
<li><code>Token</code> has a new variant, <code>StandaloneImage</code>. This is used to distinguish an image that is alone in a paragraph of an image that is inlined alongside text.</li>
<li><code>Parser.parse</code> method now distingues between <code>Image</code> and <code>StandaloneImage</code>. Currently, an image is considered “standalone” if it is the sole element of a paragraph, even if it is among a link.</li>
<li><code>Token</code> has a new <code>is_image</code> method.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Standalone images are now rendered differently than inline images (80% of width VS original size) in HTML/EPUB and LaTeX.</li>
</ul>
</li>
</ul>
<h2 id = "link-145">0.6.0 (2016-09-09)</h2>
<ul>
<li>Deprecated options:<ul>
<li><code>nb_char</code>: since it was only used for french cleaner and for typography reasons its better to use different non breaking spaces according to context, this option was not really useful anymore.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Images are now displayed at 80% width of the page.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Image paths are now found correctly in LaTeX and EPUB rendering even if <code>crowbook</code> is called from another directory.</li>
<li>Fixed a bug in <code>French</code> cleaner when a string to clean ended by a non-breaking space (space was doubled with a breaking one).</li>
<li>LaTeX/PDF:<ul>
<li>“Autocleaning” is now also activated (for french at least) for LaTeX rendering, since it doesnt correctly insert non-breaking spaces for e.g. ‘«’ or ‘»’.</li>
<li>Fixed escaping of <code>--</code> to <code>-{}-</code> to avoid tex ligatures.</li>
</ul>
</li>
<li>HTML/EPUB:<ul>
<li><code>html.display_chapter</code> now defaults to <code>false</code> (e.g., by default the HTML displays the entirety of a book).</li>
<li>Fixed rendering of lists when <code>lang</code> is set to <code>fr</code>.</li>
<li>Links are now HTML-escaped, fixing errors in XHTML (for EPUB rendering) when links contained &amp; character.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id = "link-146">0.5.1 (2016-04-14)</h2>
<p id = "para-283">Mostly rendering fixes:</p>
<ul>
<li>Epub:<ul>
<li>Fix a validation problem when book contained hidden chapters.</li>
</ul>
</li>
<li>French cleaner:<ul>
<li>Use semi-cadratine space instead of cadratine space for dialogs.</li>
<li>Use non-narrow non-breaking spapce instead of narrow one for :, ‘«’ and ‘»’ (following https://fr.wikipedia.org/wiki/Espace_ins%C3%A9cable#En_France).</li>
</ul>
</li>
<li>HTML:<ul>
<li>Add viewport meta tags.</li>
<li>Standalone HTML:<ul>
<li>Dont display the button to display chapter and the previous/next chapter link if <code>html.display_chapter</code> is set to <code>false</code>.</li>
<li>Fix chapter displaying when some chapters are not numbered.</li>
</ul>
</li>
<li>Multi-files HTML:<ul>
<li>Fix previous/next chapter display to make it consistent with standalone HTML.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id = "link-147">0.5.0 (2016-04-02)</h2>
<ul>
<li>Crowbook now requires Rustc 1.7.0.</li>
<li>It is now possible to render HTML in multiple files:<ul>
<li><code>output.html_dir</code> will activate this renderer, and specify in which directory to render these files;</li>
<li><code>html_dir.css</code> allows to override the CSS for this rendering;</li>
<li><code>html_dir.index.html</code> allows to specify a template for the <code>index.html</code> page;</li>
<li><code>html_dir.chapter.html</code> allows to specify a template for the chapters pages.</li>
</ul>
</li>
<li>New book options:<ul>
<li><code>tex.short</code>: if set to true, the LaTeX renderer will use <code>article</code> instead of <code>book</code> as document class, and will use the default <code>\maketitle</code> command for article. This option is by default set to false, except when Crowbook is called with <code>--single</code>.</li>
<li><code>enable_yaml_blocks</code>: parsing YAML blocks is no longer activated by default, except when using <code>--single</code>. This is because you might want to have e.g. multiple short stories using YAML blocks to set their titles and so on, <em>and</em> a separate <code>.book</code> file to render a book as a collection of short stories. In this case, you wouldnt want the displayed title or the output.pdf/html/epub files be redefined by the short stories .md files.</li>
<li><code>html.print_css</code>: allows to specify a stylesheet for media print</li>
<li><code>html.display_chapter</code>: displays one chapter at a time in standalone HTML</li>
<li><code>html.script</code>: allows to specify a custom javascript file for standalone HTML</li>
<li><code>html_dir.script</code>: same thing for multipage HTML</li>
<li><code>resources.base_path</code>: by default, Crowbook resolves local links in markdown files relatively to the markdown file. This option allows to resolve them relatively to a base path. This option comes with two variants, <code>resources.base_path.images</code> and <code>resources.base_path.links</code>, which only activate it for respectively images tags and links tags. These two options are ignored when <code>base_path</code> is set. There is also <code>resources.base_path.files</code> which specify where additional files (see below) should be read, but this is one is set to <code>.</code> (i.e., the directory where the <code>.book</code> file is) by default.</li>
<li><code>resources.files</code>: indicate a (whitespace-separated) list of files that should be embedded. Currently only used with the EPUB renderer.</li>
<li><code>resources.out_path</code>: indicate where <code>resources.files</code> should be copied in the final document. Default to <code>data</code>, meaning that files will be placed in a <code>data</code> directory in the EPUB.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Templates can now use localized strings according to the <code>lang</code> option</li>
<li>Standalone HTML now includes locale files using base64.</li>
<li>Standalone HTML displays one chapter at a time, thouht it can be changed via a button in the menu.</li>
<li>HTML/EPUB: default CSS now uses the <code>lang</code> value do determine how to display lists (currently the only difference is it uses “–” when <code>lang</code> is set to “fr” and standard bullets for other languages).</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fixed a bug of filename “resolution” when Crowbook was called with <code>--single</code> (e.g., <code>crowbook -s tests/test.md</code> would previously try to load `tests/tests/test.md).</li>
<li>Epub renderer now uses the <code>mime_guess</code> library to guess the mime type based on extension, which should fix the mime type guessed for a wide range of extensions (e.g., svg).</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>The <code>Book::new</code>, <code>new_from_file</code>, and <code>new_from_markdown_file</code> take an additional <code>options</code> parameter. To create a book with default options, set it to <code>&amp;[]</code>.</li>
</ul>
</li>
</ul>
<h2 id = "link-148">0.4.0 (2016-03-01)</h2>
<ul>
<li>Crowbook now internally uses a true YAML parser, <code>yaml_rust</code>, for its options. Since the “old” Crowbookss config format was similar, but had some subtle differences, this is somewhat of a breaking change:<ul>
<li>strings should now be escaped with “” in some cases (e.g. if it contains special characters). On the other hand, it <em>allows</em> to optionally escape a string with these quotes, which wasnt possible until then and might be useful in some cases.</li>
<li>multiline strings now follow the YAML format, instead of the previous “YAML-ish” format. This can impact the way newlines are added at the end of a multiline string. See e.g. <a href = "http://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines">this link</a> for the various ways to include mulitiline strings in Yaml.</li>
</ul>
</li>
<li>Crowbook now parses YAML blocks (delimited by two lines with “---”) in Markdown files, ignoring keys that it doesnt recognize. This allows crowbook to be compatible(-ish) with Markdown that contains YAML blocks for Jekyll or Pandoc.</li>
<li>New option <code>--single</code> allows to give Crowbook a single Markdown file (which can contain options within an inline YAML block) instead of a book configuration file. This is useful for e.g. short stories.</li>
<li>Enhanced the way debugging/warning/info messages are handled and displayed:<ul>
<li>Added a <code>--debug</code> option to the binary.</li>
<li>Internal: added a <code>Logger</code> struct.</li>
<li>Different levels of information (debug/warning/info/error) get different colours.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Crowbook no longer crashes when called with the <code>--to</code> argument if it cant create a file.</li>
</ul>
</li>
</ul>
<h2 id = "link-149">0.3.0 (2016-02-27)</h2>
<ul>
<li>Crowbook now tries to convert local links. That is, if you link to a Markdown file that is used in the book. (e.g. <a href = "#chapter-0">README.md</a>), it <em>should</em> link to an appropriate inner reference inside the book.</li>
<li>Latex renderer now supports (local) images.</li>
<li>Epub renderer now embed (local) images in the EPUB file.</li>
<li>Some changes to the HTML/Epub stylesheets.</li>
<li>Internal (or usage as a library):<ul>
<li>Crowbook no longer changes current directory, which worked in the binary but could cause problem if library was used in multithreaded environment (e.g. in <code>cargo test</code>).</li>
<li>More modules and methods are now private.</li>
<li>Improved documentation.</li>
<li>Added more unit tests.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Epub renderer now correctly renders unnumbered chapter without a number in its toc.ncx file</li>
</ul>
</li>
</ul>
<h2 id = "link-150">0.2.2 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>French cleaner now correctly replaces space after — (in e.g. dialogs) with “em space”.</li>
</ul>
</li>
</ul>
<h2 id = "link-151">0.2.1 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>HTML/Epub rendering no longer incorrectly increment chapter count for unnumbered chapters.</li>
<li>Latex: makes what is possible to avoid orverflowing the page.</li>
</ul>
</li>
<li>Minor changes:<ul>
<li>Latex: improvement of the default way URLs are displayed.</li>
</ul>
</li>
</ul>
<h2 id = "link-152">0.2.0 (2016-02-25)</h2>
<ul>
<li>Command line arguments:<ul>
<li>New argument <code>--print-template</code> now allows to print a built-in template to stdout.</li>
<li>New argument <code>--list-options</code> prints out all valid options in a config file (or in <code>set</code>), their type and default value.</li>
<li>New argument <code>--set</code> allows to define or override whatever option set in a book configuration.</li>
<li><code>--create</code> can now be used without specifying a <code>BOOK</code>, printing its result on <code>stdout</code>.</li>
</ul>
</li>
<li>Configuration file:<ul>
<li>Added support for multiline strings in <code>.book</code> files, with either | (preserving line returns) or &gt; (transforming line returns in spaces)</li>
<li>New option <code>display_toc</code> allows to display the table of contents (whose name, at least for HTML, is specified by <code>toc_name</code>) in HTML and PDF documents.</li>
<li>Option <code>numbering</code> now takes an int instead of a boolean, allowing to specify the maximum level to number (e.g. <code>1</code>: chapters only, <code>2</code>: chapters and sectino, ..., <code>6</code>: everything).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Added support for numbering all headers, not just level-1 (e.g., having a subsection numbered <code>2.3.1</code>).</li>
<li>Tables and Footnotes are now implemented for HTML/Epub and LaTeX output.</li>
</ul>
</li>
<li>Internal:<ul>
<li>Refactored <code>Book</code> to use an HashMap of <code>BookOption</code>s instead of having like 42 fields.</li>
</ul>
</li>
</ul>
<h2 id = "link-153">0.1.0 (2016-02-21)</h2>
<ul>
<li>initial release</li>
</ul>
</div><div id = "chapter-10" class = "chapter">
<h1 id = 'link-154'>GNU LESSER GENERAL PUBLIC LICENSE</h1><pre><span style="color:#839496;"> Version 2.1, February 1999
</span></pre><p id = "para-284">Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
<p id = "para-285">[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]</p>
<pre><span style="color:#839496;"> Preamble
</span></pre><p id = "para-286">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.</p>
<p id = "para-287">This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.</p>
<p id = "para-288">When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.</p>
<p id = "para-289">To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.</p>
<p id = "para-290">For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.</p>
<p id = "para-291">We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.</p>
<p id = "para-292">To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original authors reputation will not be affected by problems that might be introduced by others.</p>
<p id = "para-293"> Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.</p>
<p id = "para-294">Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.</p>
<p id = "para-295">When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.</p>
<p id = "para-296">We call this license the “Lesser” General Public License because it does Less to protect the users freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.</p>
<p id = "para-297">For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.</p>
<p id = "para-298">In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.</p>
<p id = "para-299">Although the Lesser General Public License is Less protective of the users freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.</p>
<p id = "para-300">The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a “work based on the library” and a “work that uses the library”. The former contains code derived from the library, whereas the latter must be combined with the library in order to run.</p>
<p id = "para-301"> GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</p>
<ol start = "0">
<li>This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called “this License”). Each licensee is addressed as “you”.</li>
</ol>
<p id = "para-302">A “library” means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.</p>
<p id = "para-303">The “Library”, below, refers to any such software library or work which has been distributed under these terms. A “work based on the Library” means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term “modification”.)</p>
<p id = "para-304">“Source code” for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.</p>
<p id = "para-305">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.</p>
<ol>
<li>You may copy and distribute verbatim copies of the Librarys complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.</li>
</ol>
<p id = "para-306">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</p>
<p id = "para-307"></p>
<ol start = "2">
<li>You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</li>
</ol>
<pre><span style="color:#839496;">a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
</span></pre><p id = "para-308">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</p>
<p id = "para-309">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.</p>
<p id = "para-310">In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</p>
<ol start = "3">
<li>You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.</li>
</ol>
<p id = "para-311"> Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.</p>
<p id = "para-312">This option is useful when you wish to copy part of the code of the Library into a program that is not a library.</p>
<ol start = "4">
<li>You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.</li>
</ol>
<p id = "para-313">If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.</p>
<ol start = "5">
<li>A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a “work that uses the Library”. Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.</li>
</ol>
<p id = "para-314">However, linking a “work that uses the Library” with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a “work that uses the library”. The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.</p>
<p id = "para-315">When a “work that uses the Library” uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.</p>
<p id = "para-316">If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)</p>
<p id = "para-317">Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.</p>
<p id = "para-318"></p>
<ol start = "6">
<li>As an exception to the Sections above, you may also combine or link a “work that uses the Library” with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customers own use and reverse engineering for debugging such modifications.</li>
</ol>
<p id = "para-319">You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:</p>
<pre><span style="color:#839496;">a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable &quot;work that
uses the Library&quot;, as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user&#39;s computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
</span></pre><p id = "para-320">For an executable, the required form of the “work that uses the Library” must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</p>
<p id = "para-321">It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.</p>
<p id = "para-322"></p>
<ol start = "7">
<li>You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:</li>
</ol>
<pre><span style="color:#839496;">a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
</span></pre><ol start = "8">
<li><p id = "para-323">You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</p>
</li>
<li><p id = "para-324">You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.</p>
</li>
<li><p id = "para-325">Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.</p>
</li>
</ol>
<p id = "para-326"></p>
<ol start = "11">
<li>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.</li>
</ol>
<p id = "para-327">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.</p>
<p id = "para-328">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</p>
<p id = "para-329">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</p>
<ol start = "12">
<li><p id = "para-330">If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</p>
</li>
<li><p id = "para-331">The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
</li>
</ol>
<p id = "para-332">Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.</p>
<p id = "para-333"></p>
<ol start = "14">
<li><p id = "para-334">If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</p>
<pre><span style="color:#839496;"> NO WARRANTY
</span></pre></li>
<li><p id = "para-335">BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
</li>
<li><p id = "para-336">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<pre><span style="color:#839496;"> END OF TERMS AND CONDITIONS
</span></pre></li>
</ol>
<p id = "para-337"> How to Apply These Terms to Your New Libraries</p>
<p id = "para-338">If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).</p>
<p id = "para-339">To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.</p>
<pre><span style="color:#839496;">&lt;one line to give the library&#39;s name and a brief idea of what it does.&gt;
Copyright (C) &lt;year&gt; &lt;name of author&gt;
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
</span></pre><p id = "para-340">Also add information on how to contact you by electronic and paper mail.</p>
<p id = "para-341">You should also get your employer (if you work as a programmer) or your school, if any, to sign a “copyright disclaimer” for the library, if necessary. Here is a sample; alter the names:</p>
<p id = "para-342">Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob (a library for tweaking knobs) written by James Random Hacker.</p>
<p id = "para-343">&lt;signature of Ty Coon&gt;, 1 April 1990 Ty Coon, President of Vice</p>
<p id = "para-344">Thats all there is to it!</p>
</div><div class = "notes">
<h2 class = "notes">Notes</h2>
<table class = "notes">
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-1">[1]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-1"><p id = "para-172">But you shouldnt use them too much.</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-2">[2]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-2"><p id = "para-176">Or is it?</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-3">[3]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-3"><p id = "para-177">Or is it?</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-4">[4]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-4"><p id = "para-185">Some of them, though, are not “real” templates, they are just files that are inserted, but cant contain mustache tags. This will probably evolve in future versions.</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-5">[5]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-5"><p id = "para-194">Mustache also provides the <code>{{foo}}</code> variant, which HTML-escapes the content of the variable. You should not use this, as Crowbook already renders and correctly escapes the variables it sets for use in templates.</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-6">[6]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-6"><p id = "para-200"><code>&lt;&lt;foo&gt;&gt;</code> might also work, but the ampersand is required to prevent mustache HTML-escaping the value. This is not good because:</p>
<ol>
<li>escaping is already done by Crowbook before setting variable content;</li>
<li>escaping HTML in a LaTeX document wont probably look good.</li>
</ol>
<h2 id = "link-88">5.2. List of templates</h2>
</aside>
</td>
</tr>
</table>
</div>
</div>
<footer id = "footer"><p id = "para-345">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.14.1</p>
</footer>
</div>
</body>
</html>