theam / haskell-do

:pencil2: :bar_chart: - The Haskell code editor focused on interactive development.
Apache License 2.0
352 stars 31 forks source link

PDF Exporting #11

Open NickSeagull opened 7 years ago

NickSeagull commented 7 years ago

We need to be able to export PDF's using pandoc or something.

kitfre commented 7 years ago

It could be nice to have markdown exporting as well. Or something that makes it easy to export a notebook into say a blog post.

tonyday567 commented 7 years ago

Having a Main.lhs rather than a Main.hs would make this much easier. Pandoc has a markdown+lhs option so rendering would then be something like:

pandoc -i Main.lhs -o main.pdf -f markdown+lhs -t pdf
NickSeagull commented 7 years ago

Absolutely agree with @tonyday567

ocramz commented 7 years ago

But I hope the .hs -> .lhs conversion will be handled by the IDE (this https://github.com/jeffreyrosenbluth/Literate does that)

SamuelSchlesinger commented 7 years ago

In agreeance with @tonyday567 as well, though I like the idea of being able to write LaTeX in the editor instead of markdown, or in addition to it, if we were to use it as a backend. In this sense I disagree with your last point @ocramz unless we cover that use case as well

NickSeagull commented 7 years ago

@SamuelSchlesinger Pandoc's markdown handles inline LaTeX so no problem with that 😄

ocramz commented 7 years ago

I'll leave this here for now: http://casual-effects.com/markdeep/ this is a javascript snippet that acts as a Markdown renderer with additional features such as MathJax (see also my #25 ), some diagramming options, and advanced formatting.