s

solving-physics

@preview

A package to formulate the solution to a physical problem

v0.1.0
MIT
2 downloads

Package Information

Last Updated
Categories
components
Disciplines
chemistryeducationphysics

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/solving-physics:0.1.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/solving-physics:0.1.0": *

Version History

0.1.0
080728f898c8...

Installation

The easiest method is to import solving-physics: task from the @preview package:

#import "@preview/solving-physics:0.1.0": *

Usage

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$
  ],
  find: [
    $F$ --- ?
  ],
  fig: image("./example.png", width: 5cm)
)[
  #lorem(100)
]

usage

Stroke

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$
  ],
  find: [
    $F$ --- ?
  ],
  stroke: "full"
)[]

full stroke

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$
  ],
  find: [
    $F$ --- ?
  ],
  stroke: "find"
)[]

find stroke

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$
  ],
  find: [
    $F$ --- ?
  ],
  stroke: none
)[]

none stroke

Given width

If you have so large given you may use given-width:

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$ \
    #lorem(10)
  ],
  given-width: 6em,
  find: [
    $F$ --- ?
  ],
)[]

Given width

Figure align

You may locate you figure on the center of body by fig-align: top + center

#task(
  given: [
    $mu = 0.4$ \
    $g = 10$ \
    $m = 20$
  ],
  find: [
    $F$ --- ?
  ],
  fig: image("./example.png", width: 60%),
  fig-align: top + center
)[
  #lorem(100)
]

Figure align