我注意到 linguex 将注释的第一个单词与方括号对齐,而不是与括号内的实际单词对齐。
这是我的文档的一部分(我复制粘贴了我正在使用的所有包,因为我不知道什么会影响其中的内容,我永远不知道):
\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage{newclude, relsize, amsmath, amssymb, relsize,xcolor,pifont,setspace, graphicx, stmaryrd, pifont, array, float,xfrac, multicol, tipa, multirow, calc, tabulary, tikz-qtree, bold-extra, color, colortbl, textcomp, anyfontsize, refcount, hyperref}
\usepackage[section]{placeins}
\usepackage{fontenc}
\usepackage[normalem]{ulem}
\usepackage[shortlabels]{enumitem}
\usepackage{caption}
\captionsetup[table]{skip=10pt}
\usepackage[style=authoryear-comp, dashed=false, natbib=true, uniquename=false, maxcitenames=2, uniquelist=false, mincitenames=1]{biblatex}
\usepackage[a-1b]{pdfx}
\usepackage{tikz-qtree-compat}
\usepackage{setspace}
\usepackage{linguex}
\begin{document}
\ex. A sabe que B tem um bom relacionamento com o rei e a rainha do Marrocos, os quais B visitou umas semanas atrás. \\
A knows that B has a good relationship with the king and queen of Morocco, whom B visited a few weeks ago.
\a.[A:] E a rainha, o que ela te deu? \\ `What about the queen, what did she give you?'
\b.[B:] Bom, eu não me lembro mais, mas ... \\ `Well, I don't remember, but...'
\vspace{0.2cm}
\bg. [o rei]\textsubscript{\textsc{ct}} me deu [um cocar de índio]\textsubscript{\textsc{f}}. \\
the king to.me gave a headdress of Indian\label{rei-ct}\\ `The king gave me an Indian headdress'.
\end{document}
请注意,在 (a) 中,注释的第一个词这与方括号对齐,而不是与其对应的实际单词对齐(o)。其他带方括号的短语也一样。有没有什么办法可以解决这个问题?我知道你们中的一些人认为其他包更适合语言示例(expex、gb4e 等),但如果可能的话,我想坚持使用 linguex,因为我的 200 多个示例都已经使用了这个包的命令。谢谢!
答案1
手动解决方法是在注释词前放置一个幻像[
字符。幻像字符串实际上不会打印在文档中,但会在命令的位置添加字符串通常使用的宽度和高度\phantom
。
梅威瑟:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{linguex}
\begin{document}
\ex. A sabe que B tem um bom relacionamento com o rei e a rainha do Marrocos, os quais B visitou umas semanas atrás. \\
A knows that B has a good relationship with the king and queen of Morocco, whom B visited a few weeks ago.
\a.[A:] E a rainha, o que ela te deu? \\ `What about the queen, what did she give you?'
\b.[B:] Bom, eu não me lembro mais, mas ... \\ `Well, I don't remember, but...'
\vspace{0.2cm}
\bg. [o rei]\textsubscript{\textsc{ct}} me deu [um cocar de índio]\textsubscript{\textsc{f}}. \\
\phantom{[}the king to.me gave \phantom{[}a headdress of Indian\label{rei-ct}\\ `The king gave me an Indian headdress'.
\end{document}
结果:
您必须\phantom{[}
在所有示例中使用括号中的所有单词,但对于 200 个示例来说这似乎是可行的。