Download Untitled

Transcript
Creating Tables and Inserting Pictures
‹‹
TeX doesn't hyphenate the first word of a line, a box, or a table entry. So, a long
word may cross the column boundary. To enable hyphenation, insert an empty
word: write \hspace{0pt} directly at the beginning.
‹‹
Load microtype to improve justification, it shows the best effect in narrow
columns.
‹‹
Full justification in p columns and the like may look bad because of big gaps.
Consider using >{\raggedright\arraybackslash} for such columns.
‹‹
From the ragged2e package, using the command \RaggedRight can do even
better and doesn't need \arraybackslash.
Pop quiz – tables
1. Which of these environments cannot cross page boundaries?
a. tabular
b. longtable
c. tabbing
2. If you would like to format one entry different from the specification of its column,
which command may be used?
a. >{…}
b. @{…}
c. \multirow
d. \multicolumn
Inserting pictures
Documents may not consist of just text and tables. You might wish to include pictures,
diagrams, or drawings made with other programs. The graphicx package is dedicated to this.
Time for action – including a picture
We shall create a short document. Between two paragraphs, we would like to insert a
picture. If there's no picture file available, we will use the demo mode of graphicx:
1.
Begin a new document and load babel and blindtext to print some filler text:
\documentclass[a5paper]{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[demo]{graphicx}
[ 140 ]