glutanimate / batch-editing

Batch Editing add-on for Anki
https://ankiweb.net/shared/info/291119185
Other
15 stars 7 forks source link

latex compatibility #9

Open Arthur-CWW opened 5 years ago

Arthur-CWW commented 5 years ago

i added a image to my latex cards, which was a png, and the cards no longer display the latex on them.

Checklist

Information about your Anki set-up

Please fill out the section corresponding with your Anki version: Version 2.1.12 (eef86bf3)

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 10 Flags: frz=True ao=False sv=1

Add-ons:

Edit Field During Review ImageResizer Insert Randomized Lists multiple choice Image Occlusion Enhanced Alpha for Anki 21 load balancer Night Mode Pop-up Dictionary beta Hierarchical Tags Addon 20 21 More Overview Stats Customize Keyboard Shortcuts Button Colours Good Again Batch Editing Reset Card Scheduling ReMemorize Rescheduler with sibling and logging v114 Frozen Fields True Retention Compile latex during addedition and warn in case of error Advanced Browser Edit LaTeX build process

If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:

Please fill in details about your operating system (Windows/macOS/Linux, which version):

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

Conver to Radians:  
Error executing latex.
Generated file: C:\Users\gilga\AppData\Local\Temp\anki_temp\tmp.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2018-12-01>
(c:/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(c:/texlive/2019/texmf-dist/tex/latex/base/size12.clo))
(c:/texlive/2019/texmf-dist/tex/latex/base/inputenc.sty)
(c:/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty)) (./tmp.aux)
(c:/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd)
! Missing $ inserted.
<inserted text> 
                $
l.10 

! Missing $ inserted.
<inserted text> 
                $
l.12 \end{document}

[1] (./tmp.aux) )
(see the transcript file for additional information)
Output written on tmp.dvi (1 page, 316 bytes).
Transcript written on tmp.log.
rad 
or 
 rad
glutanimate commented 5 years ago

Thanks for the detailed report. Unfortunately there's not enough info to know what happened exactly. What would be helpful is if you could copy and paste the HTML content of an affected field before and after performing a batch edit. To view the HTML content of a field, click on the field (either in the card browser or editor), and press Ctrl+Shift+X.