Skip to content

Commit

Permalink
Touch up differentials; touch up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Leedehai committed Dec 22, 2023
1 parent f8a8b92 commit b537089
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Binary file modified physica-manual.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions physica-manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ All symbols need to be used in *math mode* `$...$`.
[`TT`],
[],
[`v^TT, A^TT` #sym.arrow $v^TT, A^TT$],
[transpose, also see\ @matrix-tranpose],
[transpose, also see\ @matrix-transpose],

[`vectorbold(`_content_`)`],
[`vb`],
Expand Down Expand Up @@ -234,7 +234,7 @@ All symbols need to be used in *math mode* `$...$`.
[`TT`],
[],
[`v^TT, A^TT` #sym.arrow $v^TT, A^TT$],
[transpose, also see\ @matrix-tranpose],
[transpose, also see\ @matrix-transpose],

[#builtin([`mat(`...`)`])],
[],
Expand Down Expand Up @@ -607,8 +607,8 @@ Functions: `differential(`\*_args_, \*\*_kwargs_`)`, abbreviated as `dd(`...`)`.
column-gutter: 2em,

[
*(1)* #hl(`dd(f), dd(x,y)`) \
$ dd(f), dd(x,y) $
*(1)* #hl(`dd(f), f(x,y) dd(x,y)`) \
$ dd(f), f(x,y) dd(x,y) $
],
[
*(2)* #hl(`dd(x,3), dd(f,[k]), dd(f,[k],d:delta)`) \
Expand Down Expand Up @@ -785,7 +785,7 @@ 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 $],
)

=== Matrix transpose with superscript T <matrix-tranpose>
=== Matrix transpose with superscript T <matrix-transpose>

#v(1em)

Expand Down
4 changes: 3 additions & 1 deletion physica.typ
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@
arr.push($dsym#var$)
}
}
$#arr.join(prod)$
// Wrap in op(...) to give it smart spacing, just like Typst's built-in "dif"
// symbol. For example, there should be a space in the middle of "f(x) dx".
$op(#arr.join(prod))$
}
#let dd = differential

Expand Down
7 changes: 4 additions & 3 deletions typst.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ keywords = [
"physics", "mathematics", "brace", "set", "product", "evaluate", "restrict",
"integral", "gradient", "divergence", "curl", "vector", "field", "laplacian",
"matrix", "determinant", "diagonal", "identity", "Jacobian", "Hessian",
"Dirac", "braket", "differential", "derivative", "partial", "dv", "odv",
"pdv", "Planck", "hbar", "tensor", "isotope", "signal", "electromagnetism",
"mechanics", "quantum", "relativity", "imaginary", "notation",
"transpose", "Dirac", "braket", "differential", "derivative", "partial",
"dv", "odv", "pdv", "Planck", "hbar", "tensor", "isotope", "signal",
"electromagnetism", "mechanics", "quantum", "relativity", "imaginary",
"notation",
]
compiler = "0.10.0"
exclude = ["*.pdf", "*.py"]
Expand Down

0 comments on commit b537089

Please sign in to comment.