[{"data":1,"prerenderedAt":1645},["ShallowReactive",2],{"navigation_docs":3,"-document-fundamentals-document-structure":351,"-document-fundamentals-document-structure-surround":1640},[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":52,"body":353,"description":1634,"extension":1635,"links":1636,"meta":1637,"navigation":394,"path":53,"seo":1638,"stem":54,"__hash__":1639},"docs\u002F03.document-fundamentals\u002F01.document-structure.md",{"type":354,"value":355,"toc":1614},"minimark",[356,360,363,368,371,414,430,433,450,453,460,473,476,481,488,497,515,518,527,530,536,656,661,781,784,793,797,800,809,823,855,858,867,871,875,882,885,929,954,963,967,977,1028,1038,1047,1051,1054,1112,1122,1125,1228,1231,1251,1256,1263,1272,1279,1288,1291,1300,1304,1310,1314,1321,1325,1332,1345,1348,1363,1367,1370,1379,1382,1386,1389,1483,1517,1521,1524,1529,1556,1561,1566,1571,1576,1581,1589,1593,1596,1599,1607,1610],[357,358,359],"p",{},"The main point of writing a text is to convey ideas, information, or knowledge to the reader. The reader will understand the text better if these ideas are well-structured, and will see and feel this structure much better if the typographical form reflects the logical and semantic structure of the content.",[357,361,362],{},"Given only the logical and semantical structure of a text, LaTeX derives the typographical form of the text according to the \"rules\" given in the document class file and in various style files. LaTeX allows users to structure their documents with a variety of hierarchical constructs, including chapters, sections, subsections and paragraphs.",[364,365,367],"h2",{"id":366},"global-structure","Global Structure",[357,369,370],{},"When LaTeX processes an input file, it expects it to follow a certain structure. Thus every input file must contain the commands:",[372,373,378],"pre",{"className":374,"code":375,"language":376,"meta":377,"style":377},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\documentclass{...}\n\n\\begin{document}\n...\n\\end{document}\n","latex","",[379,380,381,389,396,402,408],"code",{"__ignoreMap":377},[382,383,386],"span",{"class":384,"line":385},"line",1,[382,387,388],{},"\\documentclass{...}\n",[382,390,392],{"class":384,"line":391},2,[382,393,395],{"emptyLinePlaceholder":394},true,"\n",[382,397,399],{"class":384,"line":398},3,[382,400,401],{},"\\begin{document}\n",[382,403,405],{"class":384,"line":404},4,[382,406,407],{},"...\n",[382,409,411],{"class":384,"line":410},5,[382,412,413],{},"\\end{document}\n",[357,415,416,417,420,421,424,425,429],{},"The area between ",[379,418,419],{},"\\documentclass{...}"," and ",[379,422,423],{},"\\begin{document}"," is called the ",[426,427,428],"em",{},"preamble",". It normally contains commands that affect the entire document.",[357,431,432],{},"After the preamble, the text of your document is enclosed between two commands which identify the beginning and end of the actual document:",[372,434,436],{"className":374,"code":435,"language":376,"meta":377,"style":377},"\\begin{document}\n...\n\\end{document}\n",[379,437,438,442,446],{"__ignoreMap":377},[382,439,440],{"class":384,"line":385},[382,441,401],{},[382,443,444],{"class":384,"line":391},[382,445,407],{},[382,447,448],{"class":384,"line":398},[382,449,413],{},[357,451,452],{},"You would put your text where the dots are. The reason for marking off the beginning of your text is that LaTeX allows you to insert extra setup specifications before it. The reason for marking off the end of your text is to provide a place for LaTeX to be programmed to do extra stuff automatically at the end of the document, like making an index.",[357,454,455,456,459],{},"A useful side-effect of marking the end of the document text is that you can store comments or temporary text underneath the ",[379,457,458],{},"\\end{document}"," in the knowledge that LaTeX will never try to typeset them:",[372,461,463],{"className":374,"code":462,"language":376,"meta":377,"style":377},"\\end{document}\n...\n",[379,464,465,469],{"__ignoreMap":377},[382,466,467],{"class":384,"line":385},[382,468,413],{},[382,470,471],{"class":384,"line":391},[382,472,407],{},[364,474,475],{"id":428},"Preamble",[477,478,480],"h3",{"id":479},"document-classes","Document Classes",[357,482,483,484,487],{},"When processing an input file, LaTeX needs to know which layout standard to use. Layout standards are contained within class files which have ",[379,485,486],{},".cls"," as their filename extension.",[372,489,491],{"className":374,"code":490,"language":376,"meta":377,"style":377},"\\documentclass[options]{class}\n",[379,492,493],{"__ignoreMap":377},[382,494,495],{"class":384,"line":385},[382,496,490],{},[357,498,499,500,503,504,507,508,510,511,514],{},"Here, the ",[379,501,502],{},"class"," parameter for the command ",[379,505,506],{},"\\documentclass"," specifies the ",[379,509,486],{}," file to use for the document. It is recommended to put this declaration at the very beginning. The LaTeX distribution provides additional classes for other layouts, including letters and slides. It is also possible to create your own, as is often done by journal publishers, who simply provide you with their own class file, which tells LaTeX how to format your content. The ",[379,512,513],{},"options"," parameter customizes the behavior of the document class. The options have to be separated by commas.",[357,516,517],{},"Example: an input file for a LaTeX document could start with the line:",[372,519,521],{"className":374,"code":520,"language":376,"meta":377,"style":377},"\\documentclass[11pt,twoside,a4paper]{article}\n",[379,522,523],{"__ignoreMap":377},[382,524,525],{"class":384,"line":385},[382,526,520],{},[357,528,529],{},"which instructs LaTeX to typeset the document as an article with a base font size of 11 points, and to produce a layout suitable for double sided printing on A4 paper.",[357,531,532],{},[533,534,535],"strong",{},"Common Document Classes:",[537,538,539,552],"table",{},[540,541,542],"thead",{},[543,544,545,549],"tr",{},[546,547,548],"th",{},"Class",[546,550,551],{},"Description",[553,554,555,566,576,586,596,606,616,626,636,646],"tbody",{},[543,556,557,563],{},[558,559,560],"td",{},[379,561,562],{},"article",[558,564,565],{},"For articles in scientific journals, presentations, short reports, program documentation, invitations, ...",[543,567,568,573],{},[558,569,570],{},[379,571,572],{},"IEEEtran",[558,574,575],{},"For articles with the IEEE Transactions format.",[543,577,578,583],{},[558,579,580],{},[379,581,582],{},"proc",[558,584,585],{},"A class for proceedings based on the article class.",[543,587,588,593],{},[558,589,590],{},[379,591,592],{},"minimal",[558,594,595],{},"As small as it can get. Only sets a page size and a base font. Mainly used for debugging purposes.",[543,597,598,603],{},[558,599,600],{},[379,601,602],{},"report",[558,604,605],{},"For longer reports containing several chapters, small books, thesis, ...",[543,607,608,613],{},[558,609,610],{},[379,611,612],{},"book",[558,614,615],{},"For books.",[543,617,618,623],{},[558,619,620],{},[379,621,622],{},"slides",[558,624,625],{},"For slides. Uses big sans serif letters.",[543,627,628,633],{},[558,629,630],{},[379,631,632],{},"memoir",[558,634,635],{},"For sensibly changing the output of the document. Based on the book class.",[543,637,638,643],{},[558,639,640],{},[379,641,642],{},"letter",[558,644,645],{},"For writing letters.",[543,647,648,653],{},[558,649,650],{},[379,651,652],{},"beamer",[558,654,655],{},"For writing presentations.",[357,657,658],{},[533,659,660],{},"Common Document Class Options:",[537,662,663,672],{},[540,664,665],{},[543,666,667,670],{},[546,668,669],{},"Options",[546,671,551],{},[553,673,674,684,694,704,714,724,734,744,754,764],{},[543,675,676,681],{},[558,677,678],{},[379,679,680],{},"10pt, 11pt, 12pt",[558,682,683],{},"Sets the size of the main font in the document. If no option is specified, 10pt is assumed.",[543,685,686,691],{},[558,687,688],{},[379,689,690],{},"a4paper, letterpaper,...",[558,692,693],{},"Defines the paper size. The default size is letterpaper.",[543,695,696,701],{},[558,697,698],{},[379,699,700],{},"fleqn",[558,702,703],{},"Typesets displayed formulas left-aligned instead of centered.",[543,705,706,711],{},[558,707,708],{},[379,709,710],{},"leqno",[558,712,713],{},"Places the numbering of formulas on the left hand side instead of the right.",[543,715,716,721],{},[558,717,718],{},[379,719,720],{},"titlepage, notitlepage",[558,722,723],{},"Specifies whether a new page should be started after the document title or not.",[543,725,726,731],{},[558,727,728],{},[379,729,730],{},"twocolumn",[558,732,733],{},"Instructs LaTeX to typeset the document in two columns instead of one.",[543,735,736,741],{},[558,737,738],{},[379,739,740],{},"twoside, oneside",[558,742,743],{},"Specifies whether double or single sided output should be generated.",[543,745,746,751],{},[558,747,748],{},[379,749,750],{},"landscape",[558,752,753],{},"Changes the layout of the document to print in landscape mode.",[543,755,756,761],{},[558,757,758],{},[379,759,760],{},"openright, openany",[558,762,763],{},"Makes chapters begin either only on right hand pages or on the next page available.",[543,765,766,771],{},[558,767,768],{},[379,769,770],{},"draft, final",[558,772,773,776,777,780],{},[379,774,775],{},"final"," is default. ",[379,778,779],{},"draft"," makes LaTeX indicate hyphenation and justification problems.",[357,782,783],{},"For example, if you want a report to be in 12pt type on A4, but printed one-sided in draft mode, you would use:",[372,785,787],{"className":374,"code":786,"language":376,"meta":377,"style":377},"\\documentclass[12pt,a4paper,oneside,draft]{report}\n",[379,788,789],{"__ignoreMap":377},[382,790,791],{"class":384,"line":385},[382,792,786],{},[477,794,796],{"id":795},"packages","Packages",[357,798,799],{},"While writing your document, you will probably find that there are some areas where basic LaTeX cannot solve your problem. If you want to include graphics, colored text or source code from a file into your document, you need to enhance the capabilities of LaTeX. Such enhancements are called packages. The command to use a package is:",[372,801,803],{"className":374,"code":802,"language":376,"meta":377,"style":377},"\\usepackage[options]{package}\n",[379,804,805],{"__ignoreMap":377},[382,806,807],{"class":384,"line":385},[382,808,802],{},[357,810,811,812,815,816,818,819,822],{},"where ",[379,813,814],{},"package"," is the name of the package and ",[379,817,513],{}," is a list of keywords that trigger special features in the package. For example, to use the ",[379,820,821],{},"color"," package:",[372,824,826],{"className":374,"code":825,"language":376,"meta":377,"style":377},"\\documentclass{report}\n\\usepackage{color}\n\n\\begin{document}\n...\n\\end{document}\n",[379,827,828,833,838,842,846,850],{"__ignoreMap":377},[382,829,830],{"class":384,"line":385},[382,831,832],{},"\\documentclass{report}\n",[382,834,835],{"class":384,"line":391},[382,836,837],{},"\\usepackage{color}\n",[382,839,840],{"class":384,"line":398},[382,841,395],{"emptyLinePlaceholder":394},[382,843,844],{"class":384,"line":404},[382,845,401],{},[382,847,848],{"class":384,"line":410},[382,849,407],{},[382,851,853],{"class":384,"line":852},6,[382,854,413],{},[357,856,857],{},"You can pass several options to a package, each separated by a comma:",[372,859,861],{"className":374,"code":860,"language":376,"meta":377,"style":377},"\\usepackage[option1,option2,option3]{package_name}\n",[379,862,863],{"__ignoreMap":377},[382,864,865],{"class":384,"line":385},[382,866,860],{},[364,868,870],{"id":869},"the-document-environment","The Document Environment",[477,872,874],{"id":873},"top-matter","Top Matter",[357,876,877,878,881],{},"At the beginning of most documents there will be information about the document itself, such as the title and date, and also information about the authors, such as name, address, email etc. All of this type of information within LaTeX is collectively referred to as ",[426,879,880],{},"top matter",".",[357,883,884],{},"A simple example:",[372,886,888],{"className":374,"code":887,"language":376,"meta":377,"style":377},"\\documentclass[11pt,a4paper]{report}\n\n\\begin{document}\n\\title{How to Structure a LaTeX Document}\n\\author{Andrew Roberts}\n\\date{December 2004}\n\\maketitle\n\\end{document}\n",[379,889,890,895,899,903,908,913,918,924],{"__ignoreMap":377},[382,891,892],{"class":384,"line":385},[382,893,894],{},"\\documentclass[11pt,a4paper]{report}\n",[382,896,897],{"class":384,"line":391},[382,898,395],{"emptyLinePlaceholder":394},[382,900,901],{"class":384,"line":398},[382,902,401],{},[382,904,905],{"class":384,"line":404},[382,906,907],{},"\\title{How to Structure a LaTeX Document}\n",[382,909,910],{"class":384,"line":410},[382,911,912],{},"\\author{Andrew Roberts}\n",[382,914,915],{"class":384,"line":852},[382,916,917],{},"\\date{December 2004}\n",[382,919,921],{"class":384,"line":920},7,[382,922,923],{},"\\maketitle\n",[382,925,927],{"class":384,"line":926},8,[382,928,413],{},[357,930,931,932,935,936,939,940,943,944,946,947,950,951,953],{},"The ",[379,933,934],{},"\\title",", ",[379,937,938],{},"\\author",", and ",[379,941,942],{},"\\date"," commands are self-explanatory. You put the title, author name, and date in curly braces after the relevant command. The title and author are usually compulsory (at least if you want LaTeX to write the title automatically); if you omit the ",[379,945,942],{}," command, LaTeX uses today's date by default. You always finish the top matter with the ",[379,948,949],{},"\\maketitle"," command, which tells LaTeX that it's complete and it can typeset the title according to the information you have provided and the class (style) you are using. If you omit ",[379,952,949],{},", the title will never be typeset.",[955,956,957],"blockquote",{},[357,958,959,962],{},[533,960,961],{},"Note:"," Using this approach, you can only create a title with a fixed layout. If you want to create your title freely, see the Title Creation section. You should remember, however, that the goal of LaTeX is to leave formatting to the documentclass designer.",[477,964,966],{"id":965},"abstract","Abstract",[357,968,969,970,420,972,974,975,881],{},"As most research papers have an abstract, there are predefined commands for telling LaTeX which part of the content makes up the abstract. This should appear in its logical order, therefore, after the top matter, but before the main sections of the body. This command is available for the document classes ",[379,971,562],{},[379,973,602],{},", but not ",[379,976,612],{},[372,978,980],{"className":374,"code":979,"language":376,"meta":377,"style":377},"\\documentclass{article}\n\n\\begin{document}\n\n\\begin{abstract}\nYour abstract goes here...\n...\n\\end{abstract}\n...\n\\end{document}\n",[379,981,982,987,991,995,999,1004,1009,1013,1018,1023],{"__ignoreMap":377},[382,983,984],{"class":384,"line":385},[382,985,986],{},"\\documentclass{article}\n",[382,988,989],{"class":384,"line":391},[382,990,395],{"emptyLinePlaceholder":394},[382,992,993],{"class":384,"line":398},[382,994,401],{},[382,996,997],{"class":384,"line":404},[382,998,395],{"emptyLinePlaceholder":394},[382,1000,1001],{"class":384,"line":410},[382,1002,1003],{},"\\begin{abstract}\n",[382,1005,1006],{"class":384,"line":852},[382,1007,1008],{},"Your abstract goes here...\n",[382,1010,1011],{"class":384,"line":920},[382,1012,407],{},[382,1014,1015],{"class":384,"line":926},[382,1016,1017],{},"\\end{abstract}\n",[382,1019,1021],{"class":384,"line":1020},9,[382,1022,407],{},[382,1024,1026],{"class":384,"line":1025},10,[382,1027,413],{},[357,1029,1030,1031,1034,1035,1037],{},"By default, LaTeX will use the word \"Abstract\" as a title for your abstract. If you want to change it into anything else, e.g. \"Executive Summary\", add the following line before you begin the abstract environment (but ",[426,1032,1033],{},"after"," the ",[379,1036,423],{}," command):",[372,1039,1041],{"className":374,"code":1040,"language":376,"meta":377,"style":377},"\\renewcommand{\\abstractname}{Executive Summary}\n",[379,1042,1043],{"__ignoreMap":377},[382,1044,1045],{"class":384,"line":385},[382,1046,1040],{},[477,1048,1050],{"id":1049},"sectioning-commands","Sectioning Commands",[357,1052,1053],{},"The commands for inserting sections are fairly intuitive. Of course, certain commands are appropriate to different document classes. For example, a book has chapters but an article doesn't.",[372,1055,1057],{"className":374,"code":1056,"language":376,"meta":377,"style":377},"\\chapter{Introduction}\nThis chapter's content...\n\n\\section{Structure}\nThis section's content...\n\n\\subsection{Top Matter}\nThis subsection's content...\n\n\\subsubsection{Article Information}\nThis subsubsection's content...\n",[379,1058,1059,1064,1069,1073,1078,1083,1087,1092,1097,1101,1106],{"__ignoreMap":377},[382,1060,1061],{"class":384,"line":385},[382,1062,1063],{},"\\chapter{Introduction}\n",[382,1065,1066],{"class":384,"line":391},[382,1067,1068],{},"This chapter's content...\n",[382,1070,1071],{"class":384,"line":398},[382,1072,395],{"emptyLinePlaceholder":394},[382,1074,1075],{"class":384,"line":404},[382,1076,1077],{},"\\section{Structure}\n",[382,1079,1080],{"class":384,"line":410},[382,1081,1082],{},"This section's content...\n",[382,1084,1085],{"class":384,"line":852},[382,1086,395],{"emptyLinePlaceholder":394},[382,1088,1089],{"class":384,"line":920},[382,1090,1091],{},"\\subsection{Top Matter}\n",[382,1093,1094],{"class":384,"line":926},[382,1095,1096],{},"This subsection's content...\n",[382,1098,1099],{"class":384,"line":1020},[382,1100,395],{"emptyLinePlaceholder":394},[382,1102,1103],{"class":384,"line":1025},[382,1104,1105],{},"\\subsubsection{Article Information}\n",[382,1107,1109],{"class":384,"line":1108},11,[382,1110,1111],{},"This subsubsection's content...\n",[357,1113,1114,1115,420,1118,1121],{},"Notice that you do not need to specify section numbers; LaTeX will sort that out for you. Also, for sections, you do not need to use ",[379,1116,1117],{},"\\begin",[379,1119,1120],{},"\\end"," commands to indicate which content belongs to a given block.",[357,1123,1124],{},"LaTeX provides 7 levels of depth for defining sections:",[537,1126,1127,1140],{},[540,1128,1129],{},[543,1130,1131,1134,1137],{},[546,1132,1133],{},"Command",[546,1135,1136],{},"Level",[546,1138,1139],{},"Comment",[553,1141,1142,1155,1168,1180,1192,1204,1216],{},[543,1143,1144,1149,1152],{},[558,1145,1146],{},[379,1147,1148],{},"\\part{part}",[558,1150,1151],{},"-1",[558,1153,1154],{},"not in letters",[543,1156,1157,1162,1165],{},[558,1158,1159],{},[379,1160,1161],{},"\\chapter{chapter}",[558,1163,1164],{},"0",[558,1166,1167],{},"only books and reports",[543,1169,1170,1175,1178],{},[558,1171,1172],{},[379,1173,1174],{},"\\section{section}",[558,1176,1177],{},"1",[558,1179,1154],{},[543,1181,1182,1187,1190],{},[558,1183,1184],{},[379,1185,1186],{},"\\subsection{subsection}",[558,1188,1189],{},"2",[558,1191,1154],{},[543,1193,1194,1199,1202],{},[558,1195,1196],{},[379,1197,1198],{},"\\subsubsection{subsubsection}",[558,1200,1201],{},"3",[558,1203,1154],{},[543,1205,1206,1211,1214],{},[558,1207,1208],{},[379,1209,1210],{},"\\paragraph{paragraph}",[558,1212,1213],{},"4",[558,1215,1154],{},[543,1217,1218,1223,1226],{},[558,1219,1220],{},[379,1221,1222],{},"\\subparagraph{subparagraph}",[558,1224,1225],{},"5",[558,1227,1154],{},[357,1229,1230],{},"All the titles of the sections are added automatically to the table of contents. If you make manual styling changes to your heading, LaTeX allows you to give an optional extra version of the heading text which only gets used in the Table of Contents:",[372,1232,1234],{"className":374,"code":1233,"language":376,"meta":377,"style":377},"\\section[Effect on staff turnover]{An analysis of the\neffect of the revised recruitment policies on staff\nturnover at divisional headquarters}\n",[379,1235,1236,1241,1246],{"__ignoreMap":377},[382,1237,1238],{"class":384,"line":385},[382,1239,1240],{},"\\section[Effect on staff turnover]{An analysis of the\n",[382,1242,1243],{"class":384,"line":391},[382,1244,1245],{},"effect of the revised recruitment policies on staff\n",[382,1247,1248],{"class":384,"line":398},[382,1249,1250],{},"turnover at divisional headquarters}\n",[1252,1253,1255],"h4",{"id":1254},"section-numbering","Section Numbering",[357,1257,1258,1259,1262],{},"Numbering of the sections is performed automatically by LaTeX. You can change the depth to which section numbering occurs using the ",[379,1260,1261],{},"\\setcounter"," command:",[372,1264,1266],{"className":374,"code":1265,"language":376,"meta":377,"style":377},"\\setcounter{secnumdepth}{1}\n",[379,1267,1268],{"__ignoreMap":377},[382,1269,1270],{"class":384,"line":385},[382,1271,1265],{},[357,1273,1274,1275,1278],{},"A related counter is ",[379,1276,1277],{},"tocdepth",", which specifies what depth to take the Table of Contents to:",[372,1280,1282],{"className":374,"code":1281,"language":376,"meta":377,"style":377},"\\setcounter{tocdepth}{3}\n",[379,1283,1284],{"__ignoreMap":377},[382,1285,1286],{"class":384,"line":385},[382,1287,1281],{},[357,1289,1290],{},"To get an unnumbered section heading, follow the command name with an asterisk:",[372,1292,1294],{"className":374,"code":1293,"language":376,"meta":377,"style":377},"\\subsection*{Introduction}\n",[379,1295,1296],{"__ignoreMap":377},[382,1297,1298],{"class":384,"line":385},[382,1299,1293],{},[1252,1301,1303],{"id":1302},"section-number-style","Section Number Style",[357,1305,1306,1307,881],{},"See ",[1308,1309,314],"a",{"href":315},[477,1311,1313],{"id":1312},"ordinary-paragraphs","Ordinary Paragraphs",[357,1315,1316,1317,1320],{},"Paragraphs of text come after section headings. Simply type the text and leave a blank line between paragraphs. The blank line means \"start a new paragraph here\": it does ",[533,1318,1319],{},"not"," mean you get a blank line in the typeset output.",[477,1322,1324],{"id":1323},"table-of-contents","Table of Contents",[357,1326,1327,1328,1331],{},"All auto-numbered headings get entered in the Table of Contents automatically. You don't have to print a ToC, but if you want to, just add the command ",[379,1329,1330],{},"\\tableofcontents"," at the point where you want it printed (usually after the Abstract or Summary).",[357,1333,1334,1335,420,1338,1341,1342,1344],{},"The commands ",[379,1336,1337],{},"\\listoffigures",[379,1339,1340],{},"\\listoftables"," work in exactly the same way as ",[379,1343,1330],{}," to automatically list all your tables and figures.",[357,1346,1347],{},"To add an unnumbered section to the Table of Contents:",[372,1349,1351],{"className":374,"code":1350,"language":376,"meta":377,"style":377},"\\subsection*{Preface}\n\\addcontentsline{toc}{subsection}{Preface}\n",[379,1352,1353,1358],{"__ignoreMap":377},[382,1354,1355],{"class":384,"line":385},[382,1356,1357],{},"\\subsection*{Preface}\n",[382,1359,1360],{"class":384,"line":391},[382,1361,1362],{},"\\addcontentsline{toc}{subsection}{Preface}\n",[1252,1364,1366],{"id":1365},"depth","Depth",[357,1368,1369],{},"The default ToC will list headings of level 3 and above. To change how deep the table of contents displays:",[372,1371,1373],{"className":374,"code":1372,"language":376,"meta":377,"style":377},"\\setcounter{tocdepth}{4}\n",[379,1374,1375],{"__ignoreMap":377},[382,1376,1377],{"class":384,"line":385},[382,1378,1372],{},[357,1380,1381],{},"This will make the table of contents include everything down to paragraphs.",[364,1383,1385],{"id":1384},"book-structure","Book Structure",[357,1387,1388],{},"The standard LaTeX book class follows the same layout with some additions:",[372,1390,1392],{"className":374,"code":1391,"language":376,"meta":377,"style":377},"\\begin{document}\n\\frontmatter\n\n\\maketitle\n\n% Introductory chapters\n\\chapter{Preface}\n% ...\n\n\\mainmatter\n\\chapter{First chapter}\n% ...\n\n\\appendix\n\\chapter{First Appendix}\n\n\\backmatter\n\\chapter{Last note}\n",[379,1393,1394,1398,1403,1407,1411,1415,1420,1425,1430,1434,1439,1444,1449,1454,1460,1466,1471,1477],{"__ignoreMap":377},[382,1395,1396],{"class":384,"line":385},[382,1397,401],{},[382,1399,1400],{"class":384,"line":391},[382,1401,1402],{},"\\frontmatter\n",[382,1404,1405],{"class":384,"line":398},[382,1406,395],{"emptyLinePlaceholder":394},[382,1408,1409],{"class":384,"line":404},[382,1410,923],{},[382,1412,1413],{"class":384,"line":410},[382,1414,395],{"emptyLinePlaceholder":394},[382,1416,1417],{"class":384,"line":852},[382,1418,1419],{},"% Introductory chapters\n",[382,1421,1422],{"class":384,"line":920},[382,1423,1424],{},"\\chapter{Preface}\n",[382,1426,1427],{"class":384,"line":926},[382,1428,1429],{},"% ...\n",[382,1431,1432],{"class":384,"line":1020},[382,1433,395],{"emptyLinePlaceholder":394},[382,1435,1436],{"class":384,"line":1025},[382,1437,1438],{},"\\mainmatter\n",[382,1440,1441],{"class":384,"line":1108},[382,1442,1443],{},"\\chapter{First chapter}\n",[382,1445,1447],{"class":384,"line":1446},12,[382,1448,1429],{},[382,1450,1452],{"class":384,"line":1451},13,[382,1453,395],{"emptyLinePlaceholder":394},[382,1455,1457],{"class":384,"line":1456},14,[382,1458,1459],{},"\\appendix\n",[382,1461,1463],{"class":384,"line":1462},15,[382,1464,1465],{},"\\chapter{First Appendix}\n",[382,1467,1469],{"class":384,"line":1468},16,[382,1470,395],{"emptyLinePlaceholder":394},[382,1472,1474],{"class":384,"line":1473},17,[382,1475,1476],{},"\\backmatter\n",[382,1478,1480],{"class":384,"line":1479},18,[382,1481,1482],{},"\\chapter{Last note}\n",[1484,1485,1486,1493,1499,1505],"ul",{},[1487,1488,1489,1492],"li",{},[533,1490,1491],{},"frontmatter",": chapters will not be numbered. Page numbers will be printed in roman numerals.",[1487,1494,1495,1498],{},[533,1496,1497],{},"mainmatter",": works as usual. Resets the page numbering. Page numbers will be printed in arabic numerals.",[1487,1500,1501,1504],{},[533,1502,1503],{},"appendix",": indicates that following sections or chapters are to be numbered as appendices.",[1487,1506,1507,1510,1511,1513,1514,1516],{},[533,1508,1509],{},"backmatter",": chapters will not be numbered, but unlike ",[379,1512,1491],{},", page numbering is left as-is (it keeps counting up in arabic from wherever ",[379,1515,1497],{}," left it).",[477,1518,1520],{"id":1519},"page-order","Page Order",[357,1522,1523],{},"This is one traditional page order for books:",[357,1525,1526],{},[533,1527,1528],{},"Frontmatter:",[1530,1531,1532,1535,1538,1541,1544,1547,1550,1553],"ol",{},[1487,1533,1534],{},"Half-title",[1487,1536,1537],{},"Empty",[1487,1539,1540],{},"Title page",[1487,1542,1543],{},"Information (copyright notice, ISBN, etc.)",[1487,1545,1546],{},"Dedication if any, else empty",[1487,1548,1549],{},"Table of contents",[1487,1551,1552],{},"List of figures",[1487,1554,1555],{},"Preface chapter",[357,1557,1558],{},[533,1559,1560],{},"Mainmatter:",[1530,1562,1563],{},[1487,1564,1565],{},"Main topic",[357,1567,1568],{},[533,1569,1570],{},"Appendix:",[1530,1572,1573],{},[1487,1574,1575],{},"Some subordinate chapters",[357,1577,1578],{},[533,1579,1580],{},"Backmatter:",[1530,1582,1583,1586],{},[1487,1584,1585],{},"Bibliography",[1487,1587,1588],{},"Glossary \u002F Index",[364,1590,1592],{"id":1591},"special-pages","Special Pages",[477,1594,1585],{"id":1595},"bibliography",[357,1597,1598],{},"Any good research paper will have a complete list of references. LaTeX has two ways of inserting your references into a document:",[1484,1600,1601,1604],{},[1487,1602,1603],{},"You can embed them within the document itself. It's simpler, but it can be time-consuming.",[1487,1605,1606],{},"You can store them in an external BibTeX file and then link them via a command to your current document and use a BibTeX style to define how they appear.",[357,1608,1609],{},"To learn how to add a bibliography to your document, see the Bibliography Management section.",[1611,1612,1613],"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":377,"searchDepth":391,"depth":391,"links":1615},[1616,1617,1621,1628,1631],{"id":366,"depth":391,"text":367},{"id":428,"depth":391,"text":475,"children":1618},[1619,1620],{"id":479,"depth":398,"text":480},{"id":795,"depth":398,"text":796},{"id":869,"depth":391,"text":870,"children":1622},[1623,1624,1625,1626,1627],{"id":873,"depth":398,"text":874},{"id":965,"depth":398,"text":966},{"id":1049,"depth":398,"text":1050},{"id":1312,"depth":398,"text":1313},{"id":1323,"depth":398,"text":1324},{"id":1384,"depth":391,"text":1385,"children":1629},[1630],{"id":1519,"depth":398,"text":1520},{"id":1591,"depth":391,"text":1592,"children":1632},[1633],{"id":1595,"depth":398,"text":1585},"Learn how to structure LaTeX documents with classes, environments, sections, and table of contents.","md",null,{},{"title":52,"description":1634},"aivwhm0yjexEaDhKral8-UfV8bMjnTrjz-h2VQ4LmCk",[1641,1643],{"title":42,"path":43,"stem":44,"description":1642,"children":-1},"Equip AI coding assistants with specialized SomeScript formatting rules and best practices using Agent Skills.",{"title":56,"path":57,"stem":58,"description":1644,"children":-1},"Learn text formatting techniques in LaTeX including spacing, hyphenation, quote marks, diacritics, ligatures, and more.",1785155501448]