Menu

#186 Broken Left Arrow in tikzcd Diagrams

v1.0_(example)
open
nobody
None
5
2024-06-29
2024-06-27
John Jack
No

The following pieces of code:

\begin{tikzcd}
    A \arrow[rd] & A \arrow[l]
\end{tikzcd}
\begin{tikzcd}
    N & A
    \arrow[from=1-2, to=1-1]
\end{tikzcd}

do not render the left arrow as it should.
Expected behaviour:

Actual behaviour:

Discussion

  • John Jack

    John Jack - 2024-06-27

    Corrigendum:
    The first bit of code should be

    \begin{tikzcd}
        N & A \arrow[l]
    \end{tikzcd}
    

    Additional info:
    LibreOffice Version: 24.2.4.2 (X86_64)
    Operating System: Windows 10 (64-bit)
    LaTeX Distro: MiKTeX 24.4

     

    Last edit: John Jack 2024-06-27
    • Roland Baudin

      Roland Baudin - 2024-06-27

      Hi, I tested both examples in Ubuntu 22.04.4 (texlive 2021.20220204-1) with LibreOffice 24.2.4.2 and TexMaths 0.52.1.

      Equations rendering is as expected (your first drawing).

      So perhaps it is an issue with your LaTeX compiler in Windows?

      \begin{tikzcd}
          N & A
          \arrow[from=1-2, to=1-1]
      \end{tikzcd}
      

      and

      \begin{tikzcd}
          N & A \arrow[l]
      \end{tikzcd}
      

      with LaTeX preamble:

      \usepackage{amsmath}
      \usepackage{tikz-cd}
      
       

      Last edit: Roland Baudin 2024-06-27
      • John Jack

        John Jack - 2024-06-27

        Hi Roland,
        Thank you for your quick reply.
        Strangely, on TeXstudio the diagram is displayed correctly; the problem only seems to arise while using TexMaths...

        What is even stranger is that

        \begin{tikzcd}
            N \arrow[leftarrow]{r} & A
        \end{tikzcd}
        

        works as expected.

        I will try to look more into this, thanks for your feedback.

        EDIT: I tried the same procedure in Ubuntu 22.04, using TeX Live 2022 and LibreOffice 24.2.4.2 with TexMaths 0.52, and I ran into the same exact rendering issue...

         

        Last edit: John Jack 2024-06-27
  • John Jack

    John Jack - 2024-06-27

    UPDATE: It appears LibreOffice does not detect version 0.52.1 of TexMaths when trying to update it from the Extensions tab, so I thought version 0.52 was the latest when in fact it is not...
    I now installed the new version manually, and everything works like a charm!
    Thank you again for your kind help (and for maintaining this very usefool addon in the first place)!

     

    Last edit: John Jack 2024-06-27
    • Roland Baudin

      Roland Baudin - 2024-06-28

      In fact, version 0.52.1 has not been officially released yet, because there are some issues with it in recent versions of LibreOffice. I was waiting for fixes from the LO team, but its'not ready.

      However, I'm a bit surprised: where did you get the 0.52.1 version?

       
      • John Jack

        John Jack - 2024-06-28

        I imagined it wasn't an official release, in fact I only found out about it while reading Bug #180 (which was very similar to this), in which you posted the experimental version.

        Would you recommend me switching back to the stable release?

         

        Last edit: John Jack 2024-06-28
        • Roland Baudin

          Roland Baudin - 2024-06-29

          Oh yes, you did it right.
          I've released this new version today.

           

          Last edit: Roland Baudin 2024-06-30

Log in to post a comment.