SlideShare a Scribd company logo
1 of 10
Download to read offline
Indian TEX Users Group

URL: http://www.river-valley.com/tug
Longtable
Another example

7

Exercise

Title Page

A
On-line Tutorial on LTEX
The Tutorial Team
Indian TEX Users Group, SJP Buildings, Cotton Hills
Trivandrum 695014, INDIA

Page 1 of 10

2000
Prof. (Dr.) K. S. S. Nambooripad, Director, Center for Mathematical Sciences, Trivandrum, (Editor); Dr. E. Krishnan,
Reader in Mathematics, University College, Trivandrum; Mohit Agarwal, Department of Aerospace Engineering,
Indian Institute of Science, Bangalore; T. Rishi, Focal Image (India) Pvt. Ltd., Trivandrum; L. A. Ajith, Focal Image
(India) Pvt. Ltd., Trivandrum; A. M. Shan, Focal Image (India) Pvt. Ltd., Trivandrum; C. V. Radhakrishnan, River
Valley Technologies, Software Technology Park, Trivandrum constitute the Tutorial team
A
A
This document is generated from LTEX sources compiled with pdfLTEX v. 14e in an
INTEL Pentium III 700 MHz system running Linux kernel version 2.2.14-12. The
packages used are hyperref.sty and pdfscreen.sty

c 2000, Indian TEX Users Group. This document may be distributed under the terms of the
A
A
LTEX Project Public License, as described in lppl.txt in the base LTEX distribution, either
version 1.0 or, at your option, any later version

Go Back

Full Screen

Close

Quit
7 Tables Continued
Longtable
Another example
Exercise

7.1.

Longtable
Title Page

The tabular and tabularx environments explained in the previous chapter provide a convenient way of making tables. These environments, however, fail if a table exceeds one page.
One easy trick that might do the job would be to break the tables manually but the longtable
package enables automatic page breaks by the TEX compiler.

7.1.1.

Constructing longtables
The longtable environment shares most of the features with the tabular environment. We
begin with the following example that uses most of the features of the longtable environment.

Go Back

Table 7.1: A long table
This part appears at the top of the table
FIRST1

This table is only slightly different from the
This goes at the
1

SECOND

one in the
bottom.

Page 2 of 10

*
*
*

Full Screen

THIRD

1
0.00

You can also have a footnote in the table head by using footnotemark and footnotetext.

Close

Quit
Table 7.1: (continued)
This part appears at the top of every other page
First
Second
*
guide to the longtable
package.
*
Columns 1 & 2 here have fixed widths.
*
2.5in
1in
*
longtable columns are specified
in the
*
same way as in the tabular
environment.
*
|p{2.5in}||p{1in}@{*}c|
in this case.
*
Each line ends with a
 command.
*
The  command has an
optional
*
argument, just as
in the
*
tabular
environment.
*
See the effect of [10pt] below:
*

Third
2
3
5
6
7
8
9
10
11
12

The tabularnewline command is an alternative to  for use in the scope of
raggedleft and similar commands that redefine .
Notice tabularnewline[10pt] below:

*

14

Some lines can be really long: This column
is a “p” column so that this row of the table
can take up several lines. But TEX will never
break a page within such a row.
* has the same effect as 
disallows a page break after

This is also a “p”*
column.

Another example
Exercise

Title Page

13

*

Longtable

This is not.

but it
the row.
command in

*
*
*

16
17
18

bottom.

*

Page 3 of 10

Go Back

Full Screen

0.00

Close

setlongtables is an obsolete

This goes at the

Quit
Table 7.1: (continued)
This part appears at the top of every other page
First
Second
*
v4.09 of longtable and does
nothing.
*
Center aligned text
*
These lines will
appear
*
in place of the
usual foot
*
at the end
of the table.
*

Third
19
20
1.00
2.00
3.00

Longtable
Another example
Exercise

Title Page

7.1.2.

Optional arguments
The optional arguments to begin{longtable} are:
c
l

The table is set center aligned.
The table is set flush left.

r

The table is set flush right.
If no arguments are specified, the position of the table is set according to the values of
LTleft and LTright.

Page 4 of 10

Go Back

7.1.3.

Commands and parameters
Full Screen

This section contains a brief description of the commands and other parameters that may be
used in the longtable environment.
Close

LTchunksize

This corresponds to the number of rows that TEX has to keep in memory at
one time. By default this value is set to 20, but it can be set by the user; for

Quit
LTleft

LTright

