Convert Markdown + LaTeX to DOCX
Many LLM answers come as Markdown, and math often appears as LaTeX. Converting this into Word can be messy unless you preserve headings, lists, and equations properly.
What works best
- Headings (
#,##), lists, and code blocks. - Inline math
$E = mc^2$and block math$$...$$. - Clean Markdown (avoid mixing HTML unless necessary).
Suggested prompt for your LLM
Copy/paste this prompt:
Format the answer in Markdown. Use LaTeX for equations (inline: $...$, block: $$...$$). Avoid HTML. Use headings and bullet points where appropriate.