[texhax] Tikz: Modifying Positions

Ivan Griffin ivan at skynet.ie
Wed May 19 10:10:31 CEST 2010



On Tue, 18 May 2010, Christopher Olah wrote:

> Hey all,
>
> Instead of:
>
> \draw  (a.east) -- (b.west);
>
> I'd like to have the ending coordinate shifted a little. Intuitively,
> I want to do:
>
> \draw  (a.east) -- (b.west) + (0,1);
>
> But that, obviously, doesn't work. Is there a way to do this?
>


The Tikz calc library is your friend here---the following should achieve 
what you want to achieve:

% in preamble,
\usepackage{tikz}
\usetikzlibrary{calc}

% in your tikzpicture

\draw (a.est) -- ($(b.west) + (0,1)$);

You can do all manner of relative tweaking if you wrap the calculation 
with ($ ... $)


Best Regards,
Ivan.


> Thanks in advance,
>
> Christopher Olah
>
> http://christopherolah.wordpress.com/
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
>


More information about the texhax mailing list