[texhax] How to insert table note in longtable?

Alex Pivovarov apivovarov at gmail.com
Mon May 22 15:47:44 CEST 2006


Sometimes I need to insert notes under table.

Table comtains list of machine parts.
Somemes I need to add note about some machine part. The note should be
place on the same page in table note area (under the table, on this
page).

--------------------------------------------------
there is my document (it contains one picture {pic17282} ) :
---------------------------------------------------

\documentclass[a4paper,landscape]{letter}

\usepackage{longtable}
\usepackage{fullpage}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage[dvips]{geometry}

	\addtolength{\oddsidemargin}{-.875in}
	\addtolength{\evensidemargin}{-.875in}
	\addtolength{\textwidth}{1.75in}

	%\addtolength{\topmargin}{-.5in}
	\addtolength{\textheight}{.5in}

% `rose.eps' from CTAN: macros/generic/boxedeps/
\newcommand\BackgroundPicture{%
   \put(50,0){%
     \parbox[b][\paperheight]{\paperwidth}{%
       \vfill
       %\centering
       \includegraphics{pic17282}%
       \vfill
     }}}
% The picture is centered on the page background

\AddToShipoutPicture{\BackgroundPicture}

\begin{document}

\title{Examples}


\begin{longtable}[r]{|p{6mm}|p{22mm}|p{22mm}|p{40mm}|}

\hline \multicolumn{1}{|c|}{\textbf{ITEM}} &
\multicolumn{1}{c|}{\textbf{PART NO}} &
\multicolumn{1}{c|}{\textbf{CHANGE NO}} &
\multicolumn{1}{c|}{\textbf{DESCRIPTION}} \\ \hline
\endfirsthead

\hline \multicolumn{1}{|c|}{\textbf{ITEM}} &
\multicolumn{1}{c|}{\textbf{PART NO}} &
\multicolumn{1}{c|}{\textbf{CHANGE NO}} &
\multicolumn{1}{c|}{\textbf{DESCRIPTION}} \\ \hline
\endhead

\hline \multicolumn{4}{|l|}{{Note:}} \\ \hline
	\endfoot

\hline \multicolumn{4}{|l|}{{Note:}} \\ \hline
\endlastfoot

1  & 1H0 455 333 & 1H0 455 233A & Comperssor \\
2  & 1H0 455 334 & & \\
3  & 1H0 455 335& & \\
4  & 1H0 455 336& & \\
5  & 1H0 455 337& & \\
6  & 1H0 455 338& & \\
7  & 1H0 455 339& & Some part\footnote[1]{} \\
8  & & & \\
9  & & & \\
10  & & & \\
11  & & & \\
12  & & & \\
13  & & & \\
14  & & & \\
15  & & & \\
16  & & & \\
17  & & & \\
17A  & & & \\
18 & & & \\
18A  & & & \\
19  & & & \\
19A  & & & \\
20  & & & \\
20A  & & & \\
21  & & & \\
21A & & & \\
22 & 1H0 988 233 & 1H0 122 453A & Hex head bolt 45x6mm \\
23 & & & \\
24 & & & \\
24A & & & \\
25 & & & \\
25A & & & \\
26 & & & \\
27 & & & \\
27A & & & \\
28 & 1H0 233 189A &  & Nut \\
28A & & & \\


\end{longtable}


\end{document}


More information about the texhax mailing list