Skip to content

Пакет Typst для ввода решения задач по физике, химии

License

Notifications You must be signed in to change notification settings

gym-8/solving-physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Пакет Typst для ввода решения задач по физике, химии

Topics

Resources

License

Stars

Watchers

Forks

Languages