How to get Pandoc to respect custom table styles in Word templates

Turns out Word tables obey one magic name: “Table” — cue eye-rolls and memes

TLDR: Pandoc, a text-to-Word tool, only applies your custom table look if you name the style “Table”. Commenters mostly shrugged with “just call it Table” pragmatism, while others mocked the post’s front-page rise and memed about the “One True Table” ruling their docs.

A workplace hero tried to prettify tables when turning plain text into Word docs with Pandoc (a tool that converts files), only to discover the secret cheat code: name your table style exactly “Table.” That’s it. No hidden wizardry, no XML spelunking, just the exact name. The author admits they avoided chatbots after bad experiences, only to learn later Google’s AI would’ve told them the fix in one sentence. Ouch. The crowd’s reaction? Equal parts shrug, snark, and “One True Table” memes.

The strongest take comes from a commenter insisting you should be able to clone a style—call it “MyTABLE”—but acknowledging Pandoc’s rules are what they are: crown the style “Table” and move on. Others rolled their eyes at the story making the Hacker News front page, with one calling it a “weird ranking.” The vibe: half the room saying “this is obvious,” half relieved someone wrote it down, and a third inventing a religion around The Canonical Table. Cue jokes like “rename your life to Table” and “XML exorcisms are canceled.” For anyone who’s ever spent a Saturday arguing with Word, this is a strangely relatable saga: the magic name wins, and the internet delivers snarky confetti. Read the Pandoc user guide before you fight the style gods again.

Key Points

  • Pandoc applies table formatting from a Word table style specifically named “Table” in reference.docx.
  • Microsoft Word does not include a default table style named “Table,” which can cause confusion.
  • To use custom table styles, create a new Word table style named “Table” in the template and customize it.
  • The author initially tried exporting styles via Word’s Style Organizer and considered XML edits before finding the simpler method.
  • Pandoc’s user guide notes the table style name requirement, but it may be easy to overlook.

Hottest takes

"clone TABLE to MyTABLE, and apply styles to that" — ggm
"all tables stem from the one true canonical table style" — ggm
"this post in HN homepage now? what a weird ranking" — oriettaxx
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.