[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686741-105":59,"doc-detail-686741-en":130,"doc-similar-686741":259},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","the-listings-package-version-1-users-guide","The Listings Package - Version 1 - User's guide","","The Listings package is a LaTeX source-code printing system that typesets standalone files and verbatim-like listings, and can generate code snippets using a command similar to \\verb. It provides a key=value interface with many parameters controlling layout and appearance, supports different programming languages, and enables custom definitions when a language is not already included. Guidance covers installation, loading the package, styling, line numbers, special characters, and advanced techniques.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/the-listings-package-version-1-users-guide/686741/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/the-listings-package-version-1-users-guide/686741.png","ImageObject",300,407,{"name":92,"@type":93},"Marglet","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-13","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the Listings package do in LaTeX?","Question",{"text":112,"@type":113},"It prints source code in a typeset form, supporting standalone files and verbatim-like listings, and it can also produce code snippets via inline commands.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are output options configured?",{"text":117,"@type":113},"Many parameters control the output through a key=value interface, along with interfaces for preferences, options, and style/language definitions.",{"name":119,"@type":110,"acceptedAnswer":120},"Does it support customization for unsupported programming languages?",{"text":121,"@type":113},"Yes. Many parameters are available, and if a preferred programming language is not already supported, users can make their own definitions.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},686741,1794062405,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":145,"preview_urls":146},2336477982702,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","The Listings Package  \nCopyright 1996–2004, Carsten Heinz Copyright 2006–2007, Brooks Moses Copyright 2013–, Jobst Hoffmann Maintainer: Jobst Hoffmann∗ \u003Cj . hoffmann(at)[fh-aachen. de](fh-aachen. de) >  \n2025/11/14 Version 1.11b  \nAbstract  \nThe listings package is a source code printer for LATEX. You can typeset stand alone files as well as listings with an environment similar to verbatim as well as you can print code snippets using a command similar to \\verb. Many parameters control the output and if your preferred programming language isn’t already supported, you can make your own definition.  \nUser’s guide 5  \n1 Getting started 5  \n1. 1 A minimal file . . . . . . . . . 5  \n1.2 Typesetting listings . . . . . 5 1.3 Figure out the appearance . . 7  \n1.4 Seduce to use . . . . . . . . . 8  \n1.5 Alternatives . . . . . . . . . . 9  \n2 The next steps 11  \n2. 1 Software license . . . . . . . . 11  \n2.2 Package loading . . . . . . . 12  \n2.3 The key=value interface . . . 13 2.4 Programming languages . . . 13  \n2.4. 1 Preferences . . . . . . . . . 15  \n2.5 Special characters . . . . . . 15  \n2.6 Line numbers . . . . . . . . . 17  \n2.7 Layout elements . . . . . . . 19  \n2.8 Emphasize identifiers . . . . . 22  \n2.9 Indexing . . . . . . . . . . . . 23  \n2.10 Fixed and flexible columns . 24  \n3 Advanced techniques 25  \n3.1 Style definitions ........ 25  \n3.2 Language definitions ..... 25  \n3.3 Delimiters . . . . . . . . . . . 26  \n3.4 Closing and credits ...... 28  \nReference guide 29  \n∗ Jobst Hoffmann became the maintainer of the listings package in 2013; see the Preface for details.  \n4 Main reference 29 4. 1 How to read the reference . . 29 4.2 Typesetting listings . . . . . 30  \n4.3 Options . . . . . . . . . . . . 31  \n4.3.1 Searching for files . . . . . 31 4.3.2 Space and placement . . . . 31 4.3.3 The printed range . . . . . 32 4.3.4 Languages and styles . . . 33 4.3.5 Figure out the appearance . 34 4.3.6 Getting all characters right 35  \n4.3.7 Line numbers . . . . . . . . 36  \n4.3.8 Captions . . . . . . . . . . 37  \n4.3.9 Margins and line shape . . 38  \n4.3. 10 Frames . . . . . . . . . . . 40  \n4.3.11 Indexing . . . . . . . . . . . 41  \n4.3.12 Column alignment ..... 42  \n4.3.13 Escaping to LATEX ..... 43  \n4.4 Interface to fancyvrb ..... 45  \n4.5 Environments . . . . . . . . . 46  \n4.6 Short Inline Listing Commands 46  \n4.7 Language definitions ..... 46  \n4.8 Installation . . . . . . . . . . 51  \n5 Experimental features 52 5.1 Listings inside arguments . . 52 5.2 † Export of identifiers . . . . 53 5.3 † Hyperlink references . . . . 53 5.4 Literate programming . . . . 54  \n5.5 LGrind definitions . . . . . . . 55  \n5.6 † Automatic formatting . . . 55 5.7 Arbitrary linerange markers . 56 5.8 Multicolumn Listings . . . . . 58  \nTips and tricks 58  \n6 Troubleshooting 58  \n7 Bugs and workarounds 59  \n7.1 Listings inside arguments .. 59  \n7.2 Listings with a background colour and LATEX escaped formulas ............. 59  \n8 How tos 60  \nDeveloper’s guide 64  \n9 Basic concepts 64  \n9.1 Package loading . . . . . . . 64  \n9.2 How to define lst-aspects . . 67  \n9.3 Internal modes . . . . . . . . 70  \n9.4 Hooks . . . . . . . . . . . . . 72  \n9.5 Character tables . . . . . . . 75  \n9.6 On the output . . . . . . . . 76  \n10 Package extensions 78  \n10.1 Keywords and working identifiers ............. 78  \n10.2 Delimiters . . . . . . . . . . . 79  \n10.3 Getting the kernel run .... 82  \n11 Useful internal definitions 83  \n11.1 General purpose macros ... 83  \n11.2 Character tables manipulated 85  \nImplementation 86  \n12 Overture 86  \n13 General problems 89  \n13.1 Substring tests ........ 90  \n13.2 Flow of control . . . . . . . . 92  \n13.3 Catcode changes ....... 93  \n13.4 Applications to 13.3 ..... 95  \n13.5 Driver file handling* ..... 97  \n13.6 Aspect commands ...... 100  \n13.7 Interfacing with keyval .... 102  \n13.8 Internal modes . . . . . . . . 103  \n13.9 Diverse helpers . . . . . . . . 105  \n14 Doing output 106  \n14.1 Basic registers and keys .","cbCaifRABCmNuOsQ","https://ap.wps.com/l/cbCaifRABCmNuOsQ","pdf",1428517,241,"English","# User’s guide\n## Getting started\n## The next steps\n## Advanced techniques\n# Reference guide\n## Main reference\n## Experimental features\n# Tips and tricks\n# Developer’s guide\n## Basic concepts\n## Package extensions\n## Implementation\n# Troubleshooting and bugs\n## Troubleshooting\n## Bugs and workarounds\n# How tos\n# Documentation support","[{\"question\":\"What does the Listings package do in LaTeX?\",\"answer\":\"It prints source code in a typeset form, supporting standalone files and verbatim-like listings, and it can also produce code snippets via inline commands.\"},{\"question\":\"How are output options configured?\",\"answer\":\"Many parameters control the output through a key=value interface, along with interfaces for preferences, options, and style/language definitions.\"},{\"question\":\"Does it support customization for unsupported programming languages?\",\"answer\":\"Yes. Many parameters are available, and if a preferred programming language is not already supported, users can make their own definitions.\"}]","The Listings Package - Version 1 - User's guide | PDF",607,25,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/06c55312cab3c759c7863babda7e64a4.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1fd90bbe7e78111b6ba8f92497e51444.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/37acd78b8193920cdbc28e19033011ec.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8b41469dd516421d38efb9fba9150afe.webp",980,1385,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c1ccf1877c58266279001b35a9993734.webp",979,1384,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/125e387f6ad92500750e616e22e2f38b.webp",978,1383,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f1250b2316ab08dfb70448b9d63d387d.webp",977,1381,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/12b9109bb4f38ffc29a92f75e576f435.webp",976,1380,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7afafbb4555ba53aefdd92880aa5fdfd.webp",975,1378,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b1e4af23fd7c5d1109fcda843a41eb05.webp",974,1377,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6938a4ce8412f11ad7b5ea8444d62d5f.webp",973,1375,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cd0b629035f3343e1cba90547b671263.webp",972,1374,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a3fad390ed216a60d1dd11b583dcd6dc.webp",971,1373,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/456df17cf5aab37d86485753b63c8f9b.webp",970,1371,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a3832b20899eb930d5c3e906016ccd7b.webp",969,1370,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/396ba93d1f01a0b2ff587402470998e3.webp",968,1368,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6dda1a95dfc7bf7145c37c5e88c01e9e.webp",967,1367,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a58fedbcbcb83339d970dba7c406a316.webp",966,1366,{"page_no":56,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2f0199980f501ff11b37a3938f898469.webp",965,1364,{"page_no":46,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/486c1a0b71e6490959e535996bcc8f40.webp",964,1363,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/70054a9d97ee7cf976084f639205aa7a.webp",963,1361,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c20c0ffabecad9e20b2782627e8b0a11.webp",962,1360,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/806b711b0dcc1d246cc5f9f558f77953.webp",961,1358,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/069e2c7dd82e4d3796f44922433e1ec8.webp",960,1357,{"page_no":145,"url":256,"width":257,"height":258},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d03645e4a5d931b55492e819fb231cc9.webp",959,1356,{"list":260,"token":66},[261,267,273,279,285,291,297,303,309,315],{"doc_id":262,"doc_title":263,"file_type":137,"home_preview_img_url":264,"slug":265,"view_count":19,"category_name":30,"create_tm":266},686736,"The Listings Package - User's guide - Getting started - Step by step","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000580566/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=MLi2eBpOr%2FpaZB2i73kltikqGSE%3D","the-listings-package-users-guide-getting-started-step-by-step",1794062392,{"doc_id":268,"doc_title":269,"file_type":137,"home_preview_img_url":270,"slug":271,"view_count":46,"category_name":30,"create_tm":272},139779,"Emoji support in LuaLaTeX - Basic usage and technical details","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229865440322/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=Yd4YBEJzfB2vo0ZmDredXgOF2ts%3D","emoji-support-in-lualatex-basic-usage-and-technical-details",1787562341,{"doc_id":274,"doc_title":275,"file_type":137,"home_preview_img_url":276,"slug":277,"view_count":39,"category_name":30,"create_tm":278},656937,"Lewis Structures in LATEX - Using the lewis package","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975336515/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=C2bIls2UPnuO9QyZ%2F5aOyAG60%2FA%3D","lewis-structures-in-latex-using-the-lewis-package",1792971564,{"doc_id":280,"doc_title":281,"file_type":137,"home_preview_img_url":282,"slug":283,"view_count":39,"category_name":30,"create_tm":284},657519,"Mdiagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975532033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=09qbma0xsg8ZADfben%2BW9NyL7%2Bk%3D","mdiagrams",1792981946,{"doc_id":286,"doc_title":287,"file_type":137,"home_preview_img_url":288,"slug":289,"view_count":24,"category_name":30,"create_tm":290},669402,"THE KNITTING PACKAGE - written guide for LaTeX/TEX knitting chart fonts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988612059/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=lyR109k3g2rf9Ye3w6TSAXk1OGU%3D","the-knitting-package-written-guide-for-latextex-knitting-chart-fonts",1793553230,{"doc_id":292,"doc_title":293,"file_type":137,"home_preview_img_url":294,"slug":295,"view_count":44,"category_name":30,"create_tm":296},656624,"Writing a Patent Application in LATEX and LYX","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974796302/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=yxdLcVwpaTCdlEs7L3lUmTOnL8Q%3D","writing-a-patent-application-in-latex-and-lyx",1792969684,{"doc_id":298,"doc_title":299,"file_type":137,"home_preview_img_url":300,"slug":301,"view_count":81,"category_name":30,"create_tm":302},699578,"New Computer Fan Data-Science Set-up - Python (Anaconda), R (Rstudio), Matlab and Latex (Texlive)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011320290/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=1UnaPSy7BB4r0ZyobPsuuKH4SRQ%3D","new-computer-fan-data-science-set-up-python-anaconda-r-rstudio-matlab-and-latex-texlive",1794479724,{"doc_id":304,"doc_title":305,"file_type":137,"home_preview_img_url":306,"slug":307,"view_count":19,"category_name":30,"create_tm":308},686249,"The Great, Big List of LATEX Symbols - Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000474476/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=ACGFmiSxjp58CsU2FWPR%2Bj1K1CE%3D","the-great-big-list-of-latex-symbols-reference",1794033990,{"doc_id":310,"doc_title":311,"file_type":137,"home_preview_img_url":312,"slug":313,"view_count":19,"category_name":30,"create_tm":314},688633,"CS109 LaTeX Cheat Sheet - Quick Reference for CS109","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000661523/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=s6IhvjUDWdvm7w8s81beqb2RuJQ%3D","cs109-latex-cheat-sheet-quick-reference-for-cs109",1794090354,{"doc_id":316,"doc_title":317,"file_type":137,"home_preview_img_url":318,"slug":319,"view_count":24,"category_name":30,"create_tm":320},673433,"List of Mathematical Symbols - reference for using LaTeX math-mode symbols","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990826542/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796121119&Signature=OzCJwdpY7Lg4btBAToluTf2xPRU%3D","list-of-mathematical-symbols-reference-for-using-latex-math-mode-symbols",1793638344]