[{"data":1,"prerenderedAt":3403},["ShallowReactive",2],{"navigation_docs":3,"-technical-writing-advanced-mathematics":351,"-technical-writing-advanced-mathematics-surround":3398},[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":158,"body":353,"description":3392,"extension":3393,"links":3394,"meta":3395,"navigation":465,"path":159,"seo":3396,"stem":160,"__hash__":3397},"docs\u002F06.technical-writing\u002F02.advanced-mathematics.md",{"type":354,"value":355,"toc":3364},"minimark",[356,368,373,381,410,441,473,501,508,514,523,526,535,538,603,610,616,625,631,640,643,653,658,665,710,713,722,730,738,753,757,766,770,786,806,813,841,844,853,856,882,896,929,936,969,979,1012,1015,1024,1047,1070,1077,1156,1159,1222,1231,1248,1259,1284,1299,1308,1327,1350,1357,1365,1388,1392,1395,1418,1457,1462,1485,1490,1503,1542,1549,1554,1592,1595,1601,1865,1874,1912,1919,1952,1956,1964,2078,2081,2146,2149,2193,2223,2281,2285,2296,2349,2353,2369,2379,2386,2389,2437,2448,2457,2460,2464,2470,2488,2498,2548,2555,2578,2582,2610,2633,2643,2652,2655,2673,2677,2681,2688,2706,2712,2730,2744,2747,2765,2768,2786,2813,2819,2837,2841,2846,2864,2867,2885,2891,2909,2912,2930,2940,2943,2961,2964,2968,2974,3007,3011,3017,3066,3069,3081,3085,3095,3098,3152,3162,3180,3186,3214,3226,3247,3250,3270,3274,3277,3286,3289,3297,3300,3309,3311,3315,3318,3343,3346,3354,3356,3360],[357,358,359,360,367],"p",{},"This page outlines some more advanced uses of mathematics markup using LaTeX. In particular it makes heavy use of the AMS-LaTeX packages supplied by the ",[361,362,366],"a",{"href":363,"rel":364},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAmerican_Mathematical_Society",[365],"nofollow","American Mathematical Society",".",[369,370,372],"h2",{"id":371},"equation-numbering","Equation numbering",[357,374,375,376,380],{},"The ",[377,378,379],"code",{},"equation"," environment automatically numbers your equation:",[382,383,388],"pre",{"className":384,"code":385,"language":386,"meta":387,"style":387},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\begin{equation} \n f(x)=(x+a)(x+b)\n\\end{equation}\n","latex","",[377,389,390,398,404],{"__ignoreMap":387},[391,392,395],"span",{"class":393,"line":394},"line",1,[391,396,397],{},"\\begin{equation} \n",[391,399,401],{"class":393,"line":400},2,[391,402,403],{}," f(x)=(x+a)(x+b)\n",[391,405,407],{"class":393,"line":406},3,[391,408,409],{},"\\end{equation}\n",[357,411,412,413,416,417,420,421,424,425,428,429,431,432,416,435,431,437,440],{},"You can also use the ",[377,414,415],{},"\\label"," and ",[377,418,419],{},"\\ref"," (or ",[377,422,423],{},"\\eqref"," from the ",[377,426,427],{},"amsmath"," package) commands to label and reference equations, respectively. For equation number 1, ",[377,430,419],{}," results in ",[377,433,434],{},"$1\\,$",[377,436,423],{},[377,438,439],{},"$(1)\\,$",":",[382,442,444],{"className":384,"code":443,"language":386,"meta":387,"style":387},"\\begin{equation} \\label{eq:someequation}\n6^2 - 5 = 36-5 = 31\n\\end{equation}\n\nthis references equation \\ref{eq:someequation}.\n",[377,445,446,451,456,460,467],{"__ignoreMap":387},[391,447,448],{"class":393,"line":394},[391,449,450],{},"\\begin{equation} \\label{eq:someequation}\n",[391,452,453],{"class":393,"line":400},[391,454,455],{},"6^2 - 5 = 36-5 = 31\n",[391,457,458],{"class":393,"line":406},[391,459,409],{},[391,461,463],{"class":393,"line":462},4,[391,464,466],{"emptyLinePlaceholder":465},true,"\n",[391,468,470],{"class":393,"line":469},5,[391,471,472],{},"this references equation \\ref{eq:someequation}.\n",[382,474,476],{"className":384,"code":475,"language":386,"meta":387,"style":387},"\\begin{equation} \\label{eq:erl}\na = bq + r\n\\end{equation}\n\nwhere \\eqref{eq:erl} is true when $a$, $b$, $q$, and $r$ are integers and $b \\neq 0$.\n",[377,477,478,483,488,492,496],{"__ignoreMap":387},[391,479,480],{"class":393,"line":394},[391,481,482],{},"\\begin{equation} \\label{eq:erl}\n",[391,484,485],{"class":393,"line":400},[391,486,487],{},"a = bq + r\n",[391,489,490],{"class":393,"line":406},[391,491,409],{},[391,493,494],{"class":393,"line":462},[391,495,466],{"emptyLinePlaceholder":465},[391,497,498],{"class":393,"line":469},[391,499,500],{},"where \\eqref{eq:erl} is true when $a$, $b$, $q$, and $r$ are integers and $b \\neq 0$.\n",[357,502,503,504,507],{},"Further information is provided in the ",[361,505,506],{"href":205},"labels and cross-referencing"," chapter.",[357,509,510,511,513],{},"To have the enumeration follow from your section or subsection heading, you must use the ",[377,512,427],{}," package or use AMS class documents.\nThen enter",[382,515,517],{"className":384,"code":516,"language":386,"meta":387,"style":387},"\\numberwithin{equation}{section}\n",[377,518,519],{"__ignoreMap":387},[391,520,521],{"class":393,"line":394},[391,522,516],{},[357,524,525],{},"to the preamble to get enumeration at the section level or",[382,527,529],{"className":384,"code":528,"language":386,"meta":387,"style":387},"\\numberwithin{equation}{subsection}\n",[377,530,531],{"__ignoreMap":387},[391,532,533],{"class":393,"line":394},[391,534,528],{},[357,536,537],{},"to have the enumeration go to the subsection level.",[382,539,541],{"className":384,"code":540,"language":386,"meta":387,"style":387},"\\documentclass[12pt]{article}\n\\usepackage{amsmath}\n \\numberwithin{equation}{subsection}\n \\begin{document}\n \\section{First Section}\n\n \\subsection{A subsection}\n \\begin{equation}\n  L' = {L}{\\sqrt{1-\\frac{v^2}{c^2}}}\n \\end{equation}\n\\end{document}\n",[377,542,543,548,553,558,563,568,573,579,585,591,597],{"__ignoreMap":387},[391,544,545],{"class":393,"line":394},[391,546,547],{},"\\documentclass[12pt]{article}\n",[391,549,550],{"class":393,"line":400},[391,551,552],{},"\\usepackage{amsmath}\n",[391,554,555],{"class":393,"line":406},[391,556,557],{}," \\numberwithin{equation}{subsection}\n",[391,559,560],{"class":393,"line":462},[391,561,562],{}," \\begin{document}\n",[391,564,565],{"class":393,"line":469},[391,566,567],{}," \\section{First Section}\n",[391,569,571],{"class":393,"line":570},6,[391,572,466],{"emptyLinePlaceholder":465},[391,574,576],{"class":393,"line":575},7,[391,577,578],{}," \\subsection{A subsection}\n",[391,580,582],{"class":393,"line":581},8,[391,583,584],{}," \\begin{equation}\n",[391,586,588],{"class":393,"line":587},9,[391,589,590],{},"  L' = {L}{\\sqrt{1-\\frac{v^2}{c^2}}}\n",[391,592,594],{"class":393,"line":593},10,[391,595,596],{}," \\end{equation}\n",[391,598,600],{"class":393,"line":599},11,[391,601,602],{},"\\end{document}\n",[357,604,605,606,609],{},"If the style you follow requires putting dots after ordinals (as it is required at least in Polish typography), the ",[377,607,608],{},"\\numberwithin{equation}{subsection} "," command in the preamble will result in the equation number in the above example being rendered as follows: (1.1.1).",[357,611,612,613,440],{},"To remove the duplicate dot, add the following command immediately after\n",[377,614,615],{},"\\numberwithin{equation}{section} ",[382,617,619],{"className":384,"code":618,"language":386,"meta":387,"style":387},"\\renewcommand{\\theequation}{\\thesection\\arabic{equation}}\n",[377,620,621],{"__ignoreMap":387},[391,622,623],{"class":393,"line":394},[391,624,618],{},[357,626,627,628,630],{},"For a numbering scheme using ",[377,629,608],{},", use:",[382,632,634],{"className":384,"code":633,"language":386,"meta":387,"style":387},"\\renewcommand{\\theequation}{\\thesubsection\\arabic{equation}}\n",[377,635,636],{"__ignoreMap":387},[391,637,638],{"class":393,"line":394},[391,639,633],{},[357,641,642],{},"in the preamble of the document.",[357,644,645,646,649,650,367],{},"Note: Although it may look like the ",[377,647,648],{},"\\renewcommand"," works by itself, it won't reset the equation number with each new section. It must be used together with manual equation number resetting after each new section beginning, or with the much cleaner ",[377,651,652],{},"\\numberwithin",[654,655,657],"h3",{"id":656},"subordinate-equation-numbering","Subordinate equation numbering",[357,659,660,661,664],{},"To number subordinate equations in a numbered equation environment, place the part of document containing them in a ",[377,662,663],{},"subequations"," environment:",[382,666,668],{"className":384,"code":667,"language":386,"meta":387,"style":387},"\\begin{subequations}\n\\label{eq:Maxwell}\nMaxwell's equations:\n\\begin{align}\n        B'&=-\\nabla \\times E,         \\label{eq:MaxB} \\\\\n        E'&=\\nabla \\times B - 4\\pi j, \\label{eq:MaxE}\n\\end{align}\n\\end{subequations}\n",[377,669,670,675,680,685,690,695,700,705],{"__ignoreMap":387},[391,671,672],{"class":393,"line":394},[391,673,674],{},"\\begin{subequations}\n",[391,676,677],{"class":393,"line":400},[391,678,679],{},"\\label{eq:Maxwell}\n",[391,681,682],{"class":393,"line":406},[391,683,684],{},"Maxwell's equations:\n",[391,686,687],{"class":393,"line":462},[391,688,689],{},"\\begin{align}\n",[391,691,692],{"class":393,"line":469},[391,693,694],{},"        B'&=-\\nabla \\times E,         \\label{eq:MaxB} \\\\\n",[391,696,697],{"class":393,"line":570},[391,698,699],{},"        E'&=\\nabla \\times B - 4\\pi j, \\label{eq:MaxE}\n",[391,701,702],{"class":393,"line":575},[391,703,704],{},"\\end{align}\n",[391,706,707],{"class":393,"line":581},[391,708,709],{},"\\end{subequations}\n",[357,711,712],{},"Real",[357,714,715,718,719],{},[377,716,717],{},"\\Re"," ",[377,720,721],{},"$\\Re$",[357,723,724,718,727],{},[377,725,726],{},"\\Im",[377,728,729],{},"$\\Im$",[357,731,732,718,735],{},[377,733,734],{},"Hg^2+ ->[I-] HgI2 ->[I-] {[Hg^{II}I4]^2-}",[377,736,737],{},"$\\text{Hg}^2+ \\rightarrow[\\text{I}^-] \\text{HgI}_2 \\rightarrow[\\text{I}^-] [\\text{Hg}^{II}\\text{I}_4]^{2-}$",[357,739,740,741,744,745,748,749,752],{},"Referencing subordinate equations can be done using either of two methods: adding a label after the ",[377,742,743],{},"\\begin{subequations} "," command, viz. ",[377,746,747],{},"\\label{eq:Maxwell} ",", which will reference the main equation (1.1 above), or adding a label at the end of each line, before the ",[377,750,751],{},"\\\\"," command, which will reference the sub-equation (1.1a or 1.1b above). As shown, it is possible to add both labels in case both types of references are needed.",[369,754,756],{"id":755},"vertically-aligning-displayed-mathematics","Vertically aligning displayed mathematics",[357,758,759,760,416,763,765],{},"A problem often encountered with displayed environments (",[377,761,762],{},"displaymath",[377,764,379],{},") is the lack of any ability to span multiple lines. While it is possible to define lines individually, these will not be aligned.",[654,767,769],{"id":768},"above-and-below","Above and below",[357,771,375,772,416,775,778,779,781,782,785],{},[377,773,774],{},"\\overset",[377,776,777],{},"\\underset"," commands  typeset symbols above and below expressions.\nWithout AMS-TeX the same result of  ",[377,780,774],{},"  can be obtained with  ",[377,783,784],{},"\\stackrel",".\nThis can be particularly useful for creating new binary relations:",[382,787,789],{"className":384,"code":788,"language":386,"meta":387,"style":387},"\\[\n A \\overset{!}{=} B; A \\stackrel{!}{=} B\n\\]\n",[377,790,791,796,801],{"__ignoreMap":387},[391,792,793],{"class":393,"line":394},[391,794,795],{},"\\[\n",[391,797,798],{"class":393,"line":400},[391,799,800],{}," A \\overset{!}{=} B; A \\stackrel{!}{=} B\n",[391,802,803],{"class":393,"line":406},[391,804,805],{},"\\]\n",[357,807,808,809,440],{},"or to show usage of ",[810,811,812],"em",{},"L'Hôpital's rule",[382,814,816],{"className":384,"code":815,"language":386,"meta":387,"style":387},"\\[\n \\lim_{x\\to 0}{\\frac{e^x-1}{2x}}\n \\overset{\\left[\\frac{0}{0}\\right]}{\\underset{\\mathrm{H}}{=}}\n \\lim_{x\\to 0}{\\frac{e^x}{2}}={\\frac{1}{2}}\n\\]\n",[377,817,818,822,827,832,837],{"__ignoreMap":387},[391,819,820],{"class":393,"line":394},[391,821,795],{},[391,823,824],{"class":393,"line":400},[391,825,826],{}," \\lim_{x\\to 0}{\\frac{e^x-1}{2x}}\n",[391,828,829],{"class":393,"line":406},[391,830,831],{}," \\overset{\\left[\\frac{0}{0}\\right]}{\\underset{\\mathrm{H}}{=}}\n",[391,833,834],{"class":393,"line":462},[391,835,836],{}," \\lim_{x\\to 0}{\\frac{e^x}{2}}={\\frac{1}{2}}\n",[391,838,839],{"class":393,"line":469},[391,840,805],{},[357,842,843],{},"It is convenient to define a new operator that will set the equals sign with H and the provided fraction:",[382,845,847],{"className":384,"code":846,"language":386,"meta":387,"style":387},"\\newcommand{\\Heq}[1]{\\overset{\\left[#1\\right]}{\\underset{\\mathrm{H}}{=}}}\n",[377,848,849],{"__ignoreMap":387},[391,850,851],{"class":393,"line":394},[391,852,846],{},[357,854,855],{},"which reduces the above example to:",[382,857,859],{"className":384,"code":858,"language":386,"meta":387,"style":387},"\\[\n \\lim_{x\\to 0}{\\frac{e^x-1}{2x}}\n \\Heq{\\frac{0}{0}}\n \\lim_{x\\to 0}{\\frac{e^x}{2}}={\\frac{1}{2}}\n\\]\n",[377,860,861,865,869,874,878],{"__ignoreMap":387},[391,862,863],{"class":393,"line":394},[391,864,795],{},[391,866,867],{"class":393,"line":400},[391,868,826],{},[391,870,871],{"class":393,"line":406},[391,872,873],{}," \\Heq{\\frac{0}{0}}\n",[391,875,876],{"class":393,"line":462},[391,877,836],{},[391,879,880],{"class":393,"line":469},[391,881,805],{},[357,883,884,885,416,888,891,892,895],{},"If the purpose is to make comments on particular parts of an equation, the ",[377,886,887],{},"\\overbrace",[377,889,890],{},"\\underbrace"," commands may be more useful. However, they have a different syntax (and can be aligned with the ",[377,893,894],{},"\\vphantom"," command):",[382,897,899],{"className":384,"code":898,"language":386,"meta":387,"style":387},"\\[\n z = \\overbrace{\n   \\underbrace{x}_\\text{real} + i\n   \\underbrace{y}_\\text{imaginary}\n  }^\\text{complex number}\n\\]\n",[377,900,901,905,910,915,920,925],{"__ignoreMap":387},[391,902,903],{"class":393,"line":394},[391,904,795],{},[391,906,907],{"class":393,"line":400},[391,908,909],{}," z = \\overbrace{\n",[391,911,912],{"class":393,"line":406},[391,913,914],{},"   \\underbrace{x}_\\text{real} + i\n",[391,916,917],{"class":393,"line":462},[391,918,919],{},"   \\underbrace{y}_\\text{imaginary}\n",[391,921,922],{"class":393,"line":469},[391,923,924],{},"  }^\\text{complex number}\n",[391,926,927],{"class":393,"line":570},[391,928,805],{},[357,930,931,932,935],{},"Sometimes the comments are longer than the formula being commented on, which can cause spacing problems. These can be removed using the ",[377,933,934],{},"\\mathclap"," command:",[382,937,939],{"className":384,"code":938,"language":386,"meta":387,"style":387},"\\[\n y = a + f(\\underbrace{b x}_{\n                    \\ge 0 \\text{ by assumption}}) \n   = a + f(\\underbrace{b x}_{\n          \\mathclap{\\ge 0 \\text{ by assumption}}})\n\\]\n",[377,940,941,945,950,955,960,965],{"__ignoreMap":387},[391,942,943],{"class":393,"line":394},[391,944,795],{},[391,946,947],{"class":393,"line":400},[391,948,949],{}," y = a + f(\\underbrace{b x}_{\n",[391,951,952],{"class":393,"line":406},[391,953,954],{},"                    \\ge 0 \\text{ by assumption}}) \n",[391,956,957],{"class":393,"line":462},[391,958,959],{},"   = a + f(\\underbrace{b x}_{\n",[391,961,962],{"class":393,"line":469},[391,963,964],{},"          \\mathclap{\\ge 0 \\text{ by assumption}}})\n",[391,966,967],{"class":393,"line":570},[391,968,805],{},[357,970,971,972,416,975,978],{},"Alternatively, to use brackets instead of braces use ",[377,973,974],{},"\\underbracket",[377,976,977],{},"\\overbracket"," commands:",[382,980,982],{"className":384,"code":981,"language":386,"meta":387,"style":387},"\\[\n z = \\overbracket[3pt]{\n     \\underbracket{x}_{\\text{real}} +\n     \\underbracket[0.5pt][7pt]{iy}_{\\text{imaginary}}\n     }^{\\text{complex number}} \n\\]\n",[377,983,984,988,993,998,1003,1008],{"__ignoreMap":387},[391,985,986],{"class":393,"line":394},[391,987,795],{},[391,989,990],{"class":393,"line":400},[391,991,992],{}," z = \\overbracket[3pt]{\n",[391,994,995],{"class":393,"line":406},[391,996,997],{},"     \\underbracket{x}_{\\text{real}} +\n",[391,999,1000],{"class":393,"line":462},[391,1001,1002],{},"     \\underbracket[0.5pt][7pt]{iy}_{\\text{imaginary}}\n",[391,1004,1005],{"class":393,"line":469},[391,1006,1007],{},"     }^{\\text{complex number}} \n",[391,1009,1010],{"class":393,"line":570},[391,1011,805],{},[357,1013,1014],{},"The optional arguments set the rule thickness and bracket height respectively:",[382,1016,1018],{"className":384,"code":1017,"language":386,"meta":387,"style":387},"\\underbracket[rule thickness][bracket height]{argument}_{text below}\n",[377,1019,1020],{"__ignoreMap":387},[391,1021,1022],{"class":393,"line":394},[391,1023,1017],{},[357,1025,375,1026,416,1029,1032,1033,416,1036,1039,1040,416,1043,1046],{},[377,1027,1028],{},"\\xleftarrow",[377,1030,1031],{},"\\xrightarrow"," commands produce arrows which extend to the length of the text. Yet again, the syntax is different: the optional argument (using ",[377,1034,1035],{},"[",[377,1037,1038],{},"]",") specifies the subscript, and the mandatory argument (using ",[377,1041,1042],{},"{",[377,1044,1045],{},"}",") specifies the superscript (which can be left empty by inserting a blank space).",[382,1048,1050],{"className":384,"code":1049,"language":386,"meta":387,"style":387},"\\[\n A \\xleftarrow{\\text{this way}} B \n  \\xrightarrow[\\text{or that way}]{ } C\n\\]\n",[377,1051,1052,1056,1061,1066],{"__ignoreMap":387},[391,1053,1054],{"class":393,"line":394},[391,1055,795],{},[391,1057,1058],{"class":393,"line":400},[391,1059,1060],{}," A \\xleftarrow{\\text{this way}} B \n",[391,1062,1063],{"class":393,"line":406},[391,1064,1065],{},"  \\xrightarrow[\\text{or that way}]{ } C\n",[391,1067,1068],{"class":393,"line":462},[391,1069,805],{},[357,1071,1072,1073,1076],{},"For more extensible arrows, you must use the ",[377,1074,1075],{},"mathtools"," package:",[382,1078,1080],{"className":384,"code":1079,"language":386,"meta":387,"style":387},"\\begin{gather}\n a \\xleftrightarrow[under]{over} b\\\\\n%\n A \\xLeftarrow[under]{over} B\\\\\n%\n B \\xRightarrow[under]{over} C\\\\\n%\n C \\xLeftrightarrow[under]{over} D\\\\\n%\n D \\xhookleftarrow[under]{over} E\\\\\n%\n E \\xhookrightarrow[under]{over} F\\\\\n%\n F \\xmapsto[under]{over} G\\\\\n\\end{gather}\n",[377,1081,1082,1087,1092,1097,1102,1106,1111,1115,1120,1124,1129,1133,1139,1144,1150],{"__ignoreMap":387},[391,1083,1084],{"class":393,"line":394},[391,1085,1086],{},"\\begin{gather}\n",[391,1088,1089],{"class":393,"line":400},[391,1090,1091],{}," a \\xleftrightarrow[under]{over} b\\\\\n",[391,1093,1094],{"class":393,"line":406},[391,1095,1096],{},"%\n",[391,1098,1099],{"class":393,"line":462},[391,1100,1101],{}," A \\xLeftarrow[under]{over} B\\\\\n",[391,1103,1104],{"class":393,"line":469},[391,1105,1096],{},[391,1107,1108],{"class":393,"line":570},[391,1109,1110],{}," B \\xRightarrow[under]{over} C\\\\\n",[391,1112,1113],{"class":393,"line":575},[391,1114,1096],{},[391,1116,1117],{"class":393,"line":581},[391,1118,1119],{}," C \\xLeftrightarrow[under]{over} D\\\\\n",[391,1121,1122],{"class":393,"line":587},[391,1123,1096],{},[391,1125,1126],{"class":393,"line":593},[391,1127,1128],{}," D \\xhookleftarrow[under]{over} E\\\\\n",[391,1130,1131],{"class":393,"line":599},[391,1132,1096],{},[391,1134,1136],{"class":393,"line":1135},12,[391,1137,1138],{}," E \\xhookrightarrow[under]{over} F\\\\\n",[391,1140,1142],{"class":393,"line":1141},13,[391,1143,1096],{},[391,1145,1147],{"class":393,"line":1146},14,[391,1148,1149],{}," F \\xmapsto[under]{over} G\\\\\n",[391,1151,1153],{"class":393,"line":1152},15,[391,1154,1155],{},"\\end{gather}\n",[357,1157,1158],{},"and for harpoons:",[382,1160,1162],{"className":384,"code":1161,"language":386,"meta":387,"style":387},"\\begin{gather}\n H \\xrightharpoondown[under]{over} I\\\\\n%\n I \\xrightharpoonup[under]{over} J\\\\\n%\n J \\xleftharpoondown[under]{over} K\\\\\n%\n K \\xleftharpoonup[under]{over} L\\\\\n%\n L \\xrightleftharpoons[under]{over} M\\\\\n%\n M \\xleftrightharpoons[under]{over} N\n\\end{gather}\n",[377,1163,1164,1168,1173,1177,1182,1186,1191,1195,1200,1204,1209,1213,1218],{"__ignoreMap":387},[391,1165,1166],{"class":393,"line":394},[391,1167,1086],{},[391,1169,1170],{"class":393,"line":400},[391,1171,1172],{}," H \\xrightharpoondown[under]{over} I\\\\\n",[391,1174,1175],{"class":393,"line":406},[391,1176,1096],{},[391,1178,1179],{"class":393,"line":462},[391,1180,1181],{}," I \\xrightharpoonup[under]{over} J\\\\\n",[391,1183,1184],{"class":393,"line":469},[391,1185,1096],{},[391,1187,1188],{"class":393,"line":570},[391,1189,1190],{}," J \\xleftharpoondown[under]{over} K\\\\\n",[391,1192,1193],{"class":393,"line":575},[391,1194,1096],{},[391,1196,1197],{"class":393,"line":581},[391,1198,1199],{}," K \\xleftharpoonup[under]{over} L\\\\\n",[391,1201,1202],{"class":393,"line":587},[391,1203,1096],{},[391,1205,1206],{"class":393,"line":593},[391,1207,1208],{}," L \\xrightleftharpoons[under]{over} M\\\\\n",[391,1210,1211],{"class":393,"line":599},[391,1212,1096],{},[391,1214,1215],{"class":393,"line":1135},[391,1216,1217],{}," M \\xleftrightharpoons[under]{over} N\n",[391,1219,1220],{"class":393,"line":1141},[391,1221,1155],{},[654,1223,1225,416,1228],{"id":1224},"align-and-align",[377,1226,1227],{},"align",[377,1229,1230],{},"align*",[357,1232,375,1233,416,1235,1237,1238,1240,1241,1243,1244,1247],{},[377,1234,1227],{},[377,1236,1230],{}," environments, available through the ",[377,1239,427],{}," package, are used for arranging equations of multiple lines. As with matrices and tables, ",[377,1242,751],{}," specifies a line break, and ",[377,1245,1246],{},"&"," is used to indicate the point at which the lines should be aligned.",[357,1249,375,1250,1252,1253,1255,1256,664],{},[377,1251,1230],{}," environment is used like the ",[377,1254,762],{}," or ",[377,1257,1258],{},"equation*",[382,1260,1262],{"className":384,"code":1261,"language":386,"meta":387,"style":387},"\\begin{align*}\n f(x) &= (x+a)(x+b) \\\\\n      &= x^2 + (a+b)x + ab\n\\end{align*}\n",[377,1263,1264,1269,1274,1279],{"__ignoreMap":387},[391,1265,1266],{"class":393,"line":394},[391,1267,1268],{},"\\begin{align*}\n",[391,1270,1271],{"class":393,"line":400},[391,1272,1273],{}," f(x) &= (x+a)(x+b) \\\\\n",[391,1275,1276],{"class":393,"line":406},[391,1277,1278],{},"      &= x^2 + (a+b)x + ab\n",[391,1280,1281],{"class":393,"line":462},[391,1282,1283],{},"\\end{align*}\n",[357,1285,1286,1287,1289,1290,1292,1293,1295,1296,1298],{},"Note that the ",[377,1288,1227],{}," environment must not be nested inside an ",[377,1291,379],{}," (or similar) environment.  Instead, ",[377,1294,1227],{}," is a replacement for such environments; the contents inside an ",[377,1297,1227],{}," are automatically placed in math mode.",[357,1300,1301,1303,1304,1307],{},[377,1302,1230],{}," suppresses numbering.  To force numbering on a specific line, use the ",[377,1305,1306],{},"\\tag{...}"," command before the line break.",[357,1309,1310,1312,1313,1315,1316,1319,1320,1255,1323,1326],{},[377,1311,1227],{}," is similar, but automatically numbers each line like the ",[377,1314,379],{}," environment.  Individual lines may be referred to by placing a ",[377,1317,1318],{},"\\label{...}"," before the line break. The ",[377,1321,1322],{},"\\nonumber",[377,1324,1325],{},"\\notag"," command can be used to suppress the number for a given line:",[382,1328,1330],{"className":384,"code":1329,"language":386,"meta":387,"style":387},"\\begin{align}\n f(x) &= x^4 + 7x^3 + 2x^2 \\nonumber \\\\\n      &\\qquad {} + 10x + 12\n\\end{align}\n",[377,1331,1332,1336,1341,1346],{"__ignoreMap":387},[391,1333,1334],{"class":393,"line":394},[391,1335,689],{},[391,1337,1338],{"class":393,"line":400},[391,1339,1340],{}," f(x) &= x^4 + 7x^3 + 2x^2 \\nonumber \\\\\n",[391,1342,1343],{"class":393,"line":406},[391,1344,1345],{},"      &\\qquad {} + 10x + 12\n",[391,1347,1348],{"class":393,"line":462},[391,1349,704],{},[357,1351,1352,1353,1356],{},"Notice that we've added some indenting on the second line.  Also, we need to insert the double braces (",[377,1354,1355],{},"{}",") before the + sign, otherwise latex won't create the correct spacing after the + sign.  The reason for this is that without the braces, latex interprets the + sign as a unary operator, instead of the binary operator that it really is.",[357,1358,1359,1360,1362,1363,440],{},"More complicated alignments are possible, with additional ",[377,1361,1246],{},"s on a single line specifying multiple \"equation columns\", each of which is aligned. The following example illustrates the alignment rule of ",[377,1364,1230],{},[382,1366,1368],{"className":384,"code":1367,"language":386,"meta":387,"style":387},"\\begin{align*}\n f(x)  &= a x^2+b x +c   &   g(x)  &= d x^3 \\\\\n f'(x) &= 2 a x +b       &   g'(x) &= 3 d x^2\n\\end{align*}\n",[377,1369,1370,1374,1379,1384],{"__ignoreMap":387},[391,1371,1372],{"class":393,"line":394},[391,1373,1268],{},[391,1375,1376],{"class":393,"line":400},[391,1377,1378],{}," f(x)  &= a x^2+b x +c   &   g(x)  &= d x^3 \\\\\n",[391,1380,1381],{"class":393,"line":406},[391,1382,1383],{}," f'(x) &= 2 a x +b       &   g'(x) &= 3 d x^2\n",[391,1385,1386],{"class":393,"line":462},[391,1387,1283],{},[654,1389,1391],{"id":1390},"braces-spanning-multiple-lines","Braces spanning multiple lines",[357,1393,1394],{},"If you want a brace to continue across a new line, do the following:",[382,1396,1398],{"className":384,"code":1397,"language":386,"meta":387,"style":387},"\\begin{align}\n f(x) &= \\pi \\left\\{ x^4 + 7x^3 + 2x^2 \\right.\\nonumber\\\\\n &\\qquad \\left. {} + 10x + 12 \\right\\}\n\\end{align}\n",[377,1399,1400,1404,1409,1414],{"__ignoreMap":387},[391,1401,1402],{"class":393,"line":394},[391,1403,689],{},[391,1405,1406],{"class":393,"line":400},[391,1407,1408],{}," f(x) &= \\pi \\left\\{ x^4 + 7x^3 + 2x^2 \\right.\\nonumber\\\\\n",[391,1410,1411],{"class":393,"line":406},[391,1412,1413],{}," &\\qquad \\left. {} + 10x + 12 \\right\\}\n",[391,1415,1416],{"class":393,"line":462},[391,1417,704],{},[357,1419,1420,1421,416,1424,1427,1428,416,1431,1434,1435,416,1438,1441,1442,1445,1446,1445,1449,1452,1453,1456],{},"In this construction, the sizes of the left and right braces are not automatically equal, in spite of the use of ",[377,1422,1423],{},"\\left\\{",[377,1425,1426],{},"\\right\\}\u003C!-- -->",". This is because each line is typeset as a completely separate equation —notice the use of ",[377,1429,1430],{},"\\right.",[377,1432,1433],{},"\\left."," so there are no unpaired ",[377,1436,1437],{},"\\left",[377,1439,1440],{},"\\right"," commands within a line (these aren't needed if the formula is on one line). You can control the size of the braces manually with the ",[377,1443,1444],{},"\\big",", ",[377,1447,1448],{},"\\Big",[377,1450,1451],{},"\\bigg",", and ",[377,1454,1455],{},"\\Bigg"," commands.",[357,1458,1459,1460,935],{},"Alternatively, the height of the taller equation can be replicated in the other using the ",[377,1461,894],{},[382,1463,1465],{"className":384,"code":1464,"language":386,"meta":387,"style":387},"\\begin{align}\n A &=     \\left(\\int_t XXX       \\right.\\nonumber\\\\\n   &\\qquad \\left.\\vphantom{\\int_t} YYY \\dots \\right)\n\\end{align}\n",[377,1466,1467,1471,1476,1481],{"__ignoreMap":387},[391,1468,1469],{"class":393,"line":394},[391,1470,689],{},[391,1472,1473],{"class":393,"line":400},[391,1474,1475],{}," A &=     \\left(\\int_t XXX       \\right.\\nonumber\\\\\n",[391,1477,1478],{"class":393,"line":406},[391,1479,1480],{},"   &\\qquad \\left.\\vphantom{\\int_t} YYY \\dots \\right)\n",[391,1482,1483],{"class":393,"line":462},[391,1484,704],{},[1486,1487,1489],"h4",{"id":1488},"using-aligned-braces-for-piecewise-functions","Using aligned braces for piecewise functions",[357,1491,1492,1493,416,1495,1497,1498,1502],{},"You can also use ",[377,1494,1423],{},[377,1496,1430],{}," to typeset [piecewise functions](",[361,1499,1500],{"href":1500,"rel":1501},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002Fpiecewise",[365]," functions):",[382,1504,1506],{"className":384,"code":1505,"language":386,"meta":387,"style":387},"\\[f(x) = \\left\\{\n  \\begin{array}{lr}\n    x^2 & : x \u003C 0\\\\\n    x^3 & : x \\ge 0\n  \\end{array}\n\\right.\n\\]\n",[377,1507,1508,1513,1518,1523,1528,1533,1538],{"__ignoreMap":387},[391,1509,1510],{"class":393,"line":394},[391,1511,1512],{},"\\[f(x) = \\left\\{\n",[391,1514,1515],{"class":393,"line":400},[391,1516,1517],{},"  \\begin{array}{lr}\n",[391,1519,1520],{"class":393,"line":406},[391,1521,1522],{},"    x^2 & : x \u003C 0\\\\\n",[391,1524,1525],{"class":393,"line":462},[391,1526,1527],{},"    x^3 & : x \\ge 0\n",[391,1529,1530],{"class":393,"line":469},[391,1531,1532],{},"  \\end{array}\n",[391,1534,1535],{"class":393,"line":570},[391,1536,1537],{},"\\right.\n",[391,1539,1540],{"class":393,"line":575},[391,1541,805],{},[654,1543,375,1545,1548],{"id":1544},"the-cases-environment",[377,1546,1547],{},"cases"," environment",[357,1550,375,1551,1553],{},[377,1552,1547],{}," environment allows the writing of piecewise functions:",[382,1555,1557],{"className":384,"code":1556,"language":386,"meta":387,"style":387},"\\[\n u(x) = \n  \\begin{cases} \n   \\exp{x} & \\text{if } x \\geq 0 \\\\\n   1       & \\text{if } x \u003C 0\n  \\end{cases}\n\\]\n",[377,1558,1559,1563,1568,1573,1578,1583,1588],{"__ignoreMap":387},[391,1560,1561],{"class":393,"line":394},[391,1562,795],{},[391,1564,1565],{"class":393,"line":400},[391,1566,1567],{}," u(x) = \n",[391,1569,1570],{"class":393,"line":406},[391,1571,1572],{},"  \\begin{cases} \n",[391,1574,1575],{"class":393,"line":462},[391,1576,1577],{},"   \\exp{x} & \\text{if } x \\geq 0 \\\\\n",[391,1579,1580],{"class":393,"line":469},[391,1581,1582],{},"   1       & \\text{if } x \u003C 0\n",[391,1584,1585],{"class":393,"line":570},[391,1586,1587],{},"  \\end{cases}\n",[391,1589,1590],{"class":393,"line":575},[391,1591,805],{},[357,1593,1594],{},"LaTeX will then take care of defining and or aligning the columns.",[357,1596,1597,1598,1600],{},"Within ",[377,1599,1547],{},", text style math is used with results such as:",[357,1602,1603],{},[391,1604,1607,1689],{"className":1605},[1606],"katex",[391,1608,1611],{"className":1609},[1610],"katex-mathml",[1612,1613,1615],"math",{"xmlns":1614},"http:\u002F\u002Fwww.w3.org\u002F1998\u002FMath\u002FMathML",[1616,1617,1618,1684],"semantics",{},[1619,1620,1621,1624,1628],"mrow",{},[1622,1623,361],"mi",{},[1625,1626,1627],"mo",{},"=",[1619,1629,1630,1633],{},[1625,1631,1042],{"fence":1632},"true",[1634,1635,1639,1668],"mtable",{"rowspacing":1636,"columnalign":1637,"columnspacing":1638},"0.36em","left left","1em",[1640,1641,1642],"mtr",{},[1643,1644,1645],"mtd",{},[1646,1647,1650],"mstyle",{"scriptlevel":1648,"displaystyle":1649},"0","false",[1619,1651,1652,1655,1658,1662,1666],{},[1625,1653,1654],{},"∫",[1622,1656,1657],{},"x",[1659,1660,1661],"mtext",{}," ",[1622,1663,1665],{"mathvariant":1664},"normal","d",[1622,1667,1657],{},[1640,1669,1670],{},[1643,1671,1672],{},[1646,1673,1674],{"scriptlevel":1648,"displaystyle":1649},[1675,1676,1677,1680],"msup",{},[1622,1678,1679],{},"b",[1681,1682,1683],"mn",{},"2",[1685,1686,1688],"annotation",{"encoding":1687},"application\u002Fx-tex","a = \\begin{cases} \\int x\\, \\mathrm{d} x\\\\ b^2 \\end{cases}",[391,1690,1693,1719],{"className":1691,"ariaHidden":1632},[1692],"katex-html",[391,1694,1697,1702,1707,1712,1716],{"className":1695},[1696],"base",[391,1698],{"className":1699,"style":1701},[1700],"strut","height:0.4306em;",[391,1703,361],{"className":1704},[1705,1706],"mord","mathnormal",[391,1708],{"className":1709,"style":1711},[1710],"mspace","margin-right:0.2778em;",[391,1713,1627],{"className":1714},[1715],"mrel",[391,1717],{"className":1718,"style":1711},[1710],[391,1720,1722,1726],{"className":1721},[1696],[391,1723],{"className":1724,"style":1725},[1700],"height:3em;vertical-align:-1.25em;",[391,1727,1730,1741,1860],{"className":1728},[1729],"minner",[391,1731,1736],{"className":1732,"style":1735},[1733,1734],"mopen","delimcenter","top:0em;",[391,1737,1042],{"className":1738},[1739,1740],"delimsizing","size4",[391,1742,1744],{"className":1743},[1705],[391,1745,1747],{"className":1746},[1634],[391,1748,1751],{"className":1749},[1750],"col-align-l",[391,1752,1756,1851],{"className":1753},[1754,1755],"vlist-t","vlist-t2",[391,1757,1760,1846],{"className":1758},[1759],"vlist-r",[391,1761,1765,1800],{"className":1762,"style":1764},[1763],"vlist","height:1.69em;",[391,1766,1768,1773],{"style":1767},"top:-3.69em;",[391,1769],{"className":1770,"style":1772},[1771],"pstrut","height:3.008em;",[391,1774,1776,1783,1787,1790,1793,1797],{"className":1775},[1705],[391,1777,1654],{"className":1778,"style":1782},[1779,1780,1781],"mop","op-symbol","small-op","margin-right:0.1945em;position:relative;top:-0.0006em;",[391,1784],{"className":1785,"style":1786},[1710],"margin-right:0.1667em;",[391,1788,1657],{"className":1789},[1705,1706],[391,1791],{"className":1792,"style":1786},[1710],[391,1794,1665],{"className":1795},[1705,1796],"mathrm",[391,1798,1657],{"className":1799},[1705,1706],[391,1801,1803,1806],{"style":1802},"top:-2.25em;",[391,1804],{"className":1805,"style":1772},[1771],[391,1807,1809],{"className":1808},[1705],[391,1810,1812,1815],{"className":1811},[1705],[391,1813,1679],{"className":1814},[1705,1706],[391,1816,1819],{"className":1817},[1818],"msupsub",[391,1820,1822],{"className":1821},[1754],[391,1823,1825],{"className":1824},[1759],[391,1826,1829],{"className":1827,"style":1828},[1763],"height:0.8141em;",[391,1830,1832,1836],{"style":1831},"top:-3.063em;margin-right:0.05em;",[391,1833],{"className":1834,"style":1835},[1771],"height:2.7em;",[391,1837,1843],{"className":1838},[1839,1840,1841,1842],"sizing","reset-size6","size3","mtight",[391,1844,1683],{"className":1845},[1705,1842],[391,1847,1850],{"className":1848},[1849],"vlist-s","​",[391,1852,1854],{"className":1853},[1759],[391,1855,1858],{"className":1856,"style":1857},[1763],"height:1.19em;",[391,1859],{},[391,1861],{"className":1862},[1863,1864],"mclose","nulldelimiter",[357,1866,1867,1868,1871,1872,440],{},"Display style may be used instead, by using the ",[377,1869,1870],{},"dcases"," environment from ",[377,1873,1075],{},[382,1875,1877],{"className":384,"code":1876,"language":386,"meta":387,"style":387},"\\[\n a =\n   \\begin{dcases}\n     \\int x\\, \\mathrm{d} x\\\\\n     b^2\n   \\end{dcases}\n\\]\n",[377,1878,1879,1883,1888,1893,1898,1903,1908],{"__ignoreMap":387},[391,1880,1881],{"class":393,"line":394},[391,1882,795],{},[391,1884,1885],{"class":393,"line":400},[391,1886,1887],{}," a =\n",[391,1889,1890],{"class":393,"line":406},[391,1891,1892],{},"   \\begin{dcases}\n",[391,1894,1895],{"class":393,"line":462},[391,1896,1897],{},"     \\int x\\, \\mathrm{d} x\\\\\n",[391,1899,1900],{"class":393,"line":469},[391,1901,1902],{},"     b^2\n",[391,1904,1905],{"class":393,"line":570},[391,1906,1907],{},"   \\end{dcases}\n",[391,1909,1910],{"class":393,"line":575},[391,1911,805],{},[357,1913,1914,1915,1918],{},"Often the second column consists mostly of normal text.  To set it in the normal Roman font of the document, the ",[377,1916,1917],{},"dcases*"," environment may be used:",[382,1920,1922],{"className":384,"code":1921,"language":386,"meta":387,"style":387},"\\[\n f(x) = \\begin{dcases*}\n        x  & when $x$ is even\\\\\n        -x & when $x$ is odd\n        \\end{dcases*}\n\\]\n",[377,1923,1924,1928,1933,1938,1943,1948],{"__ignoreMap":387},[391,1925,1926],{"class":393,"line":394},[391,1927,795],{},[391,1929,1930],{"class":393,"line":400},[391,1931,1932],{}," f(x) = \\begin{dcases*}\n",[391,1934,1935],{"class":393,"line":406},[391,1936,1937],{},"        x  & when $x$ is even\\\\\n",[391,1939,1940],{"class":393,"line":462},[391,1941,1942],{},"        -x & when $x$ is odd\n",[391,1944,1945],{"class":393,"line":469},[391,1946,1947],{},"        \\end{dcases*}\n",[391,1949,1950],{"class":393,"line":570},[391,1951,805],{},[654,1953,1955],{"id":1954},"other-environments","Other environments",[357,1957,1958,1959,416,1961,1963],{},"Although ",[377,1960,1227],{},[377,1962,1230],{}," are the most useful, there are several other environments that may also be of interest:",[1965,1966,1967,1982],"table",{},[1968,1969,1970],"thead",{},[1971,1972,1973],"tr",{},[1974,1975,1976,416,1979],"th",{},[377,1977,1978],{},"eqnarray",[377,1980,1981],{},"eqnarray*",[1983,1984,1985,1995,2000,2010,2015,2020,2030,2035,2045,2052,2062,2067],"tbody",{},[1971,1986,1987],{},[1988,1989,1990,1991,416,1993],"td",{},"Similar to ",[377,1992,1227],{},[377,1994,1230],{},[1971,1996,1997],{},[1988,1998,1999],{},"Not recommended because spacing is inconsistent",[1971,2001,2002],{},[1988,2003,2004,416,2007],{},[377,2005,2006],{},"multline",[377,2008,2009],{},"multline*",[1971,2011,2012],{},[1988,2013,2014],{},"First line left aligned, last line right aligned",[1971,2016,2017],{},[1988,2018,2019],{},"Equation number aligned vertically with first line and not centered as with other environments",[1971,2021,2022],{},[1988,2023,2024,416,2027],{},[377,2025,2026],{},"gather",[377,2028,2029],{},"gather*",[1971,2031,2032],{},[1988,2033,2034],{},"Consecutive equations without alignment",[1971,2036,2037],{},[1988,2038,2039,416,2042],{},[377,2040,2041],{},"flalign",[377,2043,2044],{},"flalign*",[1971,2046,2047],{},[1988,2048,1990,2049,2051],{},[377,2050,1227],{},", but left aligns first equation column, and right aligns last column",[1971,2053,2054],{},[1988,2055,2056,416,2059],{},[377,2057,2058],{},"alignat",[377,2060,2061],{},"alignat*",[1971,2063,2064],{},[1988,2065,2066],{},"Takes an argument specifying number of columns. Allows control of the horizontal space between equations",[1971,2068,2069],{},[1988,2070,2071,2072,2074,2075],{},"This environment takes one argument, the number of \"equation columns\": count the maximum number of ",[377,2073,1246],{},"s in any row, add 1 and divide by 2. ",[391,2076,2077],{},"ftp:\u002F\u002Fftp.ams.org\u002Fams\u002Fdoc\u002Famsmath\u002Famsldoc.pdf",[357,2079,2080],{},"There are also a few environments that don't form a math environment by themselves and can be used as building blocks for more elaborate structures:",[1965,2082,2083,2092],{},[1968,2084,2085],{},[1971,2086,2087],{},[1974,2088,2089],{},[377,2090,2091],{},"gathered",[1983,2093,2094,2099,2106,2116,2123,2130,2137],{},[1971,2095,2096],{},[1988,2097,2098],{},"Allows gathering equations to be set under each other.",[1971,2100,2101],{},[1988,2102,2103],{},[377,2104,2105],{},"split",[1971,2107,2108],{},[1988,2109,1990,2110,2112,2113,2115],{},[377,2111,1227],{},", but used inside another displayed mathematics environment and only supports a single equation column (i.e. a single ",[377,2114,1246],{}," symbol).",[1971,2117,2118],{},[1988,2119,2120],{},[377,2121,2122],{},"aligned",[1971,2124,2125],{},[1988,2126,1990,2127,2129],{},[377,2128,1227],{},", to be used inside another mathematics environment.",[1971,2131,2132],{},[1988,2133,2134],{},[377,2135,2136],{},"alignedat",[1971,2138,2139],{},[1988,2140,1990,2141,2143,2144,367],{},[377,2142,2058],{},", and likewise takes an additional argument specifying the number of columns of equations to set. It can stack inside ",[377,2145,2058],{},[357,2147,2148],{},"For example:",[382,2150,2152],{"className":384,"code":2151,"language":386,"meta":387,"style":387},"\\begin{equation}\n \\left.\\begin{aligned}\n        B'&=-\\partial \\times E,\\\\\n        E'&=\\partial \\times B - 4\\pi j,\n       \\end{aligned}\n \\right\\}\n \\qquad \\text{Maxwell's equations}\n\\end{equation}\n",[377,2153,2154,2159,2164,2169,2174,2179,2184,2189],{"__ignoreMap":387},[391,2155,2156],{"class":393,"line":394},[391,2157,2158],{},"\\begin{equation}\n",[391,2160,2161],{"class":393,"line":400},[391,2162,2163],{}," \\left.\\begin{aligned}\n",[391,2165,2166],{"class":393,"line":406},[391,2167,2168],{},"        B'&=-\\partial \\times E,\\\\\n",[391,2170,2171],{"class":393,"line":462},[391,2172,2173],{},"        E'&=\\partial \\times B - 4\\pi j,\n",[391,2175,2176],{"class":393,"line":469},[391,2177,2178],{},"       \\end{aligned}\n",[391,2180,2181],{"class":393,"line":570},[391,2182,2183],{}," \\right\\}\n",[391,2185,2186],{"class":393,"line":575},[391,2187,2188],{}," \\qquad \\text{Maxwell's equations}\n",[391,2190,2191],{"class":393,"line":581},[391,2192,409],{},[382,2194,2196],{"className":384,"code":2195,"language":386,"meta":387,"style":387},"\\begin{alignat}{2}\n \\sigma_1 &= x + y  &\\quad \\sigma_2 &= \\frac{x}{y} \\\\   \n \\sigma_1' &= \\frac{\\partial x + y}{\\partial x} & \\sigma_2' \n    &= \\frac{\\partial \\frac{x}{y}}{\\partial x}\n\\end{alignat}\n",[377,2197,2198,2203,2208,2213,2218],{"__ignoreMap":387},[391,2199,2200],{"class":393,"line":394},[391,2201,2202],{},"\\begin{alignat}{2}\n",[391,2204,2205],{"class":393,"line":400},[391,2206,2207],{}," \\sigma_1 &= x + y  &\\quad \\sigma_2 &= \\frac{x}{y} \\\\   \n",[391,2209,2210],{"class":393,"line":406},[391,2211,2212],{}," \\sigma_1' &= \\frac{\\partial x + y}{\\partial x} & \\sigma_2' \n",[391,2214,2215],{"class":393,"line":462},[391,2216,2217],{},"    &= \\frac{\\partial \\frac{x}{y}}{\\partial x}\n",[391,2219,2220],{"class":393,"line":469},[391,2221,2222],{},"\\end{alignat}\n",[382,2224,2226],{"className":384,"code":2225,"language":386,"meta":387,"style":387},"\\begin{gather*}\na_0=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\,\\mathrm{d}x\\\\[6pt]\n\\begin{split}\na_n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\cos nx\\,\\mathrm{d}x=\\\\\n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}x^2\\cos nx\\,\\mathrm{d}x\n\\end{split}\\\\[6pt]\n\\begin{split}\nb_n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\sin nx\\,\\mathrm{d}x=\\\\\n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}x^2\\sin nx\\,\\mathrm{d}x\n\\end{split}\\\\[6pt]\n\\end{gather*}\n",[377,2227,2228,2233,2238,2243,2248,2253,2258,2262,2267,2272,2276],{"__ignoreMap":387},[391,2229,2230],{"class":393,"line":394},[391,2231,2232],{},"\\begin{gather*}\n",[391,2234,2235],{"class":393,"line":400},[391,2236,2237],{},"a_0=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\,\\mathrm{d}x\\\\[6pt]\n",[391,2239,2240],{"class":393,"line":406},[391,2241,2242],{},"\\begin{split}\n",[391,2244,2245],{"class":393,"line":462},[391,2246,2247],{},"a_n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\cos nx\\,\\mathrm{d}x=\\\\\n",[391,2249,2250],{"class":393,"line":469},[391,2251,2252],{},"=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}x^2\\cos nx\\,\\mathrm{d}x\n",[391,2254,2255],{"class":393,"line":570},[391,2256,2257],{},"\\end{split}\\\\[6pt]\n",[391,2259,2260],{"class":393,"line":575},[391,2261,2242],{},[391,2263,2264],{"class":393,"line":581},[391,2265,2266],{},"b_n=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}f(x)\\sin nx\\,\\mathrm{d}x=\\\\\n",[391,2268,2269],{"class":393,"line":587},[391,2270,2271],{},"=\\frac{1}{\\pi}\\int\\limits_{-\\pi}^{\\pi}x^2\\sin nx\\,\\mathrm{d}x\n",[391,2273,2274],{"class":393,"line":593},[391,2275,2257],{},[391,2277,2278],{"class":393,"line":599},[391,2279,2280],{},"\\end{gather*}\n",[369,2282,2284],{"id":2283},"indented-equations","Indented equations",[357,2286,2287,2288,2291,2292,2295],{},"To indent an equation, you can set ",[377,2289,2290],{},"fleqn"," in the document class and then specify a certain value for the ",[377,2293,2294],{},"\\mathindent"," variable:",[382,2297,2299],{"className":384,"code":2298,"language":386,"meta":387,"style":387},"\\documentclass[a4paper,fleqn]{report}\n\\usepackage{amsmath}\n\\setlength{\\mathindent}{1cm}\n\\begin{document}\n\\noindent Euler's formula is given below:\n\\begin{equation*}\n e^{ix} = \\cos{x} + i \\sin{x}.\n\\end{equation*}\n\\noindent This is a very important formula.\n\\end{document}\n",[377,2300,2301,2306,2310,2315,2320,2325,2330,2335,2340,2345],{"__ignoreMap":387},[391,2302,2303],{"class":393,"line":394},[391,2304,2305],{},"\\documentclass[a4paper,fleqn]{report}\n",[391,2307,2308],{"class":393,"line":400},[391,2309,552],{},[391,2311,2312],{"class":393,"line":406},[391,2313,2314],{},"\\setlength{\\mathindent}{1cm}\n",[391,2316,2317],{"class":393,"line":462},[391,2318,2319],{},"\\begin{document}\n",[391,2321,2322],{"class":393,"line":469},[391,2323,2324],{},"\\noindent Euler's formula is given below:\n",[391,2326,2327],{"class":393,"line":570},[391,2328,2329],{},"\\begin{equation*}\n",[391,2331,2332],{"class":393,"line":575},[391,2333,2334],{}," e^{ix} = \\cos{x} + i \\sin{x}.\n",[391,2336,2337],{"class":393,"line":581},[391,2338,2339],{},"\\end{equation*}\n",[391,2341,2342],{"class":393,"line":587},[391,2343,2344],{},"\\noindent This is a very important formula.\n",[391,2346,2347],{"class":393,"line":593},[391,2348,602],{},[369,2350,2352],{"id":2351},"page-breaks-in-math-environments","Page breaks in math environments",[357,2354,2355,2356,2358,2359,2362,2363,1445,2366,2368],{},"To suggest that LaTeX insert a page break inside an ",[377,2357,427],{}," environment, you may use the ",[377,2360,2361],{},"\\displaybreak"," command before the line break. Just as with ",[377,2364,2365],{},"\\pagebreak",[377,2367,2361],{}," can take an optional argument between 0 and 4 denoting the level of desirability of a page break. Whereas 0 means \"it is permissible to break here\", 4 forces a break. No argument means the same as 4.",[357,2370,2371,2372,2375,2376,367],{},"Alternatively, you may enable automatic page breaks in math environments with ",[377,2373,2374],{},"\\allowdisplaybreaks",". It too can have an optional argument denoting the priority of page breaks in equations. Similarly, 1 means \"allow page breaks but avoid them\" and 4 means \"break whenever you want\". You can prohibit a page break after a given line using ",[377,2377,2378],{},"\\\\*",[357,2380,2381,2382,2385],{},"LaTeX will insert a page break into a long equation if it has additional text added using ",[377,2383,2384],{},"\\intertext{}"," without any additional commands.",[357,2387,2388],{},"Specific usage may look like this:",[382,2390,2392],{"className":384,"code":2391,"language":386,"meta":387,"style":387},"\\begin{align*}\n &\\vdots\\\\ \n &=12+7 \\int_0^2\n  \\left(\n    -\\frac{1}{4}\\left(e^{-4t_1}+e^{4t_1-8}\\right)\n  \\right)\\,dt_1\\displaybreak[3]\\\\\n &= 12-\\frac{7}{4}\\int_0^2 \\left( e^{-4t_1}+e^{4t_1-8} \\right)\\,dt_1\\\\\n &\\vdots % \n\\end{align*}\n",[377,2393,2394,2398,2403,2408,2413,2418,2423,2428,2433],{"__ignoreMap":387},[391,2395,2396],{"class":393,"line":394},[391,2397,1268],{},[391,2399,2400],{"class":393,"line":400},[391,2401,2402],{}," &\\vdots\\\\ \n",[391,2404,2405],{"class":393,"line":406},[391,2406,2407],{}," &=12+7 \\int_0^2\n",[391,2409,2410],{"class":393,"line":462},[391,2411,2412],{},"  \\left(\n",[391,2414,2415],{"class":393,"line":469},[391,2416,2417],{},"    -\\frac{1}{4}\\left(e^{-4t_1}+e^{4t_1-8}\\right)\n",[391,2419,2420],{"class":393,"line":570},[391,2421,2422],{},"  \\right)\\,dt_1\\displaybreak[3]\\\\\n",[391,2424,2425],{"class":393,"line":575},[391,2426,2427],{}," &= 12-\\frac{7}{4}\\int_0^2 \\left( e^{-4t_1}+e^{4t_1-8} \\right)\\,dt_1\\\\\n",[391,2429,2430],{"class":393,"line":581},[391,2431,2432],{}," &\\vdots % \n",[391,2434,2435],{"class":393,"line":587},[391,2436,1283],{},[357,2438,2439,2440,2443,2444,2447],{},"Page breaks before display maths (of all various forms) are controlled by ",[377,2441,2442],{},"\\predisplaypenalty",".  Its default 10000 means never break immediately before a display.  Knuth (",[810,2445,2446],{},"TeXbook"," chapter 19) explains this as a printers' tradition not to have a displayed equation at the start of a page.  It can be relaxed with",[382,2449,2451],{"className":384,"code":2450,"language":386,"meta":387,"style":387},"\\predisplaypenalty=0\n",[377,2452,2453],{"__ignoreMap":387},[391,2454,2455],{"class":393,"line":394},[391,2456,2450],{},[357,2458,2459],{},"Sometimes an equation might look best kept together preceding text by a higher penalty, for example, a single-line paragraph about a single-line equation, especially at the end of a section.",[369,2461,2463],{"id":2462},"boxed-equations","Boxed equations",[357,2465,2466,2467,440],{},"For a single equation or alignment building block, with the tag outside the box, use ",[377,2468,2469],{},"\\boxed{}",[382,2471,2473],{"className":384,"code":2472,"language":386,"meta":387,"style":387},"\\begin{equation}\n \\boxed{x^2+y^2 = z^2}\n\\end{equation}\n",[377,2474,2475,2479,2484],{"__ignoreMap":387},[391,2476,2477],{"class":393,"line":394},[391,2478,2158],{},[391,2480,2481],{"class":393,"line":400},[391,2482,2483],{}," \\boxed{x^2+y^2 = z^2}\n",[391,2485,2486],{"class":393,"line":406},[391,2487,409],{},[357,2489,2490,2491,2494,2495,440],{},"If you want the entire line or several equations to be boxed, use a ",[377,2492,2493],{},"minipage"," inside an ",[377,2496,2497],{},"\\fbox{}",[382,2499,2501],{"className":384,"code":2500,"language":386,"meta":387,"style":387},"\\fbox{\n \\addtolength{\\linewidth}{-2\\fboxsep}%\n \\addtolength{\\linewidth}{-2\\fboxrule}%\n \\begin{minipage}{\\linewidth}\n  \\begin{equation}\n   x^2+y^2=z^2\n  \\end{equation}\n \\end{minipage}\n}\n",[377,2502,2503,2508,2513,2518,2523,2528,2533,2538,2543],{"__ignoreMap":387},[391,2504,2505],{"class":393,"line":394},[391,2506,2507],{},"\\fbox{\n",[391,2509,2510],{"class":393,"line":400},[391,2511,2512],{}," \\addtolength{\\linewidth}{-2\\fboxsep}%\n",[391,2514,2515],{"class":393,"line":406},[391,2516,2517],{}," \\addtolength{\\linewidth}{-2\\fboxrule}%\n",[391,2519,2520],{"class":393,"line":462},[391,2521,2522],{}," \\begin{minipage}{\\linewidth}\n",[391,2524,2525],{"class":393,"line":469},[391,2526,2527],{},"  \\begin{equation}\n",[391,2529,2530],{"class":393,"line":570},[391,2531,2532],{},"   x^2+y^2=z^2\n",[391,2534,2535],{"class":393,"line":575},[391,2536,2537],{},"  \\end{equation}\n",[391,2539,2540],{"class":393,"line":581},[391,2541,2542],{}," \\end{minipage}\n",[391,2544,2545],{"class":393,"line":587},[391,2546,2547],{},"}\n",[357,2549,2550,2551,2554],{},"There is also the mathtools ",[377,2552,2553],{},"\\Aboxed{}"," which is able to box across alignment marks:",[382,2556,2558],{"className":384,"code":2557,"language":386,"meta":387,"style":387},"\\begin{align*}\n\\Aboxed{ f(x) & = \\int h(x)\\, dx} \\\\\n              & = g(x)\n\\end{align*}\n",[377,2559,2560,2564,2569,2574],{"__ignoreMap":387},[391,2561,2562],{"class":393,"line":394},[391,2563,1268],{},[391,2565,2566],{"class":393,"line":400},[391,2567,2568],{},"\\Aboxed{ f(x) & = \\int h(x)\\, dx} \\\\\n",[391,2570,2571],{"class":393,"line":406},[391,2572,2573],{},"              & = g(x)\n",[391,2575,2576],{"class":393,"line":462},[391,2577,1283],{},[369,2579,2581],{"id":2580},"custom-operators","Custom operators",[357,2583,2584,2585,2589,2590,2594,2595,416,2598,2601,2602,2605,2606,2609],{},"Although many common ",[361,2586,2588],{"href":2587},"\u002Ftechnical-writing\u002Fmathematics#operators","operators"," are available in LaTeX, sometimes you will need to write your own, e.g. to typeset the [argmax](",[361,2591,2592],{"href":2592,"rel":2593},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FArg",[365]," max) operator. The ",[377,2596,2597],{},"\\operatorname",[377,2599,2600],{},"\\operatorname*"," commands display custom operators; the ",[377,2603,2604],{},"*"," version sets the underscored option underneath like the ",[377,2607,2608],{},"\\lim"," operator:",[382,2611,2613],{"className":384,"code":2612,"language":386,"meta":387,"style":387},"\\[\n \\operatorname{arg\\,max}_a f(a) \n = \\operatorname*{arg\\,max}_b f(b)\n\\]\n",[377,2614,2615,2619,2624,2629],{"__ignoreMap":387},[391,2616,2617],{"class":393,"line":394},[391,2618,795],{},[391,2620,2621],{"class":393,"line":400},[391,2622,2623],{}," \\operatorname{arg\\,max}_a f(a) \n",[391,2625,2626],{"class":393,"line":406},[391,2627,2628],{}," = \\operatorname*{arg\\,max}_b f(b)\n",[391,2630,2631],{"class":393,"line":462},[391,2632,805],{},[357,2634,2635,2636,416,2639,2642],{},"However, if the operator is frequently used, it is preferable to define a new operator that can be used throughout the entire document. The ",[377,2637,2638],{},"\\DeclareMathOperator",[377,2640,2641],{},"\\DeclareMathOperator*"," commands are specified in the header of the document:",[382,2644,2646],{"className":384,"code":2645,"language":386,"meta":387,"style":387},"\\DeclareMathOperator*{\\argmax}{arg\\,max}\n",[377,2647,2648],{"__ignoreMap":387},[391,2649,2650],{"class":393,"line":394},[391,2651,2645],{},[357,2653,2654],{},"This defines a new command which may be referred to in the body:",[382,2656,2658],{"className":384,"code":2657,"language":386,"meta":387,"style":387},"\\[\n \\argmax_c f(c)\n\\]\n",[377,2659,2660,2664,2669],{"__ignoreMap":387},[391,2661,2662],{"class":393,"line":394},[391,2663,795],{},[391,2665,2666],{"class":393,"line":400},[391,2667,2668],{}," \\argmax_c f(c)\n",[391,2670,2671],{"class":393,"line":406},[391,2672,805],{},[369,2674,2676],{"id":2675},"advanced-formatting","Advanced formatting",[654,2678,2680],{"id":2679},"limits","Limits",[357,2682,2683,2684,2687],{},"There are defaults for placement of subscripts and superscripts.  For example, limits for the ",[377,2685,2686],{},"lim"," operator are usually placed below the symbol:",[382,2689,2691],{"className":384,"code":2690,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\lim_{a\\to \\infty} \\tfrac{1}{a}\n\\end{equation}\n",[377,2692,2693,2697,2702],{"__ignoreMap":387},[391,2694,2695],{"class":393,"line":394},[391,2696,2158],{},[391,2698,2699],{"class":393,"line":400},[391,2700,2701],{},"  \\lim_{a\\to \\infty} \\tfrac{1}{a}\n",[391,2703,2704],{"class":393,"line":406},[391,2705,409],{},[357,2707,2708,2709,2609],{},"To override this behavior, use the ",[377,2710,2711],{},"\\nolimits",[382,2713,2715],{"className":384,"code":2714,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\lim\\nolimits_{a\\to \\infty} \\tfrac{1}{a}\n\\end{equation}\n",[377,2716,2717,2721,2726],{"__ignoreMap":387},[391,2718,2719],{"class":393,"line":394},[391,2720,2158],{},[391,2722,2723],{"class":393,"line":400},[391,2724,2725],{},"  \\lim\\nolimits_{a\\to \\infty} \\tfrac{1}{a}\n",[391,2727,2728],{"class":393,"line":406},[391,2729,409],{},[357,2731,2732,2733,2735,2736,2739,2740,2743],{},"A ",[377,2734,2686],{}," in running text (inside ",[377,2737,2738],{},"$...$",") will have its limits placed on the side, so that additional leading won't be required. To override this behavior, use the ",[377,2741,2742],{},"\\limits"," command.",[357,2745,2746],{},"Similarly one can put subscripts under a symbol that usually has them on the side:",[382,2748,2750],{"className":384,"code":2749,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\int_a^b x^2  \\mathrm{d} x\n\\end{equation}\n",[377,2751,2752,2756,2761],{"__ignoreMap":387},[391,2753,2754],{"class":393,"line":394},[391,2755,2158],{},[391,2757,2758],{"class":393,"line":400},[391,2759,2760],{},"  \\int_a^b x^2  \\mathrm{d} x\n",[391,2762,2763],{"class":393,"line":406},[391,2764,409],{},[357,2766,2767],{},"Limits below and under:",[382,2769,2771],{"className":384,"code":2770,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\int\\limits_a^b x^2  \\mathrm{d} x\n\\end{equation}\n",[377,2772,2773,2777,2782],{"__ignoreMap":387},[391,2774,2775],{"class":393,"line":394},[391,2776,2158],{},[391,2778,2779],{"class":393,"line":400},[391,2780,2781],{},"  \\int\\limits_a^b x^2  \\mathrm{d} x\n",[391,2783,2784],{"class":393,"line":406},[391,2785,409],{},[357,2787,2788,2789,2792,2793,2795,2796,2799,2800,2803,2804,1445,2807,1445,2810,2812],{},"To change the default placement of summation-type symbols to the side for every case, add the ",[377,2790,2791],{},"nosumlimits"," option to the ",[377,2794,427],{}," package. To change the placement for integral symbols, add ",[377,2797,2798],{},"intlimits"," to the options. ",[377,2801,2802],{},"nonamelimits"," can be used to change the default for named operators like ",[377,2805,2806],{},"det",[377,2808,2809],{},"min",[377,2811,2686],{},", etc.",[357,2814,2815,2816,2818],{},"To produce one-sided limits, use ",[377,2817,777],{}," as follows:",[382,2820,2822],{"className":384,"code":2821,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\lim_{a \\underset{>}{\\to} 0} \\frac{1}{a}\n\\end{equation}\n",[377,2823,2824,2828,2833],{"__ignoreMap":387},[391,2825,2826],{"class":393,"line":394},[391,2827,2158],{},[391,2829,2830],{"class":393,"line":400},[391,2831,2832],{},"  \\lim_{a \\underset{>}{\\to} 0} \\frac{1}{a}\n",[391,2834,2835],{"class":393,"line":406},[391,2836,409],{},[654,2838,2840],{"id":2839},"subscripts-and-superscripts","Subscripts and superscripts",[357,2842,2843,2844,440],{},"You can place symbols in subscript or superscript (in summation style symbols) with ",[377,2845,2711],{},[382,2847,2849],{"className":384,"code":2848,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\sum\\nolimits' C_n\n\\end{equation}\n",[377,2850,2851,2855,2860],{"__ignoreMap":387},[391,2852,2853],{"class":393,"line":394},[391,2854,2158],{},[391,2856,2857],{"class":393,"line":400},[391,2858,2859],{},"  \\sum\\nolimits' C_n\n",[391,2861,2862],{"class":393,"line":406},[391,2863,409],{},[357,2865,2866],{},"It's impossible to mix them with typical usage of such symbols:",[382,2868,2870],{"className":384,"code":2869,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\sum_{n=1}\\nolimits' C_n\n\\end{equation}\n",[377,2871,2872,2876,2881],{"__ignoreMap":387},[391,2873,2874],{"class":393,"line":394},[391,2875,2158],{},[391,2877,2878],{"class":393,"line":400},[391,2879,2880],{},"  \\sum_{n=1}\\nolimits' C_n\n",[391,2882,2883],{"class":393,"line":406},[391,2884,409],{},[357,2886,2887,2888,935],{},"To add both a prime and a limit to a symbol, one might use the ",[377,2889,2890],{},"\\sideset",[382,2892,2894],{"className":384,"code":2893,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\sideset{}{'}\\sum_{n=1}C_n\n\\end{equation}\n",[377,2895,2896,2900,2905],{"__ignoreMap":387},[391,2897,2898],{"class":393,"line":394},[391,2899,2158],{},[391,2901,2902],{"class":393,"line":400},[391,2903,2904],{},"  \\sideset{}{'}\\sum_{n=1}C_n\n",[391,2906,2907],{"class":393,"line":406},[391,2908,409],{},[357,2910,2911],{},"It is very flexible: for example, to put letters in each corner of the symbol use this command:",[382,2913,2915],{"className":384,"code":2914,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\sideset{_a^b}{_c^d}\\sum\n\\end{equation}\n",[377,2916,2917,2921,2926],{"__ignoreMap":387},[391,2918,2919],{"class":393,"line":394},[391,2920,2158],{},[391,2922,2923],{"class":393,"line":400},[391,2924,2925],{},"  \\sideset{_a^b}{_c^d}\\sum\n",[391,2927,2928],{"class":393,"line":406},[391,2929,409],{},[357,2931,2932,2933,424,2936,2939],{},"If you wish to place them on the corners of an arbitrary symbol, you should use ",[377,2934,2935],{},"\\fourIdx",[377,2937,2938],{},"fouridx"," package.",[357,2941,2942],{},"But a simple grouping can also solve the problem:",[382,2944,2946],{"className":384,"code":2945,"language":386,"meta":387,"style":387},"\\begin{equation}\n  {\\sum\\limits_{n=1} }'C_n\n\\end{equation}\n",[377,2947,2948,2952,2957],{"__ignoreMap":387},[391,2949,2950],{"class":393,"line":394},[391,2951,2158],{},[391,2953,2954],{"class":393,"line":400},[391,2955,2956],{},"  {\\sum\\limits_{n=1} }'C_n\n",[391,2958,2959],{"class":393,"line":406},[391,2960,409],{},[357,2962,2963],{},"since a math operator can be used with limits or no limits. If you want to change its state, simply group it. You can make it another math operator if you want, and then you can have limits and then limits again.",[654,2965,2967],{"id":2966},"multiline-subscripts","Multiline subscripts",[357,2969,2970,2971,935],{},"To produce multiline subscript, use the ",[377,2972,2973],{},"\\substack",[382,2975,2977],{"className":384,"code":2976,"language":386,"meta":387,"style":387},"\\begin{equation}\n  \\prod_{\\substack{\n            1\\le i \\le n\\\\\n            1\\le j \\le m}}\n     M_{i,j}\n\\end{equation}\n",[377,2978,2979,2983,2988,2993,2998,3003],{"__ignoreMap":387},[391,2980,2981],{"class":393,"line":394},[391,2982,2158],{},[391,2984,2985],{"class":393,"line":400},[391,2986,2987],{},"  \\prod_{\\substack{\n",[391,2989,2990],{"class":393,"line":406},[391,2991,2992],{},"            1\\le i \\le n\\\\\n",[391,2994,2995],{"class":393,"line":462},[391,2996,2997],{},"            1\\le j \\le m}}\n",[391,2999,3000],{"class":393,"line":469},[391,3001,3002],{},"     M_{i,j}\n",[391,3004,3005],{"class":393,"line":570},[391,3006,409],{},[369,3008,3010],{"id":3009},"text-in-aligned-math-display","Text in aligned math display",[357,3012,3013,3014,935],{},"To add small interjections in math environments, use the ",[377,3015,3016],{},"\\intertext",[382,3018,3020],{"className":384,"code":3019,"language":386,"meta":387,"style":387},"\\begin{minipage}{3in}\n\\begin{align*}\n\\intertext{If}\n   A &= \\sigma_1+\\sigma_2\\\\\n   B &= \\rho_1+\\rho_2\\\\\n\\intertext{then}\nC(x) &= e^{Ax^2+\\pi}+B\n\\end{align*} \n\\end{minipage}\n",[377,3021,3022,3027,3031,3036,3041,3046,3051,3056,3061],{"__ignoreMap":387},[391,3023,3024],{"class":393,"line":394},[391,3025,3026],{},"\\begin{minipage}{3in}\n",[391,3028,3029],{"class":393,"line":400},[391,3030,1268],{},[391,3032,3033],{"class":393,"line":406},[391,3034,3035],{},"\\intertext{If}\n",[391,3037,3038],{"class":393,"line":462},[391,3039,3040],{},"   A &= \\sigma_1+\\sigma_2\\\\\n",[391,3042,3043],{"class":393,"line":469},[391,3044,3045],{},"   B &= \\rho_1+\\rho_2\\\\\n",[391,3047,3048],{"class":393,"line":570},[391,3049,3050],{},"\\intertext{then}\n",[391,3052,3053],{"class":393,"line":575},[391,3054,3055],{},"C(x) &= e^{Ax^2+\\pi}+B\n",[391,3057,3058],{"class":393,"line":581},[391,3059,3060],{},"\\end{align*} \n",[391,3062,3063],{"class":393,"line":587},[391,3064,3065],{},"\\end{minipage}\n",[357,3067,3068],{},"Note that any usage of this command does not change the alignment.",[357,3070,3071,3072,424,3075,3077,3078,3080],{},"Also, in the above example, the command ",[377,3073,3074],{},"\\shortintertext{} ",[377,3076,1075],{}," package could have been used instead of ",[377,3079,3016],{}," to reduce the amount of vertical white space added between the lines.",[369,3082,3084],{"id":3083},"changing-font-size","Changing font size",[357,3086,3087,3088,3091,3092,367],{},"There may be a time when you would prefer to have some control over the font size. For example, using text-mode maths, by default a simple fraction will look like this: ",[377,3089,3090],{},"$\\textstyle \\frac{a}{b}$",", whereas you may prefer to have it displayed larger, like when in display mode, but still keeping it in-line, like this: ",[377,3093,3094],{},"$\\displaystyle \\frac{a}{b}$",[357,3096,3097],{},"A simple approach is to utilize the predefined sizes for maths elements:",[1965,3099,3100,3109],{},[1968,3101,3102],{},[1971,3103,3104],{},[1974,3105,3106],{},[377,3107,3108],{},"\\displaystyle",[1983,3110,3111,3116,3123,3128,3135,3140,3147],{},[1971,3112,3113],{},[1988,3114,3115],{},"Size for equations in display mode",[1971,3117,3118],{},[1988,3119,3120],{},[377,3121,3122],{},"\\textstyle",[1971,3124,3125],{},[1988,3126,3127],{},"Size for equations in text mode",[1971,3129,3130],{},[1988,3131,3132],{},[377,3133,3134],{},"\\scriptstyle",[1971,3136,3137],{},[1988,3138,3139],{},"Size for first sub\u002Fsuperscripts",[1971,3141,3142],{},[1988,3143,3144],{},[377,3145,3146],{},"\\scriptscriptstyle",[1971,3148,3149],{},[1988,3150,3151],{},"Size for subsequent sub\u002Fsuperscripts",[357,3153,3154,3155,3158,3159,3161],{},"A classic example to see this in use is typesetting continued fractions (though it's better to use the ",[377,3156,3157],{},"\\cfrac"," command described in the ",[361,3160,154],{"href":155}," chapter instead of the method provided below). The following code provides an example.",[382,3163,3165],{"className":384,"code":3164,"language":386,"meta":387,"style":387},"\\begin{equation}\n  x = a_0 + \\frac{1}{a_1 + \\frac{1}{a_2 + \\frac{1}{a_3 + a_4}}}\n\\end{equation}\n",[377,3166,3167,3171,3176],{"__ignoreMap":387},[391,3168,3169],{"class":393,"line":394},[391,3170,2158],{},[391,3172,3173],{"class":393,"line":400},[391,3174,3175],{},"  x = a_0 + \\frac{1}{a_1 + \\frac{1}{a_2 + \\frac{1}{a_3 + a_4}}}\n",[391,3177,3178],{"class":393,"line":406},[391,3179,409],{},[357,3181,3182,3183,3185],{},"As you can see, as the fractions continue, they get smaller (although they will not get any smaller than in this example, where they have reached the ",[377,3184,3134],{}," limit). If you want to keep the size consistent, you could declare each fraction to use the display style instead; e.g.",[382,3187,3189],{"className":384,"code":3188,"language":386,"meta":387,"style":387},"\\begin{equation}\n  x = a_0 + \\frac{1}{\\displaystyle a_1 \n          + \\frac{1}{\\displaystyle a_2 \n          + \\frac{1}{\\displaystyle a_3 + a_4}}}\n\\end{equation}\n",[377,3190,3191,3195,3200,3205,3210],{"__ignoreMap":387},[391,3192,3193],{"class":393,"line":394},[391,3194,2158],{},[391,3196,3197],{"class":393,"line":400},[391,3198,3199],{},"  x = a_0 + \\frac{1}{\\displaystyle a_1 \n",[391,3201,3202],{"class":393,"line":406},[391,3203,3204],{},"          + \\frac{1}{\\displaystyle a_2 \n",[391,3206,3207],{"class":393,"line":462},[391,3208,3209],{},"          + \\frac{1}{\\displaystyle a_3 + a_4}}}\n",[391,3211,3212],{"class":393,"line":469},[391,3213,409],{},[357,3215,3216,3217,3220,3221,1445,3223,3225],{},"Another approach is to use the ",[377,3218,3219],{},"\\DeclareMathSizes"," command to select your preferred sizes. You can only define sizes for ",[377,3222,3108],{},[377,3224,3122],{},", etc. One potential downside is that this command sets the global maths sizes, as it can only be used in the document preamble.",[357,3227,3228,3229,3232,3233,3236,3237,1445,3240,3236,3243,3246],{},"But it's fairly easy to use: ",[377,3230,3231],{},"\\DeclareMathSizes{ds}{ts}{ss}{sss}",", where ",[810,3234,3235],{},"ds"," is the ",[810,3238,3239],{},"display size",[810,3241,3242],{},"ts",[810,3244,3245],{},"text size",", etc. The values you input are assumed to be point (pt) size.",[357,3248,3249],{},"Note that the changes only take place if the value in the first argument matches the current document text size. It is therefore common to see a set of declarations in the preamble, in the event of the main font being changed. E.g.,",[382,3251,3253],{"className":384,"code":3252,"language":386,"meta":387,"style":387},"\\DeclareMathSizes{10}{18}{12}{8}   % For size 10 text\n\\DeclareMathSizes{11}{19}{13}{9}   % For size 11 text\n\\DeclareMathSizes{12}{20}{14}{10}  % For size 12 text\n",[377,3254,3255,3260,3265],{"__ignoreMap":387},[391,3256,3257],{"class":393,"line":394},[391,3258,3259],{},"\\DeclareMathSizes{10}{18}{12}{8}   % For size 10 text\n",[391,3261,3262],{"class":393,"line":400},[391,3263,3264],{},"\\DeclareMathSizes{11}{19}{13}{9}   % For size 11 text\n",[391,3266,3267],{"class":393,"line":406},[391,3268,3269],{},"\\DeclareMathSizes{12}{20}{14}{10}  % For size 12 text\n",[369,3271,3273],{"id":3272},"forcing-displaystyle-for-all-math-in-a-document","Forcing \\displaystyle for all math in a document",[357,3275,3276],{},"Put",[382,3278,3280],{"className":384,"code":3279,"language":386,"meta":387,"style":387},"\\everymath{\\displaystyle}\n",[377,3281,3282],{"__ignoreMap":387},[391,3283,3284],{"class":393,"line":394},[391,3285,3279],{},[357,3287,3288],{},"before",[382,3290,3291],{"className":384,"code":2319,"language":386,"meta":387,"style":387},[377,3292,3293],{"__ignoreMap":387},[391,3294,3295],{"class":393,"line":394},[391,3296,2319],{},[357,3298,3299],{},"to force all math to",[382,3301,3303],{"className":384,"code":3302,"language":386,"meta":387,"style":387},"\\displaystyle\n",[377,3304,3305],{"__ignoreMap":387},[391,3306,3307],{"class":393,"line":394},[391,3308,3302],{},[357,3310,367],{},[369,3312,3314],{"id":3313},"adjusting-vertical-white-space-around-displayed-math","Adjusting vertical white space around displayed math",[357,3316,3317],{},"There are four parameters that control the vertical white space around displayed math:",[382,3319,3321],{"className":384,"code":3320,"language":386,"meta":387,"style":387},"\\abovedisplayskip=12pt\n\\belowdisplayskip=12pt\n\\abovedisplayshortskip=0pt\n\\belowdisplayshortskip=7pt\n",[377,3322,3323,3328,3333,3338],{"__ignoreMap":387},[391,3324,3325],{"class":393,"line":394},[391,3326,3327],{},"\\abovedisplayskip=12pt\n",[391,3329,3330],{"class":393,"line":400},[391,3331,3332],{},"\\belowdisplayskip=12pt\n",[391,3334,3335],{"class":393,"line":406},[391,3336,3337],{},"\\abovedisplayshortskip=0pt\n",[391,3339,3340],{"class":393,"line":462},[391,3341,3342],{},"\\belowdisplayshortskip=7pt\n",[357,3344,3345],{},"Short skips are used if the preceding line ends, horizontally, before the formula. These parameters must be set after",[382,3347,3348],{"className":384,"code":2319,"language":386,"meta":387,"style":387},[377,3349,3350],{"__ignoreMap":387},[391,3351,3352],{"class":393,"line":394},[391,3353,2319],{},[357,3355,367],{},[369,3357,3359],{"id":3358},"notes","Notes",[3361,3362,3363],"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":387,"searchDepth":400,"depth":400,"links":3365},[3366,3369,3378,3379,3380,3381,3382,3387,3388,3389,3390,3391],{"id":371,"depth":400,"text":372,"children":3367},[3368],{"id":656,"depth":406,"text":657},{"id":755,"depth":400,"text":756,"children":3370},[3371,3372,3374,3375,3377],{"id":768,"depth":406,"text":769},{"id":1224,"depth":406,"text":3373},"align and align*",{"id":1390,"depth":406,"text":1391},{"id":1544,"depth":406,"text":3376},"The cases environment",{"id":1954,"depth":406,"text":1955},{"id":2283,"depth":400,"text":2284},{"id":2351,"depth":400,"text":2352},{"id":2462,"depth":400,"text":2463},{"id":2580,"depth":400,"text":2581},{"id":2675,"depth":400,"text":2676,"children":3383},[3384,3385,3386],{"id":2679,"depth":406,"text":2680},{"id":2839,"depth":406,"text":2840},{"id":2966,"depth":406,"text":2967},{"id":3009,"depth":400,"text":3010},{"id":3083,"depth":400,"text":3084},{"id":3272,"depth":400,"text":3273},{"id":3313,"depth":400,"text":3314},{"id":3358,"depth":400,"text":3359},"Advanced equation alignment, formatting, multiline matrices, and complex math layouts in LaTeX.","md",null,{},{"title":158,"description":3392},"zEWOQQDQOckZFuLMqq5lC6mAMubkjLIuS5buc0tbw3w",[3399,3401],{"title":154,"path":155,"stem":156,"description":3400,"children":-1},"Comprehensive guide to typesetting mathematical formulas, notations, equations, and structures in LaTeX.",{"title":162,"path":163,"stem":164,"description":3402,"children":-1},"Defining, numbering, and typesetting custom theorem, lemma, definition, and proof environments in LaTeX.",1785155503906]