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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.2. TYPE SIZE OPTIONS 336pt for 36pt as the normal type size48pt for 48pt as the normal type size60pt for 60pt as the normal type size*pt for an author-defined size as the normal type sizeextrafontsizes Using scalable fonts that can exceed 25pt.<strong>The</strong>se options, except for extrafontsizes, are mutually exclusive. <strong>The</strong> default type sizeis 10pt.Options greater than 17pt or 20pt are of little use unless you are using scalable fonts —the regular Computer Modern bitmap fonts only go up to 25pt. <strong>The</strong> option extrafontsizesindicates that you will be using scalable fonts that can exceed 25pt. By default this optionmakes Latin Modern in the T1 encoding as the default font (normally Computer Modernin the OT1 encoding is the default).1.2.1 Extended font sizesBy default, if you use the extrafontsizes option the default font for the document is LatinModern in the T1 font encoding. This is like putting\usepackage{lmodern}\usepackage[T1]{fontenc}in the documents’s preamble (but with the extrafontsizes option you need not do this).\newcommand*{\memfontfamily}{〈fontfamily〉}\newcommand*{\memfontenc}{〈fontencoding〉}\newcommand*{\memfontpack}{〈package〉}Internally the <strong>class</strong> uses \memfontfamily and \memfontenc as specifying the new fontand encoding, and uses \memfontpack as the name of the package to be used to implementthe font. <strong>The</strong> internal definitions are:\providecommand*{\memfontfamily}{lmr}\providecommand*{\memfontenc}{T1}\providecommand*{\memfontpack}{lmodern}which result in the lmr font (Latin Modern) in the T1 encoding as the default font, whichis implemented by the lmodern package. If you want a different default, say New CenturySchoolbook (which comes in the T1 encoding), then\newcommand*{\memfontfamily}{pnc}\newcommand*{\memfontpack}{newcent}\document<strong>class</strong>[...]{<strong>memoir</strong>}will do the trick, where the \newcommand*s are put before the \document<strong>class</strong> declaration(they will then override the \provide... definitions within the <strong>class</strong> code).If you use the *pt option then you have to supply a clo file containing all the sizeand space specifications for your chosen font size, and also tell <strong>memoir</strong> the name of thefile. Before the \document<strong>class</strong> command define two macros, \anyptfilebase and\anyptsize like:\newcommand*{\anyptfilebase}{〈chars〉} \newcommand*{\anyptsize}{〈num〉}When it comes time to get the font size and spacing information <strong>memoir</strong> will try andinput a file called \anyptfilebase\anyptsize.clo which you should have made available;the \anyptsize 〈num〉 must be an integer. 1 Internally, the <strong>class</strong> specifies1 If it is not an integer then <strong>TeX</strong> could get confused as to the name of the file — it normally expects there to beonly one period (.) in the name of a file.

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

Saved successfully!

Ooh no, something went wrong!