[texhax] Is it possible to place picture on the left side on every pages while table on the right side continues

tom sgouros tomfool at as220.org
Sat May 6 22:14:32 CEST 2006


Here's a way to do this that is kind of ugly, but it's simple and it
works.  Essentially it involves lying to TeX and claiming that various
features have zero length.  The picture is attached to the longtable
header, and isn't really part of the table cell, so a table that uses
\hlines won't know not to put them over the blueprint.  You can fidget
with the various lengths to get it the way you like.

Perhaps others will have a more stylish solution.

 -tom


\documentclass[landscape]{article}
\usepackage{longtable}

\newcommand{\pichere}{\framebox{use includegraphics here%
    \rule{0pt}{1in}}}
\newcommand{\placepic}{\hbox to 0pt{\hbox to 2in{\hfill
    \raisebox{-160pt}[0pt][0pt]{\pichere}\hfill}}}

\begin{document}
\begin{longtable}{|p{2in}|p{2in}|} 
\hline
\placepic\textbf{Picture} & \textbf{Text} \\
\endhead
\hline
\endfoot
 & Here is a lot of text.  Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. \\
 & Second column \\
 & Second column \\
 & Second column \\
 & Second column \\
 & Second column \\
 & Second column \\
 & Here is a lot of text.  Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. Here is a lot of text. \\
\end{longtable}

\end{document}




-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


More information about the texhax mailing list