3.6. Packages, Macros and Graphics¶
3.6.1. Packages¶
Code |
Meaning |
---|---|
$\usepackage{fullpage}$
|
Full page (minimal margins) - positioned after |
$\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}$
|
Specification of the margins using the geometry package, same as |
$\usepackage[margin=1in, paperwidth=8.5in, paperheight=11in]{geometry}$
|
Specification of margins using the geometry package with specification of paper width and height, same as |
$\usepackage{amsfonts}$
|
Used for displaying symbols such as the natural number symbol ( |
3.6.2. Macros¶
Code |
Meaning |
---|---|
\def\eq1{y=\frac{x}{3x^2+x+1}}
|
|
\def\labelaxes{Remember, remember the fifth of November}
|
|
3.6.3. Graphics¶
Code |
Meaning |
---|---|
\usepackage{graphicx}
|
Can also centre the image |
\includegraphics{quad1.png}
|
Use of graphix package to display an image. Will look for the file in the same directory as the .tex file. Can only use .png, .jpg, .gif or .pdf files (not sure - we can also use .eps?) |
\includegraphics[width=5in]{quad1.png}
|
Use of graphix package to display an image, specifying the width. |
\begin{center}
\includegraphics{quad1.png}
\end{center}
|
Use of graphix package to display an image, centered. |
\includegraphics[scale=0.5]{quad1.png}
|
Use of graphix package to display an image, scaled to 50%. |
\includegraphics[angle=45]{quad1.png}
|
Use of graphix package to display an image, rotated by 45 degrees. |