4

I'm making a note in which I offer some services. I intend to put that note in libraries, shops, at schools, and so on. I'm sure you're all familiar with such a note. My question is, how do I do the bottom part of such a note, where the text flows vertically, and is divided into (like) ten columns? (In each column, you typically write phone number, email, and homepage - and then, with a pair of scissors, you make cuts to separate the columns.) Like I said, you probably already know what I'm talking about. Is there a standard way to do this, or, if not, do you have any suggestions?

Emanuel Berg
  • 1,827

3 Answers3

6

An example taken almost verbatim from the petiteannonce class documentation:

\documentclass[margin=3mm]{petiteannonce}
\usepackage{siunitx}
\usepackage{graphicx}
\usepackage{array}
\usepackage{eurosym}

\begin{document}

\petiteannonce[cols=2, count=4]%
{02 99 yy yy yy}
{%
  \tabcolsep=10pt\relax
  \petiteannonceaddtowidth{-2\tabcolsep}%
  \begin{tabular}%
    {@{}m{\petiteannoncewidth{0.5}}m{\petiteannoncewidth{0.5}}@{}}
    \multicolumn{2}{@{}c@{}}{\Large \dotfill Vend Baignoire enfant \dotfill }\\
    \hline\\
    Vend baignoire enfant.\newline 
    Dimensions \(\SI {80}{\centi \metre }\times \SI 
    {30}{\centi \metre }\)\newline
    Prix 20\si{~}\euro
    &
    \includegraphics[width=\petiteannoncewidth{0.5}]{ctanlion}
  \end{tabular}
}

\end{document}

enter image description here

CTAN lion drawing by Duane Bibby.

Moriambar
  • 11,466
Gonzalo Medina
  • 505,128
3

You could use a series of minipages for the tear off:

enter image description here

Notes:

  • One could use the tabular to draw the border as well, but \fbox provides an automatic separation that looks better.
  • There is also the stubs package as per this related question: Telephone pole flyer?.

Code:

\documentclass{article}
\usepackage{pgffor}
\usepackage{calc}
\usepackage{graphicx}

\begin{document} \foreach \x in {1,...,10} {% \noindent \begin{minipage}{0.1\linewidth} \rotatebox{90}{% \fbox{% \parbox{3cm}{% \begin{tabular}{l@{~}l}% Name: & Foo bar \ Phone: & 555-1212 \end{tabular}% }% }% }% \end{minipage}% }% \end{document}

Peter Grill
  • 223,288
  • As you don't seem to mind answering questions, is there a quick fix to remove the border (box) around the minipages? My LaTeX skills are limited, I can't tell if this is a property of the minipage, one of the box commands, or the table itself. – Emanuel Berg Oct 03 '12 at 16:14
  • 2
    @EmanuelBerg: The boxed border is from the \fbox. So if you remove that (and the matching close }) you should get what you want. – Peter Grill Oct 03 '12 at 19:20
2

A simple solution with tabular

Code

\documentclass{article}
\usepackage{
  array,
  graphicx,
  calc,
  arydshln
}
\newbox\mycontacts
\savebox\mycontacts{%
  \rotatebox{90}{%
    \parbox[][\paperwidth/10-9\arrayrulewidth][c]{\widthof{www.emanuel-berg.de}+2em}{%
      \centering Emanuel Berg \\
      +00~123~456\,789 \\
      www.emanuel-berg.de%
    }
}
}
\newcommand*\putmycontacts{\usebox\mycontacts}
\usepackage{lipsum}
\pagestyle{empty}
\usepackage[bottom=0in]{geometry}
\begin{document}
\lipsum[1-2]
\vfill
\centering\makebox[0em]{%
  \begin{tabular}{ * { 9 } { @{} c @{} : } @{} c @{} }
    \hdashline
    \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts & \putmycontacts \\
  \end{tabular}%
}
\end{document}

Output (full page)

full page view

Moriambar
  • 11,466
Qrrbrbirlbel
  • 119,821