Latex Rendering Error Only for Some Note Types

For some of my note types, Latex seems to work fine.

a^2 + b^9 = c^2

in a field renders as

Screen Shot 2021-03-03 at 6.21.49 am


For other of my note types, the same or similar input in a field gives this error:

Error executing ⁨latex⁩.
Generated file: ⁨/var/folders/pp/0qxsh_fn6fx5lvd8hhp3d7xc0000gn/T/anki_temp/tmp.tex⁩
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
For additional information on amsmath, use the `?' option.

! LaTeX Error: File `myAnkiAll.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
l.5 \pagestyle
No pages of output.
Transcript written on tmp.log.

myAnkiAll.sty is an old file from an old computer (which got destroyed in a house fire). The new computer was not a reinstall from a time machine backup (backup hard drive also lost in fire), it is a fresh install of everything. I can’t work out why Anki is trying to use this old style file? And why for only some note types? I’m not using any addons.

The Latex preamble, etc., in Options is unchanged from the default, i.e.:









Each note type has its own latex header/footer - my guess is you were looking at a different note type.