Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the default anchor=@auto for pins #643

Closed
pgf-tikz-bot opened this issue Feb 3, 2019 · 1 comment
Closed

change the default anchor=@auto for pins #643

pgf-tikz-bot opened this issue Feb 3, 2019 · 1 comment

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: symbol-1
Timestamp: 2019-02-03 19:04:41.100000

In the following example it is understandable that the second tikzpicture is the default behavior since it is same as how label works (see attached PDF).

\documentclass[tikz]{standalone}
\begin{document}
	{
		\makeatletter
		\tikzset{
			every pin/.append style={
				anchor={180+\tikz@label@angle},
				anchor/.code={} % locally disable `anchor`
				                % so that `anchor=@auto,` at line 647 and 677
				                % do not overwrite anchor
			}
		}
		
		\tikz{
			\draw foreach\ang in{10,20,...,360}
				{(0,0)node[pin=\ang:pin]{base node}}
		}
	}
	\tikz{
		\draw foreach\ang in{10,20,...,360}
			{(0,0)node[pin=\ang:pin]{base node}}
	}
\end{document}

My feature request is to make the fitst tikzpicture the default behavior;
or at least make it less hacky.
Currently I have to put anchor/.code={} in my implement because
at tikz.code.tex line 647 and 677 there are hard-coded anchor=@auto,.
Perhaps it is easy/possible to make it an option.

See also
https://tex.stackexchange.com/questions/260395/labels-at-an-angle-an-unexpected-gap/260833

@hmenke
Copy link
Member

hmenke commented Nov 10, 2019

I'll fix the problem with anchor being overwritten as part of #774, but changing the default behaviour is rejected, thus closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants