!NuxCISwYQJuyWwNsEI:matrix.org

PGF/TikZ

52 Members
https://github.com/pgf-tikz11 Servers

Load older messages


SenderMessageTime
27 Jul 2023
@r_mano:matrix.orgRomano GiannettiRedacted or Malformed Event11:14:28
@r_mano:matrix.orgRomano Giannetti

Hi TikZ masters, I tried

11:14:59
@r_mano:matrix.orgRomano Giannetti *

Hi Ti_k_Z masters, I tried

\documentclass[border=10pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
    \draw[trig format=rad,red]  (0:1) arc[start angle=0, end angle=pi, radius=1];
\draw[blue] (0:1) arc(0:180:1);
\end{tikzpicture}
\end{document}
11:15:28
@r_mano:matrix.orgRomano Giannetti from here https://tex.stackexchange.com/questions/685949/why-arc-with-angles-given-by-trig-format-rad-gives-wrong-result and it fails with also the new syntax. There is a proposed patch by qrr there... is that know or somebody should open an issue? 11:16:49
@r_mano:matrix.orgRomano Giannetti(Checking matrix... it works from home, not from job... grrrr)11:17:14
31 Jul 2023
@dellavg:matrix.orgGianluca joined the room.10:06:09
1 Aug 2023
@muzzi:matrix.orgmuzimuzhiRedacted or Malformed Event17:03:47
@muzzi:matrix.orgmuzimuzhiRedacted or Malformed Event17:03:52
@muzzi:matrix.orgmuzimuzhi *

Romano Giannetti I have the feeling that there're many more cases where /pgf/trig format=rad will break. Note /pgf/trig format is (still) documented as experimental, https://tikz.dev/math-parsing#pgf/trig:format.

At the time of this writing, this feature is “experimental”. Please handle it with care: there may be path instructions or libraries in pgf which rely on trig format=deg. The intended usage of trig format=rad is for local scopes – and as option for data visualization.

Personally I would suggest to do rad-to-degree conversion by deg(<rad>) pgfmath function or <rad> r postfix operator.

\documentclass[border=10pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \draw[red]
    (0:1) arc[start angle=0 r, end angle=pi r, radius=1];
  \draw[red!50, xshift=-.1cm]
    (0:1) arc[start angle=deg(0), end angle=deg(pi), radius=1];

  \draw[blue, xshift=.1cm] (0:1) arc (0:180:1);
\end{tikzpicture}
\end{document}
17:04:22
@josephwright:matrix.orgjosephwright hmenke: Following our discussion at TUG2023 - do you have any examples where making kernel commands \protected would help pgf? We have a potential plan but I need to see if it helps at all 17:07:43
@muzzi:matrix.orgmuzimuzhiRedacted or Malformed Event17:09:17
@muzzi:matrix.orgmuzimuzhi
In reply to @josephwright:matrix.org
hmenke: Following our discussion at TUG2023 - do you have any examples where making kernel commands \protected would help pgf? We have a potential plan but I need to see if it helps at all
Sorry for bothering, what does the "kernel commands" mean?
17:11:17
@josephwright:matrix.orgjosephwright
In reply to @muzzi:matrix.org
Sorry for bothering, what does the "kernel commands" mean?
Stuff defined by the LaTeX kernel, but here we might also cover 'stuff created using \DeclareRobustCommand'
17:14:34
@muzzi:matrix.orgmuzimuzhi *

Romano Giannetti (Aha, current comment is almost identical to what Qrrbrbirlbel's TeX-SX answer says. My apologies that I didn't read through the answer...)

I have the feeling that there're many more cases where /pgf/trig format=rad will break. Note /pgf/trig format is (still) documented as experimental, https://tikz.dev/math-parsing#pgf/trig:format.

At the time of this writing, this feature is “experimental”. Please handle it with care: there may be path instructions or libraries in pgf which rely on trig format=deg. The intended usage of trig format=rad is for local scopes – and as option for data visualization.

Personally I would suggest to do rad-to-degree conversion by deg(<rad>) pgfmath function or <rad> r postfix operator.

\documentclass[border=10pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \draw[red]
    (0:1) arc[start angle=0 r, end angle=pi r, radius=1];
  \draw[red!50, xshift=-.1cm]
    (0:1) arc[start angle=deg(0), end angle=deg(pi), radius=1];

  \draw[blue, xshift=.1cm] (0:1) arc (0:180:1);
\end{tikzpicture}
\end{document}
17:14:50
@muzzi:matrix.orgmuzimuzhi
In reply to @r_mano:matrix.org
from here https://tex.stackexchange.com/questions/685949/why-arc-with-angles-given-by-trig-format-rad-gives-wrong-result and it fails with also the new syntax. There is a proposed patch by qrr there... is that know or somebody should open an issue?
Just opened https://github.com/pgf-tikz/pgf/issues/1270.
(My previous replies in matrix provides either nothing new or wrong info, hence got deleted)
18:18:58
@muzzi:matrix.orgmuzimuzhi
In reply to @r_mano:matrix.org
from here https://tex.stackexchange.com/questions/685949/why-arc-with-angles-given-by-trig-format-rad-gives-wrong-result and it fails with also the new syntax. There is a proposed patch by qrr there... is that know or somebody should open an issue?
* Just opened https://github.com/pgf-tikz/pgf/issues/1270.
(My previous replies in matrix provides either nothing new (compared to Qrrbrbirlbel's TeX-SX answer) or wrong info (\pgfpatharc is indeed special), hence got deleted)
18:21:09
@hmenke:matrix.orghmenke josephwright: In pgfmath you can use quotes to measure text, such as\pgfmathparse{width("Some Lovely Text")}. Internally we are already using \protected@edef but it doesn't roundtrip really cleanly. At some point someone used pgfmath arrays to select a certain text from a list and measure stuff about it, but somewhere in between there was an \edef (I don't remember whether it was in user code or pgf code). 18:30:10
@hmenke:matrix.orghmenke josephwright: Also with increasing usage of Lua, users tend to try \directlua{tex.sprint("\textbf{foo}"} which then blows up in their face. 18:30:40
@josephwright:matrix.orgjosephwright
In reply to @hmenke:matrix.org
josephwright: Also with increasing usage of Lua, users tend to try \directlua{tex.sprint("\textbf{foo}"} which then blows up in their face.
OK, that's quite solvable
18:50:54
@josephwright:matrix.orgjosephwright
In reply to @hmenke:matrix.org
josephwright: In pgfmath you can use quotes to measure text, such as\pgfmathparse{width("Some Lovely Text")}. Internally we are already using \protected@edef but it doesn't roundtrip really cleanly. At some point someone used pgfmath arrays to select a certain text from a list and measure stuff about it, but somewhere in between there was an \edef (I don't remember whether it was in user code or pgf code).
I'm not sure what you mean here: \protected@edef works fine with a round trip in my experience
18:51:28
30 Aug 2023
@pantoji:matrix.orgनिरंजन set a profile picture.19:31:03
26 Sep 2023
@lyonsam:matrix.orglyonsam joined the room.23:08:05
2 Oct 2023
@temp4096:matrix.orgtemp4096 joined the room.13:57:07
3 Oct 2023
@temp4096:matrix.orgtemp4096 left the room.09:07:44
23 Oct 2023
@hmenke:matrix.orghmenkeI cleared a little bit of the PR backlog.08:37:26
@hmenke:matrix.orghmenkeMaybe we can make a release in the coming days. It's not going to contain a lot of fixes and features, but I think we also shouldn't hold back fixes longer than necessary.08:38:15
@muzzi:matrix.orgmuzimuzhi

Qrrbrbirlbel: Hi I saw two of your PRs (#1179 and #1182) were closed last week due to deletion of the head repository (your pgf fork https://github.com/Qrrbrbirlbel/pgf-tikz, now invalid).

It seems then you re-created a pgf fork (https://github.com/Qrrbrbirlbel/tikz-sloped) for PR #1287 (maybe because the default branch "master" in your fork is used as the head branch in #1287), thus I'm guessing you might still want to contribute the closed two PRs in the future?

10:50:05
@muzzi:matrix.orgmuzimuzhi *

Qrrbrbirlbel: Hi I saw two of your PRs (#1179 and #1182) were closed last week due to deletion of the head repository (your pgf fork https://github.com/Qrrbrbirlbel/pgf-tikz, now invalid).

It seems then you re-created a pgf fork (https://github.com/Qrrbrbirlbel/tikz-sloped) for PR #1287 (maybe because the default branch "master" in your fork is used as the head branch in #1287), thus I'm guessing you might still want to contribute the closed two PRs in the future?

10:50:54
24 Oct 2023
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
Maybe we can make a release in the coming days. It's not going to contain a lot of fixes and features, but I think we also shouldn't hold back fixes longer than necessary.
#1239 and maybe even need to be before releasing.
19:02:48
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
Maybe we can make a release in the coming days. It's not going to contain a lot of fixes and features, but I think we also shouldn't hold back fixes longer than necessary.
* I think #1239 and #1240 need to be resolved before a new release.
19:03:43

Show newer messages


Back to Room ListRoom Version: 6