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

  • 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 Jul 17 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 Jul 17 at 13:41
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.