如何将图像以latex格式插入Anki notes?

如何将图像以latex格式插入Anki notes?,latex,tex,anki,Latex,Tex,Anki,我正在尝试创建一个Anki牌组,例如,正面有一个单词。然后,我在后面加上了一个单词和一张图片。但当已经有两个字段(前文本和后文本)时,我在包含图形时遇到了问题。下面是一个示例注释: \begin{note} \begin{field} \textbf{\large ruminate} \end{field} \begin{field} \textbf{\large ruminate} \begin{description} \item[verb] \hfill \\ chew the cuds

我正在尝试创建一个Anki牌组,例如,正面有一个单词。然后,我在后面加上了一个单词和一张图片。但当已经有两个字段(前文本和后文本)时,我在包含图形时遇到了问题。下面是一个示例注释:

\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}
\end{note}
这个注释非常有用,但是当我尝试包含一个图形(如下所示)时,Anki不会让我在后面有两个字段

\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="files/image.jpg" />)

\end{note}
\begin{note}
\开始{field}
\textbf{\large ruminate}
\结束{field}
\开始{field}
\textbf{\large ruminate}
\开始{description}
\项[动词]\h项\\
反刍
\项[动词]\h项\\
深思
\结束{说明}
\结束{field}
\解释
\完{注}

我试图使用
\includegraphics
(Anki禁止这样做,但我更改了源代码并使包正常工作),但在编译图像时找不到

好的,那么这个诀窍首先是学习如何更改Anki卡模板

前模板

{{Word}}
背模板

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

<hr id=answer>

{{Definition}}
然后,我必须将文件名放在\xplain{}中(确保将图形包含在用户的媒体文件夹中)。然后便条看起来像这样

\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}
\begin{note}
\开始{field}
\textbf{\large ruminate}
\结束{field}
\开始{field}
\textbf{\large ruminate}
\开始{description}
\项[动词]\h项\\
反刍
\项[动词]\h项\\
深思
\结束{说明}
\结束{field}
\解释
\完{注}

您似乎过度使用了Anki的LaTeX功能,而这是不必要的。Anki允许对卡片进行出色的编辑、格式化、着色等

它还允许您将图像拖放到任何文本字段中;在这种情况下,Anki将保存并自动为您同步。不要在整张卡片上使用乳胶,你应该用标准的Anki方式创建卡片,并且只在公式上使用乳胶,等等

下面是一个典型的语言注释和其中一张卡片的示例,完全不用乳胶:

--由于声誉低下,目前无法在stackexchange的这个角落发布图像--