Menu

#523 Right angle text displacement

TeX Live 2019
closed-fixed
nobody
None
5
2019-12-01
2019-03-30
Kpym
No

When we add [x={(3,0)}] to the example of the manual the pic text of the right angle is displaced :

  \tikz[x={(3,0)}]
    \draw (1,0,0) coordinate (A) -- (0,0,0) coordinate (B) -- (0,0,1) coordinate (C)
    (B) -- (0,1,0) coordinate (D)
    pic [fill=gray,angle radius=4mm] {right angle = A--B--C}
    pic [draw,red,thick,angle eccentricity=.5,pic text=.]
      {right angle = A--B--D};

The reason for this, I don't know why, even if I'm the author of this code, is the sqrt(1/2) on line 66 of tikzlibraryangles.code.tex.

The strange thing is that it works when there is no slanted transformation. Logicaly the value should be sqrt(2) and not sqrt(1/2) !

Anyway, the correction of this bug is simple, everithing is ok if we replace sqrt(1/2) by the real value of sqrt(2) which is (up to 7 digits) 1.4142135. I'll make a pull request.

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
    • status: open --> closed-fixed
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01