Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2f67c54
begin v2
pyramation Jul 4, 2025
dc15597
feat: modularize codebase by consolidating duplicated code
pyramation Jul 4, 2025
83202fb
feat: move NextJS components to React package
pyramation Jul 4, 2025
e4500b5
fix: update NextJS app to use React package components and remove unu…
pyramation Jul 4, 2025
439c5e1
cleaner packages
pyramation Jul 5, 2025
f928ec6
fix: update slider component to use select from @latex2js/utils inste…
pyramation Jul 5, 2025
535cdab
fixes
pyramation Jul 5, 2025
6746400
wip
pyramation Jul 5, 2025
4077b2c
wrksp
pyramation Jul 5, 2025
53db1d5
chore(release): publish
pyramation Jul 5, 2025
a86ce65
wip
pyramation Jul 5, 2025
81364c9
lerna
pyramation Jul 5, 2025
0fdac27
Publish
pyramation Jul 5, 2025
ecbbe3c
config
pyramation Jul 5, 2025
e9062eb
readmes
pyramation Jul 5, 2025
63ec2d0
Publish
pyramation Jul 5, 2025
396d69d
Publish
pyramation Jul 5, 2025
ffcfbba
Publish
pyramation Jul 5, 2025
fb85417
readmes and root lerna pkg
pyramation Jul 5, 2025
aa1de34
Publish
pyramation Jul 5, 2025
c6a6e34
readme
pyramation Jul 5, 2025
7d27371
remove workspace syntax
pyramation Jul 5, 2025
1fe9809
wrkspace
pyramation Jul 5, 2025
1e6f818
Publish
pyramation Jul 5, 2025
bd438c2
Publish
pyramation Jul 5, 2025
5b6e5c2
Publish
pyramation Jul 5, 2025
8ded54a
back to workspace
pyramation Jul 5, 2025
89d81c2
readmes
pyramation Jul 5, 2025
a3532e5
readme
pyramation Jul 5, 2025
5bd640a
rm
pyramation Jul 5, 2025
878312f
Publish
pyramation Jul 5, 2025
561d3b9
pkg
pyramation Jul 5, 2025
da85703
Publish
pyramation Jul 5, 2025
4c59ae5
lerna
pyramation Jul 5, 2025
1361d53
lerna
pyramation Jul 5, 2025
c75d18e
utils
pyramation Jul 5, 2025
d98dd0c
Publish
pyramation Jul 5, 2025
11e3568
publish
pyramation Jul 5, 2025
f726ddc
remove examples
pyramation Jul 5, 2025
d31bd16
github
pyramation Jul 5, 2025
7b8d3d0
workflow
pyramation Jul 5, 2025
7622c10
workflow
pyramation Jul 5, 2025
66bc009
workflow
pyramation Jul 5, 2025
4ebd487
workflow
pyramation Jul 5, 2025
a04c518
cleanup
pyramation Jul 5, 2025
c60475a
logs
pyramation Jul 5, 2025
c118552
fix double render issue
pyramation Jul 6, 2025
6cbb204
names
pyramation Jul 6, 2025
070a059
Publish
pyramation Jul 6, 2025
e39a8d1
readme
pyramation Jul 6, 2025
ef8f5ac
readme
pyramation Jul 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"permissions": {
"allow": [
"Bash(npm run dev:*)",
"Bash(/usr/bin/npm run dev)",
"Bash(/Users/pyramation/.n/bin/npm run dev)",
"Bash(pnpm run:*)",
"Bash(npx next:*)",
"Bash(npx tsc:*)",
"Bash(rm:*)",
"Bash(pnpm:*)",
"Bash(ls:*)",
"Bash(lerna list:*)",
"Bash(npx lerna list:*)",
"Bash(find:*)"
],
"deny": []
}
}
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

70 changes: 0 additions & 70 deletions .eslintrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: LaTeX2JS tests
on:
push:
workflow_dispatch:

jobs:
container-job:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm build

- name: Run tests for latex2js
run: cd ./packages/latex2js && pnpm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage
packages/**/build
packages/**/main
packages/**/module
packages/**/dist
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

11 changes: 0 additions & 11 deletions .stylelintrc.js

This file was deleted.

30 changes: 15 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"editor.formatOnSave": true,
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact"
]
}
"editor.formatOnSave": true,
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact"
]
}
4 changes: 0 additions & 4 deletions .yarnrc

This file was deleted.

7 changes: 7 additions & 0 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## publishing

```sh
pnpm dlx lerna version patch
pnpm build
pnpm -r publish
```
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# LaTeX2JS

![LaTeX2JS](https://latex2js.com/assets/images/photo.png)

Author interactive math equations and diagrams online using LaTeX and PSTricks

Author real LaTeX+PSTricks in React, Vue.js, or pure HTML5.
Expand All @@ -14,16 +16,43 @@ npm install latex2react

[Example Diagrams](https://latex2js.com/examples)

[Github Examples](https://github.com/pyramation/LaTeX2JS/tree/master/examples)
[Github Examples](https://github.com/Mathapedia/LaTeX2JS/tree/master/examples)

[Installation](https://latex2js.com/installation)

[Original Video](http://www.youtube.com/watch?v=QYMLMUKJyFc)

The loose structure and nature of user interface design poses a problem for documenting science and related interfaces in a consistent manner. TeX provides us with some "laws" to obey in order to design the output of a text and graphical language around. Hence, we can attempt to create a synthesis of a structured user interface specification (TeX) and a structured functional specification (HTML5) to provide a publishing platform for the current and next generation.
## Packages

The Art is where we can blend these two standards bodies; higher levels of abstraction allow people to express their ideas without having to worry about the mechanisms by which the technology is rendering their works. It is in these environments when people can express themselves freely.
These are the relevant packages for usage:

![LaTeX2JS](https://latex2js.com/assets/images/photo.png)
| Package | Description | Documentation |
|---------|-------------|---------------|
| [latex2js](packages/latex2js) | Core LaTeX parsing and rendering engine with environment support | [README](packages/latex2js/README.md) |
| [latex2html5](packages/html5) | Pure HTML5 implementation with automatic discovery and bundled JavaScript distribution | [README](packages/html5/README.md) |
| [latex2react](packages/react) | React components for LaTeX rendering with interactive graphics and mathematical notation | [README](packages/react/README.md) |
| [latex2vue](packages/vue) | Vue.js components for LaTeX rendering with Composition API and SSR support | [README](packages/vue/README.md) |

## MathJax Packages

If you just want to render equations using MathJax:

| Package | Description | Documentation |
|---------|-------------|---------------|
| [mathjaxjs](packages/mathjaxjs) | Pure HTML5 MathJax loading utilities for mathematical notation rendering | [README](packages/mathjaxjs/README.md) |
| [mathjaxjs-react](packages/mathjaxjs-react) | React wrapper and provider for MathJax with modern hooks-based architecture | [README](packages/mathjaxjs-react/README.md) |

## Internal Utility Packages

Other utilties for internal usage:

| Package | Description | Documentation |
|---------|-------------|---------------|
| [@latex2js/utils](packages/utils) | Core utilities for string processing, coordinate transformations, and SVG manipulation | [README](packages/utils/README.md) |
| [@latex2js/settings](packages/settings) | Configuration management for PSTricks graphics settings and parameters | [README](packages/settings/README.md) |
| [@latex2js/macros](packages/macros) | Comprehensive collection of LaTeX macro definitions for mathematical notation | [README](packages/macros/README.md) |
| [@latex2js/pstricks](packages/pstricks) | PSTricks graphics engine with interactive elements and coordinate system support | [README](packages/pstricks/README.md) |

## Credits

As always, BIG thanks to [MathJax](https://www.mathjax.org)
4 changes: 0 additions & 4 deletions babel.config.js

This file was deleted.

14 changes: 0 additions & 14 deletions bin/build-all.sh

This file was deleted.

13 changes: 0 additions & 13 deletions examples/nuxt-app/.editorconfig

This file was deleted.

21 changes: 0 additions & 21 deletions examples/nuxt-app/.eslintrc.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/nuxt-app/.gitignore

This file was deleted.

48 changes: 0 additions & 48 deletions examples/nuxt-app/CHANGELOG.md

This file was deleted.

Loading