alistair
3 years ago
4 changed files with 61 additions and 17 deletions
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
Wikipedia uses mathml on top of svg with the following css: |
||||
|
||||
```css |
||||
.mwe-math-mathml-a11y { |
||||
clip: rect(1px,1px,1px,1px); |
||||
overflow: hidden; |
||||
position: absolute; |
||||
width: 1px; |
||||
height: 1px; |
||||
opacity: 0; |
||||
} |
||||
``` |
||||
|
||||
The mathml is before the image, with overflow hidden set and 0 opacity. The latex is set as the SVG's alt text. |
||||
|
||||
Each equation is its own request. |
||||
|
||||
## Fonts |
||||
|
||||
Fonts can be downloaded this way |
||||
|
||||
```sh |
||||
curl -LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/cmex10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/cmmi10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/cmr10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/cmsy10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/esint10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/eufm10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/msam10.ttf \ |
||||
-LO http://mirrors.ctan.org/fonts/cm/ps-type1/bakoma/ttf/msbm10.ttf |
||||
``` |
||||
|
||||
source: https://github.com/gjtorikian/mathematical |
Loading…
Reference in new issue