Damien Elmes
17af26dcb5
apply black to all files
2019-12-23 10:34:10 +10:00
Damien Elmes
7399e0bd2b
Model->NoteType
2019-12-22 08:58:56 +10:00
Michal Pokorný (Rai)
67a39c58cb
Add types for models, templates and field dicts
2019-12-21 12:02:16 +01:00
Damien Elmes
c1587254f4
use isort to tidy up imports
2019-12-20 19:19:29 +10:00
Damien Elmes
b6b8df2dcf
add a bunch of annotations for mypy
2019-12-20 15:07:40 +10:00
Damien Elmes
f170763ef1
exporting, latex
2019-12-20 11:47:19 +10:00
Damien Elmes
6ecfff56c5
add pytype inferred types to anki/
...
I've corrected some obvious issues, and we can fix others over time.
Mypy tests are currently broken, as adding the type hints has increased
mypy's testing surface.
2019-12-20 11:07:08 +10:00
Damien Elmes
54fac70e22
use --exact with dvisvgm
...
https://anki.tenderapp.com/discussions/ankidesktop/36561-latex-svgs-getting-cut-off
2019-10-28 08:43:49 +10:00
Damien Elmes
f6b2135129
fix some warnings
2019-03-04 16:01:10 +10:00
Damien Elmes
372d5ed6e8
update copyright and clarify licenses
2019-02-05 14:01:33 +10:00
Damien Elmes
7ac601f0af
fix 'unclosed file' warnings with python -Wall
2017-12-11 16:38:15 +10:00
Damien Elmes
bc65baeff7
cgi.escape is deprecated
2017-12-11 16:20:00 +10:00
Damien Elmes
072489f436
fix unicode error when generating latex
2017-08-06 13:03:32 +10:00
Damien Elmes
8cd20f3352
turn latex svg into a note type option
...
needed until the other clients support svgs
2017-07-28 18:38:31 +10:00
Damien Elmes
b1959e5c83
latex fixes
...
- fix the missing replacement tmp.%s
- use a zoom factor of 2 by default
- look for both png and svg files before creating
2017-07-22 12:36:31 +10:00
Damien Elmes
9cda9334d3
Merge pull request #112 from sigkell/master
...
Output SVG instead of PNG for LaTeX
2017-07-22 11:00:13 +10:00
Damien Elmes
15b349e3a8
start port to python 3
...
unit tests pass and main screens of GUI load
2016-05-12 14:45:35 +10:00
Fionn Kelleher
da437fa16e
Output SVG instead of PNG for LaTeX
2015-11-22 13:25:18 +00:00
Damien Elmes
c243c583d8
update latex path for osx 10.10
2015-08-31 19:33:58 +10:00
Arne Ludwig
b5f375cc24
Adjusted code for bad latex commands to pass tests
2015-07-30 12:44:58 +02:00
Arne Ludwig
b2cf86b905
Don't mind LaTeX commands beginning with bad names
2015-07-30 11:44:47 +02:00
Damien Elmes
77dfd63f1e
comment out high-dpi+transparent latex example
2014-10-09 18:12:25 +09:00
Damien Elmes
d46bbabae7
add class=latex to latex img tags
2014-09-19 18:00:11 +09:00
dae
8cdfce4dd8
fix latex generation caused by bug in patch
2014-06-03 17:35:19 +09:00
dae
cc4b9938c7
add note about latexCmds
2014-06-03 16:33:43 +09:00
Joel Meyer-Hamme
980c68b2b0
Expose latex command tool chain
...
Dvi isn't compatible with quite a few Latex packages. I have been trying to include chemical formulas with the chemfig package. Exposing the tool chain to plugins would be very useful. For the record, I'm currently using:
´´´python
latexCmds = [
["pdflatex", "-interaction=nonstopmode", "tmp.tex"],
["pdflatex", "-interaction=nonstopmode", "tmp.tex"],
["pdfcrop", "tmp.pdf"],
["convert", "-density", "300", "tmp-crop.pdf", "tmp.png"]
]
´´´
2014-05-20 19:08:54 +02:00
Damien Elmes
988fc102d8
remove redundant regex in latex code
2013-07-19 19:42:20 +09:00
Damien Elmes
adf4f4687c
allow includegraphics in latex
2013-07-18 19:04:38 +09:00
Damien Elmes
2ba8c41fec
replace nbsp with standard space when stripping html
...
fixes https://anki.tenderapp.com/discussions/ankidesktop/1952-duplicate-not-detected-on-paste
2013-07-11 21:23:13 +09:00
Damien Elmes
3326254eec
fix cloze+latex issue in media check, and duplicate answers ( #757 , #758 )
...
we were replacing spans with spaces during review but not during media check.
just strip the tags instead, which makes the media check consistent and
doesn't result in multiple identical answers
2013-05-18 18:07:34 +09:00
Damien Elmes
b2457811a2
optimize imports
2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28
merged libanki and ankiqt into single distro
2012-12-21 16:51:59 +09:00