Post by John S.Thanks everyone, but I should have been clearer. The solutions using
other graphics packages scale a tikzpicture all together; I'm
interested in keeping the nodes at the right size so that the text
(labels, etc.) isn't distorted. Is this possible?
Just use a dummy object of the required width.
Try the code below with the two offered versions of \documentclass.
See comments inside the code below.
HTH
Itay
<code>
\documentclass{article} % Full width text
%\documentclass[twocolumn]{article} % Narrow width text
\usepackage{tikz}
\begin{document}
\fbox{% % Depict the actual tikzpicture width.
\begin{tikzpicture}
% The next line forces a picture of width ~ \linewidth.
% \linewidth is determined by the class option.
% May replace with \textwidth, or any other tex length.
\path (0cm,0cm) -- (\linewidth, 0cm);
\draw[line width=4pt] (1,-3) -- ++ (0,6)
node[anchor=south] {This is a 4pt line};
\end{tikzpicture}%
}
% The next line demonstrates that we didn't scale
% the objects inside tikzpicture.
This rule has width of 4pt: \rule{4em}{4pt}
\end{document}
</code>
--
Itay Furman ***@fastmail.fm
--------------------------------------
http://longitude.weizmann.ac.il/~itayf
--