如何将图像以乳胶格式插入 Anki 笔记



我正在尝试创建一个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}

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

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

下面是一个典型的语言注释及其卡片之一的示例,根本没有使用Latex:

-

还不能在Stackexchange的这个角落发布图片,至于低声誉 - https://i.stack.imgur.com/jDNEl.png

最新更新