Skip to content

Spotlight0xff/anki_import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anki Import script

Installation

No Installation of the software, just use the import.py script.

But to support \includegraphics, you have to change the Anki sourcecode:

  • download Anki sourcecode from github.com
  • edit anki/latex.py, change tmplatex = latex.replace("\\includegraphics", "") to tmplatex = latex
  • run anki from the runanki script in the anki directory (always, create a shortcut)

To support LaTeX packages, use these following steps:

  • open Anki (desktop version)
  • Tools -> Manage Note Types
  • select a note type or create a new one
  • click on options while selected
  • add your LaTeX packages in the header field:
\usepackage{siunitx}
\usepackage{graphicx}
\usepackage{color}
\usepackage{enumitem} % customized labels in itemize
\usepackage[autostyle=true,german=quotes]{csquotes}
  • enjoy some juicy LaTeX

Usage

./import.py -i -o -m -a

-i,--ifile=<inputfile>

-o,--ofile=<outfilefile> (optional)

-m,--media=<media directory> (optional)

-a,--anki=<anki media directory> (optional)

Disclaimer

Quick & Dirty script, may burn your computer.

About

Anki Import script, from LaTeX -> Anki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published