longform icon indicating copy to clipboard operation
longform copied to clipboard

Compile: Support generating PDFs

Open kevboh opened this issue 4 years ago • 5 comments

Compile should be able to turn a draft into a single PDF file.

kevboh avatar Aug 01 '21 12:08 kevboh

I don't think that this plugin should be too bloated. There are always plugin for such feature (like the pandoc one). IMO you should think only about the features unique of this plugin

Edo78 avatar Dec 30 '21 20:12 Edo78

If anyone is interested, this can be done right now (and has been doable for a while) via custom compile steps and delegating to something like Pandoc. I'm still interested in adding a dedicated "convert to PDF" compile step, however, although it will never be as full-featured as Pandoc.

kevboh avatar Aug 15 '22 11:08 kevboh

If anyone is interested, this can be done right now (and has been doable for a while) via custom compile steps and delegating to something like Pandoc. I'm still interested in adding a dedicated "convert to PDF" compile step, however, although it will never be as full-featured as Pandoc.

Hi kevboh, I'm late to the party here, but do you have an example on hand of how we can pass to Pandoc during compilation? FYI I mainly need to detect and format citations using Pandoc and then include them as a bibliography at the end, but I'm not at all familiar with Javascript so I have no idea where to start

nonsciencemark avatar Jul 07 '23 11:07 nonsciencemark

If anyone is interested, this can be done right now (and has been doable for a while) via custom compile steps and delegating to something like Pandoc. I'm still interested in adding a dedicated "convert to PDF" compile step, however, although it will never be as full-featured as Pandoc.

Hi kevboh, I'm late to the party here, but do you have an example on hand of how we can pass to Pandoc during compilation? FYI I mainly need to detect and format citations using Pandoc and then include them as a bibliography at the end, but I'm not at all familiar with Javascript so I have no idea where to start

I don't have anything so complex, unfortunately. I'm not super familiar with pandoc's options, but yes, wiring it together will require some JS knowledge at present. Sorry I can't be of more help--just too busy at present to do feature work.

kevboh avatar Jul 09 '23 15:07 kevboh

If anyone is interested, this can be done right now (and has been doable for a while) via custom compile steps and delegating to something like Pandoc. I'm still interested in adding a dedicated "convert to PDF" compile step, however, although it will never be as full-featured as Pandoc.

Hi kevboh, I'm late to the party here, but do you have an example on hand of how we can pass to Pandoc during compilation? FYI I mainly need to detect and format citations using Pandoc and then include them as a bibliography at the end, but I'm not at all familiar with Javascript so I have no idea where to start

I don't have anything so complex, unfortunately. I'm not super familiar with pandoc's options, but yes, wiring it together will require some JS knowledge at present. Sorry I can't be of more help--just too busy at present to do feature work.

No problem! Thanks for the cool plugin

nonsciencemark avatar Jul 10 '23 10:07 nonsciencemark