How to insert an image into Anki notes in latex format?

你说的曾经没有我的故事 提交于 2019-12-04 15:28:57

Ok, so what did the trick was learning first to change the Anki card template.

Front Template

{{Word}}

Back Template

<img src="{{Picture}}" width="250" /><br>
{{Definition}}

<hr id=answer>

Then, I had to just put the filename inside \xplain{} (making sure to include the graphic in my user's media folder). Then the note would look like this.

\begin{note}
\begin{field}
\textbf{\large ruminate}
\end{field}
\begin{field}
\textbf{\large ruminate}
\begin{description}
\item[verb] \hfill \\ 
chew the cuds

\item[verb] \hfill \\ 
reflect deeply on a subject

\end{description}
\end{field}

\xplain(<img src="image.jpg" />)

\end{note}

It seems that you are overusing Anki's LaTeX capabilities where it is unnecessary. Anki allows for great editing, formatting, coloring, etc. of cards.

It also allows you to just drag and drop images into any text field; in which case Anki will save, and sync it for you automatically. Instead of using Latex for the whole card, you should just create the card in the standard Anki way and only use Latex for formulae, etc.

Here's an example of how a typical language note and one of its cards would look like, no Latex used at all:

-- can't post images in this corner of stackexchange yet, as for low reputation -- http://i.stack.imgur.com/jDNEl.png

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!