[{"data":1,"prerenderedAt":1035},["ShallowReactive",2],{"navigation_docs":3,"-technical-writing-algorithms":351,"-technical-writing-algorithms-surround":1030},[4,31,45,83,109,147,197,215,253,291,329],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-play","\u002Fgetting-started","01.getting-started",[10,14,18,22,26],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"Installing Extra Packages","\u002Fgetting-started\u002Finstalling-extra-packages","01.getting-started\u002F03.installing-extra-packages",{"title":23,"path":24,"stem":25},"Basics","\u002Fgetting-started\u002Fbasics","01.getting-started\u002F04.basics",{"title":27,"path":28,"stem":29},"How to Get Help","\u002Fgetting-started\u002Fhow-to-get-help","01.getting-started\u002F05.how-to-get-help",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"AI Integration","i-lucide-bot","\u002Fai-integration","02.ai-integration",[37,41],{"title":38,"path":39,"stem":40},"Model Context Protocol (MCP)","\u002Fai-integration\u002Fmcp","02.ai-integration\u002F01.mcp",{"title":42,"path":43,"stem":44},"Agent Skills","\u002Fai-integration\u002Fskills","02.ai-integration\u002F02.skills",{"title":46,"icon":47,"path":48,"stem":49,"children":50,"page":30},"Document Fundamentals","i-lucide-file-text","\u002Fdocument-fundamentals","03.document-fundamentals",[51,55,59,63,67,71,75,79],{"title":52,"path":53,"stem":54},"Document Structure","\u002Fdocument-fundamentals\u002Fdocument-structure","03.document-fundamentals\u002F01.document-structure",{"title":56,"path":57,"stem":58},"Text Formatting","\u002Fdocument-fundamentals\u002Ftext-formatting","03.document-fundamentals\u002F02.text-formatting",{"title":60,"path":61,"stem":62},"Paragraph Formatting","\u002Fdocument-fundamentals\u002Fparagraph-formatting","03.document-fundamentals\u002F03.paragraph-formatting",{"title":64,"path":65,"stem":66},"Fonts","\u002Fdocument-fundamentals\u002Ffonts","03.document-fundamentals\u002F04.fonts",{"title":68,"path":69,"stem":70},"Colors","\u002Fdocument-fundamentals\u002Fcolors","03.document-fundamentals\u002F05.colors",{"title":72,"path":73,"stem":74},"List Structures","\u002Fdocument-fundamentals\u002Flist-structures","03.document-fundamentals\u002F06.list-structures",{"title":76,"path":77,"stem":78},"Special Characters","\u002Fdocument-fundamentals\u002Fspecial-characters","03.document-fundamentals\u002F07.special-characters",{"title":80,"path":81,"stem":82},"Internationalization","\u002Fdocument-fundamentals\u002Finternationalization","03.document-fundamentals\u002F08.internationalization",{"title":84,"icon":85,"path":86,"stem":87,"children":88,"page":30},"Page Design","i-lucide-layout","\u002Fpage-design","04.page-design",[89,93,97,101,105],{"title":90,"path":91,"stem":92},"Page Layout","\u002Fpage-design\u002Fpage-layout","04.page-design\u002F01.page-layout",{"title":94,"path":95,"stem":96},"Page Headers and Footers","\u002Fpage-design\u002Fcustomizing-page-headers-and-footers","04.page-design\u002F02.customizing-page-headers-and-footers",{"title":98,"path":99,"stem":100},"Title Creation","\u002Fpage-design\u002Ftitle-creation","04.page-design\u002F03.title-creation",{"title":102,"path":103,"stem":104},"Footnotes and Margin Notes","\u002Fpage-design\u002Ffootnotes-and-margin-notes","04.page-design\u002F04.footnotes-and-margin-notes",{"title":106,"path":107,"stem":108},"Rotations","\u002Fpage-design\u002Frotations","04.page-design\u002F05.rotations",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":30},"Tables and Graphics","i-lucide-table","\u002Ftables-and-graphics","05.tables-and-graphics",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Tables","\u002Ftables-and-graphics\u002Ftables","05.tables-and-graphics\u002F01.tables",{"title":120,"path":121,"stem":122},"Floats, Figures and Captions","\u002Ftables-and-graphics\u002Ffloats-figures-and-captions","05.tables-and-graphics\u002F02.floats-figures-and-captions",{"title":124,"path":125,"stem":126},"Importing Graphics","\u002Ftables-and-graphics\u002Fimporting-graphics","05.tables-and-graphics\u002F03.importing-graphics",{"title":128,"path":129,"stem":130},"Introducing Procedural Graphics","\u002Ftables-and-graphics\u002Fintroducing-procedural-graphics","05.tables-and-graphics\u002F04.introducing-procedural-graphics",{"title":132,"path":133,"stem":134},"PGF\u002FTikZ","\u002Ftables-and-graphics\u002Fpgf-tikz","05.tables-and-graphics\u002F05.pgf-tikz",{"title":136,"path":137,"stem":138},"PSTricks","\u002Ftables-and-graphics\u002Fpstricks","05.tables-and-graphics\u002F06.pstricks",{"title":140,"path":141,"stem":142},"MetaPost","\u002Ftables-and-graphics\u002Fmetapost","05.tables-and-graphics\u002F07.metapost",{"title":144,"path":145,"stem":146},"Picture","\u002Ftables-and-graphics\u002Fpicture","05.tables-and-graphics\u002F08.picture",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":30},"Technical Writing","i-lucide-flask-conical","\u002Ftechnical-writing","06.technical-writing",[153,157,161,165,169,173,177,181,185,189,193],{"title":154,"path":155,"stem":156},"Mathematics","\u002Ftechnical-writing\u002Fmathematics","06.technical-writing\u002F01.mathematics",{"title":158,"path":159,"stem":160},"Advanced Mathematics","\u002Ftechnical-writing\u002Fadvanced-mathematics","06.technical-writing\u002F02.advanced-mathematics",{"title":162,"path":163,"stem":164},"Theorems","\u002Ftechnical-writing\u002Ftheorems","06.technical-writing\u002F03.theorems",{"title":166,"path":167,"stem":168},"Algorithms","\u002Ftechnical-writing\u002Falgorithms","06.technical-writing\u002F04.algorithms",{"title":170,"path":171,"stem":172},"Source Code Listings","\u002Ftechnical-writing\u002Fsource-code-listings","06.technical-writing\u002F05.source-code-listings",{"title":174,"path":175,"stem":176},"Chemical Graphics","\u002Ftechnical-writing\u002Fchemical-graphics","06.technical-writing\u002F06.chemical-graphics",{"title":178,"path":179,"stem":180},"Linguistics","\u002Ftechnical-writing\u002Flinguistics","06.technical-writing\u002F07.linguistics",{"title":182,"path":183,"stem":184},"Bibliography Management","\u002Ftechnical-writing\u002Fbibliography-management","06.technical-writing\u002F08.bibliography-management",{"title":186,"path":187,"stem":188},"More Bibliographies","\u002Ftechnical-writing\u002Fmore-bibliographies","06.technical-writing\u002F09.more-bibliographies",{"title":190,"path":191,"stem":192},"Indexing","\u002Ftechnical-writing\u002Findices","06.technical-writing\u002F10.indices",{"title":194,"path":195,"stem":196},"Glossary","\u002Ftechnical-writing\u002Fglossary","06.technical-writing\u002F11.glossary",{"title":198,"icon":199,"path":200,"stem":201,"children":202,"page":30},"Cross-References and Links","i-lucide-link","\u002Fcross-references","07.cross-references",[203,207,211],{"title":204,"path":205,"stem":206},"Labels and Cross Referencing","\u002Fcross-references\u002Flabels-and-cross-referencing","07.cross-references\u002F01.labels-and-cross-referencing",{"title":208,"path":209,"stem":210},"Hyperlinks","\u002Fcross-references\u002Fhyperlinks","07.cross-references\u002F02.hyperlinks",{"title":212,"path":213,"stem":214},"Initials","\u002Fcross-references\u002Finitials","07.cross-references\u002F03.initials",{"title":216,"icon":217,"path":218,"stem":219,"children":220,"page":30},"Specialized Documents","i-lucide-file-badge","\u002Fspecialized-documents","08.specialized-documents",[221,225,229,233,237,241,245,249],{"title":222,"path":223,"stem":224},"Scientific Reports","\u002Fspecialized-documents\u002Fscientific-reports","08.specialized-documents\u002F01.scientific-reports",{"title":226,"path":227,"stem":228},"Letters","\u002Fspecialized-documents\u002Fletters","08.specialized-documents\u002F02.letters",{"title":230,"path":231,"stem":232},"Presentations","\u002Fspecialized-documents\u002Fpresentations","08.specialized-documents\u002F03.presentations",{"title":234,"path":235,"stem":236},"Teacher's Corner","\u002Fspecialized-documents\u002Fteachers-corner","08.specialized-documents\u002F04.teachers-corner",{"title":238,"path":239,"stem":240},"Curriculum Vitae","\u002Fspecialized-documents\u002Fcurriculum-vitae","08.specialized-documents\u002F05.curriculum-vitae",{"title":242,"path":243,"stem":244},"Academic Journals","\u002Fspecialized-documents\u002Facademic-journals","08.specialized-documents\u002F06.academic-journals",{"title":246,"path":247,"stem":248},"Xy-pic","\u002Fspecialized-documents\u002Fxy-pic","08.specialized-documents\u002F07.xy-pic",{"title":250,"path":251,"stem":252},"Creating 3D Graphics","\u002Fspecialized-documents\u002Fcreating-3d-graphics","08.specialized-documents\u002F08.creating-3d-graphics",{"title":254,"icon":255,"path":256,"stem":257,"children":258,"page":30},"Programming LaTeX","i-lucide-code","\u002Fprogramming","09.programming",[259,263,267,271,275,279,283,287],{"title":260,"path":261,"stem":262},"Macros","\u002Fprogramming\u002Fmacros","09.programming\u002F01.macros",{"title":264,"path":265,"stem":266},"Plain TeX","\u002Fprogramming\u002Fplain-tex","09.programming\u002F02.plain-tex",{"title":268,"path":269,"stem":270},"Creating Packages","\u002Fprogramming\u002Fcreating-packages","09.programming\u002F03.creating-packages",{"title":272,"path":273,"stem":274},"Creating Package Documentation","\u002Fprogramming\u002Fcreating-package-documentation","09.programming\u002F04.creating-package-documentation",{"title":276,"path":277,"stem":278},"Themes","\u002Fprogramming\u002Fthemes","09.programming\u002F05.themes",{"title":280,"path":281,"stem":282},"Modular Documents","\u002Fprogramming\u002Fmodular-documents","09.programming\u002F06.modular-documents",{"title":284,"path":285,"stem":286},"Collaborative Writing of LaTeX Documents","\u002Fprogramming\u002Fcollaborative-writing","09.programming\u002F07.collaborative-writing",{"title":288,"path":289,"stem":290},"Export To Other Formats","\u002Fprogramming\u002Fexport-to-other-formats","09.programming\u002F08.export-to-other-formats",{"title":292,"icon":293,"path":294,"stem":295,"children":296,"page":30},"Reference and Help","i-lucide-book-open","\u002Freference","10.reference",[297,301,305,309,313,317,321,325],{"title":298,"path":299,"stem":300},"FAQ","\u002Freference\u002Ffaq","10.reference\u002F01.faq",{"title":302,"path":303,"stem":304},"Tips and Tricks","\u002Freference\u002Ftips-and-tricks","10.reference\u002F02.tips-and-tricks",{"title":306,"path":307,"stem":308},"Errors and Warnings","\u002Freference\u002Ferrors-and-warnings","10.reference\u002F03.errors-and-warnings",{"title":310,"path":311,"stem":312},"Lengths","\u002Freference\u002Flengths","10.reference\u002F04.lengths",{"title":314,"path":315,"stem":316},"Counters","\u002Freference\u002Fcounters","10.reference\u002F05.counters",{"title":318,"path":319,"stem":320},"Boxes","\u002Freference\u002Fboxes","10.reference\u002F06.boxes",{"title":322,"path":323,"stem":324},"Rules and Struts","\u002Freference\u002Frules-and-struts","10.reference\u002F07.rules-and-struts",{"title":326,"path":327,"stem":328},"Command Glossary","\u002Freference\u002Fcommand-glossary","10.reference\u002F08.command-glossary",{"title":330,"icon":331,"path":332,"stem":333,"children":334,"page":30},"Appendices","i-lucide-bookmark","\u002Fappendices","11.appendices",[335,339,343,347],{"title":336,"path":337,"stem":338},"Package Reference","\u002Fappendices\u002Fpackage-reference","11.appendices\u002F01.package-reference",{"title":340,"path":341,"stem":342},"Sample LaTeX Documents","\u002Fappendices\u002Fsample-latex-documents","11.appendices\u002F02.sample-latex-documents",{"title":344,"path":345,"stem":346},"Links","\u002Fappendices\u002Flinks","11.appendices\u002F03.links",{"title":348,"path":349,"stem":350},"Authors","\u002Fappendices\u002Fauthors","11.appendices\u002F04.authors",{"id":352,"title":166,"body":353,"description":1023,"extension":1024,"links":1025,"meta":1026,"navigation":1027,"path":167,"seo":1028,"stem":168,"__hash__":1029},"docs\u002F06.technical-writing\u002F04.algorithms.md",{"type":354,"value":355,"toc":1007},"minimark",[356,360,365,368,402,409,412,435,440,527,531,651,655,676,681,687,696,703,777,781,848,852,866,881,885,968,972,1003],[357,358,359],"p",{},"LaTeX has several packages for typesetting algorithms in the form of \"pseudocode\". They provide stylistic enhancements (bold keywords, indented blocks) so that constructs like loops or conditionals are visually separated from normal text.",[361,362,364],"h2",{"id":363},"notable-packages","Notable Packages",[357,366,367],{},"There are three main packages used to typeset algorithms:",[369,370,371,386,394],"ol",{},[372,373,374,385],"li",{},[375,376,377,381,382],"strong",{},[378,379,380],"code",{},"algorithmicx"," \u002F ",[378,383,384],{},"algpseudocode",": The modern, highly customisable standard.",[372,387,388,393],{},[375,389,390],{},[378,391,392],{},"algorithm2e",": A feature-rich package that uses a declarative keyword style.",[372,395,396,401],{},[375,397,398],{},[378,399,400],{},"algorithmic",": The legacy package (often required by older IEEE journals).",[361,403,405,406,408],{"id":404},"using-algorithmicx-algpseudocode","Using ",[378,407,380],{}," (algpseudocode)",[357,410,411],{},"To write pseudocode, load the package in your preamble:",[413,414,419],"pre",{"className":415,"code":416,"language":417,"meta":418,"style":418},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\usepackage{algpseudocode}\n\\usepackage{algorithm} % Wraps the pseudocode in a floating numbered wrapper\n","latex","",[378,420,421,429],{"__ignoreMap":418},[422,423,426],"span",{"class":424,"line":425},"line",1,[422,427,428],{},"\\usepackage{algpseudocode}\n",[422,430,432],{"class":424,"line":431},2,[422,433,434],{},"\\usepackage{algorithm} % Wraps the pseudocode in a floating numbered wrapper\n",[436,437,439],"h3",{"id":438},"basic-syntax","Basic Syntax",[413,441,443],{"className":415,"code":442,"language":417,"meta":418,"style":418},"\\begin{algorithm}\n\\caption{Euclid's algorithm}\n\\begin{algorithmic}[1] % [1] enables line numbering on every line\n\\Procedure{Euclid}{$a,b$}\n    \\State $r \\gets a \\bmod b$\n    \\While{$r \\neq 0$}\n        \\State $a \\gets b$\n        \\State $b \\gets r$\n        \\State $r \\gets a \\bmod b$\n    \\EndWhile\n    \\State \\textbf{return} $b$\n\\EndProcedure\n\\end{algorithmic}\n\\end{algorithm}\n",[378,444,445,450,455,461,467,473,479,485,491,497,503,509,515,521],{"__ignoreMap":418},[422,446,447],{"class":424,"line":425},[422,448,449],{},"\\begin{algorithm}\n",[422,451,452],{"class":424,"line":431},[422,453,454],{},"\\caption{Euclid's algorithm}\n",[422,456,458],{"class":424,"line":457},3,[422,459,460],{},"\\begin{algorithmic}[1] % [1] enables line numbering on every line\n",[422,462,464],{"class":424,"line":463},4,[422,465,466],{},"\\Procedure{Euclid}{$a,b$}\n",[422,468,470],{"class":424,"line":469},5,[422,471,472],{},"    \\State $r \\gets a \\bmod b$\n",[422,474,476],{"class":424,"line":475},6,[422,477,478],{},"    \\While{$r \\neq 0$}\n",[422,480,482],{"class":424,"line":481},7,[422,483,484],{},"        \\State $a \\gets b$\n",[422,486,488],{"class":424,"line":487},8,[422,489,490],{},"        \\State $b \\gets r$\n",[422,492,494],{"class":424,"line":493},9,[422,495,496],{},"        \\State $r \\gets a \\bmod b$\n",[422,498,500],{"class":424,"line":499},10,[422,501,502],{},"    \\EndWhile\n",[422,504,506],{"class":424,"line":505},11,[422,507,508],{},"    \\State \\textbf{return} $b$\n",[422,510,512],{"class":424,"line":511},12,[422,513,514],{},"\\EndProcedure\n",[422,516,518],{"class":424,"line":517},13,[422,519,520],{},"\\end{algorithmic}\n",[422,522,524],{"class":424,"line":523},14,[422,525,526],{},"\\end{algorithm}\n",[436,528,530],{"id":529},"common-commands","Common Commands",[532,533,534,547],"table",{},[535,536,537],"thead",{},[538,539,540,544],"tr",{},[541,542,543],"th",{},"Command",[541,545,546],{},"Description",[548,549,550,561,571,581,591,601,611,621,631,641],"tbody",{},[538,551,552,558],{},[553,554,555],"td",{},[378,556,557],{},"\\State",[553,559,560],{},"A statement",[538,562,563,568],{},[553,564,565],{},[378,566,567],{},"\\If{cond} ... \\Else ... \\EndIf",[553,569,570],{},"Conditional",[538,572,573,578],{},[553,574,575],{},[378,576,577],{},"\\While{cond} ... \\EndWhile",[553,579,580],{},"While loop",[538,582,583,588],{},[553,584,585],{},[378,586,587],{},"\\For{cond} ... \\EndFor",[553,589,590],{},"For loop",[538,592,593,598],{},[553,594,595],{},[378,596,597],{},"\\Repeat ... \\Until{cond}",[553,599,600],{},"Repeat-until loop",[538,602,603,608],{},[553,604,605],{},[378,606,607],{},"\\Procedure{name}{args} ... \\EndProcedure",[553,609,610],{},"Procedure",[538,612,613,618],{},[553,614,615],{},[378,616,617],{},"\\Function{name}{args} ... \\EndFunction",[553,619,620],{},"Function",[538,622,623,628],{},[553,624,625],{},[378,626,627],{},"\\Return",[553,629,630],{},"Return statement",[538,632,633,638],{},[553,634,635],{},[378,636,637],{},"\\Require",[553,639,640],{},"Input declaration",[538,642,643,648],{},[553,644,645],{},[378,646,647],{},"\\Ensure",[553,649,650],{},"Output declaration",[436,652,654],{"id":653},"line-numbering-options","Line Numbering Options",[656,657,658,664,670],"ul",{},[372,659,660,663],{},[378,661,662],{},"\\begin{algorithmic}[1]"," — Number every line",[372,665,666,669],{},[378,667,668],{},"\\begin{algorithmic}[5]"," — Number every 5th line",[372,671,672,675],{},[378,673,674],{},"\\begin{algorithmic}[0]"," — No line numbers (default)",[361,677,405,679],{"id":678},"using-algorithm2e",[378,680,392],{},[357,682,683,684,686],{},"Load ",[378,685,392],{}," in your preamble:",[413,688,690],{"className":415,"code":689,"language":417,"meta":418,"style":418},"\\usepackage[ruled,vlined]{algorithm2e}\n",[378,691,692],{"__ignoreMap":418},[422,693,694],{"class":424,"line":425},[422,695,689],{},[357,697,698,699,702],{},"Inside the document, write commands terminated with a semicolon ",[378,700,701],{},"\\;",":",[413,704,706],{"className":415,"code":705,"language":417,"meta":418,"style":418},"\\begin{algorithm}[H]\n \\KwData{this text}\n \\KwResult{how to write algorithm with LaTeX2e }\n initialization\\;\n \\While{not at end of this document}{\n  read current\\;\n  \\eIf{understand}{\n   go to next section\\;\n   }{\n   go back to the beginning\\;\n  }\n }\n \\caption{How to write algorithms}\n\\end{algorithm}\n",[378,707,708,713,718,723,728,733,738,743,748,753,758,763,768,773],{"__ignoreMap":418},[422,709,710],{"class":424,"line":425},[422,711,712],{},"\\begin{algorithm}[H]\n",[422,714,715],{"class":424,"line":431},[422,716,717],{}," \\KwData{this text}\n",[422,719,720],{"class":424,"line":457},[422,721,722],{}," \\KwResult{how to write algorithm with LaTeX2e }\n",[422,724,725],{"class":424,"line":463},[422,726,727],{}," initialization\\;\n",[422,729,730],{"class":424,"line":469},[422,731,732],{}," \\While{not at end of this document}{\n",[422,734,735],{"class":424,"line":475},[422,736,737],{},"  read current\\;\n",[422,739,740],{"class":424,"line":481},[422,741,742],{},"  \\eIf{understand}{\n",[422,744,745],{"class":424,"line":487},[422,746,747],{},"   go to next section\\;\n",[422,749,750],{"class":424,"line":493},[422,751,752],{},"   }{\n",[422,754,755],{"class":424,"line":499},[422,756,757],{},"   go back to the beginning\\;\n",[422,759,760],{"class":424,"line":505},[422,761,762],{},"  }\n",[422,764,765],{"class":424,"line":511},[422,766,767],{}," }\n",[422,769,770],{"class":424,"line":517},[422,771,772],{}," \\caption{How to write algorithms}\n",[422,774,775],{"class":424,"line":523},[422,776,526],{},[436,778,780],{"id":779},"algorithm2e-options","algorithm2e Options",[532,782,783,792],{},[535,784,785],{},[538,786,787,790],{},[541,788,789],{},"Option",[541,791,546],{},[548,793,794,804,814,824,834],{},[538,795,796,801],{},[553,797,798],{},[378,799,800],{},"ruled",[553,802,803],{},"Rules around algorithm",[538,805,806,811],{},[553,807,808],{},[378,809,810],{},"vlined",[553,812,813],{},"Vertical lines for blocks",[538,815,816,821],{},[553,817,818],{},[378,819,820],{},"boxed",[553,822,823],{},"Box around algorithm",[538,825,826,831],{},[553,827,828],{},[378,829,830],{},"linesnumbered",[553,832,833],{},"Line numbering",[538,835,836,841],{},[553,837,838],{},[378,839,840],{},"algo2e",[553,842,843,844,847],{},"Use ",[378,845,846],{},"\\SetAlgo*"," commands",[436,849,851],{"id":850},"algorithm2e-placement","algorithm2e Placement",[357,853,843,854,857,858,861,862,865],{},[378,855,856],{},"[H]"," for exact placement (requires ",[378,859,860],{},"float"," package), or ",[378,863,864],{},"[htbp]"," for flexible placement:",[413,867,869],{"className":415,"code":868,"language":417,"meta":418,"style":418},"\\begin{algorithm}[H]   % Exact placement\n\\begin{algorithm}[htbp] % Flexible placement\n",[378,870,871,876],{"__ignoreMap":418},[422,872,873],{"class":424,"line":425},[422,874,875],{},"\\begin{algorithm}[H]   % Exact placement\n",[422,877,878],{"class":424,"line":431},[422,879,880],{},"\\begin{algorithm}[htbp] % Flexible placement\n",[361,882,884],{"id":883},"comparison-algorithmicx-vs-algorithm2e","Comparison: algorithmicx vs algorithm2e",[532,886,887,898],{},[535,888,889],{},[538,890,891,894,896],{},[541,892,893],{},"Feature",[541,895,380],{},[541,897,392],{},[548,899,900,914,927,942,957],{},[538,901,902,905,908],{},[553,903,904],{},"Syntax style",[553,906,907],{},"Environment-based",[553,909,910,911,913],{},"Command-based (",[378,912,701],{},")",[538,915,916,919,924],{},[553,917,918],{},"Customization",[553,920,921,922],{},"Highly flexible via ",[378,923,384],{},[553,925,926],{},"Predefined styles",[538,928,929,932,937],{},[553,930,931],{},"Block lines",[553,933,934,935],{},"Manual via ",[378,936,384],{},[553,938,939,941],{},[378,940,810],{}," option",[538,943,944,947,954],{},[553,945,946],{},"Placement",[553,948,949,950,953],{},"Via ",[378,951,952],{},"algorithm"," float",[553,955,956],{},"Built-in float support",[538,958,959,962,965],{},[553,960,961],{},"Learning curve",[553,963,964],{},"Moderate",[553,966,967],{},"Easy",[361,969,971],{"id":970},"choosing-a-package","Choosing a Package",[656,973,974,986,994],{},[372,975,976,979,980,982,983,985],{},[375,977,978],{},"New documents",": Use ",[378,981,380],{}," with ",[378,984,384],{}," — most flexible and widely supported.",[372,987,988,979,991,993],{},[375,989,990],{},"Quick prototypes",[378,992,392],{}," — simpler syntax for quick pseudocode.",[372,995,996,999,1000,1002],{},[375,997,998],{},"IEEE journals",": Check if they require the legacy ",[378,1001,400],{}," package.",[1004,1005,1006],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":418,"searchDepth":431,"depth":431,"links":1008},[1009,1010,1016,1021,1022],{"id":363,"depth":431,"text":364},{"id":404,"depth":431,"text":1011,"children":1012},"Using algorithmicx (algpseudocode)",[1013,1014,1015],{"id":438,"depth":457,"text":439},{"id":529,"depth":457,"text":530},{"id":653,"depth":457,"text":654},{"id":678,"depth":431,"text":1017,"children":1018},"Using algorithm2e",[1019,1020],{"id":779,"depth":457,"text":780},{"id":850,"depth":457,"text":851},{"id":883,"depth":431,"text":884},{"id":970,"depth":431,"text":971},"Typesetting pseudocode and structured algorithms in LaTeX using algorithmic, algorithmicx, and algorithm2e.","md",null,{},true,{"title":166,"description":1023},"0bUsN6t8d4UdpLsqhMFmgkRAEnA92429LiVwP5-MNTs",[1031,1033],{"title":162,"path":163,"stem":164,"description":1032,"children":-1},"Defining, numbering, and typesetting custom theorem, lemma, definition, and proof environments in LaTeX.",{"title":170,"path":171,"stem":172,"description":1034,"children":-1},"How to display, format, and highlight raw source code in LaTeX documents using listings and minted.",1785155509246]