# media/LaTeX tags warning

**URL:** <https://forums.ankiweb.net/t/media-latex-tags-warning/59705>\
**Category:** Help\
**Created:** [April 25, 2025, 5:14am UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705 "2025-04-25T05:14:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anarki](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@anarki](https://forums.ankiweb.net/u/anarki)\
**Post date:** [April 25, 2025, 5:14am UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/1 "2025-04-25T05:14:51Z")

</div>

Hello,

I keep encountering the following warning when using **Tool \> Check Media** in Anki:

```auto
Anki cannot detect used files when you use {{Field}} references in media/LaTeX tags. The media/LaTeX tags should be placed on individual notes instead.

Referencing templates:
Vocabulary: Card 1 (Front Template)
Vocabulary: Card 1 (Back Template)

```

However, I’ve thoroughly checked the templates under **Browse \> Notes \> Manage Note Types \> Options** , and I can’t find any instances of `{{Field}}` in the templates.

Could someone please help me understand why this warning is appearing and how I can resolve it? Any guidance would be greatly appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [April 25, 2025, 6:54am UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/2 "2025-04-25T06:54:42Z")

</div>

In that message `{{Field}}` is standing in for _any_ field replacement that is in a media or LaTeX tag on your template. So, looking at those 2 templates, do you have anything like that? [Field Replacements - Anki Manual](https://docs.ankiweb.net/templates/fields.html#media--latex)

---

<div class="post-metadata">

**Author:** ![anarki](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@anarki](https://forums.ankiweb.net/u/anarki)\
**Post date:** [April 26, 2025, 1:54am UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/3 "2025-04-26T01:54:16Z")

</div>

That did the trick, thanks!  
Now I just need to go through a couple thousand cards and fix them all. 🙂

---

<div class="post-metadata">

**Author:** ![SuhasK](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SuhasK](https://forums.ankiweb.net/u/SuhasK)\
**Post date:** [April 26, 2025, 7:11am UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/4 "2025-04-26T07:11:53Z")

</div>

You wouldn’t have to go through several thousand cards, as the issue is only in the template. You just need to change the two templates and your problem will be solved.

---

<div class="post-metadata">

**Author:** ![anarki](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@anarki](https://forums.ankiweb.net/u/anarki)\
**Post date:** [April 26, 2025, 2:03pm UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/5 "2025-04-26T14:03:00Z")

</div>

I’m interested in learning how to resolve this issue directly within the template, rather than manually updating the image field for every card that uses an image.

**Old method (which throws a warning):**  
**Template:**

```auto
{{#IMAGE}}
<div class="image-frame">
	<div>
		<a target="_blank"><img src="{{IMAGE}}" class="image image_cropped" id="id_image"></a>
	</div>
</div>
{{/IMAGE}}

```

**Card field:**  
`<imagename>.jpg`

**New Method (works but requires updating the image field in every card):**  
**Template:**

```auto
{{#IMAGE}}
<div class="image-frame">
	<div>
		<a target="_blank"><img {{IMAGE}} class="image image_cropped" id="id_image"></a>
	</div>
</div>
{{/IMAGE}}

```

**Card field:**  
`src="<imagename>.jpg"`

---

<div class="post-metadata">

**Author:** ![SuhasK](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SuhasK](https://forums.ankiweb.net/u/SuhasK)\
**Post date:** [April 26, 2025, 2:24pm UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/6 "2025-04-26T14:24:39Z")

</div>

Use `note:Vocabulary` to get all notes of this notetype. Select all of them. Use “Find and Relpace”, select the Field as IMAGE, tick regular expressions and have the tick for apply for only selected selected cards. Then in search use `(.*)` and in replace use src=“$1”.

Before you do all this, ensure you have backup so that you can revert back incase of a small mistake.

---

<div class="post-metadata">

**Author:** ![anarki](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@anarki](https://forums.ankiweb.net/u/anarki)\
**Post date:** [April 26, 2025, 2:43pm UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/7 "2025-04-26T14:43:22Z")

</div>

This is incredible, you just saved me days of work! It’s already finished in less than a minute. Thank you so much! It’s definitely time to make another donation to this great project.

---

<div class="post-metadata">

**Author:** ![SuhasK](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SuhasK](https://forums.ankiweb.net/u/SuhasK)\
**Post date:** [April 26, 2025, 2:58pm UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/8 "2025-04-26T14:58:11Z")

</div>

A great resource to learn more on how RegEx works is [https://regexr.com](https://regexr.com). This will certainly be useful in a lot of things, even inside Anki (for easier searching).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 26, 2025, 2:59pm UTC](https://forums.ankiweb.net/t/media-latex-tags-warning/59705/9 "2025-05-26T14:59:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
