我的代码如下:
\documentclass{book}
\usepackage{linguex}%
\begin{document}
Davidsonian events, and makes explicit how the latter relate to
situations more generally. As she puts it:
\ex. \textit{Exemplification} \label{exemplification}\\
A situation $s$ exemplifies a proposition $p$ iff whenever there
is a part of $s$ in which $p$ is not true, then $s$ is a minimal
situation in which $p$ is true. (1)
So sentence (2a) is a property of situations such that the
\ex. \a. Ewan swam for 10 hours.
\b. $\lambda {\rm s}[{\rm
past}({\rm s}) \wedge \exists{\rm e}[{\rm e} \leq_{p} {\rm s}
\wedge {\rm swim}({\rm Ewan})({\rm e}) \wedge {\rm f}_{\rm
hour}({\rm e}) = 10]]$
As is well known, the ordering of English auxiliaries is rigid
\ex.
\a. $\{{\rm T}, {\rm Mod}\} \prec {\rm Perf} \prec {\rm Prog} \prec {\rm Pass} \prec {\rm V}$
\b. He could have been being interviewed.
\c. * John is having returned.\label{havingreturned}
\d. * John is being hunting.
\e. * John seems to have had already eaten.\label{havehad}
\end{document}
生成的输出如下:
对于 HTML 转换,我在 MS-DOS 提示符下运行了命令“ htlatex test "xhtml" " -cunihft" " -cvalidate -p
”,成功生成了 HTML,但对齐出错了。有人能建议实现带有语言对齐的 HTML 输出的最佳方法吗?
答案1
对齐只是由 Web 浏览器渲染底层 HTML 结构的方式引起的。可以使用一些 CSS 来解决这个问题。例如 CSS Grid,这是一个相当新且功能强大的工具:
\Preamble{xhtml}
\begin{document}
\Css{dt p,dd p{margin:0;padding:0;}
}
\Css{ dl {
display: grid;
grid-template: auto / 2em 1fr;
}}
\Css{dt {
grid-column: 1;
}}
\Css{dd {
grid-column: 2;
}}
\Css{dt, dd {
margin: 0;
}}
\Css{ dd.alist p{margin-top:0} }
\EndPreamble