Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RailToolkit track schematics

License: ISC User Manual

Typst package for drawing track schematics based on CeTZ.

image

#import "@preview/railtoolkit-trackschematics:0.1.0"
#import "@preview/cetz:0.5.2"

#cetz.canvas({
  import railtoolkit-trackschematics.draw: *

  track((), (east: 6), name: "tr-1")

  turnout("tr-1.1")
  track((), (north-east: 1), (east: 2), (south-east: 1), name: "tr-2")
  turnout(())

  track("tr-2.3", (east: 1), end: "]")
})

See manual for further documentation.

Testing

Tytanic is used for testing. Please refer to tytanic documentation for installation and usage.

Principles

  • The package is designed to integrate seamlessly with CeTZ
  • The use of references over absolute coordinates should be encouraged
  • Symbols should be easily exchangeable

Licensing

This package is distributed under the ISC License.

About

Typst package for drawing track schematics based on CeTZ

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages