anki-editor/examples.org

64 lines
1.4 KiB
Org Mode
Raw Normal View History

2017-12-27 17:20:01 +01:00
* English :deck:
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
*** Item :note:
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic (and reversed card)
:ANKI_TAGS: vocab idioms
: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
* Computing :deck:
** Item :note:
:PROPERTIES:
:ANKI_NOTE_TYPE: Basic
:ANKI_TAGS: lisp emacs programming
:END:
2017-12-27 17:20:01 +01:00
*** Front
2018-01-07 08:21:24 +01:00
How to trap errors in elisp ?
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
* Mathematics :deck:
** Item :note:
:PROPERTIES:
:ANKI_NOTE_TYPE: Cloze
:END:
*** Text
The dot product of two vectors is {{c1::$|\alpha| \cdot |\beta| \cos{\varphi}$}}
*** Extra