├── .github └── workflows │ └── github-ci.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── TODO.md ├── docs └── api-reference.md ├── justfile ├── package.json ├── src ├── convert.ts ├── exposed-types.ts ├── generic.ts ├── index.ts ├── jslex.ts ├── map.ts ├── tex-parser.ts ├── tex-tokenizer.ts ├── tex-types.ts ├── tex-writer.ts ├── tex2typst.ts ├── typst-parser.ts ├── typst-shorthands.ts ├── typst-tokenizer.ts ├── typst-types.ts ├── typst-writer.ts └── utils.ts ├── tests ├── cheat-sheet.test.ts ├── cheat-sheet.toml ├── example.ts ├── integration-tex2typst.yaml ├── struct-bidirection.yaml ├── struct-tex2typst.yaml ├── struct-typst2tex.yaml ├── symbol.yml ├── test-common.ts ├── tex-parser.test.ts ├── tex-to-typst.test.ts ├── typst-parser.test.ts └── typst-to-tex.test.ts ├── tools ├── make-shorthand-map.py └── make-symbol-map.py ├── tsconfig.json └── yarn.lock /.github/workflows/github-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/.github/workflows/github-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vscode/ 3 | node_modules/ 4 | dist/ 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/README.md -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/TODO.md -------------------------------------------------------------------------------- /docs/api-reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/docs/api-reference.md -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/justfile -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/package.json -------------------------------------------------------------------------------- /src/convert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/convert.ts -------------------------------------------------------------------------------- /src/exposed-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/exposed-types.ts -------------------------------------------------------------------------------- /src/generic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/generic.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/jslex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/jslex.ts -------------------------------------------------------------------------------- /src/map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/map.ts -------------------------------------------------------------------------------- /src/tex-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/tex-parser.ts -------------------------------------------------------------------------------- /src/tex-tokenizer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/tex-tokenizer.ts -------------------------------------------------------------------------------- /src/tex-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/tex-types.ts -------------------------------------------------------------------------------- /src/tex-writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/tex-writer.ts -------------------------------------------------------------------------------- /src/tex2typst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/tex2typst.ts -------------------------------------------------------------------------------- /src/typst-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/typst-parser.ts -------------------------------------------------------------------------------- /src/typst-shorthands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/typst-shorthands.ts -------------------------------------------------------------------------------- /src/typst-tokenizer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/typst-tokenizer.ts -------------------------------------------------------------------------------- /src/typst-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/typst-types.ts -------------------------------------------------------------------------------- /src/typst-writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/typst-writer.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/cheat-sheet.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/cheat-sheet.test.ts -------------------------------------------------------------------------------- /tests/cheat-sheet.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/cheat-sheet.toml -------------------------------------------------------------------------------- /tests/example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/example.ts -------------------------------------------------------------------------------- /tests/integration-tex2typst.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/integration-tex2typst.yaml -------------------------------------------------------------------------------- /tests/struct-bidirection.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/struct-bidirection.yaml -------------------------------------------------------------------------------- /tests/struct-tex2typst.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/struct-tex2typst.yaml -------------------------------------------------------------------------------- /tests/struct-typst2tex.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/struct-typst2tex.yaml -------------------------------------------------------------------------------- /tests/symbol.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/symbol.yml -------------------------------------------------------------------------------- /tests/test-common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/test-common.ts -------------------------------------------------------------------------------- /tests/tex-parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/tex-parser.test.ts -------------------------------------------------------------------------------- /tests/tex-to-typst.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/tex-to-typst.test.ts -------------------------------------------------------------------------------- /tests/typst-parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/typst-parser.test.ts -------------------------------------------------------------------------------- /tests/typst-to-tex.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tests/typst-to-tex.test.ts -------------------------------------------------------------------------------- /tools/make-shorthand-map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tools/make-shorthand-map.py -------------------------------------------------------------------------------- /tools/make-symbol-map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tools/make-symbol-map.py -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwinsi/tex2typst/HEAD/yarn.lock --------------------------------------------------------------------------------