I would like to employ TikZ for some constructive work, namely, programming a FabLab laser cutter. This nifty device gets a 2d drawing (as PDF) and cuts along all hairlines in the PDF. A harline is defined as a path with a thickness of 0.01 pt.
However, if I try this with TikZ and pdflatex
\begin{tikzpicture}
\draw[line width=0.01pt] (0,0) rectangle (1cm,1cm);
\end{tikzpicture}
and open the resulting PDF in Adobe Illustrator, it shows me a line width of 0.0179 pt – way too thick. Seems as if I have reached the limits of TeX.
Edit: The 0.0179 pt were a twofold effect. Firstly, I used pt where I actually should have used 0.01bp, as a the letter unit actually is what everybody else refers to as points. (See What are the possible dimensions / sizes / units LaTeX understands?). Secondly, the PDFs I was analyzing did not came directly out of pdflatex, but where post processed by MacOS, which results in the strange line widths. Thanks Paul!
Remains the generic question about the minimum line width and maximum resolution of TeX.
So what is the minimum line width I can get out of with TeX and TiKZ?
Also, what is this the same as the maximum resolution to place objects?
(For technical drawings, one sometimes has to go down to the µm level, with 1 µm = 0.002845 pt)
\scoped[transform canvas={scale=.1}] \draw[line width=.1pt] (0,0) rectangle (10cm,10cm);? Is it the same ? – Kpym Dec 21 '14 at 22:17tex "\vrule width 1pt height 1sp\bye"the DVI file will containsetrule height 1, width 65536(this is whatdvitypeshows). If I change1spinto0sp, no setrule command is found (the rule acts like a space, as far as the DVI file is concerned). Then it's left to the printer driver to draw the rule, so it depends on the PDF specifications (and possibly on the printer driver) whether the rule will be visible or not. – egreg Dec 22 '14 at 10:01pdftexthe resulting PDF contains a visible line that, according to Adobe Illustrator, is0 ptthick :-) – Daniel Dec 22 '14 at 14:31