tinycodinglm / doc /doc-0010.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.32 kB
opencode trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

How to convert Markdown to LaTeX

Assistant

Pandoc is the primary tool for Markdown to LaTeX conversion.

Command: pandoc input.md -o output.tex --standalone

For PDF output: pandoc input.md -o output.pdf --pdf-engine=xelatex

Pandoc handles: headers, emphasis, code blocks, lists, tables, links, images, math (passthrough), citations (with --citeproc).

Custom templates: pandoc --template=mytemplate.tex

YAML metadata block for title, author, date, bibliography.

Limitations: complex LaTeX tables, custom commands, some environments need manual post-processing.

Alternative tools: markdown-latex-converter, litedown, RMarkdown knitr engine.