Skip to content

Le-foucheur/Typst-VarTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VarTable

An easy way to render variation table on typst, built on fletcher
The documention

#import "@preview/Tabvar:0.1.0": tabvar

Few examples

Trigonometric functions

Turn this :

#import "@preview/Tabvar:0.1.0": tabvar

#tabvar(
  init: (
    variable: $x$,
    label: (
      ([sign of cos], "Sign"),
      ([variation of cos], "Variation"),
      ([sign of sin], "Sign"),
      ([variation of sin], "Variation"),
    ),
  ),
  domain: ($0$, $ pi / 2 $, $ pi $, $ (2pi) / 3 $, $ 2 pi $),
  content: (
    ($-$, (), $+$, ()),
    (
      (top, $1$),
      (),
      (bottom, $-1$),
      (),
      (top, $1$),
    ),
    ($+$, $-$, (), $+$),
    (
      (center, $0$),
      (top, $1$),
      (),
      (bottom, $-1$),
      (top, $1$),
    ),
  ),
)

Into this

trigonometric function

hyperbolic function $f(x) = 1/x $

#import "@preview/Tabvar:0.1.0": tabvar

#tabvar(
    init: (
        variable: $x$,
    label: (
        ([sign of $f$], "Sign"),
      ([variation of $f$], "Variation"),
    ),
  ),
  domain: ($ -oo $, $ 0 $, $ +oo $),
  content: (
      ($+$, ("||", $+$)),
    (
        (center, $0$),
      (bottom, top, "||", $-oo$, $+oo$),
      (center, $0$),
    ),
  ),
)

hyperbolic function

known issues

  • if you put too wide an element for the last value of a variation table, this can create a space between the edge of the table and the lines separating the lines of the table

·change log·

0.1.2 :

  • Support fletcher 0.5.2

0.1.1 :

  • added customisation of separator bars between signs
0.1.0 :
  • publishing the package

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages