2.4 KiB
2.4 KiB
description, argument-hint, allowed-tools, disable-model-invocation
| description | argument-hint | allowed-tools | disable-model-invocation |
|---|---|---|---|
| Transform document to match target template style | <input> <target-style> | Bash, Read, Write | true |
/pandoc:restyle - Restyle Document
Ask Claude to transform a document's frontmatter and structure to match a target template style.
Available Styles
academic-paper- Academic paper with citationsthesis- Thesis/report with title pagearticle- Simple articlepresentation-beamer- PDF slidespresentation-reveal- Web slides
What It Does
- Reads current document and analyzes frontmatter
- Replaces frontmatter with target template style
- Preserves all markdown content
- Suggests structural improvements if needed
Quick Reference
OCR → Academic Paper:
# Before (OCR metadata)
---
title: "Document Title"
processed_date: "2025-11-15"
ocr_model: "model-name"
---
# After (Academic)
---
title: "Paper Title"
author: "Author Name"
date: "Month Year"
bibliography: references.bib
csl: harvard.csl
documentclass: report
fontsize: 12pt
geometry: margin=1in
numbersections: true
---
Simple → Thesis:
# Before
---
title: "Document"
author: "Name"
---
# After
---
title: "Thesis Title"
author: "Student Name"
supervisor: "Supervisor Name"
institution: "University Name"
department: "Department Name"
degree: "Degree Name"
bibliography: references.bib
csl: harvard.csl
documentclass: report
toc: true
lof: true
lot: true
---
Workflow
- Backup:
cp document.md document.md.bak - Ask Claude to restyle to target template
- Review frontmatter changes
- Edit custom fields (author, title, etc.)
- Validate: Check document is ready
- Convert: Generate output
Ask Claude
"Restyle this document to match the thesis template" "Transform this OCR output to academic paper format" "Convert this to presentation style" "Reformat this with proper academic frontmatter"
Common Transformations
Template from PDF/OCR:
- Remove:
source,processed_date,ocr_model,processor - Add:
author,date,documentclass,geometry - Update:
titleto actual document title
Blog/Draft → Academic:
- Add:
bibliography,csl,documentclass - Add:
fontsize,geometry,numbersections - Structure: Academic section organization
Article → Thesis:
- Add:
supervisor,institution,department,degree - Add:
toc,lof,lot - Add: Abstract, Declaration, Acknowledgements sections