Oddments

Oddments




 

LaTeX 2.09 vs 2e

LaTeX 2.09 :
  \documentstyle[twoside,epsfig]{article}  % Select style.
  \begin{document}                         % Begin document.
    .
    .                                      % Text of document.
    .
  \end{document}                           % End document.
LaTeX 2e :
  \documentclass[twoside]{article}      % Select style.
  \usepackage{epsfig}
  \begin{document}                      % Begin document.
    .
    .                                   % Text of document.
    .
  \end{document}                        % End document.

And...

  • ${\mathcal P}$ vs $\mathcal{P}$. . .




 

UoM Thesis Stylesheet




 

Slides

Use SliTeX.

Or LaTeX Beamer. . .




 

WYSIWYG

There are WYSIWYG front-ends to LaTeX.




 

Fonts

TeX's Own Fonts

  • By default a limited number of TeX's own fonts are loaded and accessible.
  • You can load more of TeX's fonts and use them.

  • TeX's own fonts are bitmap fonts:
    • allows for modifications of typeface with size (see below);
    • metafont builds fonts at required size from tfm as required (cached).

Example: Loading and Scaling

\font\stdtenrm=cmr10 scaled\magstep0
\font\bigtenrm=cmr10 scaled\magstep1
\font\BIGtenrm=cmr10 scaled\magstep2

{\stdtenrm This is {\tt cmr10} scaled at normal size.}
\smallskip
{\bigtenrm This is {\tt cmr10} scaled once by 1.2.}
\smallskip
{\BIGtenrm This is {\tt cmr10} scaled twice by 1.2.}

\bye

Example: Design Size

\font\stdtenrm=cmr10 
\font\fivetenrm=cmr5 scaled 2000

\font\stdtentt=cmtt10 
\font\fivetentt=cmtt5 scaled 2000

\font\bigbold=cmbx14


\centerline{{\bigbold Font Design Size}}

\bigskip

{\stdtenrm This is {\stdtentt cmr10} scaled at normal size.}
\smallskip
{\fivetenrm This is {\fivetentt cmr5} scaled to twice its normal size.}

Postscript Fonts

  • In addition to TeX's own fonts you can use Postscript Fonts.
  • Postscript fonts are vector fonts with an arbitrary design size of 1pt.
  • Good for use with PDFTeX. . .

Example: Loading and Use

\font\courier    = pcrr8a
\font\titlefont  = pagd8a
\font\pstenrm    = ptmb8a
\font\stdtenrm   = cmr10

{\titlefont Using Postscript Fonts}

\bigskip

{\stdtenrm This is {\tt cmr10}, \TeX's ``standard'' Computer Modern font.}
\smallskip
{\pstenrm This is {\courier Times}, one of Postscript's standard fonts.}



\bye




 

Metafont

Used for designing and building fonts. For more information have a look at its home web site.




 

Unix/Linux Environment Variables

  export TEXFONTS=/usr/share/texmf/fonts//:/var/cache/fonts//:/home/user/texmf/fonts//




 

Programming: Macros

In (Plain) TeX use \def whilst in LaTeX use \newcommand. . .