anki-editor/examples.org
2020-03-02 00:35:55 +08:00

3.3 KiB

Tip: Click the Raw button on the right to view the original Org file

Deck in file

Text

Cards of this note will be created in {{c1::Default::which deck?}}

Deck in entry

Text

Cards of this note will be created in {{c1::Languages::which deck?}}

Raw fields

Front

How to send the content of a field or fields to Anki as is?

Back

With property <code>:ANKI_FORMAT: nil</code>, content of the field will be sent to Anki <em>unprocessed</em>. You can use whatever Anki supports, like HTML tags. <br> <br> This property is retrieved with inheritance, meaning that it can be set in any ancestor entries or at the top of the file with <code>#+PROPERTY: ANKI_FORMAT nil</code>, it's also possible to override an outer level nil format with <code>:ANKI_FORMAT: t</code>.

Is there a shorter way to write notes?

Back

Yes, like this one, Front is missing, anki-editor will use note heading as Front. This is neat as sometimes it's verbose to repeat the same content in note heading and first field.

This works for all note types, just make one field absent and anki-editor will use note heading as that missing field.

Languages

Vocabulary

Raining   vocab idioms english

Front

(it's) raining cats and dogs

Back

it's raining very hard

Grammar   grammar english

名词从句

Front

名词从句有哪些形式?

Back
  1. That + 一个完整的句子, that无实际意义
  2. 由疑问句改装而成

Dialects   dialect

Cantonese

Front

食咗饭未吖?

Back

吃过饭了没?

Computing

Emacs Lisp   lisp emacs programming

Front

How to trap errors in emacs lisp?

Back

  (condition-case the-error
      ;; the protected form
      (progn
        (do-something-dangerous)
        (do-something-more-dangerous))
    ;; handlers
    (error-symbol1 (handler1 the-error))
    ((error-symbol2 error-symbol3 (handler the-error))))

Math

Dot product

Front

How to calculate the dot product of two vectors:

\begin{equation*} \alpha = \{a_1, a_2, a_3\}, \beta = \{b_1, b_2, b_3\} \end{equation*}

Back

\[\alpha \cdot \beta = a_1b_1 + a_2b_2 + a_3b_3\]