[OS X TeX] [OT] longtable not breaking
John B. Thoo
jthoo at yccd.edu
Thu Jun 17 20:16:50 CEST 2010
Hi. I'm sorry that this is off-topic. My problem is that longtable
is not breaking a table at the end of a page. I looked at
comp.text.tex for "longtable not breaking" and found this, but it
didn't help me:
<http://groups.google.com/group/comp.text.tex/browse_thread/thread/a0e05847d5ccb5c1/08bcb257d21d625c?lnk=gst&q=longtable+not+breaking#08bcb257d21d625c
>
I'm going to try to attach a PNG that shows the problem, but in case I
can't send attachments, here is a link:
<http://ms.yccd.edu/~jb2/PickUp/faultylongtable.png>
(I noticed that the web server is presently down. I put in a help
call to IT, so I hope it will be up again soon.)
In the main file I have defined:
% Preserve end-of-row \\ in tabular when \raggedright is used
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
This is the code for the long table:
\begin{longtable}{p{2in}@{\hspace{3em}}>{\PreserveBackslash
\raggedright}p{1.5in}}
\endhead
\hline\multicolumn{2}{r}{{\small \textit{continued overleaf}}} \\
\endfoot
\endlastfoot
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
176\;| & 6 & 7 & 8 & 9 & 2 &
\end{tabular}
&
Write the dividend and the divisor.
\\[3ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
176\;| & 6 & 7 & 8 & 9 & 2 & |\;3
\end{tabular}
&
$176$ goes into $67,892$ at most $3$ times.
\\[3ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
176\;| & 6 & 7 & 8 & 9 & 2 & |\;3 \\
& 5 & 2 & 8 & & &
\end{tabular}
&
$176 \times 3 = 528$
\\[5ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& 1 & 5 & 0 & & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & 9 & 2 & |\;3 \\
& \cancel{5} & \cancel{2} & \cancel{8} & & &
\end{tabular}
&
$678 - 528 = 150$
\\[5ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& 1 & 5 & 0 & & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & 9 & 2 & |\;38 \\
& \cancel{5} & \cancel{2} & \cancel{8} & & &
\end{tabular}
&
$176$ goes into $1509$ at most $8$ times.
\\[5ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& 1 & 5 & 0 & & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & 9 & 2 & |\;38 \\
& \cancel{5} & \cancel{2} & \cancel{8} & 8 & & \\
& 1 & 4 & 0 & & &
\end{tabular}
&
$176 \times 8 = 1408$
\\[8ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& & 1 & 0 & & & \\
& \cancel{1} & \cancel{5} & \cancel{0} & 1 & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & \cancel{9} & 2 & |
\;38 \\
& \cancel{5} & \cancel{2} & \cancel{8} & \cancel{8} & & \\
& \cancel{1} & \cancel{4} & \cancel{0} & & &
\end{tabular}
&
$1509 - 1408 = 101$
\\[8ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& & 1 & 0 & & & \\
& \cancel{1} & \cancel{5} & \cancel{0} & 1 & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & \cancel{9} & 2 & |
\;385 \\
& \cancel{5} & \cancel{2} & \cancel{8} & \cancel{8} & & \\
& \cancel{1} & \cancel{4} & \cancel{0} & & &
\end{tabular}
&
$176$ goes into $1012$ at most $5$ times.
\\[8ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& & 1 & 0 & & & \\
& \cancel{1} & \cancel{5} & \cancel{0} & 1 & & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & \cancel{9} & 2 & |
\;385 \\
& \cancel{5} & \cancel{2} & \cancel{8} & \cancel{8} & 0 & \\
& \cancel{1} & \cancel{4} & \cancel{0} & 8 & & \\
& & & 8 & & &
\end{tabular}
&
$176 \times 5 = 880$
\\[12ex]
\begin{tabular}
{>{$}r<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}>{$}l<{$}}
& & & 1 & & & \\
& & \cancel{1} & \cancel{0} & 3 & & \\
& \cancel{1} & \cancel{5} & \cancel{0} & \cancel{1} & 2 & \\
176\;| & \cancel{6} & \cancel{7} & \cancel{8} & \cancel{9} &
\cancel{2} & |\;385 \\
& \cancel{5} & \cancel{2} & \cancel{8} & \cancel{8} & \cancel{0}
& \\
& \cancel{1} & \cancel{4} & \cancel{0} & \cancel{8} & & \\
& & & \cancel{8} & & &
\end{tabular}
&
$1012 - 880 = 132$
\end{longtable}
Here is a portion of the log file:
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/longtable.sty
Package: longtable 2004/02/01 v4.11 Multi-page Table package (DPC)
\LTleft=\skip64
\LTright=\skip65
\LTpre=\skip66
\LTpost=\skip67
\LTchunksize=\count137
\LTcapwidth=\dimen189
\LT at head=\box41
\LT at firsthead=\box42
\LT at foot=\box43
\LT at lastfoot=\box44
\LT at cols=\count138
\LT at rows=\count139
\c at LT@tables=\count140
\c at LT@chunks=\count141
\LT at p@ftn=\toks38
)
I'm using TeXLive 2009, Mac OS X 10.5.8, 12" PowerBook G4.
Again, I'm very sorry for my off-topic question. I would appreciate
any help.
Btw, I'm leaving town in a little while until Monday, but I wanted to
ask before I left. Thanks in advance.
---John.
(receives the digest version of MacOSX-TeX list)
-----------------------------------------------------------------------
Drive carefully. Watch for Bikes!
<http://homepage.mac.com/jbthoo/watchforbikes.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faultylongtable.png
Type: image/png
Size: 83269 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20100617/d0e6622a/attachment.png>
-------------- next part --------------
More information about the macostex-archives
mailing list