instance, by setcounter{LTchunksize}{10} or LTchunksize=10 to
a value of 10. Changing the default does not affect page breaking. However,
TEX will run faster with a large LTchunksize, and, on the other hand, will
require more memory. The minimum value of LTchunksize can be set equal
to 1; however, it must be at least as large as the number of rows in each of the
head or foot sections (if the table head and foot need to be set).
The defaults in the longtable package are such that the tables are set flush
left, but are indented by the usual paragraph indentation. LTleft controls the amount of glue to the left of the table. By default this is set to
parindent, but can be changed according to the requirements; for instance,
by setlength LTleft{0pt}.
This parameter determines the glue to the right of the table. The default for
this is fill.

LTpre
LTpost

This controls the width of the parbox containing the caption. The default
width is set to 4in, but changed be changed, for instance, to a value of 2in
by using setlengthLTcapwidth{2in}.
At the start of the table, one may specify the lines that are to appear at the top
of every page. This command is used in place of the last .
If the head on the first page needs to be different than on the others, then one
may specify the lines to appear in a normal way followed by endfirsthead
(in place of the last ).
Specifies rows to appear at the bottom of every page.

Another example
Exercise

Title Page

Denotes the glue before the table. The default is set to bigskipamount.
Denotes the glue after the table. The default is again bigskipamount.

LTcapwidth

Longtable

endhead
endfirsthead

endfoot
endfirstfoot



Specifies rows to appear at the bottom of the last page. The commands endfirsthead
and endlastfoot are useful when one wants to specify something that
should logically appear in the table at the end of the firsthead, of at the
beginning of the lastfoot.

Page 5 of 10

Go Back

Full Screen

Close

This is similar to the tabular environment and specifies the end of the row.
Quit
[ dim ]

This is also similar as in the tabular environment and marks the end of the
row, and then adds vertical space (as shown in Table (7.1)).
*
It is the same as , but disallows a page break after the row.
tabularnewlineIt is an alternative to  for use in the scope of raggedright and similar
commands that redefine . It can also be used with an optional argument,
tabularnewline[ dim ], so as to specify the end of the row, and then add
a vertical space.
kill
If a line is killed, by using kill rather than  at the end of the line, it is
used in calculating column widths, but removed from the final table.
pagebreak
Forces a page break.
pagebreak[ val ]
A ‘hint’ between 0 and 4 of the desirability of a page break. A high value
indicates more desirability.
nopagebreak Prohibits a page break.
nopagebreak[ val ]
A ‘hint’ between 0 and 4 of the undesirability of a page break.
newpage
Forces a page break.
caption{ caption }
Caption ‘Table ?: caption ’, and a ‘ caption ’ entry in the list of tables.
caption[ lot ]{ caption }
Caption ‘Table ?: caption ’, and a ‘ lot ’ entry in the list of tables.
caption[]{ caption }
Caption ‘Table ?: caption ’, but no entry in the list of tables.
caption*{ caption }
Caption ‘ caption ’, but no entry in the list of tables.
footnote
Used for having footnotes, but it cannot be used in the table head and foot.
footnotemark Footnotemark, can be used only in the table head and foot.
footnotetext Footnote text: for use in the table body after a footnotemark has been set
(should appear on the page on which the footnote is desired).

Longtable
Another example
Exercise

Title Page

Page 6 of 10

Go Back

Full Screen

Close

Quit
setlongtables
multicolumn

setlongtables is an obsolete command in v4.09 of longtable and does
nothing.
The multicolumn command works in the same way as in the tabular
environment. Please refer to Chapter 6 for details about this.

Longtable

7.2.

Another example

Another example

Exercise

We will show another simple example using the longtable environment.
Title Page

Table 7.2: A simple example

p column
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like
Lots of line like

Another long table example
First two columns
p-type
another one
this
this
this
this
this
this
this
this
this
this
this
this
Continued . . .

Third column
1
2
2
2
2
2
2
2
2
2
2
2
2

Page 7 of 10

Go Back

Full Screen

Close

Quit
Table 7.2: (continued)
Another long table example (continued)
First two columns
Third column
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
Lots of line like this
2
The End

Longtable
Another example
Exercise

Title Page

Page 8 of 10

Go Back

Full Screen

Close

Quit
7.2.1.

Verbatim highlights from Table (7.2):
begin{longtable}{|p{0.9in}|p{2in}|c|}
xxxxx & xxxxx & xxxxxxxxxxxxx kill
caption{A simple examplelabel{simple}} hlinehline
multicolumn{3}{|c|}{bf Another long table example} hlinehline
multicolumn{2}{|c|}{First two columns} & {Third column} hline
multicolumn{2}{|c|}{p-type} &  hlinehline
endfirsthead
caption[]{(continued)} hlinehline
multicolumn{3}{|c|}{bf Another long table example (continued)}
hlinehline
multicolumn{2}{|c|}{First two columns} & {Third column}
hline
endhead
hline
multicolumn{3}{|c|}{bf Continued $ldots$}
hline
endfoot
hline
multicolumn{3}{|c|}{bf The End}
hline
endlastfoot
p column & another one & 1 
hline
Lots of line like & this & 2 

Longtable
Another example
Exercise

Title Page

Page 9 of 10

Go Back

Full Screen

...
end{longtable}

Close

Quit
7.3.

Exercise
Try making Table (7.1); it seems to be quite strange, but it contains most of the features one
would need in order to get thoroughly acquainted with the longtable environment. It should
be quite easy if one actually reads the table itself. Look at the spaces carefully.

Longtable
Another example
Exercise

Title Page

Page 10 of 10

Go Back

Full Screen

Close

Quit

More Related Content

Viewers also liked

Storefront Social Media Step 1
Storefront Social Media Step 1Storefront Social Media Step 1
Storefront Social Media Step 1AlexanderTwomey
 
ODIS in het PID-traject
ODIS in het PID-trajectODIS in het PID-traject
ODIS in het PID-trajectPACKED vzw
 
Tekerlekli Sandalyede Yaşama Kılavuzu
Tekerlekli Sandalyede Yaşama KılavuzuTekerlekli Sandalyede Yaşama Kılavuzu
Tekerlekli Sandalyede Yaşama KılavuzuOzurlulerVakfi
 
PHP Günleri 2013 Emlak Jet Sunumu
PHP Günleri 2013 Emlak Jet SunumuPHP Günleri 2013 Emlak Jet Sunumu
PHP Günleri 2013 Emlak Jet Sunumuemlakjet
 
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...India World Travel
 
Comic reciclaje de tic
Comic reciclaje de ticComic reciclaje de tic
Comic reciclaje de ticisaquiitho
 
The religion teacher by sabry shaheen - summary
The religion teacher   by sabry shaheen - summaryThe religion teacher   by sabry shaheen - summary
The religion teacher by sabry shaheen - summarySabry Shaheen
 
Working to a brief pro forma
Working to a brief pro formaWorking to a brief pro forma
Working to a brief pro formacharliepawson
 
quy_trinh_ky_thuat_cay_cao_su
quy_trinh_ky_thuat_cay_cao_suquy_trinh_ky_thuat_cay_cao_su
quy_trinh_ky_thuat_cay_cao_suma ga ka lom
 
Main principles of Fiscal policy in Latvia
Main principles of Fiscal policy in LatviaMain principles of Fiscal policy in Latvia
Main principles of Fiscal policy in LatviaFinanšu ministrija
 

Viewers also liked (19)

IMF Overview
IMF OverviewIMF Overview
IMF Overview
 
Storefront Social Media Step 1
Storefront Social Media Step 1Storefront Social Media Step 1
Storefront Social Media Step 1
 
Chap03 scr
Chap03 scrChap03 scr
Chap03 scr
 
Daniel Fleming
Daniel FlemingDaniel Fleming
Daniel Fleming
 
Audience feedback
Audience feedbackAudience feedback
Audience feedback
 
Sz cell
Sz cellSz cell
Sz cell
 
Flat plans
Flat plansFlat plans
Flat plans
 
عصر العقل
عصر العقلعصر العقل
عصر العقل
 
ODIS in het PID-traject
ODIS in het PID-trajectODIS in het PID-traject
ODIS in het PID-traject
 
Tekerlekli Sandalyede Yaşama Kılavuzu
Tekerlekli Sandalyede Yaşama KılavuzuTekerlekli Sandalyede Yaşama Kılavuzu
Tekerlekli Sandalyede Yaşama Kılavuzu
 
PHP Günleri 2013 Emlak Jet Sunumu
PHP Günleri 2013 Emlak Jet SunumuPHP Günleri 2013 Emlak Jet Sunumu
PHP Günleri 2013 Emlak Jet Sunumu
 
Mult1
Mult1Mult1
Mult1
 
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...
Discover India With Tailor Made Tours | Easy India Trip | Increadible India H...
 
