summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
blob: ce1a557e2885ac49694313b35169dd511d98542c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% PhonRule
% 
% (c) Stefano Coretta
% LPPL LaTeX Public Project License
%  
\ProvidesPackage{phonrule}
  [2011/01/11 v0.01 LaTeX package for typesetting phonological rules]

\let\myDate\date
\newcommand{\phon} [2] {#1 \ensuremath{\rightarrow} #2}
\newcommand{\phonc} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3}
\newcommand{\phonr} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} \rule{1em}{.5pt} #3}
\newcommand{\phonl} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3 \rule{1em}{.5pt}}
\newcommand{\phonb} [4] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3 \rule{1em}{.5pt} #4}
\newcommand{\placehold}{\ \rule{1em}{.5pt}\ } % for place holder with spaces
\newcommand{\phold}{\rule{1em}{.5pt}} % for place holder without spaces
\newenvironment{phonfeat}{$\left[\begin{array}{c}}{\end{array}\right]$} % set environment for feature matrix with square brackets; use \mbox{} \\
\newenvironment{oneof}{$\left\{\begin{array}{c}}{\end{array}\right\}$} % set environment for one of multiple with curly brackets; use \mbox{} \\
\newenvironment{phonfeatnest}{\left[\begin{array}{c}}{\end{array}\right]} % set nested environment for feature matrix with square brackets; use \mbox{} \\
\newenvironment{oneofnest}{\left\{\begin{array}{c}}{\end{array}\right\}} % set nested environment for one of multiple with curly brackets; use \mbox{} \\

\endinput
%%
%% End of file `mypackage.sty'.