我正在尝试创建一个 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}
我尝试使用\includegraphics
(Anki 禁止这样做,但我更改了源代码并使包可以工作)但是在编译时找不到图像。
好的,那么诀窍是先学习更改 Anki 卡片模板。
正面模板
{{Word}}
背面模板
<img src="{{Picture}}" width="250" /><br>
{{Definition}}
<hr id=answer>
然后,我必须将文件名放入 \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}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)