# @latex2js/pstricks

> PSTricks extension for LaTeX2JS

Latest version **4.2.0** (published 2026-08-24) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @latex2js/pstricks
pnpm add @latex2js/pstricks
yarn add @latex2js/pstricks
bun add @latex2js/pstricks
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.2.0 |
| Published | 2026-08-24 |
| First published | 2025-07-05 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 231.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 625 |
| Author | Dan Lynch <pyramation@gmail.com> |
| Maintainers | pyramation |

## Links

- npm: https://www.npmjs.com/package/@latex2js/pstricks
- Repository: https://github.com/Mathapedia/LaTeX2JS
- Issues: https://github.com/Mathapedia/LaTeX2JS/issues
- npm.io page: https://npm.io/package/@latex2js/pstricks

## Dependencies (2)

- [@latex2js/utils](https://npm.io/package/@latex2js/utils.md) ^4.2.0
- [@latex2js/settings](https://npm.io/package/@latex2js/settings.md) ^4.2.0

## Recent versions

- 4.2.0 (latest) — 2026-08-24
- 3.0.4 (next) — 2025-07-05
- 4.0.4 — 2026-08-24
- 4.0.3 — 2026-08-17
- 4.0.1 — 2026-08-17
- 3.1.4 — 2025-07-22
- 3.1.3 — 2025-07-06
- 3.1.2 — 2025-07-06
- 3.1.1 — 2025-07-05
- 3.0.11 — 2025-07-05
- 3.0.10 — 2025-07-05
- 3.0.1 — 2025-07-05
- 3.0.0 — 2025-07-05
- 2.1.2 — 2025-07-05

## README

# @latex2js/pstricks

PSTricks graphics extension for LaTeX2JS, enabling interactive mathematical graphics, plots, and diagrams in web browsers.

## Installation

```bash
npm install @latex2js/pstricks
```

## Features

- **Complete PSTricks Support**: Lines, circles, polygons, frames, and complex shapes
- **Interactive Elements**: Sliders, user variables, and dynamic graphics
- **Mathematical Plotting**: Function plots with mathematical expression evaluation
- **Coordinate Systems**: Multiple coordinate systems and transformations
- **Custom Graphics**: Arrows, patterns, and styling options
- **Real-time Rendering**: SVG-based graphics with smooth animations

## API Reference

### Main Components

```typescript
import { pstricks, psgraph, arrow } from '@latex2js/pstricks';

// Main PSTricks processor
pstricks.process(latexCode, options);

// Graph-specific functionality
psgraph.plot(expression, domain);

// Arrow utilities
arrow.create(type, style);
``

---
_Source: https://npm.io/package/@latex2js/pstricks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
