GeneralLine spacing with "linguex"

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Bartosz_W
Posts: 3
Joined: Mon Nov 24, 2008 3:56 pm

Line spacing with "linguex"

Post by Bartosz_W »

Hi,
I'm using linguex package for examples. Whenever I adjust line spacing in the entire document, using for instance \linespread{1.65}, line spacing between examples goes to single line. This is terrible. I want line spacing to be identical in the entire document, including examples. So far I haven't found any way of defining line spacing between examples. The documentation for linguex doesn't discuss it. am using setspace. \vspace doesn't work for the examples. The command, though given above the examples, applies to the text after them. As I said, if I specify line spacing, it seems to exclude spacing between examples, which go to default, i.e. single line...

This is what I have:

\documentclass[a4paper, 10pt]{article}
\usepackage[left=4cm, right=4cm]{geometry}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{qtree}
\usepackage{linguex}
\usepackage{setspace}
\usepackage{textcomp}
\linespread{1.65}
\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{*3}{*1}
\titlespacing{\subsection}{0pt}{*3}{*1}
\titlespacing{\subsubsection}{0pt}{*0}{*0}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}% type user-defined commands here

\begin{document}

\title{The Devil's rejects}
\author{Cpt Spaulding}
\date{}

\maketitle

Body text, blah blah blah.

\exg. X Y Z \\
x y z \\
`Do you call me a chicken'?

Body text blah blah blah...

If anyone knows how to apply self-defined linespread to the entire document, help! Also, I'd like to know if there's any way of defining spacing between the body of the text and the first line of the example in linguex. Thx!
Hey, I know you. You work at the hardware store.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply