/tex:md-to-latexfrom tex
Convert Markdown to LaTeX format. Use when the user asks to convert, transform, or change Markdown files to LaTeX, or mentions converting .md files to .tex files.
Ships in tex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Convert Markdown documents to LaTeX format with comprehensive support for common Markdown syntax.
npx tsx plugins/tex/scripts/md-to-latex.ts <text>
npx tsx plugins/tex/scripts/md-to-latex.ts --file <input.md>
npx tsx plugins/tex/scripts/md-to-latex.ts --file <input.md> --output <output.tex>
# Heading → \chapter{Heading}## Heading → \section{Heading}### Heading → \subsection{Heading}#### Heading → \subsubsection{Heading}##### Heading → \paragraph{Heading}###### Heading → \subparagraph{Heading}**bold** or __bold__ → \textbf{bold}*italic* or _italic_ → \emph{italic}`code` → \texttt{code}```python
def hello():
print("world")
```
→
\begin{verbatim}
def hello():
print("world")
\end{verbatim}
Unordered lists:
- Item 1
- Item 2
- Nested item
→
\begin{itemize}
\item Item 1
\item Item 2
\item Nested item
\end{itemize}
Ordered lists:
1. First
2. Second
3. Third
→
\begin{enumerate}
\item First
\item Second
\item Third
\end{enumerate}
[text](url) → \href{url}{text} → \begin{figure}[h]\n\centering\n\includegraphics{path}\n\caption{alt}\n\end{figure} → \includegraphics{path} (no caption)> This is a quote
> spanning multiple lines
→
\begin{quote}
This is a quote
spanning multiple lines
\end{quote}
--- → \hrulefillLaTeX special characters (&, %, $, #, _, {, }) are automatically escaped in text content (but not in code blocks).
--file flag)--file: Read input from file--output <file>: Write output to file (default: stdout)npx tsx plugins/tex/scripts/md-to-latex.ts "# Hello World\n\nThis is **bold** text."
npx tsx plugins/tex/scripts/md-to-latex.ts --file document.md --output document.tex
echo "## Section\n\nParagraph with *italic*" | npx tsx plugins/tex/scripts/md-to-latex.ts
$...$ for inline math and $$...$$ for display math)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mearman/marketplace --plugin tex6 skills in this plugin
/latex-to-mdConvert LaTeX to Markdown format. Use when the user asks to convert, transform, or change LaTeX files to Markdown, or mentions converting .tex files to .md files./tex-decodeLaTeX Command DecoderDecode LaTeX commands to Unicode characters. Use when converting LaTeX-encoded text to readable Unicode format, extracting plain text from .tex files, or processing BibTeX entries for display.
/tex-encodeLaTeX Unicode EncoderEncode Unicode characters to LaTeX commands. Use when converting text with special characters (é, ü, ñ, etc.) to LaTeX format for use in .tex files, BibTeX entries, or LaTeX documents.
/tex-protectLaTeX Text ProtectorProtect text from LaTeX interpretation by wrapping in braces. Use when preserving capitalization in BibTeX titles, protecting acronyms from lowercasing, or ensuring specific text isn't interpreted as LaTeX commands.
/tex-stripLaTeX Command StripperStrip all LaTeX commands and extract plain text. Use when extracting readable text from LaTeX documents, removing formatting for analysis, or converting LaTeX to plain text.
Other plugins' skills for the same job