summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/phonrule
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-08 21:25:36 +0000
committerKarl Berry <karl@freefriends.org>2014-08-08 21:25:36 +0000
commit89ce9650e79450a5477717072dbd4b19d8bd43ae (patch)
treeb2f531b58b92f28c6eaa69a914533d8544ba4060 /Master/texmf-dist/tex/latex/phonrule
parent811a25516a4454cdba0b70f9c45da1552cad1308 (diff)
phonrule (8aug14)
git-svn-id: svn://tug.org/texlive/trunk@34877 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/phonrule')
-rw-r--r--Master/texmf-dist/tex/latex/phonrule/phonrule.sty23
1 files changed, 12 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/phonrule/phonrule.sty b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
index ce1a557e288..5da7119c269 100644
--- a/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
+++ b/Master/texmf-dist/tex/latex/phonrule/phonrule.sty
@@ -4,21 +4,22 @@
% LPPL LaTeX Public Project License
%
\ProvidesPackage{phonrule}
- [2011/01/11 v0.01 LaTeX package for typesetting phonological rules]
+ [2011/01/11 v1.0.0 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{} \\
+\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} #1 \end{array}\right]}} % set environment for feature matrix with square brackets; use \mbox{} \\
+\newcommand{\oneof}[1]{\ensuremath{\left\{\begin{array}{l} #1 \end{array}\right.}} % set environment for one of multiple with curly brackets; use \mbox{} \\
\endinput
%%
-%% End of file `mypackage.sty'. \ No newline at end of file
+%% End of file `phonrule.sty'. \ No newline at end of file