phon_rule is a user-friendly LaTeX environment for typsetting phonological rules.
1. Introduction
2. Using the phon_rule Environment
3. The center Option
4. Examples
I couldn't find a good LaTeX environment for phonological rules, so I wrote my own. The phon_rule environment aims to be as simple to use as possible, while still being flexible in the types of rules it can draw.
To use this environment, place the phon_rule.sty file either in your LaTeX packages directory or in the same directory as the
document you're going to use the environment in.
Most of the LaTeX in this readme was automatically rendered using markdown-pp
by way of QuickLaTeX. Because QuickLaTeX does not yet support the tipa package,
any IPA symbols in this readme are approximations using the closest available LaTeX symbol.
The basic format of a phonological rule is:
\begin{phon_rule}
A \> B \/ C \_ D
\end{phon_rule}
which produces
Each element of the rule can be composed of the following:
-
\cv{V}: a CV-tier or tonal-tier element -
\phoneme{S}: an IPA phoneme, using thetipalibrary -
\phone{S}: as above, but displayed with phonetic brackets -
\features{\f{+}{stop} \f{+}{alv.}}, a feature matrix, where each\f{+/-}{name}is a feature -
\cvfeatures{C}{\f{\alpha}{place}}: as above, but with a CV-tier element above the feature matrix -
\oneof{\# \\ \cv{C}}, a set of possible environments -
\#: a word-boundary marker -
\null: a null symbol
Invoking the center option when using the package wraps the rules (the phon_rule environment) in a center environment, centering them.
Examples of phonological rules are found in the body of phon_rule.tex, and their output can be seen in phon_rule.pdf.