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?

2

3 Answers 3

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}
2
  • 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. Oct 3, 2012 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. Oct 3, 2012 at 19:20
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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .