Skip to content

Commit dd06571

Browse files
committed
updates
1 parent f8ebd01 commit dd06571

File tree

3 files changed

+9
-40
lines changed

3 files changed

+9
-40
lines changed

bin/build-all.sh

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
#!/bin/bash
22

3-
for x in $(ls core)
4-
do
5-
cd core/$x
6-
yarn
7-
yarn build
8-
cd ../../
9-
done
3+
DIR=$(pwd)
104

11-
for x in $(ls libs)
12-
do
13-
cd libs/$x
14-
yarn
15-
yarn build
16-
cd ../../
17-
done
5+
yarn build
186

19-
cd libs/latex2html5
7+
cd packages/latex2html5
208
yarn bundle
21-
cd ../../
9+
cd $DIR
2210

23-
cd site
11+
cd website/latex2js.com
2412
yarn build
25-
cd ../
13+
yarn copy
14+
cd $DIR

examples/react-app/src/App.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,6 @@ import 'latex2js/latex2js.css';
66
import { LaTeX } from 'latex2react';
77

88
const tex = String.raw`
9-
10-
\begin{pspicture}(-3.5,-1)(3.75,3.5)
11-
12-
13-
\slider{1}{8}{n}{$N$}{4}
14-
15-
16-
\psplot[algebraic,linewidth=1.5pt,plotpoints=1000]{-3.14}{3.14}{cos(n*x/2)+1.3}
17-
\psaxes[showorigin=false,labels=none, Dx=1.62](0,0)(-3.25,0)(3.25,2.5)
18-
\psline[linestyle=dashed](-3.14,0.3)(3.14,0.3)
19-
\psline[linestyle=dashed](-3.14,2.3)(3.14,2.3)
20-
\rput(3.6,2.3){$\frac{1}{1-\alpha}$}
21-
\rput(3.6,0.3){$\frac{1}{1+\alpha}$}
22-
\rput(3.14, -0.35){$\pi$}
23-
\rput(1.62, -0.35){$\pi/2$}
24-
\rput(-1.62, -0.35){$-\pi/2$}
25-
\rput(-3.14, -0.35){$-\pi$}
26-
\rput(0, -0.35){$0$}
27-
\end{pspicture}
28-
29-
SLIDER EXAMPLE
30-
319
Probably the best part of using PSTricks is that you can mix both graphics and mathematics:
3210
3311
\begin{center}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"lint:js": "eslint --ignore-path .gitignore 'packages/**/*.js'",
1414
"lint:fix": "eslint --ignore-path .gitignore 'packages/**/*.js' --fix",
1515
"lint:style": "stylelint 'packages/**/*.js'",
16+
"build:serve": "bin/build-all.sh && npm run serve",
17+
"serve": "serve website/latex2js.com/static",
1618
"pretest": "yarn lint",
1719
"test:watch": "jest --watch",
1820
"test": "jest"

0 commit comments

Comments
 (0)