Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I got some strange effect with longtabu:
enter image description here
As you can see the line with λ seems to be closer to the above line than to the one below of it. I cant’t figure out why …

This is the code with which I produced the above picture:

\documentclass[
    fontsize=11pt,
]{scrbook}

\usepackage{xltxtra}

\usepackage{array}
\usepackage{tabu}
\usepackage{longtable}

\usepackage[osf]{libertine}

\begin{document}
    \begin{longtabu} to \textwidth {lX}
         \textbf{L} & Musica incantans sive poema exprimens musicae vires per illam juvene in insaniam
        acto et musici inde periculum. Authore Roberto South Art. Bac. ex Aede Christi. Oxonii, Typis
        Leon. Lichfield Academiae Typographi, Impensis Tho. Robinson. Anno 1655. \\ 
         \textbf{λ} & \textit{Überarbeitete, zweite Fassung des Gedichts zwischen 1655 und 1667.} \\ 
         \textbf{W} & Musica incantans sive poema exprimens musicae vires juvenem in insaniam adigentis et
        musici inde periculum. Authore Roberto South Art. Bac. ex Aede Christi. Oxonii, Typis W.\,H.,
        Impensis G. West. Anno Dom. 1667. \\ 
    \end{longtabu}%
\end{document}

The workaround is to put an invisible rule to the λ line to make it higher.

share|improve this question

2 Answers 2

up vote 14 down vote accepted

It seems that tabu forgets to put a \strut at the end of an X cell, so

\begin{longtabu} to \textwidth {lX<{\strut}}

should solve the problem.

share|improve this answer
    
Thank you! I tried to put a \strut manually before the λ. But that didn’t work. Do you know why? [Shall I send this as a bug report to the tabu developer?] –  Tobi Jun 25 '11 at 10:33
3  
I've sent a message to comp.text.tex to signal the problem; tabu's author is very active there. –  egreg Jun 25 '11 at 10:47
    
OK. Thanks again. –  Tobi Jun 25 '11 at 10:49
2  
Ah, and the problem with the strut before the λ is that it adjusts the row's height, but what's wrong is the depth of the previous row. –  egreg Jun 25 '11 at 11:00
    
Ahhh … Who should know that … :-D –  Tobi Jun 25 '11 at 21:47

Another solution is to to put

\tabulinesep=1.2mm

before the longtabu-environment.

\documentclass[
    fontsize=11pt,
]{scrbook}

\usepackage{xltxtra}

\usepackage{array, tabu, longtable}

\usepackage[osf]{libertine}

\begin{document}
\tabulinesep=1.3mm
    \begin{longtabu} to \textwidth {lX}
         \textbf{L} & Musica incantans sive poema exprimens musicae vires per illam juvene in insaniam
        acto et musici inde periculum. Authore Roberto South Art. Bac. ex Aede Christi. Oxonii, Typis
        Leon. Lichfield Academiae Typographi, Impensis Tho. Robinson. Anno 1655. \\ 
         \textbf{λ} & \textit{Überarbeitete, zweite Fassung des Gedichts zwischen 1655 und 1667.} \\ 
         \textbf{W} & Musica incantans sive poema exprimens musicae vires juvenem in insaniam adigentis et
        musici inde periculum. Authore Roberto South Art. Bac. ex Aede Christi. Oxonii, Typis W.\,H.,
        Impensis G. West. Anno Dom. 1667. \\ 
    \end{longtabu}

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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