1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
\documentclass[a4paper]{article}
\title{図と表と脚注}
\author{本郷}
\begin{document}
\maketitle
\section{画像}
図 \ref{fig:color} は PNG をそのまま埋め込んだものです。
PNG の中身は伸長せずに PDF へ渡しています\footnote{PNG の IDAT は zlib で、PDF の
FlateDecode も zlib です。予測子の指定を書き写すだけで、そのまま流せます。}。
\begin{figure}[htbp]
\centering
\includegraphics[width=0.5\textwidth]{color.png}
\caption{色のついた PNG}
\label{fig:color}
\end{figure}
灰色の画像は \includegraphics[width=2cm]{gray.png} のように文中にも置けます。
\begin{figure}
\centering
\includegraphics[scale=0.8]{gray.png}
\caption{浮かせた灰色の画像}
\label{fig:gray}
\end{figure}
図 \ref{fig:gray} は \pageref{fig:gray} ページにあります。
\section{並べる}
\begin{description}
\item[説明の箇条書き] 見出しと説明を並べます。見出しは太字になります。
\item[2 つ目] 説明が長くなると折り返します。折り返した行は字下げの位置にそろいます。
\end{description}
\begin{table}[h]
\centering
\begin{tabular}{lp{6cm}}
\hline
\multicolumn{2}{c}{またがる見出し} \\
\hline
名前 & 決まった幅の桁は、中身が長くなると折り返します。これは p 指定の桁です。 \\
役目 & 表の桁は l, c, r, p のどれかで書きます。\\
\hline
\end{tabular}
\caption{またがる枡と決まった幅の桁}
\end{table}
\newpage
\section{改ページのあと}
ここは改ページのあとです。脚注が 2 つ目\footnote{2 つ目の脚注です。}と
3 つ目\footnote{3 つ目の脚注です。}にあります。
\end{document}