Anki + Texlive 2022 : config issue with dvipng

Hi,
I have installed a fresh texlive 2022 the vanilla way on a endeavourOS (linux). I guess texlive is well configured since I can compile tex documents with texstudio. The paths to latex, dvipng … are:

$ whereis latex
latex: /usr/local/texlive/2022/bin/x86_64-linux/latex
(base) [jeanpat@T430 ~]$ whereis pdflatex
pdflatex: /usr/local/texlive/2022/bin/x86_64-linux/pdflatex
(base) [jeanpat@T430 ~]$ whereis dvip
dvipdf    dvipdfm   dvipdfmx  dvipdft   dvipng    dvipos    dvips
(base) [jeanpat@T430 ~]$ whereis dvipng
dvipng: /usr/local/texlive/2022/bin/x86_64-linux/dvipng
(base) [jeanpat@T430 ~]$ whereis dvisvgm
dvisvgm: /usr/local/texlive/2022/bin/x86_64-linux/dvisvgm

Anki is configured with an add-on: Edit Latex build Process is installed and its configuration is (modified from a post on stackexchange):

{
    "pngCommands": [
        [
            "/usr/local/texlive/2022/bin/x86_64-linux/latex",
            "-interaction=nonstopmode",
            "tmp.tex"
        ],
        [
            "usr/local/texlive/2022/bin/x86_64-linux/dvipng",
            "-D",
            "200",
            "-T",
            "tight",
            "tmp.dvi",
            "-o",
            "tmp.png"
        ]
    ],
    "svgCommands": [
        [
            "usr/local/texlive/2022/bin/x86_64-linux/pdflatex",
            "-interaction=nonstopmode",
            "tmp.tex"
        ],
        [
            "/usr/bin/pdf2svg",
            "tmp.pdf",
            "tmp-unscaled-svg"
        ],
        [
            "/usr/bin/rsvg-convert",
            "--zoom=2",
            "--format=svg",
            "tmp-unscaled-svg",
            "-o",
            "tmp.svg"
        ]
    ]
}

Now as I try build a deck with a single card with th following latex verso:

[latex] $\dfrac{856}{10}=85,6$ [/latex]s 

I get the error message:

Problème à l’exécution de <U+2068>usr/local/texlive/2022/bin/x86_64-linux/pdflatex<U+2069>.

Thank you for your advices

The paths you enter must be identical to the ones shown in the whereis line - you have left out a slash.

1 Like

You are my eyes! thanks