DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

2

Which LaTeX dialect do you use?

Recently, I found that I can beautifully convert Markdown to PDF, with not only <pre><code> syntax highlighting, but also LaTeX syntaxes for page break, and PDF includes.

Markdown with LaTeX

However, some important markdown features are missing, including

  • Cannot style with CSS (I tried using color: blue; for text color), or JS async (e.g. for extended syntax highlighter, like Prism.js or highlight.js)
  • Cannot include online images
  • Local images are relative to present working directory $PWD, rather than file location

This follows the fact that there are multiple markdown implementations, as well as one may write plugins for markdown compilers.

There seems to be multiple LaTeX implementations as well, and what is included by default (by pdflatex, texlive, VSCode extension) might not be exactly what you want.

Also, RMarkdown in RStudio seem to be working well, both for PDF printing and HTML for web.

So, what do you suggest? (especially for printed pages authoring)

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay