texlive[67813] Master/texmf-dist: ot-tableau (4aug23)

commits+karl at tug.org commits+karl at tug.org
Fri Aug 4 23:10:34 CEST 2023


Revision: 67813
          http://tug.org/svn/texlive?view=revision&revision=67813
Author:   karl
Date:     2023-08-04 23:10:34 +0200 (Fri, 04 Aug 2023)
Log Message:
-----------
ot-tableau (4aug23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.pdf
    trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.tex
    trunk/Master/texmf-dist/tex/latex/ot-tableau/ot-tableau.sty

Modified: trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.tex	2023-08-04 21:10:25 UTC (rev 67812)
+++ trunk/Master/texmf-dist/doc/latex/ot-tableau/ot-tableau.tex	2023-08-04 21:10:34 UTC (rev 67813)
@@ -4,7 +4,7 @@
 %\usepackage[notipa,usehhline]{ot-tableau}
 \usepackage{fullpage,pifont}
 \title{The \textsf{ot-tableau} package}
-\date{Revised 2021-05-19}
+\date{Revised 2023-08-01}
 \author{Adam Baker}
 \def\eg{e.g.,~}
 \def\tabl{\textsf{ot-tableau}}
@@ -248,5 +248,52 @@
 \item[fingerafter] Place the finger-of-optimality after the letter rather than before it. (\verb+\FingerBeforeLetter+, \verb+\LetterBeforeFinger+)
 \item[usehhline] Use the \verb+hhline+ package to draw prettier tableau lines. (As of 2021-05-19, a package conflict means that the lines are not actually prettier. Hopefully this will be fixed in the future and we can go back to pretty lines!)
 \end{description}
+\section{Multiple input candidates}
+To input candidates with multiple inputs, you can use the \verb+\mcand+ command instead of the \verb+\cand+ command. This suppresses the numbering of the candidate.  Since multiple input candidates usually appear with no constraint markings on the candidate itself, the starred version of the \verb+\viol+ command suppresses vertical lines in that cell of the tableau.  Here's a full example, adapted from Petrova et al. (2006) in \emph{The Linguistic Review} 23-1.
+\bigskip
 
+\LetterBeforeFinger
+\begin{tableau}{c:c|c|c|c}
+\inp{}        \const{Agree} \const{ID preson voi} \const{ID-wf voi} \const{IDvoi}\const{*voi}
+\cand{\ips{pigds}} \vio*{}	\vio*{}		\vio*{} \vio*{} \vio{}
+\mcand{pigds}	\vio{!*}	\vio{}		\vio{}	\vio{}	\vio{**}
+\mcand{pigdz}    \vio{}		\vio{}		\vio{*!}	\vio{*}	\vio{***}
+\mcand[\Optimal]{pikts}    \vio{}		\vio{}		\vio{}	\vio{**}	\vio{}
+\cand{\ips{pigts}}            \vio*{}		\vio*{}		\vio*{}	\vio*{}	\vio{}
+\mcand{pigts}            		\vio{*!}	\vio{}		\vio{}	\vio{}	\vio{*}
+\mcand[\Optimal]{pikts}    \vio{}		\vio{}		\vio{}	\vio{*}	\vio{}
+\mcand{pigdz}              \vio{}		\vio{}	\vio{!*}	\vio{**}	\vio{***}
+\cand{\ips{pigtz}}            \vio*{}	\vio*{}		\vio*{} \vio*{} \vio{}  
+\mcand[\Optimal]{pigdz}            \vio{}		\vio{}		\vio{} \vio{**}	\vio{***}
+\mcand{piktz}    \vio{*!}		\vio{}		\vio{} \vio{}	\vio{}
+\mcand{pigts}     \vio{}		\vio{}	\vio{!*}	\vio{*}	\vio{}
+\end{tableau}
+
+\bigskip
+
+Generated by:
+
+\begin{verbatim}
+\LetterBeforeFinger
+\begin{tableau}{c:c|c|c|c}
+\inp{}        	\const{Agree}	\const{ID preson voi}	\const{ID-wf voi}	\const{IDvoi}	\const{*voi}
+\cand{\ips{pigds}} 	\vio*{}		    \vio*{}					\vio*{}				\vio*{}		\vio{}
+\mcand{pigds}		\vio{!*}		\vio{}					\vio{}				\vio{}		\vio{**}
+\mcand{pigdz}    	\vio{}			\vio{}					\vio{*!}			\vio{*}		\vio{***}
+\mcand[\Optimal]{pikts}  \vio{}		\vio{}					\vio{}				\vio{**}	\vio{}
+\cand{\ips{pigts}}       \vio*{}	\vio*{}					\vio*{}				\vio*{}		\vio{}
+\mcand{pigts}            \vio{*!}	\vio{}					\vio{}				\vio{}		\vio{*}
+\mcand[\Optimal]{pikts}    \vio{}	\vio{}					\vio{}				\vio{*}		\vio{}
+\mcand{pigdz}              \vio{}	\vio{}					\vio{!*}			\vio{**}	\vio{***}
+\cand{\ips{pigtz}}         \vio*{}	\vio*{}					\vio*{} 			\vio*{} 	\vio{}  
+\mcand[\Optimal]{pigdz}    \vio{}	\vio{}					\vio{} 				\vio{**}	\vio{***}
+\mcand{piktz}    		   \vio{*!}	\vio{}					\vio{}				 \vio{}		\vio{}
+\mcand{pigts}     			\vio{}	\vio{}					\vio{!*}			\vio{*}		\vio{}
+\end{tableau}
+\end{verbatim}
+
+
+
+
+
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/ot-tableau/ot-tableau.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ot-tableau/ot-tableau.sty	2023-08-04 21:10:25 UTC (rev 67812)
+++ trunk/Master/texmf-dist/tex/latex/ot-tableau/ot-tableau.sty	2023-08-04 21:10:34 UTC (rev 67813)
@@ -11,11 +11,11 @@
 %
 % This work has the LPPL maintenance status `maintained'.
 % 
-% The Current Maintainer of this work is Adam Bker.
+% The Current Maintainer of this work is Adam Baker.
 %
 % This work consists of the files ot-tableau.sty and ot-tableau.tex.
 
-\ProvidesPackage{ot-tableau}[2021-05-19]
+\ProvidesPackage{ot-tableau}[2023-08-01]
 
 % Package option: notipa
 \newif\ifottableau at tipa
@@ -159,21 +159,41 @@
 									&
 									\ifottableau at fingerfirst \rowletter \else #1 \fi%
 								&#2\ExclOff}
-
-\def\vio#1{&%
+% add multi-input candidates (added by Alan Munn 2023/08/01)
+\newcommand\mcand[2][]{\OptimalOff\properlines%
+						\ifottableau at fingerfirst \ipa{#1}  \fi%
+						&
+						\ifottableau at fingerfirst  \else \ipa{#1} \fi%
+						&
+						\ipa{#2}\ExclOff}
+						
+\WithSuffix\newcommand\mcand*[2][]{\OptimalOff\properlines%
+									\ifottableau at fingerfirst #1  \fi%
+									&
+									\ifottableau at fingerfirst  \else #1 \fi%
+								&#2\ExclOff}
+								
+% add starred version of \vio to remove vertical lines for initial multi-input candidates
+% (added by Alan Munn 2023/08/01)
+\NewDocumentCommand{\vio}{sm}{
+	\IfBooleanTF{#1}
+	{&\multicolumn{1}{c}{#2}}
+	{&%
 			\ifottableau at circledviolations 
 				\ifottableau at optimal 
-					\StrSubstitute{#1}{*}{\CircledViolationMarker} 
+					\StrSubstitute{#2}{*}{\CircledViolationMarker} 
 				\else 
-					\StrSubstitute{#1}{*}{\ViolationMarker} 
+					\StrSubstitute{#2}{*}{\ViolationMarker} 
 				\fi 
 			\else 
-				\StrSubstitute{#1}{*}{\ViolationMarker}
+				\StrSubstitute{#2}{*}{\ViolationMarker}
 			\fi
 		\ifottableau at excl \ifottableau at shadedcells \ShadeTheCell \fi \fi%
-		\ifottableau at excl \empty \else \IfSubStr{#1}{!}{\ExclOn}{\ExclOff} \fi%
+		\ifottableau at excl \empty \else \IfSubStr{#2}{!}{\ExclOn}{\ExclOff} \fi%
 		}
+		}
 
+
 \newcommand\inp[1]{\multicolumn{3}{|l||}{#1}}
 
 \newcommand\const[1]{&\textsc{#1}\UnshadeTheCell}



More information about the tex-live-commits mailing list.