作为后续行动我之前的一个问题,我正在尝试使用pst-asr
表格内的图表gb4e
环境,但遇到了麻烦。我的目标是生成下面的图像:
但是,使用以下 MWE:
\documentclass[a4paper,12pt,twoside]{article}
\usepackage{libertine}
\usepackage{wasysym}
\usepackage[table]{xcolor}
\definecolor{gri}{RGB}{230,230,230}
\usepackage{pst-asr}
\newtier{1n,2n,3n}
\psset{everyasr=\tiershortcuts, ph=0, ts=0,
1n=(ph) -2 1em 0.25em, 1nB=-2,
2n=(ph) -4 1em 0.25em, 2nB=-4,
3n=(ph) -6 1em 0.25em, 3nB=-6}
\usepackage{gb4e}
\usepackage{pifont}
\newcommand{\hand}{\ding{43}}
\usepackage{arydshln}
\begin{document}
\begin{exe}
\ex \textit{\emph{/CaCiC/} input; e.g. \emph{kwazis-} `greet'}\\
%\begin{xlist}
\begin{tabular}
{|rl|c|c:c|}\hline
& /CaCiC/ & {\sc *Mid} & {\sc Ident}(hi) & {\sc *High} \\
\hline
& %\ex
\asr[reptype=nots,xgap=2em,syB=-2em,phB=0em] CaCeC|
\@(0.5,1n){[+lo]}
\-(1,ph)
\@(1.5,1n){[-hi]}
\-(1,ph)
\@(2.5,1n){[-lo]}
\-(3,ph)
\@(3.5,1n){[-hi]}
\-(3,ph)
\endasr
& *! & \cellcolor{gri} * & \cellcolor{gri} \\
\hline
\hand & %\ex
\asr[reptype=nots,xgap=2em,syB=-2em,phB=0em] CaCiC|
\@(0.5,1n){[+lo]}
\-(1,ph)
\@(1.5,1n){[-hi]}
\-(1,ph)
\@(2.5,1n){[-lo]}
\-(3,ph)
\@(3.5,1n){[+hi]}
\-(3,ph)
\endasr
& & & \cellcolor{gri} * \\
\hline
\end{tabular}
%\end{xlist}
\end{exe}
\end{document}
我只能到达那里的一部分:
取消注释上述 MWE 中的xlist
environment 和es 会导致 6 个致命错误。我使用 XeLaTeX 在 Texmaker 中编译该文档。\ex
答案1
a.
自己写不是一个选择吗?
\begin{tabular}{|rl|c|c:c|}\hline
& /CaCiC/ & {\sc *Mid} & {\sc Ident}(hi) & {\sc *High} \\\hline
& a.\quad
\asr[reptype=nots,xgap=2em,syB=-2em,phB=0em] CaCeC|
\@(0.5,1n){[+lo]}
以及自动解决方案:
[...]
\newcounter{tabcounter}
\let\Tabular\tabular
\renewcommand\tabular{\setcounter{tabcounter}{0}\Tabular}
\let\MC\multicolumn
\begin{document}
\begin{exe}
\ex \textit{\emph{/CaCiC/} input; e.g. \emph{kwazis-} `greet'}\\
\begin{tabular}{|r @{\stepcounter{tabcounter} \alph{tabcounter}. }l|c|c:c|}\hline
\MC{1}{|c}{} & /CaCiC/ & {\scshape *Mid} & {\scshape Ident}(hi) &
{\scshape *High} \\\hline
[...]