GeneralLatex mpsupertabular \tabletail problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
paris
Posts: 7
Joined: Tue May 08, 2007 3:55 pm

Latex mpsupertabular \tabletail problem

Post by paris »

Hello,

I have used mpsupertabular, and I made this

\tabletail{%
\hline
\multicolumn{2}{|r|}{\small\sl continued on next page}\\
\hline}

in the begining...

Everything goes well, exept the fact that the message "continued on next page" is also at... the last page of the tabular.. :? Can anyone help me? :roll:

Thanks... :)

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Latex mpsupertabular \tabletail problem

Post by localghost »

The documentation of the supertabluar package gives an example. Are you sure that the message is not "continued from previous page"? Otherwise refer to section 5 (Known Problems) of the documentation. Please give an example ready to compile with a minimum of code that reproduces the effect.
paris
Posts: 7
Joined: Tue May 08, 2007 3:55 pm

Latex mpsupertabular \tabletail problem

Post by paris »

Ok, thanks!

here is an example...

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,11pt]{article}
\usepackage{hyperref, array, supertabular, tabulary}
\hypersetup{colorlinks=false}
\author{Wikipedia}
\title{Little Red Riding Hood}
\begin{document}
\maketitle
\tableofcontents
\newpage
%\begin{mpsupertabular}{|r@{\hspace{7mm}}|r@{\hspace{7mm}}}
\section{Little Red Riding Hood}
\begin{center}
\begin{mpsupertabular}{|p{7cm}|p{7cm}|}
\hline
\tablehead{
\hline
\bfseries Little Red & \bfseries Riding Hood \\ \hline}
\tabletail{%
\hline
\multicolumn{2}{|r|}{\small\sl continued on next page}\\
\hline}
{The version most widely known today is based on the Brothers Grimm version [1]. It is about a girl called Little Red Riding Hood, after the red hood she always wears. The girl walks through the woods to deliver food to her grandmother. A wolf (often identified as the Big Bad Wolf) wants to eat the girl but is afraid to do so in public. He approaches the girl,}
&
{and she naïvely tells him where she is going. He suggests the girl pick some flowers, which she does. In the meantime, he goes to the grandmother's house and gains entry by pretending to be the girl. He eats the grandmother and waits for the girl, disguised as the grandmother. When the girl arrives, he eats her too. A hunter, however, comes to the rescue and cuts the wolf open. Little Red Riding Hood and her grandmother emerge unharmed. They fill the wolf's body with heavy stones, which kill him. Other versions of the story have had the grandmother shut in the closet instead of eaten, and some have Little Red Riding Hood saved by the hunter as the wolf advances on her rather than after she is eaten.
The tale makes the clearest contrast between the safe world of the village and the dangers of the forest, conventional antitheses that are essentially medieval, though no versions are as old as that. It also seems to be a strong morality tale, teaching children not to "wander off the path."}\\
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
paris
Posts: 7
Joined: Tue May 08, 2007 3:55 pm

Re: Latex mpsupertabular \tabletail problem

Post by paris »

I will take a closer look to that site...

Thank you.
User avatar
countbela666
Posts: 64
Joined: Thu Apr 26, 2007 2:44 pm

Latex mpsupertabular \tabletail problem

Post by countbela666 »

Hi paris,

you missed to define what to print at the very end of the table instead. This is to be done by using the command \tablelasttail:

Code: Select all

...
\tabletail{%
\hline
\multicolumn{2}{|r|}{\small\sl continued on next page}\\
\hline}
\tablelasttail{\hline}
{The version most widely known today is based on the Brothers Grimm version [1]. It is about a girl called Little Red Riding Hood, after the red hood she always wears. The girl walks through the woods to deliver food to her grandmother. A wolf (often identified as the Big Bad Wolf) wants to eat the girl but is afraid to do so in public. He approaches the girl,}
...
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
BTW: the command \sl is an obsolete LaTeX2.09 font style command that should no longer be used. Why it is better to use \slshape instead is described in section 2.1.1 of l2tabuen.pdf.

Regards
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
paris
Posts: 7
Joined: Tue May 08, 2007 3:55 pm

Re: Latex mpsupertabular \tabletail problem

Post by paris »

Cool!!!

It worked!

Thanks!! :lol:
Post Reply