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

\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."}\\

{Relationship to other tales
The theme of the ravening wolf and of the creature released unharmed from its belly is reflected in the Russian tale Peter and the Wolf, and the other Grimm tale The Wolf and the Seven Young Kids, but its general theme of restoration is at least as old as Jonah and the whale.
The dialog between the wolf and Little Red Riding Hood}
&
{has its analogies to the Norse Þrymskviða from the Elder Edda; the giant Þrymr had stolen Thor's hammer and demanded Freyja as his bride for its return. Instead, the gods dressed Thor as a bride and sent him. When the giants note Thor's unladylike eyes, eating, and drinking, Loki explains them as Freyja not having slept, or eaten, or drunk, out of longing for the wedding.}\\


{After the Grimms

An engraving from the Cyclopedia of Wit and Humor.
Numerous authors have rewritten or adapted this tale.}
&{
Andrew Lang included a variant as "The True History of Little Goldenhood" [14] in The Red Fairy Book; he derived it from the works of Charles Marelles, in Contes of Charles Marelles. This variant explicitly said that the story had been mistold. The girl was saved, but not by the huntsman; when the wolf tried to eat her, its mouth was burned by the golden hood she wore, which was enchanted.
James N. Barker wrote a variation of Little Red Riding Hood in 1827 as an approximately 1000-word story. It was later reprinted in 1858 in a book of collected stories edited by William E Burton, called the Cyclopedia of Wit and Humor. The reprint also features a wood engraving of a clothed wolf on bended knee holding Little Red Riding Hood's hand.}\\

{Bruno Bettelheim, in The Uses of Enchantment, recast the Little Red Riding Hood motif in terms of classic Freudian analysis, that shows how fairy tales educate, support, and liberate the emotions of children. The motif of the huntsman cutting open the wolf, he interpreted as a "rebirth"; the girl who foolishly listened to the wolf has been reborn as a new person.[15]}
&
{In the twentieth century, the popularity of the tale appeared to snowball, with many new versions being written and produced, especially in the wake of Freudian analysis, deconstruction and feminist critical theory. See "Modern uses and adaptations of Little Red Riding Hood" for a number of modern adaptations. This trend has also led to a number of academic texts being written that focus on Little Red Riding Hood, including works by Alan Dundes and Jack Zipes.}\\

\hline


\end{mpsupertabular}

\newpage

\end{center}

\end{document}
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,}
...
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