How to convert Markdown to LaTeX

Run pandoc notes.md -s -o notes.tex to get a complete LaTeX document; math written as $…$ and $$…$$ comes through by default, and math written as \(…\) and \[…\] needs -f markdown+tex_math_single_backslash. In Manulyx, New project → Markdown takes pasted text or a .md file and makes a LaTeX project that compiles as it is, with all four kinds of math and the top heading as the title.

Convert it yourself with pandoc

pandoc notes.md -s -o notes.tex --number-sections
# math written as \( \) and \[ \], as many AI answers write it:
pandoc -f markdown+tex_math_single_backslash notes.md -s -o notes.tex

What pandoc loses

What to check after converting

How Manulyx does it

Text written in Markdown, from a notes app, a README or an AI assistant's answer, becomes a LaTeX project: New project → Markdown, paste the text (or choose a .md file in New project → Import). Manulyx runs pandoc and makes a complete document that compiles as it is.

Questions

Does pandoc convert math written as \( \) and \[ \]?

Not by default. Add -f markdown+tex_math_single_backslash; math written as $…$ and $$…$$ works without it.

How do I cite references in Markdown for LaTeX?

Write [@key] in the text and keep the entries in a .bib file. Convert with --natbib or --biblatex to get \cite commands, or with --citeproc --bibliography=refs.bib to get formatted citations.

Can I turn an AI assistant's answer into a LaTeX document?

Yes. Copy the answer as Markdown and convert it with the tex_math_single_backslash option, or paste it into New project → Markdown in Manulyx.

What happens to pictures when I paste Markdown into Manulyx?

Pasted text cannot carry pictures, so each one becomes a framed note naming the file. Upload the picture and point to it there.

Start free

Or read the guide first: Help: Markdown.

Other conversions