I'm trying to design what I suppose is best described as a "work log" in LaTeX and I'm running into a bit of trouble I was hoping someone could help with..
Basically I'm looking for a way to print a block of text of arbitrary/variable length and underneath that print a table that creates horizontal lines that take up much of the rest of the page until there is no more room for them.
Here's a mockup of the LaTeX code I've written:
Code: Select all
\documentclass[12pt,letterpaper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\evensidemargin=0.25in %
\oddsidemargin=0.25in %
\hoffset=-0.75in
\textwidth=7.5in %
\author{Michael Vastola}
\begin{document}
\begin{flushleft}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus lacinia enim non dolor condimentum interdum. Ut dapibus tristique dui non aliquam. Etiam nec consequat ipsum. Nam magna eros, pulvinar eget porta eu, tincidunt sed sem. Maecenas dapibus pulvinar risus, vel tempus metus ultrices at. Morbi mollis auctor varius. Sed sed nibh massa. In sollicitudin euismod mi sit amet vulputate. Aliquam pharetra eros at purus tincidunt placerat ut a massa. Proin at eros ligula.
\end{flushleft}
\begin{table}[b]
\begin{tabular}{p{3.5in}p{0.5in}p{1in}p{0.5in}}
\cline{1-1}
\cline{3-3}
Signature &
&
Date &
\end{tabular}
\end{table}
\begin{tabular}{p{.5in}p{1in}p{4.5in}}
\rule{.5in}{.5pt} &
\rule{1in}{.5pt} &
\rule{4.5in}{.5pt} \\
\rule{.5in}{.5pt} &
\rule{1in}{.5pt} &
\rule{4.5in}{.5pt} \\
\rule{.5in}{.5pt} &
\rule{1in}{.5pt} &
\rule{4.5in}{.5pt} \\
%....repeat until there is no more room on page...
\end{tabular}
\end{document}
I suspect I might be able to do something with some logic commands, but I'm unsure how to loop something until the vertical position on the page exceeds a certain point (or even if I'm on the right track on thinking about this).
Thanks a lot in advance!
Mike