5

I'm currently writing a document with the book class.

At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of lines tall.

I want to position this box at the end of the page, and I want the empty space that is left above it 'striked through' with a line or maybe crossed out with two lines. (This is a legally binding document so you don't want to leave any whitespace above your signature!)

1
  • Welcome to TeX.SE. It would be helpful if you composed a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. Apr 27 '13 at 21:15
9

enter image description here

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{tikz}

\newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}


\begin{document}

\def\a{One two three four five six seven eight nine ten. }
\def\b{\a\a Red yellow blue green. \a\par}
\def\c{\b\b\a\a\b\b\b\a\a\b}

\c
\noindent\tikzmark{a}\hfill\tikzmark{b}\par
\vfill
\noindent\tikzmark{aa}\hfill\tikzmark{bb}\par
\noindent
\framebox[\textwidth][l]{sig:}
\tikz[overlay,remember picture] {\draw[<->,] (a) to (bb);}
\tikz[overlay,remember picture] {\draw[<->,] (b) to (aa);}
\end{document}

Note: the lines will appear on the second run as they use measurements taken the previous time the document was processed, if you edit the document make sure to latex it twice to get the end points in the correct place.

1
  • 1
    @GonzaloMedina But I was so proud of myself having made my first tikz answer, I thought I'd use two:-) Apr 28 '13 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.