Add Markdown/DOCX → NIME PDF pipeline via pandoc - #22
Draft
cpmpercussion wants to merge 1 commit into
Draft
Conversation
Authors can now write a NIME paper in Markdown (with YAML front matter) or convert from a Word .docx and render it to a NIME-formatted PDF using the same nimeart LaTeX class as the .tex templates. - pandoc/nime.latex: custom pandoc template mapping YAML metadata onto the nimeart/acmart front-matter commands (title, authors, affiliations, abstract, keywords, teaser, acks). Omits pandoc's font/geometry partials to avoid clashes with acmart (e.g. the \Bbbk amssymb conflict) and forces indent mode so parskip is not loaded. - pandoc/nime-tables.lua: renders tables as table+tabular floats since pandoc's default longtable fails in two-column sigconf mode. - pandoc/nime-defaults.yaml: pandoc options (natbib + ACM-Reference-Format, template, filter, variables). - pandoc/example.md, pandoc/example-meta.yaml: worked examples. - Makefile: md-pdf, docx-pdf, docx-md targets + clean updates. - README.md / pandoc/README.md: usage and metadata documentation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
let's keep this one in draft as an example pipeline for working in dox and then moving directly to pdf. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an alternative authoring route: write a NIME paper in Markdown (with YAML front matter) or convert from a Word
.docxand render it to a NIME-formatted PDF using the samenimeartLaTeX class as the existing.textemplates.Usage
Requires pandoc 3.x in addition to the existing LaTeX toolchain.
What's included (
pandoc/)nime.latex— custom pandoc template mapping YAML front matter onto thenimeart/acmart front-matter commands (title, authors, affiliations, abstract, keywords, teaser, acknowledgments).nime-tables.lua— renders Markdown tables astable+tabularfloats.nime-defaults.yaml— pandoc options (natbib + ACM-Reference-Format, template, filter, variables).example.md/example-meta.yaml— worked examples covering every supported field.README.md— metadata reference and usage docs.Plus
Makefiletargets (md-pdf,docx-pdf,docx-md), top-levelREADME.mdsection, and.gitignorerules for generated outputs.Notes on the integration
acmart/nimeart provides its own fonts,
hyperref, and geometry, so the template omits pandoc's font/geometry partials. Three issues found and fixed during real compilation:\Bbbkclash — don't reloadamssymb; acmart provides maths vianewtxmath.longtable not in 1-column mode— pandoc emitslongtablefor every table, which fails in two-columnsigconf; the Lua filter converts them totabularfloats.\bibliographystyle— now exactly one (ACM-Reference-Format), so bibtex picks the right style.Both pipelines were verified to compile end-to-end (pandoc → pdflatex + bibtex) and the rendered PDFs were visually checked.
Known limitation
Pandoc only parses
[@key]citation syntax from Markdown-family input, not from.docxtext. For cited work the Markdown path (ordocx-md→md-pdf) is recommended. Documented inpandoc/README.md.Not included
CI is left untouched — the existing
xu-cheng/latex-actioncontainer may not bundle pandoc. Happy to add a CI job for this pipeline if wanted.🤖 Generated with Claude Code