anki-editor/examples.org

155 lines
2.8 KiB
Org Mode
Raw Normal View History

2018-06-10 15:13:00 +02:00
#+PROPERTY: ANKI_DECK Default
2019-09-23 11:53:07 +02:00
* Deck in file
2018-06-10 15:13:00 +02:00
:PROPERTIES:
:ANKI_NOTE_TYPE: Cloze
:END:
** Text
2019-09-23 11:53:07 +02:00
Cards of this note will be created in {{c1::Default::which deck?}}
2018-06-10 15:13:00 +02:00
2019-09-23 11:53:07 +02:00
* Deck in entry
2018-06-10 15:13:00 +02:00
:PROPERTIES:
2019-09-23 11:53:07 +02:00
:ANKI_DECK: Languages
2018-06-10 15:13:00 +02:00
:ANKI_NOTE_TYPE: Cloze
:END:
** Text
2019-09-23 11:53:07 +02:00
Cards of this note will be created in {{c1::Languages::which deck?}}
2018-06-10 15:13:00 +02:00
* Raw fields
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic
:END:
** Front
How to send the content of a field or fields to Anki as is?
** Back
:PROPERTIES:
:ANKI_EXPORTER: raw
:END:
With property <code>:ANKI_EXPORTER: raw</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_EXPORTER raw</code>, it's also possible to
override an outer level raw exporter with <code>:ANKI_EXPORTER:
default</code>.
2019-09-23 11:53:07 +02:00
* Languages
:PROPERTIES:
2019-09-23 11:53:07 +02:00
:ANKI_DECK: Languages
:END:
2018-01-07 08:21:24 +01:00
2017-12-27 17:20:01 +01:00
** Vocabulary
2018-01-07 08:21:24 +01:00
2019-09-23 11:53:07 +02:00
*** Raining :vocab:idioms:english:
2018-01-07 08:21:24 +01:00
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic (and reversed card)
:END:
2017-12-27 17:20:01 +01:00
**** Front
2018-01-07 08:21:24 +01:00
(it's) raining cats and dogs
2017-12-27 17:20:01 +01:00
**** Back
2018-01-07 08:21:24 +01:00
it's raining very hard
2019-09-23 11:53:07 +02:00
** Grammar :grammar:english:
2018-06-10 15:13:00 +02:00
2019-09-23 11:53:07 +02:00
*** 名词从句
2018-06-10 15:13:00 +02:00
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic
:END:
**** Front
2019-09-23 11:53:07 +02:00
名词从句有哪些形式?
2018-06-10 15:13:00 +02:00
**** Back
2019-09-23 11:53:07 +02:00
1) That + 一个完整的句子, that无实际意义
2018-06-10 15:13:00 +02:00
2) 由疑问句改装而成
2019-09-23 11:53:07 +02:00
** Dialects
*** Cantonese
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic (and reversed card)
:ANKI_TAGS: dialect cantonese
:END:
**** Front
食咗饭未吖?
**** Back
吃过饭了没?
* Computing
:PROPERTIES:
:ANKI_DECK: Computing
:END:
2018-01-07 08:21:24 +01:00
2019-09-23 11:53:07 +02:00
** Emacs Lisp :lisp:emacs:programming:
2018-01-07 08:21:24 +01:00
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic
:END:
2017-12-27 17:20:01 +01:00
*** Front
2018-01-07 08:21:24 +01:00
2019-09-23 11:53:07 +02:00
How to trap errors in emacs lisp?
2018-01-07 08:21:24 +01:00
2017-12-27 17:20:01 +01:00
*** Back
2018-01-07 08:21:24 +01:00
#+BEGIN_EXPORT html
<div align="left">
#+END_EXPORT
#+BEGIN_SRC emacs-lisp
(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))))
#+END_SRC
#+BEGIN_EXPORT html
</div>
#+END_EXPORT
2018-06-10 15:13:00 +02:00
* Math
:PROPERTIES:
:ANKI_DECK: Mathematics
:END:
2018-01-07 08:21:24 +01:00
2019-09-23 11:53:07 +02:00
** Dot product
2018-01-08 11:20:11 +01:00
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic
:END:
*** Front
2019-09-23 11:53:07 +02:00
How to calculate the dot product of two vectors:
2018-01-08 11:20:11 +01:00
\begin{equation*}
\alpha = \{a_1, a_2, a_3\}, \beta = \{b_1, b_2, b_3\}
\end{equation*}
*** Back
2019-09-23 11:53:07 +02:00
\[\alpha \cdot \beta = a_1b_1 + a_2b_2 + a_3b_3\]