/tex:tex-protectfrom tex
Protect 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.
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.
Wrap text in protective braces to prevent LaTeX from interpreting or modifying it.
npx tsx scripts/protect.ts [options] <text-or-file>
--file - Read input from file instead of command line argument--output <file> - Write output to file--mode <type> - Protection mode: acronyms (default), all, or custom--pattern <regex> - Custom regex pattern for what to protectnpx tsx scripts/protect.ts "The RNA World Hypothesis"
# Output: The {RNA} World Hypothesis
npx tsx scripts/protect.ts "DNA and RNA in COVID-19"
# Output: {DNA} and {RNA} in {COVID-19}
npx tsx scripts/protect.ts --file titles.txt --output protected.txt
npx tsx scripts/protect.ts --mode all "IMPORTANT Notice"
# Output: {IMPORTANT} {Notice}
npx tsx scripts/protect.ts --pattern "[A-Z]{2,}" "DNA RNA ATP"
# Output: {DNA} {RNA} {ATP}
acronyms (default)Protects words with 2+ consecutive uppercase letters:
RNA → {RNA}COVID-19 → {COVID-19}DNA → {DNA}Single uppercase letters are NOT protected: A Study → A Study
allProtects any word starting with uppercase:
Important → {Important}Notice → {Notice}customProtects text matching a custom regex pattern
BibTeX automatically lowercases titles except for protected text:
title = {The RNA World} % → "The rna world" (wrong!)
title = {The {RNA} World} % → "The RNA World" (correct!)
Protects technical terms and acronyms from case changes:
DNA, RNA, HTTP, APICOVID-19, SARS-CoV-2Protects chemical notation:
H2O → {H2O}CO2 → {CO2}To remove protective braces:
npx tsx scripts/unprotect.ts "{RNA} and {DNA}"
# Output: RNA and DNA
Protection works by wrapping matched text in single-level braces {...}. LaTeX treats braced text as a single unit and doesn't modify its capitalization.
The default pattern /\b([A-Z]{2,})\b/g matches:
COVID-19 matchesSingle uppercase letters at word boundaries are intentionally NOT protected to allow normal sentence capitalization.
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./md-to-latexConvert 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./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.
Other plugins' skills for the same job