Skip to content
forked from tingerrr/subpar

A typst package for creating sub figures.

License

Notifications You must be signed in to change notification settings

ZoranSun/subpar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subpar

Subpar is a Typst package for creating sub figures.

#import "@preview/subpar:0.2.0"

#set page(height: auto)
#set par(justify: true)

#subpar.grid(
  figure(image("/assets/andromeda.jpg"), caption: [
    An image of the andromeda galaxy.
  ]), <a>,
  figure(image("/assets/mountains.jpg"), caption: [
    A sunset illuminating the sky above a mountain range.
  ]), <b>,
  columns: (1fr, 1fr),
  caption: [A figure composed of two sub figures.],
  label: <full>,
)

Above in @full, we see a figure which is composed of two other figures, namely @a and @b.

ex

Contributing

Contributions are most welcome, make sure to let others know you're working on something beforehand so no two people waste their time working on the same issue. It's recommended to have typst-test installed to run tests locally.

Documentation

A guide and API-reference for subpar can be found in it's manual.

About

A typst package for creating sub figures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Typst 96.7%
  • Just 3.3%