tikz add tag
5 years ago Joseph

I made up a simple business card with a standard size. However, when I open the pdf, it’s 1.5mm larger (height and width). I’ve tried to change geometry settings but to no avail.

It’s all good, but when I open the pdf in Acrobat Reader, the size is slightly larger (1.5mm):

Anotação 2020-09-01 082848.png

Top Answer
5 years ago samcarter

The additional size has two causes:

  • the main reason is the red rectangle. By default tikz draws the middle of the line at the position you specify, so 2pt will be outside on each side, adding up to an additional 4pt as visualized in the following sketch:

    Screen Shot 2020-09-01 at 15.07.48.png

    You can work around this problem by clipping the document to the size of the image

  • the outer sep around nodes also contributes a bit

(and there is a ] missing in the tikzpicture)

This gives a size of 8.01 cm times 5cm (I think the 0.01 cm is just a rounding problem)

Screen Shot 2020-09-01 at 15.09.23.png

5 years
samcarter replying to Joseph — Tuesday, 1st Sep 2020 15:51

You’re welcome!

Joseph — Tuesday, 1st Sep 2020 15:49

alright, thanks a lot! 😃

samcarter replying to Joseph — Tuesday, 1st Sep 2020 15:49

Nothing to do, this site does not have the concept of accepted answer.

Joseph — Tuesday, 1st Sep 2020 15:48

by the way, it’s my first time here, how do I flag your answer as accepted? or ins’t it needed?

Joseph — Tuesday, 1st Sep 2020 15:47

OK, hadn’t noticed that, now I see.

samcarter replying to Joseph — Tuesday, 1st Sep 2020 15:47

No, you also have to clip away half the line

Joseph — Tuesday, 1st Sep 2020 15:45

so it was all an issue of setting the outer sep for the tikzpicture and for the background figure node, I guess.

2 hours
samcarter — Tuesday, 1st Sep 2020 13:47

The additional size comes from the red rectangle. By default tikz draws the middle of the line at the position you specify, so 2pt will be outside on each side, adding up to an additional 4pt

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.