l

latex-compat

@preview

LaTeX compatibility commands

v0.1.0
MIT

Package Information

Last Updated
Authors
@Neruthes
Categories
utility

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/latex-compat:0.1.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/latex-compat:0.1.0": *

Version History

0.1.0
fcdde0c8ad1f...

This package provides commands that are named from LaTeX equivalents.

Hierarchy

  • #section[]
  • #subsection[]
  • #subsubsection[]

Font

  • #setromanfont(string | dictionary)
  • #setsansfont(string | dictionary)
  • #setmonofont(string | dictionary)
  • #sffamily()
  • #rmfamily()
  • #ttfamily()
  • #mdseries()
  • #bfseries()
  • #upshape()
  • #itshape()
  • #textrm[]
  • #textsf[]
  • #texttt[]
  • #textmd[]
  • #textbf[]
  • #textup[]
  • #textit[]

Miscellaneous

  • #hrulefill
  • #LaTeX

Metadata

  • #title[]
  • #author[]
  • #date[]
  • #maketitle()