MyGit

Leedehai/typst-physics

Fork: 12 Star: 375 (更新于 2024-12-22 12:49:37)

license: MIT

Language: Typst .

physica: vectors, fields, differentials, derivatives, Dirac brakets, tensors, and more. See examples in the manual PDF.

最后发布版本: v0.9.3 ( 2024-04-02 10:09:33)

官方网址 GitHub网址

:green_book: The manual.

logo

The physica package for Typst (v0.9.4)

CI Latest release

Available in the collection of Typst packages: #import "@preview/physica:0.9.4": *

physica noun.

  • Latin, study of nature

This Typst package provides handy typesetting utilities for natural sciences, including:

  • Braces,
  • Vectors and vector fields,
  • Matrices, including Jacobian and Hessian,
  • Smartly render ..^T as transpose and ..^+ as dagger (conjugate transpose),
  • Dirac braket notations,
  • Common math functions,
  • Differentials and derivatives, including partial derivatives of mixed orders with automatic order summation,
  • Familiar "h-bar", tensor abstract index notations, isotopes, Taylor series term,
  • Signal sequences i.e. digital timing diagrams.

A quick look

See the manual for more details and examples.

demo-quick

A larger demo.typ:

demo-larger

Using physica in your Typst document

With typst package management (recommended)

See https://github.com/typst/packages. If you are using the Typst's web app, packages listed there are readily available; if you are using the Typst compiler locally, it downloads packages on-demand and caches them on-disk, see here for details.

effect

// Style 1
#import "@preview/physica:0.9.4": *

$ curl (grad f), tensor(T, -mu, +nu), pdv(f,x,y,[1,2]) $
// Style 2
#import "@preview/physica:0.9.4": curl, grad, tensor, pdv

$ curl (grad f), tensor(T, -mu, +nu), pdv(f,x,y,[1,2]) $
// Style 3
#import "@preview/physica:0.9.4"

$ physica.curl (physica.grad f), physica.tensor(T, -mu, +nu), physica.pdv(f,x,y,[1,2]) $

Without typst package management

Similar to examples above, but import with the undecorated file path like "physica.typ".

Typst version

The version requirement for the compiler is in typst.toml's compiler field. If you are using an unsupported Typst version, the compiler will throw an error. You may want to update your compiler with typst update, or choose an earlier version of the physica package.

Developed with compiler version:

$ typst --version
typst 0.12.0 (737895d7)

Manual

See the manual for a more comprehensive coverage, a PDF file generated directly with the Typst binary.

To regenerate the manual, use command

typst watch physica-manual.typ

Contribution

  • Bug fixes are welcome!

  • New features: welcome as well. If it is small, feel free to create a pull request. If it is large, the best first step is creating an issue and let us explore the design together. Some features might warrant a package on its own.

  • Testing: currently testing is done by closely inspecting the generated manual. This does not scale well. I plan to add programmatic testing by comparing rendered pictures with golden images.

Change log

changelog.md.

License

最近版本更新:(数据更新于 2024-09-23 11:19:41)

2024-04-02 10:09:33 v0.9.3

2024-01-15 04:14:55 v0.9.2

2023-12-23 12:03:19 v0.9.1

2023-12-05 07:31:53 v0.9.0

2023-10-26 05:08:37 v0.8.1

2023-09-14 02:05:12 v0.8.0

2023-09-09 01:56:25 v0.7.5

主题(topics):

typst, typst-package

Leedehai/typst-physics同语言 Typst最近更新仓库

2024-08-21 01:55:24 mintyfrankie/brilliant-CV

2024-07-07 20:49:57 Enter-tainer/typst-preview

2024-05-20 00:37:24 johanvx/typst-undergradmath

2024-03-18 05:41:13 cetz-package/cetz

2024-02-25 19:42:03 sahasatvik/typst-theorems

2024-01-12 23:23:59 PgBiel/typst-tablex