[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-574134-105":3,"detail-sidebar-cat-1-en-105":79,"doc-detail-574134-en":125},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","pandoc-cheat-sheet-conversion-options","Pandoc Cheat Sheet - conversion options","","Pandoc Cheat Sheet by Seth Kenlon provides a focused set of command examples and flags for converting documents between common formats. It explains text conversion workflows, multi-file EPUB generation, and key EPUB controls such as chapter-level structure, table of contents, cover image assignment, font embedding, and EPUB metadata and stylesheet files. It also lists PDF options using engines like pdflatex and alternative engines, plus general options for Bash completion, headers, link handling, numbering sections, and code formatting controls including highlight languages, styles, stripping comments, and custom themes.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/presentations/","Presentations",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/pandoc-cheat-sheet-conversion-options/574134/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/pandoc-cheat-sheet-conversion-options/574134.png","ImageObject",442,249,{"name":42,"@type":43},"Genevieve","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-14",true,{"@type":51,"interactionType":52,"userInteractionCount":26},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What does Pandoc do in this cheat sheet?","Question",{"text":61,"@type":62},"Pandoc is used to convert files from one document format to many other formats. The sheet concentrates on common conversion cases and reusable command options.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"Which EPUB-related options are highlighted?",{"text":66,"@type":62},"The cheat sheet covers EPUB chapter-level behavior and TOC generation, specifying data directories, setting the cover image, embedding fonts, adding XML metadata, and applying an EPUB stylesheet.",{"name":68,"@type":59,"acceptedAnswer":69},"How are PDF conversion options handled?",{"text":70,"@type":62},"It shows setting the PDF engine (e.g., pdflatex) and configuring PDF metadata such as the document title. It also lists other supported PDF engines.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},574134,1792019898,{"code":4,"msg":80,"data":81},"success",[82,86,91,96,101,106,111,116,121],{"id":83,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":84,"slug":85},11,90,"presentations",{"id":87,"doc_module":22,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},12,"Resumes",80,"resumes",{"id":92,"doc_module":22,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},14,"Invoices",70,"invoices",{"id":97,"doc_module":22,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},15,"Posters",60,"posters",{"id":102,"doc_module":22,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},16,"Social Media",50,"social-media",{"id":107,"doc_module":22,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},17,"Forms",40,"forms",{"id":112,"doc_module":22,"doc_module_name":25,"category_name":113,"show_sort_weight":114,"slug":115},18,"Letters",30,"letters",{"id":117,"doc_module":22,"doc_module_name":25,"category_name":118,"show_sort_weight":119,"slug":120},21,"Paper Templates",5,"papers-templates",{"id":122,"doc_module":22,"doc_module_name":25,"category_name":123,"show_sort_weight":4,"slug":124},158,"General","general-158",{"code":4,"msg":80,"data":126},{"doc_id":77,"user_id":127,"nickname":42,"user_avatar":128,"doc_module":22,"category_id":83,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":129,"file_id":130,"file_url":131,"file_type":132,"file_size":133,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":26,"language":134,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":135,"faqs":136,"seo_title":137,"seo_description":12,"update_tm":138,"read_time":22},1374391974585,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Pandoc Cheat Sheet BY SETH KENLON  \nPandoc is the “Swiss Army Knife” of document conversion. Using it , you can convert files from one document format to nearly any other format. This cheat sheet covers some of the most common cases.  \nText conversion  \npandoc --from rst --to markdown --output [FILE.md](FILE.md) FILE.rst pandoc --from markdown --output FILE.docx [FILE.md](FILE.md)  \npandoc --output FILE.epub [FILE1.md](FILE1.md) [FILE2.md](FILE2.md)  \nreStructuredText to Markdown Markdown to .docx  \nMultiple files to Epub  \nEpub options  \n--epub-chapter-level 2  \n--toc--data-dir ~ /my-pandoc-data--epub-cover-image mycover .jpg--epub-embed-font myfont .otf  \n--epub-metadata my .xml  \n--epub-stylesheet my .css  \nCreate chapters at each level-2 header (default is 1) Generate table of contents  \nLocation of data files (epub.css , templates , and so on) Set cover image  \nEmbed font  \nFile containing XML metadata. For example:  \n\u003Cdc:rights>Creative Commons\u003C/dc:rights>\u003Cdc :creator> Seth Kenlon\u003C/dc :creator>  \n\u003Cdc:title>Panodc Cheatsheet\u003C/dc:title> Multiple files to Epub  \nPDF options  \n- -pdf-engine pdflatex  \n-M title: \"My PDF \"  \nSet PDF converter to pdflatex (requires LaTeX) . Other engines include: weasyprint , xelatex , lualatex , pdfroff , ConTeXt , wkhtmltopdf , and prince  \nSet PDF title to \"My PDF\" in PDF metadata  \n[opensource.com](opensource.com) [Mastodon fosstodon.org/@osdc](Mastodon fosstodon.org/@osdc) CC BY-SA 4.0  \nPandoc Cheat Sheet BY SETH KENLON  \nGeneral options  \neval $ (pandoc --bash-completion)--list-input-formats--list-output-formats--include-in-header myheader .txt--reference-links  \n--number-sections  \nAdd to your ~/ . bashrc file to enable Bash completion See valid formats for --from option  \nSee valid formats for --to option  \nInclude header.txt in each page header  \nConvert all links to footnotes (do not place inline) Number each section heading  \nCode formatting  \n--list-highlight-languages  \n--list-highlight-styles  \n--strip-comments  \n--no-highlight  \n- -print-highlight-style mystyle .theme--highlight-style mystyle .theme  \nSee available languages for code syntax highlighting See available styles of code syntax highlighting Remove HTML comments from Markdown or Textile Do not highlight code syntax  \nDump highlighting data to create a custom theme Use custom theme for syntax highlighting  \nCommon format notation  \nasciidoc beamer commonmark  \ncontext creole docbook  \ndocbook4  \ndocbook5 docx do kuwiki dzslides  \nepubepub2  \nepub3 fb2  \ngfm haddock html html4  \nhtml5 icml  \njats  \njson latex man markdown  \nmarkdown_g it hub  \nmarkdown_mmd  \nmarkdown_phpextra markdown_strict mediawiki  \nms  \nmuse native odt  \nopendocument  \nopml org plain pptx revealjs rst  \nrtf  \ns5  \nslideous  \nslidy t2t  \ntei texinfo  \ntextile tikiwiki  \ntwiki vimwiki zimwiki  \n[opensource.com](opensource.com) [Mastodon fosstodon.org/@osdc](Mastodon fosstodon.org/@osdc) CC BY-SA 4.0","cbCaidxSMpnotGDC","https://ap.wps.com/l/cbCaidxSMpnotGDC","pdf",432997,"English","# Text conversion\n## EPUB options\n## PDF options\n# General options\n# Code formatting\n# Common format notation","[{\"question\":\"What does Pandoc do in this cheat sheet?\",\"answer\":\"Pandoc is used to convert files from one document format to many other formats. The sheet concentrates on common conversion cases and reusable command options.\"},{\"question\":\"Which EPUB-related options are highlighted?\",\"answer\":\"The cheat sheet covers EPUB chapter-level behavior and TOC generation, specifying data directories, setting the cover image, embedding fonts, adding XML metadata, and applying an EPUB stylesheet.\"},{\"question\":\"How are PDF conversion options handled?\",\"answer\":\"It shows setting the PDF engine (e.g., pdflatex) and configuring PDF metadata such as the document title. It also lists other supported PDF engines.\"}]","Pandoc Cheat Sheet - conversion options | PDF",1791979552]