| 1 |
# The `sectionbreak` package |
| 2 |
|
| 3 |
This package provides LaTeX support for section breaks, used mainly in fiction |
| 4 |
books to signal changes in a story, like changes in time, location, etc. |
| 5 |
(Source: [Wikipedia](https://en.wikipedia.org/wiki/Section_(typography))). |
| 6 |
|
| 7 |
|
| 8 |
## Package options |
| 9 |
|
| 10 |
There are several package options: |
| 11 |
|
| 12 |
`disable` |
| 13 |
|
| 14 |
: disable section break printing. |
| 15 |
|
| 16 |
`mark` |
| 17 |
|
| 18 |
: characters printed in the center of the section break. It is space by default, common value might be `***` for example. |
| 19 |
|
| 20 |
`asterism` |
| 21 |
|
| 22 |
: request [asterism](https://en.wikipedia.org/wiki/Asterism_(typography)) as a section mark. |
| 23 |
|
| 24 |
`preskip` |
| 25 |
|
| 26 |
: Amount of space printed before the section mark. It should be a dimension unit supported by TeX. |
| 27 |
|
| 28 |
`postskip` |
| 29 |
|
| 30 |
: Similar to `preskip`, but it is a space printed after the section mark. |
| 31 |
|
| 32 |
`skip` |
| 33 |
|
| 34 |
: Set both `preskip` and `postskip` to the same value. |
| 35 |
|
| 36 |
`style` |
| 37 |
|
| 38 |
: LaTeX commands for font style change, like `\bfseries`, for example. |
| 39 |
|
| 40 |
## Commands |
| 41 |
|
| 42 |
`\sectionbreak[<mark>]` |
| 43 |
|
| 44 |
: print the section break. Optional argument can contain content which should be printed in the break center. |
| 45 |
|
| 46 |
`\sectionbreakmark{<mark>}` |
| 47 |
|
| 48 |
: set the content printed in the following `\sectionbreak` commands. |
| 49 |
|
| 50 |
`\asterism` |
| 51 |
|
| 52 |
: print the asterism (\asterism) symbol. |
| 53 |
|
| 54 |
## The `tex4ht` support |
| 55 |
|
| 56 |
The `sectionbreak` package has support for `tex4ht`, so it is possible to use |
| 57 |
this package in conversion to `HTML` or other formats supported by this |
| 58 |
conversion system. It provides the following configurations: |
| 59 |
|
| 60 |
`\Configure{sectionbreak}{before section break }{after section}` |
| 61 |
|
| 62 |
: this configuration can be used for insertion of a box around the section break mark, which can be styled using CSS to print the blank space around the content. |
| 63 |
|
| 64 |
`\Configure{asterism}{code which replaces the asterism symbol}` |
| 65 |
|
| 66 |
: the asterism symbol is configured to use Unicode for it's rendering by default. This method might be unsupported by some devices like e-Ink readers, so it is possible to set a different code using this configuration. |
| 67 |
|
| 68 |
# Example |
| 69 |
|
| 70 |
|
| 71 |
\documentclass[12pt]{article} |
| 72 |
\usepackage[asterism]{sectionbreak} |
| 73 |
\begin{document} |
| 74 |
|
| 75 |
Section separated by three exclamation marks. |
| 76 |
\sectionbreak[!!!] |
| 77 |
|
| 78 |
Section separated by asterism section mark requested in \texttt{\textbackslash usepackage}. |
| 79 |
\sectionbreak |
| 80 |
|
| 81 |
Section separated by a rule. |
| 82 |
\sectionbreakmark{\rule{10em}{3pt}} |
| 83 |
\sectionbreak |
| 84 |
|
| 85 |
|
| 86 |
\end{document} |
| 87 |
|
| 88 |
% <img src="https://raw.githubusercontent.com/michal-h21/sectionbreak/master/sectionbreak-example.png" > |
| 89 |
|
| 90 |
% <!-- |
| 91 |
|
| 92 |
Section separated by three exclamation marks. |
| 93 |
\sectionbreak[!!!] |
| 94 |
|
| 95 |
Section separated by asterism section mark requested in \texttt{\textbackslash usepackage}. |
| 96 |
\sectionbreak |
| 97 |
|
| 98 |
Section separated by a rule. |
| 99 |
\sectionbreakmark{\rule{10em}{3pt}} |
| 100 |
\sectionbreak |
| 101 |
% --> |
| 102 |
|
| 103 |
# License |
| 104 |
|
| 105 |
This package is copyright 2017--2018 Michal Hoftich. |
| 106 |
It may be distributed and/or modified under the |
| 107 |
conditions of the [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), either version 1.3 |
| 108 |
of this license or (at your option) any later version. |
| 109 |
This work has the LPPL maintenance status `maintained'. |
| 110 |
|