styrene
所属分类:代码编辑器
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-12-11 14:29:26
上 传 者:
sh-1993
说明: 浏览器的LaTeX编辑器和编译器。
(LaTeX editor and compiler for the browser.)
文件列表:
.dockerignore (37, 2019-11-24)
Dockerfile (150, 2019-11-24)
LICENSE (1074, 2019-11-24)
app.js (1719, 2019-11-24)
examples/ (0, 2019-11-24)
examples/simple.tex (106, 2019-11-24)
index.html (3010, 2019-11-24)
package-lock.json (21938, 2019-11-24)
package.json (374, 2019-11-24)
resources/ (0, 2019-11-24)
resources/logo.png (236898, 2019-11-24)
static/ (0, 2019-11-24)
static/delete.svg (833, 2019-11-24)
static/edit.svg (1075, 2019-11-24)
static/editor.css (2862, 2019-11-24)
static/editor.js (10281, 2019-11-24)
static/enter-arrow.svg (904, 2019-11-24)
static/favicon.ico (20395, 2019-11-24)
static/logo-full.png (19823, 2019-11-24)
static/prism-live.css (1377, 2019-11-24)
static/prism-live.js (20553, 2019-11-24)
![](https://github.com/quantumsheep/styrene/blob/master/resources/logo.png)
# Styrene
Write and Compile LaTeX in the browser.
# Self-hosting
## Docker
```bash
docker run -d --name=styrene -p 8080:8080 quantumsheep/styrene
```
### Installing every LaTeX libraries
**This procedure requires ~3GB of storage.** That's why it isn't included in the original Docker image.
Assuming that your container is named `styrene` - Connect to the container's shell:
```bash
docker exec -it styrene sh
```
Once in the container, execute this command:
```bash
apk add texmf-dist-full
```
### Why is the image so heavy (~670MB)?
I used [`texlive`](https://pkgs.alpinelinux.org/package/edge/community/x86/texlive) alpine package to run `pdflatex` with all the LaTeX packages needed, which are very large because of all the dependencies and sub packages used.
## From sources
First, clone the repository to the specified directory and install the required `npm` modules.
```bash
git clone https://github.com/quantumsheep/styrene
cd styrene
npm install
```
To start the server, use the `start` script.
```bash
npm start
```
# Screenshots
Because pictures speak louder than words.
![](https://i.imgur.com/NFr1AIF.png)
![](https://i.imgur.com/SxR4lkJ.jpg)
近期下载者:
相关文件:
收藏者: