# @unified-latex/unified-latex-ctan

> unified-latex tools relating to specific CTAN packages

Latest version **1.8.4** (published 2026-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @unified-latex/unified-latex-ctan
pnpm add @unified-latex/unified-latex-ctan
yarn add @unified-latex/unified-latex-ctan
bun add @unified-latex/unified-latex-ctan
```

## Health

**Score 60/100 (C)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.8.4 |
| Published | 2026-04-03 |
| First published | 2022-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 15 |
| Unpacked size | 738 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 127 |
| Author | Jason Siefken |
| Maintainers | siefkenj |
| Keywords | pegjs, latex, parser, prettier, unified-latex, unified |

## Links

- npm: https://www.npmjs.com/package/@unified-latex/unified-latex-ctan
- Repository: https://github.com/siefkenj/unified-latex
- Homepage: https://github.com/siefkenj/unified-latex#readme
- Issues: https://github.com/siefkenj/unified-latex/issues
- npm.io page: https://npm.io/package/@unified-latex/unified-latex-ctan

## Dependencies (15)

- [color](https://npm.io/package/color.md) ^4.2.3
- [@unified-latex/unified-latex-types](https://npm.io/package/@unified-latex/unified-latex-types.md) ^1.8.4
- [@unified-latex/unified-latex-builder](https://npm.io/package/@unified-latex/unified-latex-builder.md) ^1.8.4
- [@unified-latex/unified-latex-util-scan](https://npm.io/package/@unified-latex/unified-latex-util-scan.md) ^1.8.4
- [@unified-latex/unified-latex-util-trim](https://npm.io/package/@unified-latex/unified-latex-util-trim.md) ^1.8.4
- [@unified-latex/unified-latex-util-match](https://npm.io/package/@unified-latex/unified-latex-util-match.md) ^1.8.4
- [@unified-latex/unified-latex-util-pegjs](https://npm.io/package/@unified-latex/unified-latex-util-pegjs.md) ^1.8.4
- [@unified-latex/unified-latex-util-split](https://npm.io/package/@unified-latex/unified-latex-util-split.md) ^1.8.4
- [@unified-latex/unified-latex-util-visit](https://npm.io/package/@unified-latex/unified-latex-util-visit.md) ^1.8.4
- [@unified-latex/unified-latex-util-argspec](https://npm.io/package/@unified-latex/unified-latex-util-argspec.md) ^1.8.4
- [@unified-latex/unified-latex-util-replace](https://npm.io/package/@unified-latex/unified-latex-util-replace.md) ^1.8.4
- [@unified-latex/unified-latex-util-comments](https://npm.io/package/@unified-latex/unified-latex-util-comments.md) ^1.8.4
- [@unified-latex/unified-latex-util-arguments](https://npm.io/package/@unified-latex/unified-latex-util-arguments.md) ^1.8.4
- [@unified-latex/unified-latex-util-print-raw](https://npm.io/package/@unified-latex/unified-latex-util-print-raw.md) ^1.8.4
- [@unified-latex/unified-latex-util-render-info](https://npm.io/package/@unified-latex/unified-latex-util-render-info.md) ^1.8.4

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.8.4 (latest) — 2026-04-03
- 1.8.3 — 2025-06-16
- 1.8.2 — 2025-02-09
- 1.8.1 — 2024-10-21
- 1.8.0 — 2024-08-22
- 1.7.1 — 2024-03-19
- 1.7.0 — 2024-02-25
- 1.6.1 — 2024-02-18
- 1.6.0 — 2024-01-17
- 1.4.2 — 2023-09-30
- 1.4.1 — 2023-09-02
- 1.4.0 — 2023-06-20
- 1.3.2 — 2023-04-26
- 1.3.1 — 2023-03-05
- 1.3.0 — 2023-02-06
- … 13 more at https://npm.io/package/@unified-latex/unified-latex-ctan/versions

## README

<!-- DO NOT MODIFY -->
<!-- This file was autogenerated by build-docs.ts -->
<!-- Edit the docstring in index.ts and regenerate -->
<!-- rather than editing this file directly. -->
# unified-latex-ctan

## What is this?

Macro/environment definitions and utilities for specific LaTeX packages from CTAN.

Note: basic LaTeX macro/environment definitions come from the `latex2e` package, even though
this is technically not a CTAN "package".

## When should I use this?

If you want information about special functions/macros from particular CTAN packages, or
you need to parse special environments.

## Notes

By default all macros/environments that are exported get processed. If multiple packages
export a macro with the same name, then the later-exported one takes precedence. If two packages
export a macro/environment of the same name but with conflicting argument signatures, this can
cause issues when another unified-latex package processes arguments positionally. For example,
by default `\textbf` takes one argument, but the beamer version of `\textbf` takes two arguments.
During HTML conversion, if arguments are referenced positionally, this may cause previously-working
code to fail with when beamer macro signatures are used. A workaround is provided: `_renderInfo.namedArguments`.
If `_renderInfo.namedArguments` is specified on both the original macro/environment definition
**and** the conflicting one, other unified-latex commands can reference arguments by name instead
of by position.

## Install

```bash
npm install @unified-latex/unified-latex-ctan
```

This package contains both esm and commonjs exports. To explicitly access the esm export,
import the `.js` file. To explicitly access the commonjs export, import the `.cjs` file.

# Constants

| Name              | Type                                                                                                                                                                               | Description                                                                                                          |
| :---------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------- |
| `environmentInfo` | `{ amsart: EnvInfoRecord; cleveref: EnvInfoRecord; exam: EnvInfoRecord; geometry: EnvInfoRecord; hyperref: EnvInfoRecord; ... 11 more ...; multicol: EnvInfoRecord; }`             | Info about the environments for available ctan packages. `latex2e` contains&#xA;the standard environments for LaTeX. |
| `macroInfo`       | `{ amsart: MacroInfoRecord; cleveref: MacroInfoRecord; exam: MacroInfoRecord; geometry: MacroInfoRecord; hyperref: MacroInfoRecord; ... 11 more ...; multicol: MacroInfoRecord; }` | Info about the macros for available ctan packages. `latex2e` contains&#xA;the standard macros for LaTeX.             |

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