Skip to content

Conversation

@GiggleLiu
Copy link

@GiggleLiu GiggleLiu commented Jan 21, 2026

ptable-amat:0.1.0

A Typst package for rendering periodic tables of elements.

Features

  • Two versions available:
    • periodic-table() - Compact version for slides and handouts
    • periodic-table-detailed() - Professional ACS-style version with full details
  • All 118 elements with atomic numbers, symbols, names, and atomic masses
  • Color-coded by element category (alkali metals, noble gases, etc.)
  • Six color themes: bright, dark, pastel, grayscale, grayscale-dark, neon
  • Customizable element highlighting with configurable stroke
  • Show/hide title, legend, and labels
  • Built on the cetz package for high-quality vector graphics

Repository

https://github.com/GiggleLiu/ptable-amat

Preview

Compact
Detailed

A Typst package for rendering periodic tables of elements with:
- Compact version for slides/handouts
- Professional ACS-style detailed version
- Customizable highlighting of elements
- Color-coded by element category
@typst-package-check typst-package-check bot added the new A new package submission. label Jan 21, 2026
@elegaanz elegaanz self-assigned this Jan 21, 2026
Copy link
Member

@elegaanz elegaanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for building this package. I have two remarks, otherwise it looks good to me.

#periodic-table-detailed()
```

![Detailed periodic table](images/detailed.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be copied in this repository to be displayed correctly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I understand. I am a bit concerned about the image size. Each image has size ~500KB, accumulating to several MB. Will people using this package download the images? Maybe I can reduce the number of images in the README.

- Rename from periodic-table to ptable-amat (per reviewer feedback)
- Include images in package directory
- Update lib.typ with color themes support
- Update README with themes documentation
@typst-package-check typst-package-check bot changed the title periodic-table:0.1.0 ptable-amat:0.1.0 Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new A new package submission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants