chap13 scr

Download Chap13 scr

Post on 01-Sep-2014

131 views

Category:

Technology

4 download

Embed Size (px)

DESCRIPTION

 

TRANSCRIPT

  • Indian TEX Users Group : http://www.river-valley.com/tug A Page layout in LTEX Groups Creating a . . . 13 Fun with oats Items and lists Some more tricks Title Page A On-line Tutorial on LTEX The Tutorial Team Indian TEX Users Group, Buildings, Cotton Hills Trivandrum 695014, 2000 Page 1 of 23 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 A c 2000, Indian TEX Users Group. This document may be distributed under the terms of the LTEX A 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
  • 13 A Gentle Reconnaissance A Page layout in LTEX Groups Creating a . . . 13.1. A Page layout in LTEX Fun with oats Items and lists Some more tricks A LT A page in a EX document is built from various elements as shown in gure 13.1. In a twosided document, some parameters will be dierent for the even and odd pages. The gure shown gives the layout as on any odd page in the document. It also shows most of the parameters required in order to change the page style including the headers, footers and the margins. We shall now briey discuss these and the other parameters that can be eectively used to control the page layout. Title Page The horizontal placement of the text can be set by specifying the following parameters: oddsidemargin It denotes the leftside margin (on odd numbered pages). It should be noted that leftmargin does not denote the leftside margin, it is instead used for the indentation of lists. evensidemargin It denotes the leftside margin (on even numbered pages). Note that unless the twoside option is chosen, the oddsidemargin and the evensidemargin should be the same. textwidth The width of the text. The parameters that control the vertical measurements are: topmargin Denotes the space between the header and the vertical oset. The latter is A equal to 1in + voffset. 1in is the default produced by LTEX. Page 2 of 23 Go Back Full Screen Close Quit
  • headheight It denotes the height of the header. headsep Refers to the distance between the header and the body of the text. textheight Is the height of the actual text. The parameters that control the placement of the footer are: footskip footheight It is the distance between the body of the text and the footer. Denotes the height of the footer. A Page layout in LTEX Groups Creating a . . . Margin notes can be created by using the marginpar command. The parameters controlling the margins are: Fun with oats marginparsep Some more tricks Denotes the separation between the body of the text and the margin. It should be noted that in a two-sided document the margins appear on dierent sides on two consecutive pages. Items and lists Title Page marginwidth Denotes the width of the margin. marginparpush It is the minimum vertical separation between two marginal notes. The commands that are needed in order to control paragraphing are: parskip parindent par Denotes the vertical space between two paragraphs. Denotes the width of paragraph indentation. Equivalent to a blank line. topsep It is extra vertical space (in addition to parskip), that is added above and below list and paragraphing environments. itemsep It is extra vertical space (in addition to parskip), that is added between two list items. Page 3 of 23 Go Back Full Screen The parameters dened above can be set to a particular value using the command Close setlength{parameter}{length} Quit
  • Another command that can be used to change the value of a parameter by a given length is addtolength{parameter}{length} A Page layout in LTEX 13.1.1. Page headers and footers A The page headers and footers in LTEX are dened by the pagestyle and pagenumbering commands. The pagestyle command denes the content of the headers & footers and provides the following options: empty No headers or footers. Groups Creating a . . . Fun with oats Items and lists Some more tricks Title Page plain No header, footer contains the page number centered. This is the default proA vided by LTEX. headings No footer, header contains the name of the chapter/section and/or subsection and the page number. myheadings No footer is provided, and the header contains the page number and the information given by the markright and markboth commands. However, for a much better control of the headers and footers, its recommended to use the fancyhdr package. Page 4 of 23 Go Back The command thispagestyle can be used to change the pagestyle of the current page in the document. Full Screen The pagenumbering command denes the format of the page number. The dierent parameters that can be used are: Close arabic roman numerals (default) Quit
  • roman lower case roman numerals Roman upper case roman numerals alph lower case letter Alph upper case letter thepage produces the page number in the format dened by pagenumbering. A Page layout in LTEX 13.1.2. The fancyhdr package Groups The fancyhdr package provides another parameter for specifying the pagestyle, the fancy style. By use of pagestyle{fancy}, one can specify three-part headers and footers. We shall illustrate its use with the help of some examples. The example below shows the page layout that can be created using the package fancyhdr. LeftHeader CenteredHeader RightHeader Creating a . . . Fun with oats Items and lists Some more tricks Title Page page body LeftFooter CenteredFooter RightFooter Here is another nice example from the fancyhdr documentation. Page 5 of 23 The performance of new graduates Go Back page body Full Screen From: K. Grant To: Dean A. Smith 3 Close Quit
  • Quit Figure 13.1 Page elements. The values shown are those in effect in the current document (on odd pages), not the default. Close Full Screen Go Back htBtceht`TUUBU8d y axV awT v h y T f R tBcphBg'fBUqBd S'8agehBREtBcW`'U'XV'Xd R S h y agwvS xwvu h y ahsVwvS xwvu tBi'cW'U'XV'Xd hir y hsV h T tB''a''thBd htB'ceBBgv'Ua8d ri y T s T h y SV w u R tBXx'v88UhBd hBg'fBUBpc`XWUS8R T f Rqd b aYSV T Q i ! 9 Page 6 of 23 6 4 3 h y a sVwTv tB''Wh'UBU8d h y hTgffRa tBppB'B8d hr y V ghRRf tB'peXB'UBd tBWWBBvU'X'Xd h iQ y Tgw SV xwv u h haxVTahTh tBtyt`U'tBd h haxVTasvTa tByt`U'U8d htXx'vtsU'B'd y SV w uT VgssR hTgffRad b aYSV TS B'B8ec`XWU8R Q 'Q r Q @ 9 A ! 3A 6 A B3 5 5 5 6 3 C 6 E 3A 5 D 5 6 3 F Title Page 2 %10 )('%#" &$ 7 83 Some more tricks Items and lists Fun with oats Creating a . . . Groups A Page layout in LTEX P3 @ @ 9 9 3 G @ @ 9 I 3 9@ H 3
  • This is accomplished by the commands following pagestyle{fancy}: lhead{} chead{} rhead{bf The performance of new graduates} lfoot{From: K. Grant} cfoot{To: Dean A. Smith} rfoot{thepage} renewcommand{headrulewidth}{0.4pt} renewcommand{footrulewidth}{0.4pt} A Page layout in LTEX Groups Creating a . . . Fun with oats Items and lists Some more tricks 13.1.3. Using fancyhdr in two-sided documents Title Page The fancyhdr package also provides the commands fancyhead and fancyfoot which are more general than the commands described above to dene the header and the footer. These provide an additional parameter that species for which pages and/or parts of the header/footer those apply. The selectors that can be used are: E Even page O Odd page L Left eld C Center eld R Right eld H Header F Footer Using these we can produce a two-sided document. Assuming the page layout shown above to be for the odd pages, we can have the following for the even pages: Page 7 of 23 Go Back Full Screen Close Quit
  • The performance of new graduates page body 4 From: K. Grant To: Dean A. Smith This can be produced by using the commands: A Page layout in LTEX Groups Creating a . . . Fun with oats fancyhead{} % clear all elds fancyhead[RO,LE]{bf The performance of new graduates} fancyfoot[LE,RO]{thepage} fancyfoot[LO,CE]{From: K. Grant} fancyfoot[CO,RE]{To: Dean A. Smith} renewcommand{headrulewidth}{0.4pt} renewcommand{footrulewidth}{0.4pt} Items and lists Some more tricks Title Page The default layout in fancyhdr is produced by the following commands: fancyhead[LE,RO]{slshaperightmark} fancyhead[LO,RE]{slshapeleftmark} fancyfoot[C]{thepage} The default values for headrulewidth and footrulewidth are 0.4pt and 0pt respectively. Page 8 of 23 Go Back Full Screen Close Quit
  • 13.2. Groups A LTEX has an extremely nice feature of keeping text in groups thus enabling one to have dierent kinds of text wherever required. For example, one can have: The available font sizes are: tiny , scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, and Huge. A new group is started by the character { and terminated by