[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-732859-105":3,"doc-detail-732859-en":80,"detail-sidebar-cat-0-en-105":188,"doc-similar-732859":230},{"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":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","pandoc-users-guide-using-pandoc","Pandoc User’s Guide - Using pandoc","","Pandoc User’s Guide covers how to use Pandoc for converting and producing documents from one format to another. It explains specifying input/output formats, character encoding, and workflows for creating PDFs and reading from the web. The guide details command-line options for readers and writers, citation and math rendering behaviors, templates and template syntax, variables, metadata handling, and extensibility through numerous extensions and Markdown features.",{"@graph":14,"@context":72},[15,34,55],{"@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/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/pandoc-users-guide-using-pandoc/732859/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/pandoc-users-guide-using-pandoc/732859.png","ImageObject",300,407,{"name":42,"@type":43},"McQueen","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-11-22",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does the Pandoc User’s Guide explain about creating a PDF?","Question",{"text":62,"@type":63},"It describes the process and relevant settings for generating a PDF output, including format specification and related options.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How are options organized in the guide?",{"text":67,"@type":63},"The guide separates options into general options, reader options, writer options, and options that affect specific writers, and then covers behaviors like citation and math rendering.",{"name":69,"@type":60,"acceptedAnswer":70},"What are templates and template syntax used for?",{"text":71,"@type":63},"Templates and their syntax define how output is structured. The guide also covers variables, delimiters, conditionals, loops, and partials to customize rendering.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},732859,1795382560,{"code":4,"msg":81,"data":82},"success",{"doc_id":78,"user_id":83,"nickname":42,"user_avatar":84,"doc_module":4,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":86,"file_id":87,"file_url":88,"file_type":89,"file_size":90,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":91,"language":92,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":93,"faqs":94,"seo_title":95,"seo_description":12,"update_tm":79,"read_time":96,"preview_page_count":97,"preview_urls":98},5909890329169,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc",6,"Pandoc User’s Guide  \nJohn MacFarlane 2026-11-10  \nContents  \nSynopsis 1  \nDescription 3  \nUsing pandoc ..................................... 3  \nSpecifying formats .................................. 4  \nCharacter encoding .................................. 4  \nCreating a PDF .................................... 5  \nReading from the Web ................................ 5  \nOptions 7  \nGeneral options .................................... 7  \nReader options .................................... 12  \nGeneral writer options ................................ 15  \nOptions affecting specific writers .......................... 19  \nCitation rendering .................................. 27  \nMath rendering .................................... 28  \nOptions for wrapper scripts ............................. 29  \nExit codes 31  \nDefaults files 33  \nGeneral options .................................... 34  \nReader options .................................... 35  \nGeneral writer options ................................ 35  \nOptions affecting specific writers .......................... 36  \nCitation rendering .................................. 37  \nMath rendering in HTML .............................. 38  \nOptions for wrapper scripts ............................. 38  \nTemplates 39  \nTemplate syntax ................................... 40  \nComments .................................... 40  \nDelimiters .................................... 40  \nInterpolated variables .............................. 40  \nConditionals ................................... 41  \nFor loops ..................................... 42  \nPartials ...................................... 43  \nNesting ..................................... 44  \nBreakable spaces ................................ 44  \nPipes ....................................... 45  \nContents  \nVariables ....................................... 46  \nMetadata variables ............................... 46  \nLanguage variables ............................... 47  \nVariables for HTML ............................... 48  \nVariables for HTML math ........................... 50  \nVariables for HTML slides ........................... 50  \nVariables for Beamer slides ........................... 50  \nVariables for PowerPoint ............................ 51  \nVariables for LaTeX ............................... 51  \nVariables for ConTeXt ............................. 55  \nVariables for wkhtmltopdf ........................... 56  \nVariables for man pages ............................ 56  \nVariables for Texinfo .............................. 57  \nVariables for Typst ............................... 57  \nVariables for ms ................................. 57  \nVariables for RTF ................................ 58  \nVariables set automatically ........................... 58  \nExtensions 61  \nTypography ...................................... 61  \nExtension: smart ................................ 61  \nHeadings and sections ................................ 62  \nExtension: auto_identifiers ......................... 62  \nExtension: ascii_identifiers ........................ 63  \nExtension: gfm_auto_identifiers ....................... 63  \nMath Input ...................................... 63  \nRaw HTML/TeX ................................... 63  \nLiterate Haskell support ............................... 64  \nExtension: literate_haskell ......................... 64  \nOther extensions ................................... 65  \nExtension: empty_paragraphs ......................... 65  \nExtension: native_numbering ......................... 65  \nExtension: x refs_name ............................. 66  \nExtension: x refs_number ............................ 66  \nExtension: styles ................................ 66  \nExtension: amuse ................................ 67  \nExtension: raw_markdown ............................ 67  \nExtension: citations (typst) .......................... 67  \nExtension: citations (org) ........................... 67  \nExtension: c","cbCaiu2yVDQLgqvU","https://ap.wps.com/l/cbCaiu2yVDQLgqvU","pdf",549417,182,"English","# Synopsis\n# Description\n# Using pandoc\n## Specifying formats\n## Character encoding\n## Creating a PDF\n## Reading from the Web\n# Options\n## General options\n## Reader options\n## General writer options\n## Options affecting specific writers\n## Citation rendering\n## Math rendering\n# Templates\n## Template syntax\n## Comments\n## Delimiters\n## Interpolated variables\n## Conditionals\n## For loops\n## Partials\n## Nesting\n## Breakable spaces\n## Pipes\n# Variables\n## Metadata variables\n## Language variables\n# Extensions\n## Typography\n## Extension: smart\n## Extension: auto_identifiers\n## Extension: ascii_identifiers\n## Extension: gfm_auto_identifiers\n## Math Input","[{\"question\":\"What does the Pandoc User’s Guide explain about creating a PDF?\",\"answer\":\"It describes the process and relevant settings for generating a PDF output, including format specification and related options.\"},{\"question\":\"How are options organized in the guide?\",\"answer\":\"The guide separates options into general options, reader options, writer options, and options that affect specific writers, and then covers behaviors like citation and math rendering.\"},{\"question\":\"What are templates and template syntax used for?\",\"answer\":\"Templates and their syntax define how output is structured. The guide also covers variables, delimiters, conditionals, loops, and partials to customize rendering.\"}]","Pandoc User’s Guide - Using pandoc | PDF",459,19,[99,103,107,111,115,120,124,129,134,139,144,149,154,159,164,169,174,179,184],{"page_no":22,"url":100,"width":101,"height":102},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/65f3e20dec8ade8a4a9a59a222264830.webp",983,1272,{"page_no":26,"url":104,"width":105,"height":106},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/90688f481e06ff63d1078f43ebb95058.webp",982,1270,{"page_no":30,"url":108,"width":109,"height":110},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/ba6888c9f6d9a9b5d82b9113adf59ba7.webp",981,1269,{"page_no":33,"url":112,"width":113,"height":114},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/53a052363ac9eb3f7cf3e0ad13e0b11f.webp",980,1268,{"page_no":116,"url":117,"width":118,"height":119},5,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c4b5b16fe736fb39cc0111b9c80469e6.webp",979,1267,{"page_no":85,"url":121,"width":122,"height":123},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/843e7aad502a93ef89c879582c9f17f6.webp",978,1265,{"page_no":125,"url":126,"width":127,"height":128},7,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/399baeb29643814db52278b0f13b6fed.webp",977,1264,{"page_no":130,"url":131,"width":132,"height":133},8,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c5d73bd51b229701600d23db01353832.webp",976,1263,{"page_no":135,"url":136,"width":137,"height":138},9,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/61092fd4403c18847a5b8469c970dc2b.webp",975,1261,{"page_no":140,"url":141,"width":142,"height":143},10,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/2d9d6f418a8028bf7262760014adf8a9.webp",974,1260,{"page_no":145,"url":146,"width":147,"height":148},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/2b98ffe3fe05038d30be9a6c69e7146d.webp",973,1259,{"page_no":150,"url":151,"width":152,"height":153},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/affce09e64294ec2c974a8e9f83f3020.webp",972,1257,{"page_no":155,"url":156,"width":157,"height":158},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/840ff96ab3ef92b609a6ec7530ca3965.webp",971,1256,{"page_no":160,"url":161,"width":162,"height":163},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/a90f6fe539b43e129a3b9ee98d57de83.webp",970,1255,{"page_no":165,"url":166,"width":167,"height":168},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/cc4d9b2ae2c555a4e5aad57f79508092.webp",969,1254,{"page_no":170,"url":171,"width":172,"height":173},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/76d14499a16cac1192955d9663d3be86.webp",968,1252,{"page_no":175,"url":176,"width":177,"height":178},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/cf74eccb5b79941b99f27c499667a8e2.webp",967,1251,{"page_no":180,"url":181,"width":182,"height":183},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/e9e0e708322dd4e8b2a1941ff13d6774.webp",966,1250,{"page_no":97,"url":185,"width":186,"height":187},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c2ba83b9edae4412c15481bad2d82689.webp",965,1248,{"code":4,"msg":81,"data":189},[190,194,198,202,206,209,213,217,221,224,227],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":191,"show_sort_weight":192,"slug":193},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":195,"show_sort_weight":196,"slug":197},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":199,"show_sort_weight":200,"slug":201},"Exam",70,"exam",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":203,"show_sort_weight":204,"slug":205},"Comic",60,"comic",{"id":85,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":207,"slug":208},50,"technology",{"id":125,"doc_module":4,"doc_module_name":25,"category_name":210,"show_sort_weight":211,"slug":212},"Healthcare",40,"healthcare",{"id":130,"doc_module":4,"doc_module_name":25,"category_name":214,"show_sort_weight":215,"slug":216},"Research & Report",30,"research-report",{"id":135,"doc_module":4,"doc_module_name":25,"category_name":218,"show_sort_weight":219,"slug":220},"Religion & Spirituality",20,"religion-spirituality",{"id":219,"doc_module":4,"doc_module_name":25,"category_name":222,"show_sort_weight":219,"slug":223},"World Cup","world-cup",{"id":140,"doc_module":4,"doc_module_name":25,"category_name":225,"show_sort_weight":140,"slug":226},"Lifestyle","lifestyle",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":228,"show_sort_weight":116,"slug":229},"General","general",{"list":231,"token":11},[232,238,244,250,256,262,268,274,280,286],{"doc_id":233,"doc_title":234,"file_type":89,"home_preview_img_url":235,"slug":236,"view_count":116,"category_name":29,"create_tm":237},703188,"Pandoc User’s Guide - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013446049/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=mJM5PTOUAY6jS%2F3LTIXvNOaP%2BdQ%3D","pandoc-users-guide-table-of-contents",1794562577,{"doc_id":239,"doc_title":240,"file_type":89,"home_preview_img_url":241,"slug":242,"view_count":135,"category_name":29,"create_tm":243},678102,"Obsidian Markdown Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994560354/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=yWu9trYSBuWymgJET1B8eeVNvms%3D","obsidian-markdown-cheat-sheet",1793784222,{"doc_id":245,"doc_title":246,"file_type":89,"home_preview_img_url":247,"slug":248,"view_count":30,"category_name":29,"create_tm":249},732862,"rmarkdown - Dynamic Documents for R Version 2.31","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=WOXRhptef4gtxwJp6G4nM6HuFgo%3D","rmarkdown-dynamic-documents-for-r-version-231",1795382571,{"doc_id":251,"doc_title":252,"file_type":89,"home_preview_img_url":253,"slug":254,"view_count":30,"category_name":29,"create_tm":255},685847,"R Markdown - An Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999698626/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=U4Y16MA5dn3JGfUYjRHNWLXSlp4%3D","r-markdown-an-introduction",1794019543,{"doc_id":257,"doc_title":258,"file_type":89,"home_preview_img_url":259,"slug":260,"view_count":116,"category_name":29,"create_tm":261},698003,"md4r - R package Markdown parser using the MD4C library","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155849/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=nzuSwo5wTOow1kVvrE5DRvNUlS0%3D","md4r-r-package-markdown-parser-using-the-md4c-library",1794446945,{"doc_id":263,"doc_title":264,"file_type":89,"home_preview_img_url":265,"slug":266,"view_count":33,"category_name":29,"create_tm":267},687455,"Codebraid Preview for VS Code - Live Pandoc Markdown Preview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001260990/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=od66uBH1FcrCkXn4y%2FPLKfDiyBg%3D","codebraid-preview-for-vs-code-live-pandoc-markdown-preview",1794083728,{"doc_id":269,"doc_title":270,"file_type":89,"home_preview_img_url":271,"slug":272,"view_count":116,"category_name":29,"create_tm":273},657587,"Pandoc for TeXnicians - Presentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975592280/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=ANDGlZmKRMEUQtcOMf2Ja%2BtXNf0%3D","pandoc-for-texnicians-presentation",1792983945,{"doc_id":275,"doc_title":276,"file_type":89,"home_preview_img_url":277,"slug":278,"view_count":160,"category_name":29,"create_tm":279},348240,"Markdown Cheatsheet - A Quick Reference Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078349/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=b009nF%2Fx4pAxvRjDr%2FDhdaQzsWk%3D","markdown-cheatsheet-a-quick-reference-guide",1790071913,{"doc_id":281,"doc_title":282,"file_type":89,"home_preview_img_url":283,"slug":284,"view_count":160,"category_name":29,"create_tm":285},348231,"Markdown Cheatsheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=R1lxnJDuUCO0N8OrrhqRB5T0wLg%3D","markdown-cheatsheet",1790071893,{"doc_id":287,"doc_title":288,"file_type":89,"home_preview_img_url":289,"slug":290,"view_count":116,"category_name":29,"create_tm":291},685841,"Markdown Syntax Guide - Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227664/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=KQcEvj6pJBK8Gy%2BBYicDM%2FDH2n8%3D","markdown-syntax-guide-quick-reference",1794019531]