kisonecat/tikzjax
소개
TikZJax는 WebAssembly를 사용해 브라우저에서 TikZ를 실행합니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTikZJax
TikZJax converts script tags (containing TikZ code) into SVGs.
See a static demo at http://tikzjax.com/
There is a live demo at https://tikzjax-demo.glitch.me/ thanks to @christianp.
Example
In the <head> of your HTML, include
<link rel="stylesheet" type="text/css" href="http://tikzjax.com/v1/fonts.css">
<script src="https://tikzjax.com/v1/tikzjax.js"></script>
Then in the <body>, include TikZ code such as
<script type="text/tikz">
\begin{tikzpicture}
\draw (0,0) circle (1in);
\end{tikzpicture}
</script>
Your TikZ will be compiled into SVGs; the <script> element will be
replaced with the corresponding SVG.
How does this work?
Using https://github.com/kisonecat/web2js the Pascal source of tex
is compiled to WebAssembly; the latex format is loaded (without all the hyphenation data), and
\documentclass[margin=0pt]{standalone}
\def\pgfsysdriver{pgfsys-ximera.def}
\usepackage{tikz}
is executed. Then core is dumped; the resulting core is compressed, and by reloading the dumped core in the browser, it is possible to very quickly get to a point where TikZ can be executed. By using an SVG driver for PGF along with https://github.com/kisonecat/dvi2html the DVI output is converted to an SVG.
All of this happens in the browser.
관련 프로젝트 살펴보기
불러오는 중…