bell notificationshomepageloginedit profileclubsdmBox

Read Ebook: The Project Gutenberg RST Manual by Perathoner Marcello

More about this book

Font size:

Background color:

Text color:

Add to tbrJar First Page Next Page

Ebook has 236 lines and 15650 words, and 5 pages

Installing EpubMaker Windows Debian PG-RST Classes Classes For Inline Text Classes For Block Text Classes For Front Matter Markup PG-RST Extensions Styles Pagination Table of Contents List of Figures List of Tables Toc-Entry Footnotes Page Numbers Dropcaps Tables PG Metadata Top Boilerplate Metadata Directive Bottom Boilerplate PG-RST Best Practices Examples and Tests Section 3.1 Section 3.2 Section 3.3

List of Tables

List of Figures

Richard and Drucilla Martin

Installing EpubMaker

Windows

Prerequisites

Assuming you don't have python yet. If you have either version 2.6 or 2.7 already installed, skip this.

Select all the default options and install.

If you are using python 2.6 get the setuptools for 2.6.

Select all the default options and install.

This will open the TeX Live installation wizard. Follow the instructions. When in doubt use the defaults.

This will take quite a while. If you experience download problems, restart the wizard: it will resume the download where it left off.

If you are a post-processor you already have this.

http://tidy.sourceforge.net/

Start | Control Panel | System | Advanced | Environment Variables. Click "Path" in the User variables at the top. Click "Edit"

If the field is empty just enter :

C:Python27; C:Python27Scripts; C:Program FilesGnuWin32bin;

If the field contains data, go to the end of that data and add a semicolon if there isn't one already and then add the string above.

Click Ok three times.

EpubMaker

Debian

Prerequisites

, you'll have to parallel install python 2.6 or 2.7.)

# apt-get install python python-setuptools python-lxml # apt-get install groff tidy # apt-get install libpng-dev libjpeg-dev libfreetype6-dev

Note: To get PDF generation to work, you have to use TeX Live version 2009-11 or newer. You can get those from debian testing or unstable. If don't want to switch from debian stable, you have to install TeX Live manually.

If you are on testing or unstable:

# apt-get install texlive texlive-latex-extra texlive-xetex # apt-get install ttf-linux-libertine ttf-dejavu

# cd /path/where/unpacked # perl install-tl -gui

EpubMaker

Kindlegen

PG-RST Classes

A list of classes you can use in PG-RST.

Classes For Inline Text

These classes have an effect on inline text. If you put them on a block, all inline contents of the block will be rendered accordingly.

Classes For Inline Text I

Classes For Inline Text II

Classes For Block Text

These classes have an effect on block text. Please do not confuse the alignment of the block with the alignment of the text in the block. Eg. a table can be centered, while the text inside the table is left-aligned. The alignment of the block is set with the align option.

Classes For Block Text

Classes For Front Matter Markup

EpubMaker includes a few classes to markup front matter. While it is not necessary to do this, it adds value. In future the PG catalog might automatically extract not only the cover page but also the title page, verso, etc.

Classes For Front Matter Markup

Use these classes on a container. These classes already insert page breaks before the container so you need not insert page breaks on your own.

.. container:: titlepage

| Pride and Prejudice | | Written by Jane Austen.

PG-RST Extensions

You can create custom roles based on the existing ones. This is how you create and then use custom roles.

.. role:: small-caps :class: small-caps

This text is in :small-caps:`Small Caps`.

You can attach more than one class to a role:

Add to tbrJar First Page Next Page

 

Back to top