2

たとえば、前面に単語を入れて Anki デッキを作成しようとしています。次に、後ろに定義付きの単語と写真を追加します。しかし、すでに 2 つのフィールド (フロント テキストとバック テキスト) がある場合、グラフィックを含めるのに問題があります。以下にメモの例を示します。

\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 は背面に 2 つのフィールドを作成できません。

\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 に答える