| 1 |
# Boustrophedon (LaTeX) |
| 2 |
|
| 3 |
## LaTeX Package |
| 4 |
|
| 5 |
**Created by Aris Chatzichristos, PhD** |
| 6 |
|
| 7 |
--- |
| 8 |
|
| 9 |
## Overview |
| 10 |
|
| 11 |
This package typesets text in *boustrophedon* style, alternating the writing direction on each line. |
| 12 |
|
| 13 |
Have you ever wondered why most Western languages are written left-to-right, while many Middle Eastern languages are written right-to-left? Both conventions may seem arbitrary today—but this was not always the case. |
| 14 |
|
| 15 |
In one of the earliest fully developed alphabets, the Archaic Greek alphabet (from *alpha* and *beta*, hence “alphabet”), writing was often performed *boustrophedon*, meaning “as the ox turns in ploughing.” Text was written left-to-right on one line, then right-to-left on the next, with both the direction of the text *and the letterforms themselves* mirrored accordingly. |
| 16 |
|
| 17 |
This method creates a continuous flow of reading, as the reader does not need to jump back to the start of each new line, but instead follows the text in a natural back-and-forth motion. |
| 18 |
|
| 19 |
Reading takes some getting used to, but after a while it becomes surprisingly natural. One may also observe that: |
| 20 |
|
| 21 |
- Capital letters (both in the Latin alphabet and especially in the Greek alphabet) are particularly well-suited to this type of writing, and are much easier to read than lowercase letters (which were developed later in both systems). |
| 22 |
- For example, pairs such as *b* vs *d*, or cases like ὡ vs ὠ in polytonic Greek, can make reading more difficult, as the reader must keep mental track of the text direction. |
| 23 |
- In contrast, capital Greek letters—already in use during the boustrophedon period—have the appropriate symmetry to be read in both directions without ambiguity. |
| 24 |
|
| 25 |
This package brings an ancient writing paradigm into modern digital typography. |
| 26 |
|
| 27 |
--- |
| 28 |
|
| 29 |
## Features |
| 30 |
|
| 31 |
- Boustrophedon rendering (alternating line direction) |
| 32 |
- Mirrored letterforms on alternating lines |
| 33 |
- Automatic paragraph wrapping |
| 34 |
- Explicit line breaks using `\\` |
| 35 |
- Inline rendering with `inLine=True`, where only text inside `[ ... ]` is transformed |
| 36 |
- Support for Latin transliteration and Greek Unicode text |
| 37 |
- Archaic and Classical Greek transformations |
| 38 |
- Optional digamma (Ϝ) and koppa (Ϙ) handling |
| 39 |
- Configurable initial direction, reset policy, and line width |
| 40 |
|
| 41 |
--- |
| 42 |
|
| 43 |
## Installation |
| 44 |
|
| 45 |
For quick use, place `boustrophedon.sty` in the same directory as your `.tex` file, or install it in a local TeX tree. |
| 46 |
|
| 47 |
For the documented-source distribution, generate the package file with: |
| 48 |
|
| 49 |
```tex |
| 50 |
latex boustrophedon.ins |
| 51 |
``` |
| 52 |
|
| 53 |
This writes `boustrophedon.sty` from `boustrophedon.dtx`. |
| 54 |
|
| 55 |
In TeXStudio, compile with **XeLaTeX**. The demo and template include these magic comments so TeXStudio can pick the right engine automatically: |
| 56 |
|
| 57 |
```tex |
| 58 |
% !TeX program = xelatex |
| 59 |
% !TeX encoding = UTF-8 |
| 60 |
``` |
| 61 |
|
| 62 |
## Requirements |
| 63 |
|
| 64 |
- XeLaTeX or LuaLaTeX recommended (Greek Unicode works best) |
| 65 |
- LaTeX packages: `xparse`, `expl3`, `graphicx`, `iftex`, `greek6cbc`, `greek4cbc` |
| 66 |
|
| 67 |
## License |
| 68 |
|
| 69 |
Boustrophedon is distributed under the LaTeX Project Public License, version 1.3c or later. See `LICENSE` and `NOTICE`. |
| 70 |
|
| 71 |
## Quick start |
| 72 |
|
| 73 |
```tex |
| 74 |
\usepackage[Type=Classical,ObscureLetters=On]{boustrophedon} |
| 75 |
|
| 76 |
\boustrophedon{DHMOS ATHNAIWN \\ TIMWN ANDRA AGAQON \\ KAI SWFRONA} |
| 77 |
``` |
| 78 |
|
| 79 |
Supported modes: |
| 80 |
|
| 81 |
- `Type=Any` -- mirror whole line or inline span as generic text |
| 82 |
- `Type=Archaic` -- epigraphic Greek rendering using `greek6cbc` |
| 83 |
- `Type=Classical` -- epigraphic Greek rendering using `greek4cbc` |
| 84 |
|
| 85 |
## Main command |
| 86 |
|
| 87 |
```tex |
| 88 |
\boustrophedon[<keys>]{<text>} |
| 89 |
``` |
| 90 |
|
| 91 |
Keys: |
| 92 |
|
| 93 |
- `Type=Any|Archaic|Classical` (default `Any`) |
| 94 |
- `start=LTR|RTL` (default `LTR`) |
| 95 |
- `resetDirection=Page|Paragraph` (default `Page`) |
| 96 |
- `LineWidth=Auto|<dimension>` (default `Auto`) -- override target line width (e.g. `LineWidth=0.85\textwidth` or `LineWidth=0.85\linewidth`) |
| 97 |
- With `Auto`, the package targets `0.95\linewidth` and never exceeds the current `\linewidth`. |
| 98 |
- `ObscureLetters=On|Off` (default `On`) -- enables koppa/digamma handling |
| 99 |
- `inLine=True|False` (default `False`) -- keeps surrounding text normal and transforms only bracketed spans |
| 100 |
|
| 101 |
Inline example: |
| 102 |
|
| 103 |
```tex |
| 104 |
\boustrophedon[inLine=True]{Normal text with [THIS PART] mirrored inline.} |
| 105 |
\boustrophedon[Type=Classical,inLine=True]{A sentence with [DHMOS ATHNAIWN] embedded.} |
| 106 |
``` |
| 107 |
|
| 108 |
In inline mode, `[ ... ]` acts as markup and the brackets are not intended as content. |
| 109 |
|
| 110 |
Deprecated (kept for compatibility): |
| 111 |
|
| 112 |
- `reset=paragraph|page` (same as `resetDirection`, but lowercase) |
| 113 |
- `digammaAndKoppa=On|Off` (same as `ObscureLetters`) |
| 114 |
|
| 115 |
## start/stop form |
| 116 |
|
| 117 |
```tex |
| 118 |
\startBoustrophedon[Type=Archaic] |
| 119 |
ANDRA MOI ENNEPE MOUSA POLYTROPON ... |
| 120 |
\stopBoustrophedon |
| 121 |
``` |
| 122 |
|
| 123 |
## Demos |
| 124 |
|
| 125 |
- `examples/boustrophedon_demos.tex` -> `examples/boustrophedon_demos.pdf` |
| 126 |
- `examples/boustrophedon_template.tex` -> `examples/boustrophedon_template.pdf` |
| 127 |
- `boustrophedon.dtx` -> `boustrophedon.pdf` package manual |
| 128 |
|
| 129 |
## Release Status |
| 130 |
|
| 131 |
Boustrophedon v1.1.1 adds CTAN-style `.dtx`/`.ins` packaging, a generated package manual, and GitHub issue templates for bug reports and feature requests. |