Page LayoutExact positioning of text

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
carandraug
Posts: 5
Joined: Tue Aug 18, 2009 6:50 pm

Exact positioning of text

Post by carandraug »

Hi everyone,

I'm trying to use LaTeX to design labels but I'm having some problem positioning the text exactly where I want it (the labels are quite small, for 1,5mL tubes).

I tried to remove all margins and make things such as headsep and topskip as zero. Then I created a picture the size of the page and tried to place parboxes in the exact places I needed the text. I even calculated the height of a character to take in account when positioning the text since the reference point is supposedly the baseline of the top line. I tried

Code: Select all

\put(86,235.5){\parbox[!t][12.5mm][t]{25.1mm}{\begin{flushleft}test text{flushleft}}}
However, it still comes out wrong. I can't see where I'm going wrong. It looks like something that should be easy to do. Is there a better (and correct) way to do it?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Exact positioning of text

Post by Stefan Kottwitz »

Hi carandraug,

welcome to the board!
You could use the textpos package for that purpose.

Stefan
LaTeX.org admin
carandraug
Posts: 5
Joined: Tue Aug 18, 2009 6:50 pm

Re: Exact positioning of text

Post by carandraug »

It worked just fine. Exactly what I needed and quite simple. Thanks a lot
Post Reply