artasparks / gpub

GPub: Go Publishing for Glift
MIT License
16 stars 3 forks source link

GPub should be able to create tex fragments #55

Closed amj closed 7 years ago

amj commented 8 years ago

It'd be nice to not make a whole book out of a SGF, maybe just a few diagrams that could be \input into an existing tex shibboleth. Thanks!

artasparks commented 7 years ago

This is now done via renderDiagramsStream(fn) or renderDiagramsStream(fn, opt)

A worked example: https://github.com/Kashomon/gpub-examples/blob/master/streamed-example/index.js