Alan,
I tried. See the first attachment: sliptest.tex. I put in an example
followed by two boxes. The second box fills a page, so goes to
the second page. Then I reduced the size of the second box to
"pull" on the example. I think I was able to increase the interline
spacing a bit, but I didn't get the splippage effec.
I've included a pdf with two pages of the grammar itself. See
particularly examples 681 and 683, where the effect is very
visible.
--David
> David, can you put this code into a working
> document? Have you managed to construct a
> minimal example that shows the problem?
>
> Alan
>
> At 9:10 AM -0500 7/15/11, David J Weber wrote:
> >Friends,
> >
> >I used Scribe before I used LaTeX. (Remember Scribe? Ah
> >how quickly we forget those who paved the way...) I was writing
> >a large, data-rich grammar so I defined an environment for
> >linguistic examples, ones with aligned glosses and a free
> >translation.
> >
> >When I switched to LaTeX, I wrote something similar (as a
> >command rather than environment). Each example starts with a
> >number in parens, e.g., (283). Then the example is indented
> >appropriately, starting one column beyond the right paren.
> >
> >(283) This is an example...
> >
> >Here's how a simple example is given in the source. "obl10" is
> >the reference tag. The first line is in the "practical" orthography;
> >the second, the Quechua example; the third, the morpheme-by-
> >morpheme gloss; the last, the free translation:
> >
> >\xmpl{obl10}{
> >\free{\sf Wara pucllanan caran.}\\
> >Wara & puk£a\bf-na-n &\bf ka-ra-n. \\
> >mañana & jugar\sc-sub-3p & ser\sc-pas-3\\
> >\free{`Ellos iban a jugar mañana (pero el partido se ha
> >postergado).'}
> >}
> >
> >I'm on the verge of sending another grammar to the printer and
> >have a problem: between the number and example there is
> >sometimes a bit of slippage: the number is slightly higher than
> >the example, i.e., the baselines do not match up. Whether or
> >not there is slippage depends on the context so I'm guessing
> >that somewhere there's glue that should be eliminated or
> >tightened up. Here are the definitions. ex is the body, common
> >to numbered (\xmpl) and unnumbered (\uxmpl) examples.
> >
> >% EXAMPLE DEFINITIONS
> >\newcounter{example}% EXAMPLE COUNTER
> >\newlength{\ExamNumWid}% WIDTH OF EX NUM W/ PAREN
> >\newlength{\FreeWid}% WIDTH OF FREE TRANSLAT
> >\newlength{\NumExSep}% SPACE NUMBER-EXAMPLE
> >\setlength{\NumExSep}{.6mm}% used to be .5mm 2mm
> >
> >\newenvironment{ex}{% ENVIR FOR COMMON EXAMPLES
> >\begin{list}{}%
> >{\settowidth{\labelwidth}{(\theexample)}
> >\setlength{\labelsep}{\NumExSep}
> >\setlength{\leftmargin}{\labelwidth}
> >\addtolength{\leftmargin}{\labelsep}
> >\setlength{\itemindent}{0em}
> >\setlength{\topsep}{0pt}
> >\setlength{\listparindent}{0em}
> >\setlength{\FreeWid}{\textwidth}
> >\addtolength{\FreeWid}{-\LineLenRed}
> >\addtolength{\FreeWid}{-\leftmargin}}}{\end{list}}
> >
> >\newcommand{\xmpl}[2]{% SIMPLE NUMBERED EXMPLE
> > \vskip-\lastskip
> > \refstepcounter{example}
> > \label{#1}
> > \begin{ex}
> > \item[(\theexample)]
> > \vskip-\lastskip
> > \begin{tabular}[t]{@{}*{20}{l@{\ }}l@{}}
> > #2
> > \end{tabular}
> > \end{ex}
> >}
> >
> >\newcommand{\uxmpl}[1]{% UNNUMBERED EX
> > \vskip-\lastskip
> > \begin{ex}
> > \item
> > \begin{tabular}[t]{@{}*{20}{l@{\ }}l@{}}
> > #1
> > \end{tabular}
> > \end{ex}
> >}
> >
> >\newcommand{\free}[1]{% FREE TRANSLATION
> > \multicolumn{20}{@{}l@{}}{\parbox[t]{\FreeWid}{%
> > \vspace{-8pt}% UGLY UGLY UGLY UGLY UGLY
> > \begin{freex}
> > \item#1
> > \end{freex}}}}
> >\newenvironment{freex}{\begin{list}{}
> >{\setlength{\labelwidth}{0pt}
> >\setlength{\labelsep}{0pt}
> >\setlength{\leftmargin}{0pt}
> >\setlength{\itemindent}{0em}
> >\setlength{\topsep}{0pt}
> >\setlength{\listparindent}{0em}}}{\end{list}}
> >
> >ANY IDEAS?
> >
> >Best, --David
>
>
> --
> Alan Munn amunn-mhe/***@public.gmane.org
> Department of Linguistics
> and Germanic, Slavic, Asian and African Languages
> Tel. 517-355-7491
> Michigan State University, East Lansing MI 48824 USA Fax 517-432-2736
>