Questions about PANDOC

Craig's Avatar

Craig

17 Aug, 2023 03:55 PM

Hello!

First let me preface this with a disclaimer. I am not very good at zsh or understanding file paths.

I use pandoc to convert my markdown into academic papers. I use pandoc citations (bibliography is compiled by Zotero in BibTex, style is provided by a Turabian Notes CSL file) and use citeproc and custom templates to achieve this.

I am using the most recent version of Marked2 from the App Store.

I would like to use Marked2 to accomplish the same thing but I couldn't get Pandoc to preprocess the document because I couldn't find the correct file path.

  1. Am I on the right track with continuing to use pandoc to preprocess?
  2. How do I find the file path.
  3. Does Marked2 support PPT? That would be swell. I use Pandoc for this also.

Thank you!

  1. Support Staff 1 Posted by Brett on 17 Aug, 2023 04:29 PM

    Brett's Avatar

    1. I believe you'll want to use Pandoc as the processor, not the
    preprocessor. Pandoc should be outputting the final HTML, so you don't
    want it additionally processed by one of the built-in processors.
    2. Open terminal and type `which pandoc`. The path that is output should
    be a full path to the pandoc executable. You may need to add a backslash
    before any spaces in the path.
    3. No, Marked only works with HTML. It's possible to ALSO have the
    custom processor output a PPT next to it, but Marked won't be able to
    preview it or anything and this would take some scripting.

    With the MAS version of Marked, you will likely run into issues with
    getting Pandoc to work, due to sandboxing. If you go up to the Help menu
    in Marked, there's an option to crossgrade to the direct (unsandboxed)
    version. It will provide a license code and instructions.

    -Brett

    On 17 Aug 2023, at 10:57, Craig wrote:

  2. 2 Posted by Craig on 17 Aug, 2023 06:24 PM

    Craig's Avatar

    Alrighty! Thank you!

    Is there a way to get Marked2 to work with Zotero for academic references (bibliography files formated like bibtex) and CSL for footnoting without using PANDOC?

  3. Support Staff 3 Posted by Brett on 17 Aug, 2023 06:40 PM

    Brett's Avatar

    No, such functionality is well outside the scope of a Markdown
    previewer, which is why the capability of using custom processors was
    added.

    -Brett

    On 17 Aug 2023, at 13:23, Craig wrote:

  4. 4 Posted by mazal on 05 Sep, 2023 02:15 AM

    mazal's Avatar

    I'm quite new to all of this, @Craig, and you seem more advanced than myself. However, I'm finding Zettlr in conjunction with Marked2 useful. Zettlr integrates Zotero, Pandoc, and BibTex, plus a host of components above my pay grade to opine about. It does not explicitly show export to PPT (PowerPoint?) on my setup, but there are 15 other formats to export out of the box (with Pandoc integration and your experience, PPT seems within their wheelhouse?)

    Zettlr is a free and Open Source markdown editor, that appears tailor-made for academics. Their tagline is, "Your One-Stop Publication Workbench." What Zettlr does NOT have is a parser/renderer for live preview, which is what makes Marked2 such a valuable add-on utility. I'm still in the trial version of Marked2, but I love it! and will be purchasing the license.

  5. 5 Posted by Ken Tryon on 28 Oct, 2023 04:46 PM

    Ken Tryon's Avatar

    @mazal Not an academic (although I do IT in a university medical center), and I really like Zettler's approach. I'm starting to write personal memoir which also quotes sources a lot (I'm a geek . . . ), so I'm using academic tools.

    @Brett, I'm pretty new to Marked. It appears that at its core, Marked is a Markdown to HTML processor—is that accurate? Just trying understand its purpose and positioning.

    Thanks,

    kt

  6. Support Staff 6 Posted by Brett on 29 Oct, 2023 12:48 AM

    Brett's Avatar

    That is absolutely correct. Marked primarily handles Markdown->HTML, all of its other export formats are a result of the HTML conversion first and foremost.

  7. 7 Posted by Ken Tryon on 30 Oct, 2023 07:06 PM

    Ken Tryon's Avatar

    @Brett--thanks for confirming that. Knowing what a tool is supposed to do helps to prevent me from asking it to do things it isn't. Hammers, nails, screws, and all that.

    kt

  8. 8 Posted by mazal on 17 Jan, 2024 02:47 PM

    mazal's Avatar

    @kt Love this story and use case!

    Not an academic (although I do IT in a university medical center), and I really like Zettler's approach. I'm starting to write personal memoir which also quotes sources a lot (I'm a geek . . . ), so I'm using academic tools.

  9. 9 Posted by Ken Tryon on 17 Jan, 2024 09:39 PM

    Ken Tryon's Avatar

    @mazal Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac