JuliaGizmos / InteractBase.jl

Build interactive HTML5 widgets in Julia
Other
27 stars 23 forks source link

WIP: LaTeX revamp #132

Closed piever closed 5 years ago

piever commented 5 years ago

An attempt to fix shortcomings of LaTeX support. I would like to either:

  1. try out autorender to allow to render LaTeX in a long text with some equations in it delimited by dollar signs or other delimiters (obstacle: can't get import to work)

or:

2, Add some code in Julia that does basically what autorender does with a set of delimiters (split in normal text versus math mode and call latex on math mode part)

Even though it is somewhat tangential, there is another issue with importing assets very similar to 1.: even though the package KaTeX downloads all the relevant assets (fonts included) with the correct folder structure, katex.min.js does not seem to be able to find KaTeX fonts and I'm not sure what the correct fix is. Current LaTeX rendering looks not so good because of that.

codecov-io commented 5 years ago

Codecov Report

Merging #132 into master will increase coverage by 7.34%. The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #132      +/-   ##
==========================================
+ Coverage   76.19%   83.54%   +7.34%     
==========================================
  Files          10       11       +1     
  Lines         521      474      -47     
==========================================
- Hits          397      396       -1     
+ Misses        124       78      -46
Impacted Files Coverage Δ
src/InteractBase.jl 100% <ø> (ø) :arrow_up:
src/output.jl 100% <ø> (+14.14%) :arrow_up:
src/latex.jl 63.63% <63.63%> (ø)
src/backends.jl 100% <0%> (ø) :arrow_up:
src/input.jl 74.04% <0%> (+6.37%) :arrow_up:
src/optioninput.jl 93% <0%> (+6.63%) :arrow_up:
src/slider.jl 94.36% <0%> (+20.2%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ab53348...4d0058e. Read the comment docs.

piever commented 5 years ago

cc: @travigd for help with importing assets.

piever commented 5 years ago

Closing in favor of https://github.com/piever/KaTeX.jl/pull/3