pgf icon indicating copy to clipboard operation
pgf copied to clipboard

[manual] Links for `left` and `right` placement options for nodes lead to wrong locations

Open pgf-tikz-bot opened this issue 7 years ago • 3 comments

Migrated from SourceForge Author: denisbitouze Timestamp: 2019-01-07 11:07:12.725000

Manual for Version 3.1.

Instead of leading to page 234 (§ 17.5.2 "Basic Placement Options"), the links for the placement options left and right in the various examples (e.g. 1st example page 46) lead to /pgf/arrow keys/left and /pgf/arrow keys/right page 193 (§ 16.3.5 "Reversing, Halving, Swapping").

pgf-tikz-bot avatar Jan 07 '19 11:01 pgf-tikz-bot

Migrated from SourceForge Author: mo-gul Timestamp: 2019-01-07 15:53:22.619000

For the record: This was already the case for v3.0.1a (and I guess also in even earlier releases).

When I am not mistaken the hyperlinks are not set explicitly but by some automated stuff. This would explain the wrong destinations. There are other wrong hyperlinks as well, but I cannot remember them right now ...

I am not sure if this can be fixed (in an easy way).

pgf-tikz-bot avatar Jan 07 '19 15:01 pgf-tikz-bot

The problem here is that the link to /pgf/arrow keys/left overrides a previous link to /tikz/left. Maybe overriding should only be allowed, if the new key is “less qualified”. In this case /tikz/left has only one level of nesting, whereas /pgf/arrow keys/left has two levels of nesting, i.e. /tikz/left should take precedence.

hmenke avatar Nov 28 '19 23:11 hmenke

We need to check here before \pgfmanualpdflabel whether a label with that key already exists:

https://github.com/pgf-tikz/pgf/blob/1ad8f6e68d9066bcaa0e68dc4619a584c774df1f/tex/latex/pgf/doc/pgfmanual-en-macros.tex#L790-L820

hmenke avatar Dec 21 '21 08:12 hmenke