Comic reciclaje de tic
Comic reciclaje de ticComic reciclaje de tic
Comic reciclaje de tic
 
The religion teacher by sabry shaheen - summary
The religion teacher   by sabry shaheen - summaryThe religion teacher   by sabry shaheen - summary
The religion teacher by sabry shaheen - summary
 
Working to a brief pro forma
Working to a brief pro formaWorking to a brief pro forma
Working to a brief pro forma
 
Borgli
BorgliBorgli
Borgli
 
quy_trinh_ky_thuat_cay_cao_su
quy_trinh_ky_thuat_cay_cao_suquy_trinh_ky_thuat_cay_cao_su
quy_trinh_ky_thuat_cay_cao_su
 
Main principles of Fiscal policy in Latvia
Main principles of Fiscal policy in LatviaMain principles of Fiscal policy in Latvia
Main principles of Fiscal policy in Latvia
 

Similar to Chap07 scr

Similar to Chap07 scr (20)

Chap06 scr
Chap06 scrChap06 scr
Chap06 scr
 
Chap08 scr
Chap08 scrChap08 scr
Chap08 scr
 
Latex tables and figures
Latex tables and figures Latex tables and figures
Latex tables and figures
 
Chap13 scr
Chap13 scrChap13 scr
Chap13 scr
 
Latex Tuitorial
Latex TuitorialLatex Tuitorial
Latex Tuitorial
 
Rajeev ranjan
Rajeev ranjanRajeev ranjan
Rajeev ranjan
 
Chap12 scr
Chap12 scrChap12 scr
Chap12 scr
 
Chap09 scr
Chap09 scrChap09 scr
Chap09 scr
 
Interview Preparation
Interview PreparationInterview Preparation
Interview Preparation
 
Chap14 scr
Chap14 scrChap14 scr
Chap14 scr
 
Sql dml & tcl 2
Sql   dml & tcl 2Sql   dml & tcl 2
Sql dml & tcl 2
 
Chap05 scr
Chap05 scrChap05 scr
Chap05 scr
 
Latex Tutorial
Latex TutorialLatex Tutorial
Latex Tutorial
 
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
Data Definition Language (DDL)
Data Definition Language (DDL) Data Definition Language (DDL)
Data Definition Language (DDL)
 
Introduction to Command Line & Batch files
Introduction to Command Line& Batch filesIntroduction to Command Line& Batch files
Introduction to Command Line & Batch files
 
Chap04 scr
Chap04 scrChap04 scr
Chap04 scr
 
Chap16 scr
Chap16 scrChap16 scr
Chap16 scr
 

More from Hirwanto Iwan

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabarHirwanto Iwan
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangHirwanto Iwan
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAHirwanto Iwan
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Hirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSHirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAHirwanto Iwan
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Hirwanto Iwan
 

More from Hirwanto Iwan (20)

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabar
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
 
Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1
 
Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1
 
Kumpulan Soal UM UGM
Kumpulan Soal UM UGMKumpulan Soal UM UGM
Kumpulan Soal UM UGM
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33
 
LATEX OR INDESIGN
LATEX OR INDESIGN LATEX OR INDESIGN
LATEX OR INDESIGN
 
AGH Beamer
AGH BeamerAGH Beamer
AGH Beamer
 
AFIT Beamer
AFIT BeamerAFIT Beamer
AFIT Beamer
 
Hackd Beamer
Hackd BeamerHackd Beamer
Hackd Beamer
 
LUH Beamer
LUH BeamerLUH Beamer
LUH Beamer
 
Cambridge Beamer
Cambridge BeamerCambridge Beamer
Cambridge Beamer
 
ESOP Beamer
ESOP BeamerESOP Beamer
ESOP Beamer
 
AP Beamer
AP BeamerAP Beamer
AP Beamer
 
Naked Beamer
Naked BeamerNaked Beamer
Naked Beamer
 
TUDelft Beamer
TUDelft BeamerTUDelft Beamer
TUDelft Beamer
 

Recently uploaded

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

Chap07 scr

  • 1. Indian TEX Users Group URL: http://www.river-valley.com/tug Longtable Another example 7 Exercise Title Page A On-line Tutorial on LTEX The Tutorial Team Indian TEX Users Group, SJP Buildings, Cotton Hills Trivandrum 695014, INDIA Page 1 of 10 2000 Prof. (Dr.) K. S. S. Nambooripad, Director, Center for Mathematical Sciences, Trivandrum, (Editor); Dr. E. Krishnan, Reader in Mathematics, University College, Trivandrum; Mohit Agarwal, Department of Aerospace Engineering, Indian Institute of Science, Bangalore; T. Rishi, Focal Image (India) Pvt. Ltd., Trivandrum; L. A. Ajith, Focal Image (India) Pvt. Ltd., Trivandrum; A. M. Shan, Focal Image (India) Pvt. Ltd., Trivandrum; C. V. Radhakrishnan, River Valley Technologies, Software Technology Park, Trivandrum constitute the Tutorial team A A This document is generated from LTEX sources compiled with pdfLTEX v. 14e in an INTEL Pentium III 700 MHz system running Linux kernel version 2.2.14-12. The packages used are hyperref.sty and pdfscreen.sty c 2000, Indian TEX Users Group. This document may be distributed under the terms of the A A LTEX Project Public License, as described in lppl.txt in the base LTEX distribution, either version 1.0 or, at your option, any later version Go Back Full Screen Close Quit
  • 2. 7 Tables Continued Longtable Another example Exercise 7.1. Longtable Title Page The tabular and tabularx environments explained in the previous chapter provide a convenient way of making tables. These environments, however, fail if a table exceeds one page. One easy trick that might do the job would be to break the tables manually but the longtable package enables automatic page breaks by the TEX compiler. 7.1.1. Constructing longtables The longtable environment shares most of the features with the tabular environment. We begin with the following example that uses most of the features of the longtable environment. Go Back Table 7.1: A long table This part appears at the top of the table FIRST1 This table is only slightly different from the This goes at the 1 SECOND one in the bottom. Page 2 of 10 * * * Full Screen THIRD 1 0.00 You can also have a footnote in the table head by using footnotemark and footnotetext. Close Quit
  • 3. Table 7.1: (continued) This part appears at the top of every other page First Second * guide to the longtable package. * Columns 1 & 2 here have fixed widths. * 2.5in 1in * longtable columns are specified in the * same way as in the tabular environment. * |p{2.5in}||p{1in}@{*}c| in this case. * Each line ends with a command. * The command has an optional * argument, just as in the * tabular environment. * See the effect of [10pt] below: * Third 2 3 5 6 7 8 9 10 11 12 The tabularnewline command is an alternative to for use in the scope of raggedleft and similar commands that redefine . Notice tabularnewline[10pt] below: * 14 Some lines can be really long: This column is a “p” column so that this row of the table can take up several lines. But TEX will never break a page within such a row. * has the same effect as disallows a page break after This is also a “p”* column. Another example Exercise Title Page 13 * Longtable This is not. but it the row. command in * * * 16 17 18 bottom. * Page 3 of 10 Go Back Full Screen 0.00 Close setlongtables is an obsolete This goes at the Quit
  • 4. Table 7.1: (continued) This part appears at the top of every other page First Second * v4.09 of longtable and does nothing. * Center aligned text * These lines will appear * in place of the usual foot * at the end of the table. * Third 19 20 1.00 2.00 3.00 Longtable Another example Exercise Title Page 7.1.2. Optional arguments The optional arguments to begin{longtable} are: c l The table is set center aligned. The table is set flush left. r The table is set flush right. If no arguments are specified, the position of the table is set according to the values of LTleft and LTright. Page 4 of 10 Go Back 7.1.3. Commands and parameters Full Screen This section contains a brief description of the commands and other parameters that may be used in the longtable environment. Close LTchunksize This corresponds to the number of rows that TEX has to keep in memory at one time. By default this value is set to 20, but it can be set by the user; for Quit
  • 5. LTleft LTright instance, by setcounter{LTchunksize}{10} or LTchunksize=10 to a value of 10. Changing the default does not affect page breaking. However, TEX will run faster with a large LTchunksize, and, on the other hand, will require more memory. The minimum value of LTchunksize can be set equal to 1; however, it must be at least as large as the number of rows in each of the head or foot sections (if the table head and foot need to be set). The defaults in the longtable package are such that the tables are set flush left, but are indented by the usual paragraph indentation. LTleft controls the amount of glue to the left of the table. By default this is set to parindent, but can be changed according to the requirements; for instance, by setlength LTleft{0pt}. This parameter determines the glue to the right of the table. The default for this is fill. LTpre LTpost This controls the width of the parbox containing the caption. The default width is set to 4in, but changed be changed, for instance, to a value of 2in by using setlengthLTcapwidth{2in}. At the start of the table, one may specify the lines that are to appear at the top of every page. This command is used in place of the last . If the head on the first page needs to be different than on the others, then one may specify the lines to appear in a normal way followed by endfirsthead (in place of the last ). Specifies rows to appear at the bottom of every page. Another example Exercise Title Page Denotes the glue before the table. The default is set to bigskipamount. Denotes the glue after the table. The default is again bigskipamount. LTcapwidth Longtable endhead endfirsthead endfoot endfirstfoot Specifies rows to appear at the bottom of the last page. The commands endfirsthead and endlastfoot are useful when one wants to specify something that should logically appear in the table at the end of the firsthead, of at the beginning of the lastfoot. Page 5 of 10 Go Back Full Screen Close This is similar to the tabular environment and specifies the end of the row. Quit
  • 6. [ dim ] This is also similar as in the tabular environment and marks the end of the row, and then adds vertical space (as shown in Table (7.1)). * It is the same as , but disallows a page break after the row. tabularnewlineIt is an alternative to for use in the scope of raggedright and similar commands that redefine . It can also be used with an optional argument, tabularnewline[ dim ], so as to specify the end of the row, and then add a vertical space. kill If a line is killed, by using kill rather than at the end of the line, it is used in calculating column widths, but removed from the final table. pagebreak Forces a page break. pagebreak[ val ] A ‘hint’ between 0 and 4 of the desirability of a page break. A high value indicates more desirability. nopagebreak Prohibits a page break. nopagebreak[ val ] A ‘hint’ between 0 and 4 of the undesirability of a page break. newpage Forces a page break. caption{ caption } Caption ‘Table ?: caption ’, and a ‘ caption ’ entry in the list of tables. caption[ lot ]{ caption } Caption ‘Table ?: caption ’, and a ‘ lot ’ entry in the list of tables. caption[]{ caption } Caption ‘Table ?: caption ’, but no entry in the list of tables. caption*{ caption } Caption ‘ caption ’, but no entry in the list of tables. footnote Used for having footnotes, but it cannot be used in the table head and foot. footnotemark Footnotemark, can be used only in the table head and foot. footnotetext Footnote text: for use in the table body after a footnotemark has been set (should appear on the page on which the footnote is desired). Longtable Another example Exercise Title Page Page 6 of 10 Go Back Full Screen Close Quit
  • 7. setlongtables multicolumn setlongtables is an obsolete command in v4.09 of longtable and does nothing. The multicolumn command works in the same way as in the tabular environment. Please refer to Chapter 6 for details about this. Longtable 7.2. Another example Another example Exercise We will show another simple example using the longtable environment. Title Page Table 7.2: A simple example p column Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Lots of line like Another long table example First two columns p-type another one this this this this this this this this this this this this Continued . . . Third column 1 2 2 2 2 2 2 2 2 2 2 2 2 Page 7 of 10 Go Back Full Screen Close Quit
  • 8. Table 7.2: (continued) Another long table example (continued) First two columns Third column Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 Lots of line like this 2 The End Longtable Another example Exercise Title Page Page 8 of 10 Go Back Full Screen Close Quit
  • 9. 7.2.1. Verbatim highlights from Table (7.2): begin{longtable}{|p{0.9in}|p{2in}|c|} xxxxx & xxxxx & xxxxxxxxxxxxx kill caption{A simple examplelabel{simple}} hlinehline multicolumn{3}{|c|}{bf Another long table example} hlinehline multicolumn{2}{|c|}{First two columns} & {Third column} hline multicolumn{2}{|c|}{p-type} & hlinehline endfirsthead caption[]{(continued)} hlinehline multicolumn{3}{|c|}{bf Another long table example (continued)} hlinehline multicolumn{2}{|c|}{First two columns} & {Third column} hline endhead hline multicolumn{3}{|c|}{bf Continued $ldots$} hline endfoot hline multicolumn{3}{|c|}{bf The End} hline endlastfoot p column & another one & 1 hline Lots of line like & this & 2 Longtable Another example Exercise Title Page Page 9 of 10 Go Back Full Screen ... end{longtable} Close Quit
  • 10. 7.3. Exercise Try making Table (7.1); it seems to be quite strange, but it contains most of the features one would need in order to get thoroughly acquainted with the longtable environment. It should be quite easy if one actually reads the table itself. Look at the spaces carefully. Longtable Another example Exercise Title Page Page 10 of 10 Go Back Full Screen Close Quit