1

I'm new to LaTeX so excuse my naive question. I use \usepackage{linguex} to generate linguistic examples but when I try to write two or more examples, the second one is indented. How can I make all the examples in the document have the same indentation?

The code:

\exg. Koitu-wa kamo-des-u\\
this-Top duck-Polite-Pres\\
``This is a duck.''\\
\ex. \ag. Koitu-ra-wa kamo-des-u\\
this-PL-Top duck-Polite-Pres\\
``These are ducks.''\\
\bg. Demo, aitu-ra-wa gan-des-u\\
however, that-PL-Top goose-Polite-Pres\\
``However, those are geese.''

The output: enter image description here

2
  • Welcome to TeX.sx! Please add a minimal but compilable code, not a snippet of non compilable code. Note that the code chunk should have an indentation of four spaces to be correctly displayed in the screen (the button {} is for make it easily) or use Ctrl-K for in-line code.
    – Fran
    Commented Jul 17, 2019 at 11:44
  • 1
    If you're just starting with LaTeX and not committed to any particular package for examples, I would use gb4e instead, which has more semantic markup than linguex.
    – Alan Munn
    Commented Jul 17, 2019 at 13:41

1 Answer 1

4

The linguex syntax requires a blank line between each \ex. or \exg. set of examples. The glossing macros use \\ at the end of each gloss line, but not after the free translation line. This is the main problem with the code that you posted. Here's a fixed up version that does what you want.

\documentclass{article}
\usepackage{linguex}
\begin{document}
\exg. Koitu-wa kamo-des-u\\
this-Top duck-Polite-Pres\\
``This is a duck.''

\ex. \ag. Koitu-ra-wa kamo-des-u\\
this-PL-Top duck-Polite-Pres\\
``These are ducks.''
\bg. Demo, aitu-ra-wa gan-des-u\\
however, that-PL-Top goose-Polite-Pres\\
``However, those are geese.''

\end{document}

output of code

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .