gb4e:覆盖第一行的斜体

gb4e:覆盖第一行的斜体

亲爱的 Stackexchange 社区,

在我的论文中,我使用 gb4e 作为示例。为了使第一行显示为斜体,我使用以下代码:

\let\eachwordone=\itshape

但是,在一些示例中,我将单词放在括号、引号等中。我希望这些单词不要使用斜体。但是,我还没有找到任何可行的解决方案。有人有想法吗?

梅威瑟:

\documentclass{scrbook} 
\usepackage{gb4e}
\let\eachwordone=\itshape

\begin{document}
The following examples are in Swahili. In (1) I'd like the parenthesis not to be in italics, in (2) the quotation marks.

\begin{exe}
\ex[*]{\gll nyumba i-na-on-ek-a (na) wa-tu\\
house(9) 9-\textsc{prs}-see-\textsc{neut}-\textsc{fv} (\textsc{com}) 2-person\\
\glt intended: \lq (A/the) house is seen by people.'}
\ex[]{\gll a-li-sem-a kwamba \lq\lq na-m-ju-a"\\
1-\textsc{pst}-speak-\textsc{fv} \textsc{comp} \textsc{1sg.prs}-1-know-\textsc{fv}\\
\glt \lq He said \lq\lq I know him."'}
\end{exe}

\end{document}

截屏: 截屏

太感谢了!

相关内容