Skip to content

p16i/latex-sketch-plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Latex Sketch Plugin

This plugin brings LaTeX functionalities to Sketch. It allows us to write mathematical formulas directly inside Sketch. The implementation is based on MathJax's API.

This plugin was developed during Sketch Plugin Hackathon, Berlin, 27 + 28 October 2017.

Installation

The pluging can be downloaded from the Release page.

For Sketch version below 61.1

The latest version that supports Sketch version below 61.1 is v0.5.2.

CLI Commands

# build with hot reload
npm run watch

# build for production
npm run build

# for publishing
skpm publish minor

Debugging

To view the output of your console.log, you have a few different options:

  • Open Console.app and look for the sketch logs
  • Use Safari's web inspector to debug your plugin's javascript context
  • Look at the ~/Library/Logs/com.bohemiancoding.sketch3/Plugin Output.log file

Skpm provides a convenient way to do the latter:

skpm log

The -f option causes skpm log to not stop when the end of logs is reached, but rather to wait for additional data to be appended to the input

Contributor

  • Andrew Nicolaou

Acknoledgements

  • Pieter Omvlee and Mathieu Dutour for supports during the hackathon.
  • Roy van Rooijen, Sergi Miral, IXDS Berlin and all people behind Design Tools Berlin for organizing this hackathon.

License

MIT