Home

HYTEX User's Manual

image

Contents

1. 1 23 Jul 99 2 Friday 23 July 1999 3 23 07 99 Other formats can be created using the commands Dow Date Month Mon Year and Yr The current time is available using the new command clock For example if we type Double spacing Drafts Figures Fonts HYTEX User s Manual 4 This document was processed at clock on today the printed document will read This document was processed at 8 18pm on 3 April 2007 This is used in the command draft to add a time stamp to each page These commands refer to the date and time at which the dvi file is produced For theses and journal articles it is often necessary to use widely spaced text This is made possible using the setspace package The command doublespaced in the preamble will give double spaced text throughout the document Single spacing can be turned back on for parts of the document such as for tabular using begin singlespace and end singlespace Note that double spacing is automatically turned off within footnotes and floats figures and tables The amount of spacing can be controlled via the setspacing command The command doublespaced actually uses setspacing 1 75 If this is too much try setspacing 1 5 or some appropriate value in the preamble setspacing can be used throughout the document to change spacing The newspacing environment can be used for setting the spacing within a sec tion e g begin newspacing 1 6
2. end newspacing Placing the command draft in the preamble has the effect of printing DRAFT followed by the time and date at the bottom of each page This is useful for keeping track of documents for which many drafts are printed The color pack age must be loaded first To include graphics put the command usepackage graphicx in the pream ble The graphs can be pulled in with the command graph lt placement gt lt options gt lt file gt lt caption gt The first argument is optional and positions the figure as with the table or fig ure environment The second argument provides any optional arguments to the includegraphics command it can be left empty but would normally contain something like width 15cm The third argument is the name of the file Note the file extension is not required it is assumed to be eps if TEX is used and jpg or pdf if pdfIATEX is used The caption is given in the fourth argument All figures are automatically numbered using the figure counter They may be referenced by their file name For example Figure ref file will produce the text Figure 3 if it is the third figure to be included in the document Bold sans serif fonts can be obtained using sfb instead of sf or textsfb instead of textsf PostScript fonts are available using for example timesroman in the pream ble This changes the roman font to Times Roman but leaves the maths sans serif and typewriter fonts unchanged
3. HyTeX User s Manual Rob J Hyndman Version 7 0 April 2007 Hyigx is a BIEX style file for producing even better documents It is a collection of commands that I have found useful and think other BIFX users probably will too It is intended for use with ATEX 2e HEX 7 0 is a trimmed down version of HEX 6 0 As more packages have be come available some of the facilities in HEX became obsolete In particular e For compact lists use the paralist package e For variations on description lists use the mdwlist package For bibliographies use BibTEX with the natbib package e For bold mathematical symbols use the bm package For blackboard letters use the amsfonts package For variations on the verbatim environment use the verbatim package e For better control in typesetting theorems use the ntheorem package e For better control over numbering equations and floats use the ansmath package This is pretty useful for lots of other things too Other trimming occurred by removing facilities that were hardly ever used To use HYEX simply begin your I4TEX document like this documentclass article usepackagefhytex begin document There is often no need for any other preamble The page dimension commands that many people include in the preamble are unnecessary as HFX does all this for you HFX may also be used with the report book or letter document styles When the HYEX style file is loaded in this way a
4. This is not the same as using the times package which changes the roman sans serif and typewriter fonts Similarly Headers and footers HYTEX User s Manual 5 bookman palatino newcentury avantgarde helvetica courier change to other PostScript fonts Several of these commands can be used to gether to define san serif roman and typewriter fonts To have both maths and text in palatino font use the package mathpazo To obtain page numbers in sans serif place sfpage in the preamble For sans serif section headings use sfsection and for sans serif chapter headings use sfchapter Also sfbpage sfbsection and sfbchapter work as above This document uses sfbsection and sfbpage The default pagestyle produces a running header containing section names and page numbers The headers and footers can be easily modified using the following commands The commands lhead lt item gt chead lt item gt rhead lt item gt set the left center and right parts of the headers The corresponding commands for footers are lfoot lt item gt cfoot lt item gt rfoot lt item gt The first version of these commands was developed by Lance Berc They have been modified for use in HYI X If the twoside style option is invoked before HEX the macros switch the right and left items on even numbered pages If you require different headers and footers for even numbered pages as often with books use the
5. commands elhead lt item gt echead lt item gt erhead lt item gt elfoot lt item gt ecfoot lt item gt erfoot lt item gt to define them They should follow the commands Lhead chead etc These commands work with the pagestyle threepartheadings which is the default If no headers and footers are desired use the command pagestyle empty in the preamble To force page headers to be uppercase use the command uppercasehead The preamble command underhead places a rule of length textwidth and width underheadwidth a distance of underheadsep under the header text The preamble command boxhead places a box around the header as shown in this document Shaded headers are available using shadehead although the graphicx package must be loaded before using this command and it is only available for postscript printers For footers use overfoot boxfoot and shadefoot The font used in headers can be changed using headstyle For example to make all headers sans serif put neadstyle sf in the preamble as was done for this document For footers use footstyle Any font command in cluded in a lhead rhead etc will override the headstyle The default is headstyle s1 Marginal notes Mathematical symbols Page size Paragraph indentation Quotations Section heads HYTEX User s Manual 6 mnote Comment can be used to place text in the margins setmarginparleft or setmarginparri
6. font used for the title and author can be altered using titlefont and authorfont The date is in the same font as the author To obtain pages two up i e two pages printed at half size on each sheet of paper use the command twoup in the preamble This calls the package 2up and figures out the page dimensions for you
7. odd side of the page The argument is the length of marginparwidth It also ensures all marginal notes are on the inner side of the page The command setmarginparright does the same but on the right or even side of the page By default HEX sets paragraph indentation to zero and the default inter paragraph space is 1 8 ex Customised changes are possible using setlength There is a new environment smallquote which is identical to quote except that the quotation is set in a small font The format of section heads may be controlled by the command mysection lt sec gt lt style gt lt preface gt Here lt sec gt is the section level section subsection etc The style in which the section is to be set is specified by lt style gt e g large sf The argument HYTEX User s Manual 7 lt preface gt is the text to be set before the text of the section head usually thesection and some punctuation The defaults are as follows mysection section Large bf thesection mysection subsection large bf thesubsection mysection subsubsection normalsize bf thesubsubsection mysection paragraph normalsize bf theparagraph mysection subparagraph normalsize bf thesubparagraph To obtain section headings in a sans serif font include sfsection in the pream ble For bold sans serif font put sfbsection in the preamble To obtain headings in the left margin use the command setmargin
8. e default chapter head is defined by nychapter huge bf chapapp thechapter 20pt Huge bf 1 Huge bf 1 Here the command chapapp is usually defined to be Chapter but the ATEX command appendix changes it to Appendix The command thechapter refers to the chapter number If you prefer smaller headings in smallcaps without the word Chapter pre fixed you could try mychapter LARGE sc thechapter 1 LARGE sc 1 There are three inbuilt chapter formats sfchapter Makes chapter headings in sans serif font sfbchapter Makes chapter headings in sans serif bold font boxchapter Places chapter number in a box Any of these commands can be placed in the preamble Chapters always begin on a new page chaptopsep is the amount of blank space at the top of the page before the chapter head and chapaftersep is the amount of blank space placed between the chapter head and the text They are initially 1 8cm and 1 4cm respectively They may be changed by the setlength command An alternative approach is possible using the fncychap package Use the package multicol to set text in columns HMEX adds a new command newcolumn to force a column break To get today s date use the TEX command today HEX adds an optional ar gument to this command to control the date format and to provide Australian rather than American formats The options are given below with examples of the format 0 default 23 July 1999
9. ght should be called first to ensure there is enough space in the margins The text is set in footnotesize Several new commands have been added to produce mathematical symbols invstackrel Same as stackrel but inverted E g invstackrel longrightarrow n rightarrow0 produces T dist Produces the distributed as symbol smallfrac Produces small fraction like 4 bddots Produces backwards diagonal dots The E symbol for expectation and Pr for probability should appear in ro man font rather than maths italics when used in equations This can be easily achieved using E and Pr Similarly var cov and corr produce Var Cov and Corr in maths mode To obtain these in sans serif font use sfE somewhere before you need them The command a4page makes the page size A4 A similar command letterpage does the same for the US letter size A4 is the default Three new commands assist with setting the page size setsidemargin de scribes the space to appear in the margins on each side of the page These are equal in size by default The command setbinding adds some space to the in ner margin in case the document is to be bound The default settings have zero binding space and 3cm side margins Note these commands look after the set tings for oddsidemargin and evensidemargin and take into account whether the page is A4 or US letter The command setmarginparleft is used to set a wide margin on the left or
10. le illustrates the use of bhline the use of bvline is similar begin tabular c bhline 4 bf Numbers Numbers hline p 123 which produces 456 456 789 789 bhline 4 end tabular The thicker lines are four times the width of the other lines in this case Different Tabs Titles Two up HYTEX User s Manual 8 multiples are obtained with different arguments A new command tab will insert some hard space providing the ability to inset text using tabbing rather like a word processor The command takes a numeri cal argument which gives the distance to tab in as a multiple of tabwidth The default value of tabwidth is 1cm So for example tab3 will tab in 3cm The command hytextitle can be used in place of maketitle for the doc umentstyle article It takes the arguments from title author and date but formats them differently from maketitle There is also a boxtitle com mand which if used before hnytextitle causes the title to appear in a box The front page of this document gives an example of the use of boxtitle with hytextitle The environment hytexboxtitle does a similar thing except all text in the en vironment appears below the title This is particularly useful for abstracts The environment hytextitlepage is the same as hytexboxtitle except it causes subsequent material to appear on a new page To make the title appear in the header put titlehead in the preamble The
11. number of additional com mands become available Almost everything else in I4TEX will work exactly as normal It is assumed in this manual that readers are familiar with ATEX as described in Kopka and Daly s excellent book Guide to BIEX If you have any suggestions for inclusion in future versions of HEX or if you have found a bug please let me know at Rob Hyndman buseco monash edu au Some of the H EX commands I have borrowed from similar style files devel oped by other I4TpXers HYTEX User s Manual 2 Abbreviations Some ATEX commands are typed repeatedly Therefore I have provided some abbreviations for commonly used sequences of commands Of course the full commands can still be used The abbreviations are bt begin center begin tabular et end tabular end center biz begin itemize eiz end itemize ben begin enumerate een endfenumerate Blank page The command blankpage will give you just that Boxed equations Boxed paragraphs Chapter heads An equation can be placed in a box using the command eqnbox eqnbox E hat f ylx f ylx sigma_K 2 left a 2 frac h_X x h_X x frac partial f ylx partial x smallfraci2 a 2 frac partial 2 f ylx partial x 2 smallfraci2 b 2 frac partial 2 f ylx partial y 2 right produces E h fa 82 82 Bola fla ok fa E PUE ap PAUN 30 suo To place a paragraph including dis
12. parleft in the preamble then use msection in place of section and msubsection in place of subsection This is what was done for this document The space before and after section headings can be altered by changing the val ues of presectionskip and postsectionskip Similarly for subsections But note that the space after the section headings must be positive I don t know why For an alternative approach use the sectsty package Table of In technical articles it is sometimes convenient to place a table of contents on the contents first page right after the title and abstract The section entries in the default ta ble of contents for the article style tend to be too widely spaced for this purpose The command tighttoc produces a tighter table of contents It was used to generate the table of contents on the first page The command tighttoccols will produce a table of contents in two columns Note that you need to use the package multicol for this to work Tables Often you may wish to produce a column of figures aligned on the decimal point while using tabular The package dcolumn will provide this facility You can set all lines in a table to a certain thickness using a standard ATEX com mand For example setlength arrayrulewidth 0 5mm sets all lines to have width 0 5mm Where you want some lines thicker than others HEX provides two new commands bhline and bvline to be used in place of hline and vline The next examp
13. played equations in a centered box use the command boxpar For example boxpar 10 5cm textbf Definition If Y_1 dots Y_n denote observations with mean bar Y frac i n sum_ i 1 n Y_i then their textit sample standard deviation is defined as s sqrt frac i n 1 sum_ i 1 n Y_i bar Y 2 produces Definition If Y Y denote observations with mean Y 4 Xia Yi then their sample standard deviation is defined as Note that you must specify the width of the box If the color package is loaded you can also shadebox in the same way but the box will be shaded Even among well printed books there is great variation in the format of sec tion heads The font may be bold sans serif or small caps in sizes ranging from normal to rather large If a section number is present it may be followed by a period or by a long space The changes here give the casual TpXer more control over the style of headings The format of chapter heads may be controlled by the command Columns Date and Time HYTEX User s Manual 3 mychapter lt head1 gt lt head2 gt Here lt head1 gt is the chapter heading to use with the chapter command when the chapter is numbered and lt head2 gt is the heading to use with the chapter command when the chapter is not numbered The text of the chapter com mand is referenced in lt head1 gt and lt head2 gt by writing 1 For example th

Download Pdf Manuals

image

Related Search

Related Contents

Sheet-fed Scanner Getting Started Guide    User Manual - PHD Powerhouse  Samsung P64FP User Manual  Cooper Lighting 2HBHD User's Manual  Stylitis-200_B User Manual - Symmetron Electronic Applications  Inhalt der Handbücher zum Spektrumanalysator  GE 164 D2588P063 Microwave Oven User Manual  Quantum BTE gd  Deviation Firmware for Devo 7e/10/12E User`s Manual version 4.1-dev  

Copyright © All rights reserved.
Failed to retrieve file