-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: add showcase section with Lekis example
- Loading branch information
Showing
11 changed files
with
118 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:hidden: | ||
|
||
intro | ||
showcase | ||
install | ||
quickstart | ||
basicstyling | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. _showcase: | ||
|
||
Showcase | ||
======== | ||
|
||
Some examples of PDF documents produced by rinohtype are collected here. This | ||
section mainly serves to give users an idea of the level of customization that | ||
is achievable by means of custom templates and style sheets. | ||
|
||
|
||
Lekis | ||
----- | ||
|
||
:showcase:`Odpisy.pdf` was styled by means of both a custom template and style | ||
sheet. The custom template (Python) and configuration (INI file): | ||
|
||
- configures Czech as the document's language, which prevents a line break | ||
after specific words (following Czech typography rules) | ||
- defines custom title (with vector logo) and colophon pages | ||
- sets a background for content pages, marking the page header | ||
- defines a custom back page, listing company contact details | ||
|
||
Actually, there are two template configuration files: a base configuration and | ||
one for a special type of documents. The latter inherits from the base template | ||
configuration and only overrides what needs changing. In this case, it omits | ||
the table of contents part from the document. The PDF linked to above is an | ||
example of such a document. | ||
|
||
|
||
.. magick montage -density 20 "doc/showcase/Odpisy.pdf[0,2,5]" -background grey | ||
-tile x1 -border 4 -bordercolor white -geometry +0+0 | ||
doc/showcase/Odpisy.png | ||
.. figure:: showcase/Odpisy.png | ||
|
||
Some pages from :showcase:`Odpisy.pdf` | ||
|
||
|
||
A single style sheet is used for both types of documents. It does not specify | ||
the Sphinx style sheet included with rinohtype as a base stylesheet so as to | ||
avoid unexpected changes in the document style in case the Sphinx style sheet | ||
is updated in a future rinohtype release. The style sheet defines: | ||
|
||
- the ``[VARIABLES]`` section defines monospaced, serif and sans-serif | ||
typefaces and a set of key colors that are referenced in style definitions | ||
- custom 'numbering' for headings (square glyph) and bullet lists (fast forward | ||
glyph) | ||
- a top border for certain headings | ||
- custom in-line titles (in-line images or specific font glyphs) for | ||
admonitions | ||
- coloured styling for the ``menuselection`` role | ||
- small-capital styling for keyboard shortcuts |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters