{"id":"dff09268-a2c5-4b33-aad1-1a52226b9a57","shortId":"nFqRbw","kind":"skill","title":"latex-paper-conversion","tagline":"This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling.","description":"# LaTeX Paper Conversion\n\n## Overview\n\nThis skill automates the tedious and recurring process of converting an academic paper written in LaTeX from one publisher's template to another. Different journals (e.g., Springer, MDPI, IEEE) have vastly different structural requirements, document classes, margin settings, and bibliography styles. This skill streamlines these conversions by executing a structured multi-stage workflow, extracting content, mapping it to a new template, and resolving common compilation errors.\n\n## When to Use This Skill\n\n- Use when the user requests to port an existing LaTeX paper to a new journal's format.\n- Use when the user provides an existing `.tex` file and a new template directory.\n- Use when the user mentions converting from format A (e.g., IPOL/Neural Processing) to format B (e.g., MDPI).\n\n## How It Works\n\n### Step 1: Pre-requisites & Assessment\nIdentify the **Source LaTeX file** and asking the user for the **Target Template Directory**. Understand the core layout mapping (single-column vs. double-column, bibliography style).\n\n### Step 2: Extraction & Injection Script Generation\nCreate a Python script (e.g., `convert_format.py`) to parse the source LaTeX file. Use Regular Expressions to extract core text blocks. Merge the new template's `preamble`, the extracted `body`, and the `backmatter`. Write this to a new file in an output directory.\n\n### Step 3: Systematic Fixing\nPerform generic fixes on the extracted body text before writing the final file, or in subsequent calls:\n- Convert math environment cases (e.g., `\\begin{theorem}` to `\\begin{Theorem}`).\n- Adjust aggressive float placements (e.g., `[!t]` or `[h!]`) to template-supported options. Avoid forcing `[H]` unless the `float` package is explicitly loaded.\n- Ensure `\\includegraphics` paths are relative to the new `.tex` file location.\n- Convert `\\begin{tabular}` to `\\begin{tabularx}{\\textwidth}` or use `\\resizebox` if moving to a double-column layout.\n\n### Step 4: Compilation & Debugging\nRun a build cycle (`pdflatex` -> `bibtex` -> `pdflatex`). Check the `.log` file using `grep` or `rg` to systematically fix any packages conflicts, undefined commands, or compilation halts.\n\n## Examples\n\n### Example 1: Converting IPOL to MDPI\n\\```\nUSER: \"I need to convert my paper 'SAHQR_Paper.tex' to the MDPI format located in the 'MDPI_template_ACS' folder.\"\nAGENT: *Triggers latex-paper-conversion skill*\n1. Analyzes source `.tex` and target `template.tex`.\n2. Creates Python script to extract Introduction through Conclusion.\n3. Injects content into MDPI template.\n4. Updates image paths and table float parameters `[h!]` to `[H]`.\n5. Compiles via pdflatex and bibtex to confirm zero errors.\n\\```\n\n## Best Practices\n\n- ✅ Always write a Python extraction script; DO NOT manually copy-paste thousands of lines of LaTeX.\n- ✅ Always run `pdflatex` and verify the `.log` to ensure the final output compiles.\n- ✅ Explicitly ask the user for the structural mapping if the source and target differ drastically (e.g., merging abstract and keywords).\n- ❌ Don't assume all math packages automatically exist in the new template (e.g., add `\\usepackage{amsmath}` if missing).\n\n## Common Pitfalls\n\n- **Problem:** Overfull hboxes in tables when moving from single to double column.\n  **Solution:** Detect `\\begin{tabular}` and automatically wrap in `\\resizebox{\\columnwidth}{!}{...}` or suggest a format change.\n- **Problem:** Undefined control sequence errors during compilation.\n  **Solution:** Search the `Paper.log` and include the missing `\\usepackage{}` in the converted template.\n\n## Additional Resources\n\n- [Overleaf LaTeX Documentation](https://www.overleaf.com/learn)\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["latex","paper","conversion","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding"],"capabilities":["skill","source-sickn33","skill-latex-paper-conversion","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/latex-paper-conversion","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34726 github stars · SKILL.md body (3,992 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-23T12:51:08.887Z","embedding":null,"createdAt":"2026-04-18T21:39:44.255Z","updatedAt":"2026-04-23T12:51:08.887Z","lastSeenAt":"2026-04-23T12:51:08.887Z","tsv":"'/learn)':566 '1':170,366,397 '2':204,404 '3':252,413 '4':335,419 '5':430 'abstract':489 'ac':388 'academ':17,57 'add':505 'addit':559 'adjust':282 'agent':390 'aggress':283 'alway':442,459 'amsmath':507 'analyz':398 'anoth':28,68 'ask':13,181,473,600 'assess':174 'assum':494 'autom':35,48 'automat':498,529 'avoid':295 'b':163 'backmatt':240 'begin':277,280,317,320,526 'best':440 'bibliographi':85,201 'bibtex':343,435 'block':228 'bodi':237,261 'boundari':608 'build':340 'call':271 'case':275 'chang':538 'check':345 'clarif':602 'class':81 'clear':575 'column':196,200,332,523 'columnwidth':533 'command':360 'common':110,510 'compil':41,111,336,362,431,471,545 'conclus':412 'confirm':437 'conflict':358 'content':101,415 'control':541 'convers':4,44,91,395 'convert':15,55,154,272,316,367,375,557 'convert_format.py':214 'copi':452 'copy-past':451 'core':191,226 'creat':209,405 'criteria':611 'cycl':341 'debug':337 'describ':579 'detect':525 'differ':69,77,485 'directori':148,188,250 'document':80,563 'doubl':199,331,522 'double-column':198,330 'drastic':486 'e.g':24,30,71,158,164,213,276,286,487,504 'ensur':305,467 'environ':274,591 'environment-specif':590 'error':112,439,543 'exampl':364,365 'execut':93 'exist':126,141,499 'expert':596 'explicit':303,472 'express':223 'extract':36,100,205,225,236,260,409,446 'file':143,179,220,246,267,314,348 'final':266,469 'fix':38,254,257,355 'float':284,300,425 'folder':389 'forc':296 'format':23,29,39,134,156,162,382,537 'generat':208 'generic':256 'grep':350 'h':289,297,427,429 'halt':363 'hbox':514 'identifi':175 'ieee':32,74 'imag':421 'includ':551 'includegraph':306 'inject':37,206,414 'input':605 'introduct':410 'ipol':26,368 'ipol/neural':159 'journal':70,132 'keyword':491 'latex':2,20,42,61,127,178,219,393,458,562 'latex-paper-convers':1,392 'layout':192,333 'limit':567 'line':456 'load':304 'locat':315,383 'log':347,465 'manual':450 'map':102,193,479 'margin':82 'match':576 'math':273,496 'mdpi':31,73,165,370,381,386,417 'mention':153 'merg':229,488 'miss':509,553,613 'move':327,518 'multi':97 'multi-stag':96 'natur':33 'need':373 'new':106,131,146,231,245,312,502 'one':22,63 'option':294 'output':249,470,585 'overful':513 'overleaf':561 'overview':45 'packag':301,357,497 'paper':3,18,43,58,128,377,394 'paper.log':549 'paramet':426 'pars':216 'past':453 'path':307,422 'pdflatex':342,344,433,461 'perform':255 'permiss':606 'pitfal':511 'placement':285 'port':124 'practic':441 'pre':172 'pre-requisit':171 'preambl':234 'problem':512,539 'process':53,160 'provid':139 'publish':64 'python':211,406,445 'recur':52 'regular':222 'relat':309 'request':122 'requir':79,604 'requisit':173 'resizebox':325,532 'resolv':109 'resourc':560 'review':597 'rg':352 'run':338,460 'safeti':607 'sahqr_paper.tex':378 'scope':578 'script':207,212,407,447 'search':547 'sequenc':542 'set':83 'singl':195,520 'single-column':194 'skill':6,47,88,117,396,570 'skill-latex-paper-conversion' 'solut':524,546 'sourc':177,218,399,482 'source-sickn33' 'specif':592 'springer':25,72 'stage':98 'step':169,203,251,334 'stop':598 'streamlin':89 'structur':78,95,478 'style':86,202 'subsequ':270 'substitut':588 'success':610 'suggest':535 'support':293 'systemat':253,354 'tabl':424,516 'tabular':318,527 'tabularx':321 'target':186,402,484 'task':574 'tedious':50 'templat':66,107,147,187,232,292,387,418,503,558 'template-support':291 'template.tex':403 'test':594 'tex':142,313,400 'text':227,262 'textwidth':322 'theorem':278,281 'thousand':454 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'treat':583 'trigger':391 'undefin':359,540 'understand':189 'unless':298 'updat':420 'use':9,115,118,135,149,221,324,349,568 'usepackag':506,554 'user':12,121,138,152,183,371,475 'valid':593 'vast':76 'verifi':463 'via':432 'vs':197 'work':168 'workflow':99 'wrap':530 'write':241,264,443 'written':59 'www.overleaf.com':565 'www.overleaf.com/learn)':564 'zero':438","prices":[{"id":"46405a2f-41e7-4047-8d1a-6867528a740f","listingId":"dff09268-a2c5-4b33-aad1-1a52226b9a57","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:39:44.255Z"}],"sources":[{"listingId":"dff09268-a2c5-4b33-aad1-1a52226b9a57","source":"github","sourceId":"sickn33/antigravity-awesome-skills/latex-paper-conversion","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/latex-paper-conversion","isPrimary":false,"firstSeenAt":"2026-04-18T21:39:44.255Z","lastSeenAt":"2026-04-23T12:51:08.887Z"}],"details":{"listingId":"dff09268-a2c5-4b33-aad1-1a52226b9a57","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"latex-paper-conversion","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34726,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-23T06:41:03Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"c69ea2a2079102dc2c139bdee1bc80d7931b5cc1","skill_md_path":"skills/latex-paper-conversion/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/latex-paper-conversion"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"latex-paper-conversion","description":"This skill should be used when the user asks to convert an academic paper in LaTeX from one format (e.g., Springer, IPOL) to another format (e.g., MDPI, IEEE, Nature). It automates extraction, injection, fixing formatting, and compiling."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/latex-paper-conversion"},"updatedAt":"2026-04-23T12:51:08.887Z"}}