12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

21.2. CodeReferencesUse the reference heading appropriate for your discipline, in uppercase, centered and atthe top of the page. Individual refences should be single-spaced with the second andlater lines of a multiline reference indented with respect to the first line. <strong>The</strong>re should bedouble-spacing between references.Appendices<strong>The</strong> heading for an appendix consists of the word ‘APPENDIX’ followed by the uppercaseletter signifying its position in the sequence of appendices (e.g., A or B or C or . . . ). Thisshall be centered on the top line. <strong>The</strong> title of the appendix, in uppercase, is centered on thefollowing line. This page is not numbered. Subsequent pages are numbered and the textcommences on the top text line of the following page.Biography<strong>The</strong> title for the optional biographical page is ‘BIOGRAPHICAL SKETCH’, in the usualposition. <strong>The</strong> text shall not exceed the one page.21.2 CODEGiven the above set of requirements we can produce code that, hopefully, will generatedocuments that will not fall foul of the inspectorate. For simplicity I’ll do the code in theform of a package called pwasu.sty. I will be using some La<strong>TeX</strong> kernel commands thatyou won’t normally come. Some of the macros include @ as part of their name but this issafe as they are in a package, otherwise they would have to be within a \makeatletter. . . \makeatother grouping (see §E.4).21.2.1 InitialisationFirst, identify the package and its basic requirements.%%%% file pwasu.sty\Needs<strong>TeX</strong>Format{La<strong>TeX</strong>2e}\ProvidesPackage{pwasu}[2009/04/18 v0.3 ASU thesis]This is only going to work with <strong>memoir</strong>, so check if the <strong>class</strong> is being used, and if not thengive an error message and stop reading the package code.%% Only works with the <strong>memoir</strong> <strong>class</strong>!!!!!!!!!!!!!!!\@if<strong>class</strong>loaded{<strong>memoir</strong>}{\let\endpwasu\relax}{\let\endpwasu\endinput\PackageError{pwasu}{<strong>The</strong> pwasu package only works with the <strong>memoir</strong> <strong>class</strong>}%{\@ehd}}\endpwasuASU is very strict about only using a single font in a single size. It is probable thatat least one reference will be made to a location on the web. With La<strong>TeX</strong> such referencesare set using the url package, which defaults to using a monospaced font for urls. ForASU we have to make sure that they will be made using the body font (and the sameapplies to any verbatim text, such as computer code listings, for which we can use the\setverbatimfont command).363

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!