Updated README
This commit is contained in:
parent
ea73f4d45c
commit
9bea51f816
29
README.md
29
README.md
@ -36,22 +36,6 @@ docker pull blang/latex:ubuntu
|
|||||||
|
|
||||||
Version 6 and onwards should suffice; I made use of v10.14.2.
|
Version 6 and onwards should suffice; I made use of v10.14.2.
|
||||||
|
|
||||||
### Global Node.js packages
|
|
||||||
|
|
||||||
#### [svgexport](https://www.npmjs.com/package/svgexport)
|
|
||||||
|
|
||||||
```
|
|
||||||
npm install svgexport -g
|
|
||||||
```
|
|
||||||
|
|
||||||
#### [imagemin-cli](https://www.npmjs.com/package/imagemin-cli)
|
|
||||||
|
|
||||||
```
|
|
||||||
npm install imagemin-cli -g
|
|
||||||
```
|
|
||||||
|
|
||||||
### Local Node.js packages
|
|
||||||
|
|
||||||
After cloning or downloading this project, run:
|
After cloning or downloading this project, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -59,6 +43,17 @@ cd latex2image-web/
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Global Node.js packages for non-SVG images
|
||||||
|
|
||||||
|
SVG files can be generated as-is, but for PNG and JPG export support the additional two global Node.js packages are required:
|
||||||
|
|
||||||
|
#### [svgexport](https://www.npmjs.com/package/svgexport) and [imagemin-cli](https://www.npmjs.com/package/imagemin-cli)
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install svgexport -g
|
||||||
|
npm install imagemin-cli -g
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To run:
|
To run:
|
||||||
@ -67,7 +62,7 @@ To run:
|
|||||||
node app.js
|
node app.js
|
||||||
```
|
```
|
||||||
|
|
||||||
The web interface will be accessible at `http://127.0.0.1:3001` by default. The port and HTTP URL can be modified inside `app.js`.
|
The web interface will be accessible at `http://localhost:3001` by default. The port and HTTP URL can be modified inside `app.js`.
|
||||||
|
|
||||||
Enter a LaTeX equation, for example `\frac{a}{b}`, and press Convert. The result will be displayed below the button.
|
Enter a LaTeX equation, for example `\frac{a}{b}`, and press Convert. The result will be displayed below the button.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user