3

Possible Duplicate:
Is there a good document template for making business cards?

I need to create a A4 page with sticky labels on it.

The page should look like this:

-------------------
|     |     |     |
|  1  |  2  |  3  |
-------------------
|     |     |     |
|  4  |  5  |  6  |
-------------------
|     |     |     |
|  7  |  8  |  9  |
-------------------
|     |     |     |
| 10  | 11  | 12  |
-------------------
|     |     |     |
| 13  | 14  | 15  |
-------------------

The label size is 70mm x 50mm.

One label looks like this: (x the image) (y the text)

-----------------------
| xxxxxx              |
| xxxxxx MsShort Name |
| xxxxxx              |
-----------------------

| xxxxxx | | xxxxxx MsVeryLong | | xxxxxx Name |


If the text is too long it should continue on the second line.

Has someone an idea?

This is my code so far:

\documentclass[a4paper]{article}

\usepackage[table]{xcolor} \usepackage{graphicx} \usepackage{varwidth}

\paperheight297mm \paperwidth210mm

\textheight297mm \textwidth180mm

\topmargin-25.4mm \voffset0in \oddsidemargin-17.5mm \evensidemargin-17.5mm \hoffset0in

\marginparsep0in \marginparwidth0in

\headheight0in \headsep0in

\begin{document}

\begin{table} \begin{tabular}{p{60mm} p{60mm} p{60mm}} \vspace{18pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} \[50.8mm] \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} \[50.8mm] \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} \[50.8mm] \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} \[50.8mm] \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} & \vspace{15pt} \raisebox{-\height}{\includegraphics[height=35mm]{test.png}} \raisebox{-\height}{\raisebox{-\height}[15mm]{Some Name}} \[50.8mm] \end{tabular} \end{table}

\end{document}

But if the text is too long it just jumps at the end of the cell. How can I fix that?

Pascal
  • 779

0 Answers0