Skip to content

Commit

Permalink
Document that hbar is affected by #show strike: … (#41)
Browse files Browse the repository at this point in the history
Resolves #38
  • Loading branch information
YDX-2147483647 authored Dec 9, 2024
1 parent 443c963 commit 4ade7cd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions physica-manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,25 @@ In the default font, the Typst built-in symbol `planck.reduce` $planck.reduce$ l
[$ i hbar pdv(,t) psi = -frac(hbar^2, 2m) laplacian psi $],
)

*Known limitation*: `hbar` uses the `strike` function, and show rules of `strike` will affect `hbar`.
Therefore, you may have to revert your show rules for `hbar`. The following is an example.
// There hardly exists a robust fix before https://github.com/typst/typst/issues/420 is resolved.

#raw(
```typst
#import "@preview/physica:{VERSION}": hbar as old-hbar
#show strike: set text(gray)
#let hbar = {
show strike: set text(black)
old-hbar
}
$hbar$ is black, while $#old-hbar$ is gray.
```.text.replace("{VERSION}", version),
lang: "typst",
)

=== Tensors

#v(1em)
Expand Down

0 comments on commit 4ade7cd

Please sign in to comment.