summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
blob: f519fefe1e3e3f169f4d2a5c2439a38f9f35c9fe (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
25
26
27
28
% PhonRule
% 
% (c) 2015 Stefano Coretta
% LPPL LaTeX Public Project License
%  
\ProvidesPackage{phonrule}
  [2015/07/04 v1.2.0 LaTeX package for typesetting phonological rules]
  
\RequirePackage{pbox}
\RequirePackage{ragged2e}

\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[-1.5pt]{1.5ex}{.5pt}#3}
\newcommand{\phonl} [3] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3\rule[-1.5pt]{1.5ex}{.5pt}}
\newcommand{\phonb} [4] {#1 \ensuremath{\rightarrow} #2 \ensuremath{/} #3\rule[-1.5pt]{1.5ex}{.5pt}#4}
\newcommand{\phold}{\rule[-1.5pt]{1.5ex}{.5pt}} % for place holder without spaces
\newcommand{\env} [2] {#1 \ensuremath{/} #2}
\newcommand{\envr} [2] {#1 \ensuremath{/} \rule[-1.5pt]{1.5ex}{.5pt}#2}
\newcommand{\envl} [2] {#1 \ensuremath{/} #2\rule[-1.5pt]{1.5ex}{.5pt}}
\newcommand{\envb} [3] {#1 \ensuremath{/} #2\rule[-1.5pt]{1.5ex}{.5pt}#3}
\newcommand{\phonfeat}[1]{\ensuremath{\left[\begin{array}{c} \pbox{\textwidth}{\Centering #1} \end{array}\right]}} % set environment for feature matrix with square brackets
\newcommand{\oneof}[1]{\ensuremath{\left\{\begin{array}{l} \pbox{\textwidth}{\Centering #1} \end{array}\right.}} % set environment for one of multiple with curly brackets

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