2

我正在尝试创建一个 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 禁止这样做,但我更改了源并让包工作)但随后在编译图像时找不到。

4

2 回答 2

4

好的,那么诀窍是首先学习更改 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}
于 2014-04-08T01:15:42.967 回答
1

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

它还允许您将图像拖放到任何文本字段中;在这种情况下,Anki 会自动为您保存并同步。不要将 Latex 用于整张卡片,而应仅以标准 Anki 方式创建卡片,并且仅将 Latex 用于公式等。

这是一个典型的语言注释及其一张卡片的外观示例,根本没有使用乳胶:

-- 还不能在 stackexchange 的这个角落发布图片,因为声誉低 -- http://i.stack.imgur.com/jDNEl.png

于 2015-08-06T18:09:44.777 回答