I'm trying to typeset three rewrite rules to each other. Each rule is contained in an expex example to keep consistent with the numbering elsewhere in the document. At present, I have the following:
Which can be produced with the following code:
\documentclass{scrreprt}
\usepackage{expex}
\usepackage{phonrule}
\begin{document}
\pex
\a
\phon{1m.Irr}{\oneof[l]{
\envr{ŋaŋ}{[+son]} \
\envr{ŋaŋu}{[$-$son]}}}
\a
\phon{12m.Irr}{\oneof[l]{
\envr{naŋ}{[+son]} \
\envr{naŋu}{[$-$son]}}}
\a
\phon{2m.R}{\oneof[l]{
\envr{nuŋ}{[+son]} \
\envr{nuŋu}{[$-$son]}}}
\xe
\end{document}
However, the alignment is pretty unsightly. Specifically, I would like to horizontally align the arrows, braces and environments across each rule with each other. If possible, I would like advice on a general solution to aligning across examples, since the issue comes up fairly frequently; however, I would prefer not to spend weeks learning the ins and outs of tex programming in order to achieve this!
There are several questions and answers posted on here to do with alignment of single elements within rules using phonrule, but so far as I am aware no one has asked before about alignment of elements across multiple rules.



tabtopackage. – benjamin Jan 06 '21 at 10:57tabtoin the preamble and changed the code thus: – Peter Nyhuis Torres Jan 11 '21 at 02:59