New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tex2typst

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tex2typst - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

package.json
{
"name": "tex2typst",
"version": "0.2.2",
"version": "0.2.3",
"description": "JavaScript library for converting TeX code to Typst",

@@ -5,0 +5,0 @@ "type": "module",

import { parseTex } from "./parser";
import { Tex2TypstOptions } from "./types";
import { TypstWriter } from "./writer";
import { symbolMap } from "./map";

@@ -29,2 +30,2 @@

export { Tex2TypstOptions };
export { symbolMap, Tex2TypstOptions };
export const symbolMap = new Map<string, string>([
['gets', 'arrow.l'],
['nonumber', ''],

@@ -28,10 +27,11 @@ ['vec', 'arrow'],

['boldsymbol', 'bold'],
['mathbb', 'bb'],
['mathbf', 'bold'],
['mathbb', 'bb'],
['mathcal', 'cal'],
['mathit', 'italic'],
['mathfrak', 'frak'],
['mathrm', 'upright'],
['mathsf', 'sans'],
['mathtt', 'mono'],
['mathrm', 'upright'],
['rm', 'upright'],

@@ -62,14 +62,2 @@

/* arrows used in proofs */
// tex: \implies \iff \leftrightarrow \longleftrightarrow \rightrightarrows
// typst: arrow.r.double.long arrow.l.r.double.long arrow.l.r arrow.l.r.long arrows.rr
['implies', 'arrow.r.double.long'],
['Longrightarrow', 'arrow.r.double.long'], // Note: This macro is not supported by KaTeX
['iff', 'arrow.l.r.double.long'],
['Longleftrightarrow', 'arrow.l.r.double.long'], // Note: This macro is not supported by KaTeX
['leftrightarrow', 'arrow.l.r'],
['longleftrightarrow', 'arrow.l.r.long'],
['rightrightarrows', 'arrows.rr'],
/* left and right floor,ceil */

@@ -85,3 +73,36 @@ // tex: \lfloor \rfloor \lceil \rceil

/* arrows */
['gets', 'arrow.l'],
['hookleftarrow', 'arrow.l.hook'],
['leftharpoonup', 'harpoon.lt'],
['leftharpoondown', 'harpoon.lb'],
['rightleftharpoons', 'harpoons.rtlb'],
['longleftarrow', 'arrow.l.long'],
['longrightarrow', 'arrow.r.long'],
['longleftrightarrow', 'arrow.l.r.long'],
['Longleftarrow', 'arrow.l.double.long'],
['Longrightarrow', 'arrow.r.double.long'],
['Longleftrightarrow', 'arrow.l.r.double.long'],
['longmapsto', 'arrow.r.bar'],
['hookrightarrow', 'arrow.r.hook'],
['rightharpoonup', 'harpoon.rt'],
['rightharpoondown', 'harpoon.rb'],
['iff', 'arrow.l.r.double.long'],
['implies', 'arrow.r.double.long'],
['uparrow', 'arrow.t'],
['downarrow', 'arrow.b'],
['updownarrow', 'arrow.t.b'],
['Uparrow', 'arrow.t.double'],
['Downarrow', 'arrow.b.double'],
['Updownarrow', 'arrow.t.b.double'],
['nearrow', 'arrow.tr'],
['searrow', 'arrow.br'],
['swarrow', 'arrow.bl'],
['nwarrow', 'arrow.tl'],
['leadsto', 'arrow.squiggly'],
['leftleftarrows', 'arrows.ll'],
['rightrightarrows', 'arrows.rr'],
['Cap', 'sect.double'],

@@ -93,8 +114,12 @@ ['Cup', 'union.double'],

['Lambda', 'Lambda'],
['Leftarrow', 'arrow.l.double'],
['Leftrightarrow', 'arrow.l.r.double'],
['Longrightarrow', 'arrow.r.double.long'],
['Omega', 'Omega'],
['P', 'pilcrow'],
['Phi', 'Phi'],
['Pi', 'Pi'],
['Psi', 'Psi'],
['Rightarrow', 'arrow.double'],
['Rightarrow', 'arrow.r.double'],
['S', 'section'],
['Sigma', 'Sigma'],

@@ -133,2 +158,3 @@ ['Theta', 'Theta'],

['coprod', 'product.co'],
['copyright', 'copyright'],
['cup', 'union'],

@@ -187,3 +213,3 @@ ['curlyvee', 'or.curly'],

['ll', 'lt.double'],
['longmapsto', 'arrow.long.bar'],
['longmapsto', 'arrow.bar.long'],
['longrightarrow', 'arrow.long'],

@@ -190,0 +216,0 @@ ['lor', 'or'],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc