Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX export #33

Open
3 tasks
cben opened this issue Mar 8, 2014 · 10 comments
Open
3 tasks

LaTeX export #33

cben opened this issue Mar 8, 2014 · 10 comments

Comments

@cben
Copy link
Owner

cben commented Mar 8, 2014

  • Either use Docverter or host pandoc myself on heroku.
  • One-click button to then import into writelatex and/or sharelatex.

Far away:

  • Markdown lint that warns about suspicious markdown (e.g. list not preceded by newline).
@cben
Copy link
Owner Author

cben commented Mar 11, 2014

Tempted to host pandoc myself, to have unrestricted choice of markdown flavors, and to json input/output which would make easy to run arbitrary client-side filters in javascript (2 round trips but who cares).

@cben
Copy link
Owner Author

cben commented May 19, 2014

Pie-in-the-sky plans:

In the long term, I’m dreaming of creating a markdown normailzation & export wizard, at which point it’d be easier to run pandoc myself than use docverter:

  • give user fine-grained control over markdown extensions (and show the exact pandoc command line)
  • offer markdown->markdown conversion between dialects
  • markdown “lint” highlighting possible mistakes and suboptimal syntaxes (missing blank lines before header/list, “lazy” wrapping etc.)
  • for latex export, create combined pandoc+sharelatex app with 3 panes: markdown->tex->pdf.
    Users would be able to edit only the markdown and see tex and pdf update; when happy with result, download tex.

@cben
Copy link
Owner Author

cben commented May 21, 2014

@cben
Copy link
Owner Author

cben commented May 29, 2014

Hmm, Gitbook has several issues about scientific features (math, footnotes and/or citations). They seem receptive to adopting pandoc extensions.
Perhaps Gitbook should be used for quality export to PDF/epub? The problem is that it uses Marked, has no latex export, so it's not in the normal path to a And Mathdown is certainly not the best platform to full-length books...
Still, should keep an eye on it for dialect compatibility...

@cben
Copy link
Owner Author

cben commented Aug 11, 2015

  1. I've wrapped Pandoc in a web service. You can try it here https://github.com/mrded/pandoc-as-a-service and here http://pandoc-as-a-service.com
    -- http://stackoverflow.com/a/31028085/239657

  2. I had an itch to scratch, and I wanted to get a bit more familiar with Openshift. [...] This is a simple app that takes the URL of a markdown file on GitHub, and outputs a pandoc converted PDF. I wanted to use pandoc specifically, because it produces PDF’s that were beautifully created with LaTeX.
    -- https://ttboj.wordpress.com/2014/10/18/hacking-out-an-openshift-app/

@cben
Copy link
Owner Author

cben commented Aug 11, 2015

The latter installs pandoc on OpenShift by copying the files and latex by running texlive installer.
[https://github.com/purpleidea/pdfdoc/blob/master/INSTALL.md]

@cben
Copy link
Owner Author

cben commented Aug 11, 2015

@cben
Copy link
Owner Author

cben commented Aug 11, 2015

pandoc-as-a-service does support specifying custom markdown extensions :-)

$ curl -H "Content-Type: text/markdown_github-blank_before_header+tex_math_dollars+tex_math_single_backslash" -X POST http://pandoc-as-a-service.com/html -d '
foo
# header
$math^2$
'
<p>foo</p>
<h1 id="header">header</h1>
<p><span class="math"><em>m</em><em>a</em><em>t</em><em>h</em><sup>2</sup></span></p>

@cben
Copy link
Owner Author

cben commented Aug 11, 2015

  • Whatever I use, I'll want to run my own instance for privacy of doc content.

@cben
Copy link
Owner Author

cben commented Dec 17, 2022

markup.rocks was a cool demo of pandoc-compiled-to-JS but it's unmaintained for 7 years.

This is a sizable project, I'm not gonna work on this any time soon (see #172).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant