Mathematica Anki 2.0
Thanks to AnkiConnect and recent MathJax support in Anki the installation process has been simplified! ... but is still being debugged, so watchout!
The aim of this project is to collect and review knowledge in a systematic and efficient way. Why create flash cards when you can have beautiful notebooks with highlighted items which you'd like to remember. The highlighted items can then be exported to Anki as Cloze deletions with just one click.
The project consists of Mathematica stylesheet and tools for creating TeX grade notebooks and Anki cards out of them.
- Mathematica - https://www.wolfram.com/mathematica/
- Anki - http://ankisrs.net
- AnkiConnect - https://ankiweb.net/shared/info/2055492159
- Import MathematicaCloze.apkg to Anki. It's a special cloze note type which looks like this:
~/Library/Mathematica/and copy (or symlink) files from the
Mathematicadirectory to corresponding subfolders.
Create a root
Knowledgefolder. You can make it anywhere, but I recommend you putting it inside dropbox folder:
Open Mathematica, Options Inspector (CMD+O) and search for
CreateCellID, set the Scope to
Global Preferencesand set it to
True. Make sure you don't forget about this step - otherwise we won't be able to identify Anki notes with Mathematica cells.
Stuff that makes life easier (optional)
- In Mathematica, Preferences -> System uncheck
Create and maintain version specific front end preferencesand either set Notebook Security to
Always trustor add the Knowledge folder to Trusted Directories.
- In Mathematica, Preferences -> Messages set Kernel Messages to
Print to Consoleit make notebooks more tidy by printing errors and logs to a seperate notebook.
Create a new notebook, go to and set a stylesheet through Format->Stylesheet->Science. You should see a docked cell (kind of a toolbar).
Write a title (CMD+0) saying "Notebook title", move down with down arrow.
Write a new section (CMD+1) saying "Section one" , move down
Write a new subsection (CMD+2) saying "Subsection one" , move down
Write a new text (CMD+7) saying "This is a test question with a witty answer"
Select the text "witty answer" and press (CMD+D) the text should get green.
Save the document in
Knowledge/Test/Subcategory/notebook.nbfilename can be different.
Press "->Anki" in the toolbar. If everything goes right, after seeing "Importing to Anki..." in the status bar, you'll see "Exported 1/1 cells to anki".
Only after exporting is finished you can open Anki. Be sure Anki is closed during exporting.
Here's the final efect:
To learn some more basics try opening
Currently supported styles
Not all cells get exported to Anki currently supported include:
- Item1, Item2, Item3
- Item1Numbered, Item2Numbered, Item3Numbered
- Example, Exercise, Solution
- Question, Remark, Comment, FunFact
- Theorem, Proof, Axiom, Definition, Lemma
More tutorials coming soon. (The system is poorly documented, but already has the capabilities to export equations and pictures as it was built out of my own need).
Troubleshooting and notes
Highlighting shortcut apears not to work when caps-lock is enabled. Someone might think that CMD+SHIFT+D will do the job and try to press it... and then BANG! You've just learned that it doesn't work, but instead splits the selected text into another cell - useful. Serendipity.