LaTeX paging table example

Source: Internet
Author: User

Tabular in standard latex is treated as a "box" and cannot be split. The table can only be one page. If the table is too large and exceeds the bottom margin, an overfull vbox error is reported.

Therefore, cross-page display is unavailable.

The macro package supertabular is an extension of tabular environment. After supertabular receives \, it recalculates the available space. If it reaches the page height, it will automatically insert tabeltail, start a new page. The new page is connected by tablehead.

The main Commands used are as follows (note that \ must be added \\)

  1. \ Tablefirsthead is used to display the first line.
  2. \ Tablelasttail is used to display the last line.
  3. \ Tablehead is displayed on the first line of the next page when it is paged.
  4. \ Tabletail is displayed on the last line of the page when it is paged, but not on the last page.

For details, refer:

\usepackage{supertabular}

\ Begin {center} \ botshortaption {most popular general Linux distributions \ label {most popular general Linux distributions }}%\ tablefirsthead {\ hline \ multicolumn {1} {| c |}{ release version} & \ multicolumn {1} {| c |}{ description} \ hline} \ tablelasttail {\ hline} % \ tablehead {\ hline \ multicolumn {2 }{| c |}{\ small \ sl continued from previous page }\\\ hline \ multicolumn {1 }{| c |}{ release version} & \ multicolumn {1} {| c |}{ description} \ hline} \ tabletail {\ hline \ multicolumn {2 }{| c |}{\ small \ sl continued on next page }\\\ hline }\begin {supertabular }{| p {0.3 \ textwidth} | p {0.6 \ textwidth }|}\ href {www.centos.org} {CentOS} & imitate Red free release of Hat Enterprise Linux \ href {www.debian.org} {Debian} & a popular non-commercial release version \ href {fedora.redhat.com} {Fedora} & from Red release Version \ href {www.gentoo.org} {Gentoo} & source code-based release version \ href {www.mandriva.com} {Mandrivaa} of non-commercial actions in Hat Linux & user-friendly one of the releases \ href {www.opensuse.org} {openSUSE} & imitation SUSE Linux Enterprise free release version \ href {www.redhat.com} {Red Hat Enterprise} & Red Hat Linux commercial release version \ href {www.slackware.com} {Slackware} & stable and basic original release version \ href {www.novell.com/linux}{SUSE Linux Enterprise} & popular in Europe and Asia multilingual release version \ href {www.turbolinux.com} {TurboLinux} & popular multilingual Release versions in Asia \ href {www.ubuntu.com} {Ubuntu} & Cleaned-up version of Debian \\ \ hline \ end {supertabular} \ end {center}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.