[{"data":1,"prerenderedAt":2673},["ShallowReactive",2],{"navigation_docs":3,"-tables-and-graphics-floats-figures-and-captions":351,"-tables-and-graphics-floats-figures-and-captions-surround":2668},[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":120,"body":353,"description":2662,"extension":2663,"links":2664,"meta":2665,"navigation":804,"path":121,"seo":2666,"stem":122,"__hash__":2667},"docs\u002F05.tables-and-graphics\u002F02.floats-figures-and-captions.md",{"type":354,"value":355,"toc":2636},"minimark",[356,374,378,386,389,392,395,399,406,410,417,445,452,561,568,571,574,599,604,607,627,630,633,651,683,686,692,696,737,751,763,776,780,787,790,999,1006,1010,1028,1100,1122,1126,1139,1143,1150,1165,1171,1175,1183,1208,1285,1289,1296,1309,1320,1324,1327,1330,1344,1350,1359,1362,1371,1374,1377,1457,1460,1463,1469,1504,1510,1521,1527,1531,1541,1548,1563,1584,1627,1630,1643,1650,1663,1666,1670,1699,1824,1827,1893,1902,1911,1948,1952,1962,1965,1984,1987,2038,2042,2060,2083,2086,2099,2194,2197,2203,2318,2336,2346,2355,2518,2522,2531,2540,2555,2562,2571,2582,2586,2597,2614,2621,2625,2628,2632],[357,358,359,360,364,365,369,370,373],"p",{},"The ",[361,362,363],"a",{"href":125},"previous chapter"," introduced importing graphics. However, just having a picture stuck in between paragraphs does not look professional. To start with, we want a way of adding captions, and to be able to cross-reference. What we need is a way of defining ",[366,367,368],"em",{},"figures",". It would also be good if LaTeX could apply principles similar to when it arranges text to look its best to arrange pictures as well. This is where ",[366,371,372],{},"floats"," come into play.",[375,376,377],"h2",{"id":372},"Floats",[357,379,380,381,385],{},"Floats are containers for things in a document that cannot be broken over a page. LaTeX by default recognizes \"table\" and \"figure\" floats, but you can define new ones of your own (see ",[361,382,384],{"href":383},"#custom-floats","Custom floats"," below).  Floats are there to deal with the problem of the object that won't fit on the present page and to help when you really don't want the object here just now.",[357,387,388],{},"Floats are not part of the normal stream of text, but separate entities, positioned in a part of the page to themselves (top, middle, bottom, left, right, or wherever the designer specifies). They always have a caption describing them and they are always numbered so they can be referred to from elsewhere in the text. LaTeX automatically floats Tables and Figures, depending on how much space is left on the page at the point that they are processed. If there is not enough room on the current page, the float is moved to the top of the next page. This can be changed by moving the Table or Figure definition to an earlier or later point in the text, or by adjusting some of the parameters which control automatic floating.",[357,390,391],{},"Authors sometimes have many floats occurring in rapid succession, which raises the problem of how they are supposed to fit on the page and still leave room for text. In this case, LaTeX stacks them all up and prints them together if possible, or leaves them to the end of the chapter in protest. The skill is to space them out within your text so that they intrude neither on the thread of your argument or discussion nor on the visual balance of the typeset pages.",[357,393,394],{},"As with various other entities, there exist limitations on the number of unprocessed (placed) floats in line. LaTeX by default can cope with maximum 18 floats and a symptomatic error is:",[396,397,398],"pre",{},"! LaTeX Error: Too many unprocessed floats.\n",[357,400,359,401,405],{},[402,403,404],"code",{},"morefloats"," package lifts this limit.",[407,408,409],"h3",{"id":368},"Figures",[357,411,412,413,416],{},"To create a figure that floats, use the ",[402,414,415],{},"figure"," environment.",[396,418,423],{"className":419,"code":420,"language":421,"meta":422,"style":422},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\begin{figure}[placement specifier]\n... figure contents ...\n\\end{figure}\n","latex","",[402,424,425,433,439],{"__ignoreMap":422},[426,427,430],"span",{"class":428,"line":429},"line",1,[426,431,432],{},"\\begin{figure}[placement specifier]\n",[426,434,436],{"class":428,"line":435},2,[426,437,438],{},"... figure contents ...\n",[426,440,442],{"class":428,"line":441},3,[426,443,444],{},"\\end{figure}\n",[357,446,447,448,451],{},"The previous section mentioned how floats are used to allow LaTeX to handle figures while maintaining the best possible presentation. However, there may be times when you disagree, and a typical example is with its positioning of figures. The ",[366,449,450],{},"placement specifier"," parameter exists as a compromise, and its purpose is to give the author a greater degree of control over where certain floats are placed.",[453,454,455,468],"table",{},[456,457,458],"thead",{},[459,460,461,465],"tr",{},[462,463,464],"th",{},"Specifier",[462,466,467],{},"Description",[469,470,471,494,508,520,533,543],"tbody",{},[459,472,473,479],{},[474,475,476],"td",{},[402,477,478],{},"h",[474,480,481,482,485,486,489,490,493],{},"Place the float ",[366,483,484],{},"here",", i.e., ",[366,487,488],{},"approximately"," at the same point it occurs in the source text (however, not ",[366,491,492],{},"exactly"," at the spot)",[459,495,496,501],{},[474,497,498],{},[402,499,500],{},"t",[474,502,503,504,507],{},"Position at the ",[366,505,506],{},"top"," of the page.",[459,509,510,515],{},[474,511,512],{},[402,513,514],{},"b",[474,516,503,517,507],{},[366,518,519],{},"bottom",[459,521,522,526],{},[474,523,524],{},[402,525,357],{},[474,527,528,529,532],{},"Put on a special ",[366,530,531],{},"page"," for floats only.",[459,534,535,540],{},[474,536,537],{},[402,538,539],{},"!",[474,541,542],{},"Override internal parameters LaTeX uses for determining \"good\" float positions.",[459,544,545,550],{},[474,546,547],{},[402,548,549],{},"H",[474,551,552,553,556,557,560],{},"Places the float at precisely the location in the LaTeX code. Requires the ",[402,554,555],{},"float"," package, i.e., ",[402,558,559],{},"\\usepackage{float}",".",[357,562,563,564,567],{},"What you do with these ",[366,565,566],{},"placement permissions"," is to list which of the options you wish to make available to LaTeX. These are simply possibilities, and LaTeX will decide when typesetting your document which of your supplied specifiers it thinks is best. Frank Mittelbach describes the algorithm:",[357,569,570],{},"*If a float is encountered, LaTeX attempts to place it immediately according to its rules (detailed later)\n**If this succeeds, the float is placed and that decision is never changed;\n**If this does not succeed, then LaTeX places the float into a holding queue to be reconsidered when the next page is started (but not earlier).\n*Once a page has finished, LaTeX examines this holding queue and tries to empty it as best as possible. For this, it will first try to generate as many float pages as possible (in the hope of getting floats off the queue). Once this possibility is exhausted, it will next try to place the remaining floats into top and bottom areas. It looks at all the remaining floats and either places them or defers them to a later page (i.e., re-adding them to the holding queue once more).\n*After that, it starts processing document material for this page. In the process, it may encounter further floats.\n*If the end of the document has been reached or if a \\clearpage is encountered, LaTeX starts a new page, relaxes all restrictive float conditions, and outputs all floats in the holding queue by placing them on float page(s).",[357,572,573],{},"In some special cases, LaTeX won't follow these positioning parameters and additional commands will be necessary, for example, if one needs to specify an alignment other than centered for a float that sits alone in one page.",[357,575,576,577,580,581,585,586,589,590,593,594,598],{},"Use ",[402,578,579],{},"\\listoffigures"," to add a list of the figures in the beginning of the document.\nTo change the name used in the caption from ",[582,583,584],"strong",{},"Figure"," to ",[582,587,588],{},"Example",",\nuse ",[402,591,592],{},"\\renewcommand{\\figurename}{Example}"," in the figure contents. See the ",[361,595,597],{"href":596},"\u002Fprogramming\u002Fmacros#new-commands","New commands"," section for more information on this.",[600,601,603],"h4",{"id":602},"figures-with-borders","Figures with borders",[357,605,606],{},"It's possible to get a thin border around all figures. You have to write the following once at the beginning of\nthe document:",[396,608,610],{"className":419,"code":609,"language":421,"meta":422,"style":422},"\\usepackage{float}\n\\floatstyle{boxed} \n\\restylefloat{figure}\n",[402,611,612,617,622],{"__ignoreMap":422},[426,613,614],{"class":428,"line":429},[426,615,616],{},"\\usepackage{float}\n",[426,618,619],{"class":428,"line":435},[426,620,621],{},"\\floatstyle{boxed} \n",[426,623,624],{"class":428,"line":441},[426,625,626],{},"\\restylefloat{figure}\n",[357,628,629],{},"The border will not include the caption.",[407,631,116],{"id":632},"tables",[357,634,635,636,640,641,644,645,647,648,650],{},"Floating tables are covered in a ",[361,637,639],{"href":638},"\u002Ftables-and-graphics\u002Ftables#floating-with-table","separate chapter",".\nLet's give a quick reminder here. The ",[402,642,643],{},"tabular"," environment that was used to construct the tables is not a float by default. Therefore, for tables you wish to float, wrap the ",[402,646,643],{}," environment within a ",[402,649,453],{}," environment, like this:",[396,652,654],{"className":419,"code":653,"language":421,"meta":422,"style":422},"\\begin{table}\n  \\begin{tabular}{...}\n  ... table data ...\n  \\end{tabular}\n\\end{table}\n",[402,655,656,661,666,671,677],{"__ignoreMap":422},[426,657,658],{"class":428,"line":429},[426,659,660],{},"\\begin{table}\n",[426,662,663],{"class":428,"line":435},[426,664,665],{},"  \\begin{tabular}{...}\n",[426,667,668],{"class":428,"line":441},[426,669,670],{},"  ... table data ...\n",[426,672,674],{"class":428,"line":673},4,[426,675,676],{},"  \\end{tabular}\n",[426,678,680],{"class":428,"line":679},5,[426,681,682],{},"\\end{table}\n",[357,684,685],{},"You may feel that it is a bit long-winded, but such distinctions are necessary, because you may not want all tables to be treated as a float.",[357,687,576,688,691],{},[402,689,690],{},"\\listoftables"," to add a list of the tables in the beginning of the document.",[375,693,695],{"id":694},"keeping-floats-in-their-place","Keeping floats in their place",[357,697,359,698,701,707,708,711,712,715,716,718,719,722,723,726,727,729,730,733,734,560],{},[402,699,700],{},"placeins",[361,702,706],{"href":703,"rel":704},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Fplaceins",[705],"nofollow","link"," package provides the command ",[402,709,710],{},"\\FloatBarrier",", which can be used to prevent floats from being moved over it. This can, e.g., be useful at the beginning of each section. The package even provides an option to change the definition of ",[402,713,714],{},"\\section"," to automatically include a ",[402,717,710],{},". This can be set by loading the package with the option ",[402,720,721],{},"[section]"," (",[402,724,725],{},"\\usepackage[section]{placeins}",").  ",[402,728,710],{}," may also be useful to prevent floats intruding on lists created using ",[402,731,732],{},"itemize"," or ",[402,735,736],{},"enumerate",[357,738,359,739,742,743,746,750],{},[402,740,741],{},"flafter"," package can be used to force floats to appear after they are defined, and the ",[402,744,745],{},"endfloat",[361,747,706],{"href":748,"rel":749},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Fendfloat",[705]," package can be used to place all floats at the end of a document.",[357,752,359,753,755,759,760,762],{},[402,754,555],{},[361,756,706],{"href":757,"rel":758},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Ffloat",[705]," package provides the ",[402,761,549],{}," option to floating environments, which completely stops them from floating.",[357,764,359,765,707,772,775],{},[361,766,769],{"href":767,"rel":768},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Fcaption",[705],[402,770,771],{},"caption",[402,773,774],{},"\\caption{\u003Ctype>}{\u003Ccaption text>}"," that lets you typeset a caption without a floating environment. You have the full and absolute control about the placement of your figures and captions.",[375,777,779],{"id":778},"captions","Captions",[357,781,782,783,786],{},"It is always good practice to add a caption to any figure or table. Fortunately, this is very simple in LaTeX. All you need to do is use the ",[402,784,785],{},"\\caption{*text*}"," command within the float environment. LaTeX will automatically keep track of the numbering of figures, so you do not need to include this within the caption text.",[357,788,789],{},"The location of the caption is traditionally underneath the float. However, it is up to you to, therefore, insert the caption command after the actual contents of the float (but still within the environment). If you place it before, then the caption will appear above the float. Try out the following example to demonstrate this effect:",[396,791,793],{"className":419,"code":792,"language":421,"meta":422,"style":422},"\\documentclass[a4paper,12pt]{article}\n\n\\usepackage[english]{babel}\n\\usepackage{graphicx}\n\n\\begin{document}\n\n\\begin{figure}\n  \\caption{A picture of a gull.}\n  \\centering\n    \\includegraphics[width=0.5\\textwidth]{gull}\n\\end{figure}\n\n\\begin{figure}\n  \\centering\n    \\reflectbox{%\n      \\includegraphics[width=0.5\\textwidth]{gull}}\n  \\caption{A picture of the same gull\n           looking the other way!}\n\\end{figure}\n\n\\begin{table}\n  \\centering\n    \\begin{tabular}{| l c r |}\n    \\hline\n    1 & 2 & 3 \\\\\n    4 & 5 & 6 \\\\\n    7 & 8 & 9 \\\\\n    \\hline\n    \\end{tabular}\n  \\caption{A simple table}\n\\end{table}\n\nNotice how the tables and figures\nhave independent counters.\n\n\\end{document}\n",[402,794,795,800,806,811,816,820,826,831,837,843,849,855,860,865,870,875,881,887,893,899,904,909,914,919,925,931,937,943,949,954,960,966,971,976,982,988,993],{"__ignoreMap":422},[426,796,797],{"class":428,"line":429},[426,798,799],{},"\\documentclass[a4paper,12pt]{article}\n",[426,801,802],{"class":428,"line":435},[426,803,805],{"emptyLinePlaceholder":804},true,"\n",[426,807,808],{"class":428,"line":441},[426,809,810],{},"\\usepackage[english]{babel}\n",[426,812,813],{"class":428,"line":673},[426,814,815],{},"\\usepackage{graphicx}\n",[426,817,818],{"class":428,"line":679},[426,819,805],{"emptyLinePlaceholder":804},[426,821,823],{"class":428,"line":822},6,[426,824,825],{},"\\begin{document}\n",[426,827,829],{"class":428,"line":828},7,[426,830,805],{"emptyLinePlaceholder":804},[426,832,834],{"class":428,"line":833},8,[426,835,836],{},"\\begin{figure}\n",[426,838,840],{"class":428,"line":839},9,[426,841,842],{},"  \\caption{A picture of a gull.}\n",[426,844,846],{"class":428,"line":845},10,[426,847,848],{},"  \\centering\n",[426,850,852],{"class":428,"line":851},11,[426,853,854],{},"    \\includegraphics[width=0.5\\textwidth]{gull}\n",[426,856,858],{"class":428,"line":857},12,[426,859,444],{},[426,861,863],{"class":428,"line":862},13,[426,864,805],{"emptyLinePlaceholder":804},[426,866,868],{"class":428,"line":867},14,[426,869,836],{},[426,871,873],{"class":428,"line":872},15,[426,874,848],{},[426,876,878],{"class":428,"line":877},16,[426,879,880],{},"    \\reflectbox{%\n",[426,882,884],{"class":428,"line":883},17,[426,885,886],{},"      \\includegraphics[width=0.5\\textwidth]{gull}}\n",[426,888,890],{"class":428,"line":889},18,[426,891,892],{},"  \\caption{A picture of the same gull\n",[426,894,896],{"class":428,"line":895},19,[426,897,898],{},"           looking the other way!}\n",[426,900,902],{"class":428,"line":901},20,[426,903,444],{},[426,905,907],{"class":428,"line":906},21,[426,908,805],{"emptyLinePlaceholder":804},[426,910,912],{"class":428,"line":911},22,[426,913,660],{},[426,915,917],{"class":428,"line":916},23,[426,918,848],{},[426,920,922],{"class":428,"line":921},24,[426,923,924],{},"    \\begin{tabular}{| l c r |}\n",[426,926,928],{"class":428,"line":927},25,[426,929,930],{},"    \\hline\n",[426,932,934],{"class":428,"line":933},26,[426,935,936],{},"    1 & 2 & 3 \\\\\n",[426,938,940],{"class":428,"line":939},27,[426,941,942],{},"    4 & 5 & 6 \\\\\n",[426,944,946],{"class":428,"line":945},28,[426,947,948],{},"    7 & 8 & 9 \\\\\n",[426,950,952],{"class":428,"line":951},29,[426,953,930],{},[426,955,957],{"class":428,"line":956},30,[426,958,959],{},"    \\end{tabular}\n",[426,961,963],{"class":428,"line":962},31,[426,964,965],{},"  \\caption{A simple table}\n",[426,967,969],{"class":428,"line":968},32,[426,970,682],{},[426,972,974],{"class":428,"line":973},33,[426,975,805],{"emptyLinePlaceholder":804},[426,977,979],{"class":428,"line":978},34,[426,980,981],{},"Notice how the tables and figures\n",[426,983,985],{"class":428,"line":984},35,[426,986,987],{},"have independent counters.\n",[426,989,991],{"class":428,"line":990},36,[426,992,805],{"emptyLinePlaceholder":804},[426,994,996],{"class":428,"line":995},37,[426,997,998],{},"\\end{document}\n",[357,1000,1001,1002,1005],{},"Note that the command ",[402,1003,1004],{},"\\reflectbox{...}"," flips its content horizontally.",[407,1007,1009],{"id":1008},"side-captions","Side captions",[357,1011,1012,1013,1016,1017,1020,1021,1023,1024,1027],{},"It is sometimes desirable to have a caption appear on the side of a float, rather than above or below. The ",[402,1014,1015],{},"sidecap"," package can be used to place a caption beside a figure or table. The following example demonstrates this for a figure by using a ",[402,1018,1019],{},"SCfigure"," environment in place of the ",[402,1022,415],{}," environment. The ",[402,1025,1026],{},"floatrow"," package is newer and has more capabilities.",[396,1029,1031],{"className":419,"code":1030,"language":421,"meta":422,"style":422},"\\documentclass{article}\n\n\\usepackage{graphicx}\n\\usepackage{sidecap}\n\n\\begin{document}\n\n\\begin{SCfigure}\n  \\centering\n  \\caption{ ... caption text ... }\n  \\includegraphics[width=0.3\\textwidth]%\n    {Giraffe_picture}% picture filename\n\\end{SCfigure}\n\n\\end{document}\n",[402,1032,1033,1038,1042,1046,1051,1055,1059,1063,1068,1072,1077,1082,1087,1092,1096],{"__ignoreMap":422},[426,1034,1035],{"class":428,"line":429},[426,1036,1037],{},"\\documentclass{article}\n",[426,1039,1040],{"class":428,"line":435},[426,1041,805],{"emptyLinePlaceholder":804},[426,1043,1044],{"class":428,"line":441},[426,1045,815],{},[426,1047,1048],{"class":428,"line":673},[426,1049,1050],{},"\\usepackage{sidecap}\n",[426,1052,1053],{"class":428,"line":679},[426,1054,805],{"emptyLinePlaceholder":804},[426,1056,1057],{"class":428,"line":822},[426,1058,825],{},[426,1060,1061],{"class":428,"line":828},[426,1062,805],{"emptyLinePlaceholder":804},[426,1064,1065],{"class":428,"line":833},[426,1066,1067],{},"\\begin{SCfigure}\n",[426,1069,1070],{"class":428,"line":839},[426,1071,848],{},[426,1073,1074],{"class":428,"line":845},[426,1075,1076],{},"  \\caption{ ... caption text ... }\n",[426,1078,1079],{"class":428,"line":851},[426,1080,1081],{},"  \\includegraphics[width=0.3\\textwidth]%\n",[426,1083,1084],{"class":428,"line":857},[426,1085,1086],{},"    {Giraffe_picture}% picture filename\n",[426,1088,1089],{"class":428,"line":862},[426,1090,1091],{},"\\end{SCfigure}\n",[426,1093,1094],{"class":428,"line":867},[426,1095,805],{"emptyLinePlaceholder":804},[426,1097,1098],{"class":428,"line":872},[426,1099,998],{},[357,1101,1102,1103,1106,1107,1110,1111,1113,1114,1117,1118,1121],{},"{ ",[582,1104,1105],{},"Note:"," Note that if you define your own float placement (default is ",[366,1108,1109],{},"tbp",") with one of the ",[402,1112,1015],{}," package environments, you need to provide additional ",[366,1115,1116],{},"relwidth"," argument like this: ",[402,1119,1120],{},"\\begin{SCfigure}[1][!h]",".} }",[407,1123,1125],{"id":1124},"unnumbered-captions","Unnumbered captions",[357,1127,1128,1129,1132,1133,1135,1136,1138],{},"In some types of documents (such as presentations), it may not be desirable for figure captions to start with ",[366,1130,1131],{},"Figure:",".  This is easy to suppress by just placing the caption text in the  ",[402,1134,415],{}," environment, without enclosing it in a ",[402,1137,771],{},".  This however means that there is no caption available for inclusion in a list of figures.",[407,1140,1142],{"id":1141},"caption-setup-rename","Caption Setup Rename",[357,1144,1145,1146,1149],{},"In case you want to rename your table caption from \"Table\" to something else, you can use the ",[402,1147,1148],{},"\\captionsetup"," command. For example,",[396,1151,1153],{"className":419,"code":1152,"language":421,"meta":422,"style":422},"\\usepackage{caption}\n\\captionsetup[table]{name=New Table Name}\n",[402,1154,1155,1160],{"__ignoreMap":422},[426,1156,1157],{"class":428,"line":429},[426,1158,1159],{},"\\usepackage{caption}\n",[426,1161,1162],{"class":428,"line":435},[426,1163,1164],{},"\\captionsetup[table]{name=New Table Name}\n",[357,1166,1167,1168,1170],{},"\\usepackage{caption}  \\captionsetup",[426,1169,453],{}," {name=New Table Name}",[375,1172,1174],{"id":1173},"lists-of-figures-and-tables","Lists of figures and tables",[357,1176,1177,1178,733,1180,1182],{},"Captions can be listed at the beginning of a paper or report in a \"List of Tables\" or a \"List of Figures\" section by using the ",[402,1179,690],{},[402,1181,579],{}," commands, respectively. The caption used for each figure will appear in these lists, along with the figure numbers, and page numbers that they appear on.",[357,1184,359,1185,1188,1189,1192,1193,733,1196,1199,1200,1203,1204,1207],{},[402,1186,1187],{},"\\caption"," command also has an optional parameter, ",[402,1190,1191],{},"\\caption['short']{'long'}"," which is used for the ",[366,1194,1195],{},"List of Tables",[366,1197,1198],{},"List of Figures",". Typically the ",[402,1201,1202],{},"short"," description is for the caption listing, and the ",[402,1205,1206],{},"long"," description will be placed beside the figure or table. This is particularly useful if the caption is long, and only a \"one-liner\" is desired in the figure\u002Ftable listing. Here is an example of this usage:",[396,1209,1211],{"className":419,"code":1210,"language":421,"meta":422,"style":422},"\\documentclass[12pt,]{article}\n\\usepackage{graphicx}\n\\newcommand{\\species}[1]{\\textit{#1} sp.}\n\\begin{document}\n\n\\listoffigures\n\\section{Introduction}\n\n\\begin{figure}\n    \\centering\n    \\includegraphics[width=4in]{gecko}\n    \\caption[Close up of \\species{Hemidactylus}]\n    {Close up of \\species{Hemidactylus}, which is part the genus of the gecko family. It is the second most speciose genus in the family.}\n\\end{figure}\n\n\\end{document}\n",[402,1212,1213,1218,1222,1227,1231,1235,1240,1245,1249,1253,1258,1263,1268,1273,1277,1281],{"__ignoreMap":422},[426,1214,1215],{"class":428,"line":429},[426,1216,1217],{},"\\documentclass[12pt,]{article}\n",[426,1219,1220],{"class":428,"line":435},[426,1221,815],{},[426,1223,1224],{"class":428,"line":441},[426,1225,1226],{},"\\newcommand{\\species}[1]{\\textit{#1} sp.}\n",[426,1228,1229],{"class":428,"line":673},[426,1230,825],{},[426,1232,1233],{"class":428,"line":679},[426,1234,805],{"emptyLinePlaceholder":804},[426,1236,1237],{"class":428,"line":822},[426,1238,1239],{},"\\listoffigures\n",[426,1241,1242],{"class":428,"line":828},[426,1243,1244],{},"\\section{Introduction}\n",[426,1246,1247],{"class":428,"line":833},[426,1248,805],{"emptyLinePlaceholder":804},[426,1250,1251],{"class":428,"line":839},[426,1252,836],{},[426,1254,1255],{"class":428,"line":845},[426,1256,1257],{},"    \\centering\n",[426,1259,1260],{"class":428,"line":851},[426,1261,1262],{},"    \\includegraphics[width=4in]{gecko}\n",[426,1264,1265],{"class":428,"line":857},[426,1266,1267],{},"    \\caption[Close up of \\species{Hemidactylus}]\n",[426,1269,1270],{"class":428,"line":862},[426,1271,1272],{},"    {Close up of \\species{Hemidactylus}, which is part the genus of the gecko family. It is the second most speciose genus in the family.}\n",[426,1274,1275],{"class":428,"line":867},[426,1276,444],{},[426,1278,1279],{"class":428,"line":872},[426,1280,805],{"emptyLinePlaceholder":804},[426,1282,1283],{"class":428,"line":877},[426,1284,998],{},[375,1286,1288],{"id":1287},"labels-and-cross-referencing","Labels and cross-referencing",[357,1290,1291,1292,1295],{},"Labels and cross-references work fairly similarly to the general case - see the ",[361,1293,1294],{"href":205},"Labels and Cross-referencing"," section for more information.",[357,1297,1298,1300,1301,1304,1305,1308],{},[582,1299,1105],{}," If you want to label a figure so that you can reference it later, you have to add the label ",[582,1302,1303],{},"after the caption"," (inside seems to work in LaTeX 2e) but ",[582,1306,1307],{},"inside the floating environment",". If it is declared outside, it will give the section number.",[357,1310,1311,1312,1315,1316,1319],{},"If the label picks up the section or list number instead of the figure number, put the label inside the caption to ensure correct numbering.  If you get an error when the label is inside the caption, use ",[402,1313,1314],{},"\\protect"," in front of the ",[402,1317,1318],{},"\\label"," command.",[375,1321,1323],{"id":1322},"wrapping-text-around-figures","Wrapping text around figures",[357,1325,1326],{},"An author may prefer that some floats do not break the flow of text, but instead allow text to wrap around it. (Obviously, this effect only looks decent when the figure in question is significantly narrower than the text width.)",[357,1328,1329],{},"A word of warning: Wrapping figures in LaTeX will require a lot of manual adjustment of your document. There are several packages available for the task, but none of them work perfectly. Before you make the choice of including figures with text wrapping in your document, make sure you have considered all the options. For example, you could use a layout with two columns for your documents and have no text-wrapping at all.",[357,1331,1332,1333,1336,1337,1339,1340,1343],{},"Anyway, we will look at the package ",[402,1334,1335],{},"wrapfig",". Note that ",[402,1338,1335],{}," may not come with the default installation of LaTeX; you might need to ",[361,1341,1342],{"href":20},"install additional packages",". Noted also, wrapfig is incompatible with the enumerate and itemize environments",[357,1345,1346,1347,1349],{},"To use ",[402,1348,1335],{},", you must first add this to the preamble:",[396,1351,1353],{"className":419,"code":1352,"language":421,"meta":422,"style":422},"\\usepackage{wrapfig}\n",[402,1354,1355],{"__ignoreMap":422},[426,1356,1357],{"class":428,"line":429},[426,1358,1352],{},[357,1360,1361],{},"This then gives you access to:",[396,1363,1365],{"className":419,"code":1364,"language":421,"meta":422,"style":422},"\\begin{wrapfigure}[lineheight]{position}[overhang]{width}\n",[402,1366,1367],{"__ignoreMap":422},[426,1368,1369],{"class":428,"line":429},[426,1370,1364],{},[357,1372,1373],{},"The lineheight is expressed as the number of lines of text the figure spans. LaTeX will automatically calculate the value if this option is left blank but this can result in figures that look ugly (with too much spacing). The LaTeX calculation is manually overridden by entering the number of lines you would like the figure to span. This option can't be entered in pt, mm, etc...",[357,1375,1376],{},"There are overall eight possible positioning targets:",[453,1378,1379,1391],{},[456,1380,1381],{},[459,1382,1383,1386,1389],{},[462,1384,1385],{},"Lowercase",[462,1387,1388],{},"Uppercase",[462,1390,467],{},[469,1392,1393,1408,1423,1442],{},[459,1394,1395,1400,1405],{},[474,1396,1397],{},[402,1398,1399],{},"r",[474,1401,1402],{},[402,1403,1404],{},"R",[474,1406,1407],{},"right side of the text",[459,1409,1410,1415,1420],{},[474,1411,1412],{},[402,1413,1414],{},"l",[474,1416,1417],{},[402,1418,1419],{},"L",[474,1421,1422],{},"left side of the text",[459,1424,1425,1430,1435],{},[474,1426,1427],{},[402,1428,1429],{},"i",[474,1431,1432],{},[402,1433,1434],{},"I",[474,1436,1437,1438,1441],{},"inside edge–near the binding (in a ",[402,1439,1440],{},"twoside"," document)",[459,1443,1444,1449,1454],{},[474,1445,1446],{},[402,1447,1448],{},"o",[474,1450,1451],{},[402,1452,1453],{},"O",[474,1455,1456],{},"outside edge–far from the binding",[357,1458,1459],{},"The uppercase-character allows the figure to float, while the lowercase version means \"exactly here\".",[357,1461,1462],{},"The overhang of the figure can be manually set using the overhang option in pt, cm, etc...",[357,1464,359,1465,1468],{},[366,1466,1467],{},"width"," is, of course, the width of the figure. An example:",[396,1470,1472],{"className":419,"code":1471,"language":421,"meta":422,"style":422},"\\begin{wrapfigure}{r}{0.5\\textwidth}\n  \\begin{center}\n    \\includegraphics[width=0.48\\textwidth]{gull}\n  \\end{center}\n  \\caption{A gull}\n\\end{wrapfigure}\n",[402,1473,1474,1479,1484,1489,1494,1499],{"__ignoreMap":422},[426,1475,1476],{"class":428,"line":429},[426,1477,1478],{},"\\begin{wrapfigure}{r}{0.5\\textwidth}\n",[426,1480,1481],{"class":428,"line":435},[426,1482,1483],{},"  \\begin{center}\n",[426,1485,1486],{"class":428,"line":441},[426,1487,1488],{},"    \\includegraphics[width=0.48\\textwidth]{gull}\n",[426,1490,1491],{"class":428,"line":673},[426,1492,1493],{},"  \\end{center}\n",[426,1495,1496],{"class":428,"line":679},[426,1497,1498],{},"  \\caption{A gull}\n",[426,1500,1501],{"class":428,"line":822},[426,1502,1503],{},"\\end{wrapfigure}\n",[357,1505,1506,1507],{},"You can also allow LaTeX to assign a width to the wrap by setting the width to 0pt: ",[402,1508,1509],{},"\\begin{wrapfigure}{l}{0pt}",[357,1511,1512,1513,1516,1517,1520],{},"Note that we have specified a size for both the ",[402,1514,1515],{},"wrapfigure"," environment and the image we have included. We did it in terms of the text width: it is always better to use relative sizes in LaTeX, let LaTeX do the work for you! The \"wrap\" is slightly bigger than the picture, so the compiler will not return any strange warning and you will have a small white frame between the image and the surrounding text. You can change it to get a better result, but if you don't keep the image smaller than the \"wrap\", you will see the image ",[366,1518,1519],{},"over"," the text.",[357,1522,1523,1524,560],{},"The wrapfig package can also be used with user-defined floats with float package. See below in the ",[361,1525,1526],{"href":383},"section on custom floats",[407,1528,1530],{"id":1529},"tip-for-figures-with-too-much-white-space","Tip for figures with too much white space",[357,1532,1533,1534,1537,1538],{},"You can use ",[402,1535,1536],{},"intextsep"," parameter to control additional space above and below the figure: ",[402,1539,1540],{},"\\setlength\\intextsep{0pt}",[357,1542,1543,1544,1547],{},"To control the horizontal space between the image and the text, use the ",[402,1545,1546],{},"columnsep"," parameter.",[357,1549,1550,1551,1554,1555,1558,1559,1562],{},"It happens that you'll generate figures with too much (or too little) white space on the top or bottom. In such a case, you can simply make use of the optional argument ",[402,1552,1553],{},"[lineheight]",". It specifies the height of the figure in the number of lines of text. Also remember that the environment ",[402,1556,1557],{},"center"," adds some extra white space at its top and bottom; consider using the command ",[402,1560,1561],{},"\\centering"," instead.",[357,1564,1565,1566,1569,1570,1573,1574,1577,1578,1580,1581,1583],{},"Another possibility is adding space within the float using the ",[402,1567,1568],{},"\\vspace{...}"," command. The argument is the size of the space you want to add, you can use any unit you want, including pt, mm, in, etc. If you provide a negative argument, it will add a ",[366,1571,1572],{},"negative"," space, thus removing some white space. Using ",[402,1575,1576],{},"\\vspace"," tends to move the caption relative to the float while the ",[402,1579,1553],{}," argument does not. Here is an example using the ",[402,1582,1576],{}," command, the code is exactly the one of the previous cases, we just added some negative vertical spaces to shrink everything up:",[396,1585,1587],{"className":419,"code":1586,"language":421,"meta":422,"style":422},"\\begin{wrapfigure}{r}{0.5\\textwidth}\n  \\vspace{-20pt}\n  \\begin{center}\n    \\includegraphics[width=0.48\\textwidth]{gull}\n  \\end{center}\n  \\vspace{-20pt}\n  \\caption{A gull}\n  \\vspace{-10pt}\n\\end{wrapfigure}\n",[402,1588,1589,1593,1598,1602,1606,1610,1614,1618,1623],{"__ignoreMap":422},[426,1590,1591],{"class":428,"line":429},[426,1592,1478],{},[426,1594,1595],{"class":428,"line":435},[426,1596,1597],{},"  \\vspace{-20pt}\n",[426,1599,1600],{"class":428,"line":441},[426,1601,1483],{},[426,1603,1604],{"class":428,"line":673},[426,1605,1488],{},[426,1607,1608],{"class":428,"line":679},[426,1609,1493],{},[426,1611,1612],{"class":428,"line":822},[426,1613,1597],{},[426,1615,1616],{"class":428,"line":828},[426,1617,1498],{},[426,1619,1620],{"class":428,"line":833},[426,1621,1622],{},"  \\vspace{-10pt}\n",[426,1624,1625],{"class":428,"line":839},[426,1626,1503],{},[357,1628,1629],{},"In this case, it may look too shrunk, but you can manage spaces the way you like. In general, it is best not to add any space at all: let LaTeX do the formatting work!",[357,1631,1632,1633,1636,1637,1639,1640,1642],{},"(In this case, the problem is the use of ",[402,1634,1635],{},"\\begin{center}"," to center the image. The ",[402,1638,1557],{}," environment adds extra space that can be avoided if ",[402,1641,1561],{}," is used instead.)",[357,1644,1645,1646,1649],{},"Alternatively, you might use the ",[402,1647,1648],{},"picins"," package instead of the wrapfig package which produces a correct version without the excess white space out of the box without any hand-tuning.",[357,1651,1652,1653,1655,1656,560],{},"There is also an alternative to ",[402,1654,1335],{},": the package ",[361,1657,1660],{"href":1658,"rel":1659},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Ffloatflt",[705],[402,1661,1662],{},"floatflt",[357,1664,1665],{},"To remove the white space from a figure once for all, one should refer to the program pdfcrop, included in most TeX installations.",[375,1667,1669],{"id":1668},"subfloats","Subfloats",[357,1671,1672,1673,1676,1680,1681,1684,1685,1688,1689,1692,1693,1695,1696,1698],{},"A useful extension is the ",[402,1674,1675],{},"subcaption",[361,1677,706],{"href":1678,"rel":1679},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Fsubcaption",[705]," package, which uses subfloats within a single float. The ",[402,1682,1683],{},"subfig"," package (",[402,1686,1687],{},"subfigure"," package is deprecated) is a useful alternative when used in conjunction with LaTeX templates (",[366,1690,1691],{},"i.e."," templates for journals from Springer and IOP, IEEETran and ACM SIG) that are not compatible with ",[402,1694,1675],{},". These packages give the author the ability to have subfigures within figures, or subtables within table floats. Subfloats have their own caption, and an optional global caption.  An example will best illustrate the usage of the ",[402,1697,1675],{}," package:",[396,1700,1702],{"className":419,"code":1701,"language":421,"meta":422,"style":422},"\\usepackage{graphicx}\n\\usepackage{subcaption}\n\n\\begin{figure}\n    \\centering\n    \\begin{subfigure}[b]{0.3\\textwidth}\n        \\includegraphics[width=\\textwidth]{gull}\n        \\caption{A gull}\n        \\label{fig:gull}\n    \\end{subfigure}\n    ~ %add desired spacing between images, e. g. ~, \\quad, \\qquad, \\hfill etc. \n      %(or a blank line to force the subfigure onto a new line)\n    \\begin{subfigure}[b]{0.3\\textwidth}\n        \\includegraphics[width=\\textwidth]{tiger}\n        \\caption{A tiger}\n        \\label{fig:tiger}\n    \\end{subfigure}\n    ~ %add desired spacing between images, e. g. ~, \\quad, \\qquad, \\hfill etc. \n    %(or a blank line to force the subfigure onto a new line)\n    \\begin{subfigure}[b]{0.3\\textwidth}\n        \\includegraphics[width=\\textwidth]{mouse}\n        \\caption{A mouse}\n        \\label{fig:mouse}\n    \\end{subfigure}\n    \\caption{Pictures of animals}\\label{fig:animals}\n\\end{figure}\n",[402,1703,1704,1708,1713,1717,1721,1725,1730,1735,1740,1745,1750,1755,1760,1764,1769,1774,1779,1783,1787,1792,1796,1801,1806,1811,1815,1820],{"__ignoreMap":422},[426,1705,1706],{"class":428,"line":429},[426,1707,815],{},[426,1709,1710],{"class":428,"line":435},[426,1711,1712],{},"\\usepackage{subcaption}\n",[426,1714,1715],{"class":428,"line":441},[426,1716,805],{"emptyLinePlaceholder":804},[426,1718,1719],{"class":428,"line":673},[426,1720,836],{},[426,1722,1723],{"class":428,"line":679},[426,1724,1257],{},[426,1726,1727],{"class":428,"line":822},[426,1728,1729],{},"    \\begin{subfigure}[b]{0.3\\textwidth}\n",[426,1731,1732],{"class":428,"line":828},[426,1733,1734],{},"        \\includegraphics[width=\\textwidth]{gull}\n",[426,1736,1737],{"class":428,"line":833},[426,1738,1739],{},"        \\caption{A gull}\n",[426,1741,1742],{"class":428,"line":839},[426,1743,1744],{},"        \\label{fig:gull}\n",[426,1746,1747],{"class":428,"line":845},[426,1748,1749],{},"    \\end{subfigure}\n",[426,1751,1752],{"class":428,"line":851},[426,1753,1754],{},"    ~ %add desired spacing between images, e. g. ~, \\quad, \\qquad, \\hfill etc. \n",[426,1756,1757],{"class":428,"line":857},[426,1758,1759],{},"      %(or a blank line to force the subfigure onto a new line)\n",[426,1761,1762],{"class":428,"line":862},[426,1763,1729],{},[426,1765,1766],{"class":428,"line":867},[426,1767,1768],{},"        \\includegraphics[width=\\textwidth]{tiger}\n",[426,1770,1771],{"class":428,"line":872},[426,1772,1773],{},"        \\caption{A tiger}\n",[426,1775,1776],{"class":428,"line":877},[426,1777,1778],{},"        \\label{fig:tiger}\n",[426,1780,1781],{"class":428,"line":883},[426,1782,1749],{},[426,1784,1785],{"class":428,"line":889},[426,1786,1754],{},[426,1788,1789],{"class":428,"line":895},[426,1790,1791],{},"    %(or a blank line to force the subfigure onto a new line)\n",[426,1793,1794],{"class":428,"line":901},[426,1795,1729],{},[426,1797,1798],{"class":428,"line":906},[426,1799,1800],{},"        \\includegraphics[width=\\textwidth]{mouse}\n",[426,1802,1803],{"class":428,"line":911},[426,1804,1805],{},"        \\caption{A mouse}\n",[426,1807,1808],{"class":428,"line":916},[426,1809,1810],{},"        \\label{fig:mouse}\n",[426,1812,1813],{"class":428,"line":921},[426,1814,1749],{},[426,1816,1817],{"class":428,"line":927},[426,1818,1819],{},"    \\caption{Pictures of animals}\\label{fig:animals}\n",[426,1821,1822],{"class":428,"line":933},[426,1823,444],{},[357,1825,1826],{},"You will notice that the figure environment is set up as usual. You may also use a table environment for subtables. For each subfloat, you need to use:",[396,1828,1830],{"className":419,"code":1829,"language":421,"meta":422,"style":422},"\\begin{table}[\u003Cplacement specifier>]\n    \\begin{subtable}[\u003Cplacement specifier>]{\u003Cwidth>}\n        \\centering\n        ... table 1 ...\n    \\caption{\u003Csub caption>}\n    \\end{subtable}\n    ~\n    \\begin{subtable}[\u003Cplacement specifier>]{\u003Cwidth>}\n        \\centering\n        ... table 2 ...\n        \\caption{\u003Csub caption>}\n    \\end{subtable}\n\\end{table}\n",[402,1831,1832,1837,1842,1847,1852,1857,1862,1867,1871,1875,1880,1885,1889],{"__ignoreMap":422},[426,1833,1834],{"class":428,"line":429},[426,1835,1836],{},"\\begin{table}[\u003Cplacement specifier>]\n",[426,1838,1839],{"class":428,"line":435},[426,1840,1841],{},"    \\begin{subtable}[\u003Cplacement specifier>]{\u003Cwidth>}\n",[426,1843,1844],{"class":428,"line":441},[426,1845,1846],{},"        \\centering\n",[426,1848,1849],{"class":428,"line":673},[426,1850,1851],{},"        ... table 1 ...\n",[426,1853,1854],{"class":428,"line":679},[426,1855,1856],{},"    \\caption{\u003Csub caption>}\n",[426,1858,1859],{"class":428,"line":822},[426,1860,1861],{},"    \\end{subtable}\n",[426,1863,1864],{"class":428,"line":828},[426,1865,1866],{},"    ~\n",[426,1868,1869],{"class":428,"line":833},[426,1870,1841],{},[426,1872,1873],{"class":428,"line":839},[426,1874,1846],{},[426,1876,1877],{"class":428,"line":845},[426,1878,1879],{},"        ... table 2 ...\n",[426,1881,1882],{"class":428,"line":851},[426,1883,1884],{},"        \\caption{\u003Csub caption>}\n",[426,1886,1887],{"class":428,"line":857},[426,1888,1861],{},[426,1890,1891],{"class":428,"line":862},[426,1892,682],{},[357,1894,1895,1896,1898,1899,1901],{},"If you intend to cross-reference any of the subfloats, see where the label is inserted; ",[402,1897,1187],{}," outside the ",[402,1900,1687],{},"-environment will provide the global caption.",[357,1903,1904,1906,1907,1910],{},[402,1905,1675],{}," will arrange the figures or tables side-by-side providing they can fit, otherwise, it will automatically shift subfloats below. This effect can be added manually, by putting the newline command (",[402,1908,1909],{},"\\\\",") before the figure you wish to move to a newline.",[357,1912,1913,1914,1917,1918,1921,1922,1925,1926,1929,1930,1929,1933,1936,1937,1940,1941,1944,1945],{},"Horizontal spaces between figures are controlled by one of several commands, which are placed in between ",[402,1915,1916],{},"\\begin{subfigure}"," and ",[402,1919,1920],{},"\\end{subfigure}",":\n*A non-breaking space (specified by ~ as in the example above) can be used to insert a space in between the subfigs.\n*",[361,1923,1924],{"href":155},"Math spaces",": ",[402,1927,1928],{},"\\qquad",", ",[402,1931,1932],{},"\\quad",[402,1934,1935],{},"\\;",", and ",[402,1938,1939],{},"\\,","\n*Generic space: ",[402,1942,1943],{},"\\hspace{*length*}","\n*Automatically expanding\u002Fcontracting space: ",[402,1946,1947],{},"\\hfill",[375,1949,1951],{"id":1950},"figures-in-multiple-parts","Figures in multiple parts",[357,1953,1954,1955,1958,1959,1961],{},"Sometimes you need to divide up a figure over multiple floats, for instance because the figure is too big to fit on one page. In this case you can use ",[366,1956,1957],{},"continued figures"," using the ",[402,1960,771],{}," package.",[357,1963,1964],{},"Put this in your preamble:",[396,1966,1968],{"className":419,"code":1967,"language":421,"meta":422,"style":422},"\\usepackage{caption}\n\\DeclareCaptionLabelFormat{cont}{#1~#2\\alph{ContinuedFloat}}\n\\captionsetup[ContinuedFloat]{labelformat=cont}\n",[402,1969,1970,1974,1979],{"__ignoreMap":422},[426,1971,1972],{"class":428,"line":429},[426,1973,1159],{},[426,1975,1976],{"class":428,"line":435},[426,1977,1978],{},"\\DeclareCaptionLabelFormat{cont}{#1~#2\\alph{ContinuedFloat}}\n",[426,1980,1981],{"class":428,"line":441},[426,1982,1983],{},"\\captionsetup[ContinuedFloat]{labelformat=cont}\n",[357,1985,1986],{},"Then you can use continued floats as follows.",[396,1988,1990],{"className":419,"code":1989,"language":421,"meta":422,"style":422},"\\begin{figure}\n    \\ContinuedFloat*\n    \\[ e^{i \\pi} + 1 = 0 \\]\n    \\caption{Euler's identity, first form.}\n\\end{figure}\n\\begin{figure}\n    \\ContinuedFloat\n    \\[ e^{i \\pi} = -1 \\]\n    \\caption{Euler's identity, second form.}\n\\end{figure}\n",[402,1991,1992,1996,2001,2006,2011,2015,2019,2024,2029,2034],{"__ignoreMap":422},[426,1993,1994],{"class":428,"line":429},[426,1995,836],{},[426,1997,1998],{"class":428,"line":435},[426,1999,2000],{},"    \\ContinuedFloat*\n",[426,2002,2003],{"class":428,"line":441},[426,2004,2005],{},"    \\[ e^{i \\pi} + 1 = 0 \\]\n",[426,2007,2008],{"class":428,"line":673},[426,2009,2010],{},"    \\caption{Euler's identity, first form.}\n",[426,2012,2013],{"class":428,"line":679},[426,2014,444],{},[426,2016,2017],{"class":428,"line":822},[426,2018,836],{},[426,2020,2021],{"class":428,"line":828},[426,2022,2023],{},"    \\ContinuedFloat\n",[426,2025,2026],{"class":428,"line":833},[426,2027,2028],{},"    \\[ e^{i \\pi} = -1 \\]\n",[426,2030,2031],{"class":428,"line":839},[426,2032,2033],{},"    \\caption{Euler's identity, second form.}\n",[426,2035,2036],{"class":428,"line":845},[426,2037,444],{},[375,2039,2041],{"id":2040},"wide-figures-in-two-column-documents","Wide figures in two-column documents",[357,2043,2044,2045,2048,2049,2052,2053,1917,2056,2059],{},"If you are writing a document using two columns (i.e. you started your document with something like ",[402,2046,2047],{},"\\documentclass[twocolumn]{article}","), you might have noticed that you can't use floating elements that are wider than the width of a column (using a LaTeX notation, wider than ",[402,2050,2051],{},"0.5\\textwidth","), otherwise you will see the image overlapping with text. If you really have to use such wide elements, the only solution is to use the \"starred\" variants of the floating environments, that are ",[402,2054,2055],{},"{figure*}",[402,2057,2058],{},"{table*}",". Those \"starred\" versions work like the standard ones, but they will be as wide as the page, so you will get no overlapping.",[357,2061,2062,2063,733,2065,2067,2068,2071,2072,2075,2076,2079,2080,2082],{},"A bad point of those environments is that they can be placed only at the top of the page or on their own page. If you try to specify their position using modifiers like ",[366,2064,514],{},[366,2066,478],{},", they will be ignored. Add ",[402,2069,2070],{},"\\usepackage{dblfloatfix}"," to the preamble in order to alleviate this problem with regard to placing these floats at the bottom of a page, using the optional specifier ",[402,2073,2074],{},"[b]",". Default is ",[402,2077,2078],{},"[tbp]",". However, ",[366,2081,478],{}," still does not work.",[375,2084,384],{"id":2085},"custom-floats",[357,2087,2088,2089,2092,2093,2095,2096],{},"If tables and figures are not adequate for your needs, then you always have the option to create your own! Examples of such instances could be source code examples, or maps. For a program float example, one might therefore wish to create a float named ",[402,2090,2091],{},"program",". The package ",[402,2094,555],{}," is your friend for this task. ",[366,2097,2098],{},"All commands to set up the new float must be placed in the preamble, and not within the document.",[2100,2101,2102,2109,2148,2154],"ol",{},[2103,2104,2105,2106,2108],"li",{},"Add ",[402,2107,559],{}," to the preamble of your document.",[2103,2110,2111,2112,2115,2116],{},"Declare your new float using: ",[402,2113,2114],{},"\\newfloat{type}{placement}{ext}[outer counter]",", where:\n",[2117,2118,2119,2125,2136,2142],"ul",{},[2103,2120,2121,2124],{},[366,2122,2123],{},"type"," - the new name you wish to call your float, in this instance, 'program'.",[2103,2126,2127,2130,2131,2135],{},[366,2128,2129],{},"placement"," - t, b, p, or h (as previously described in ",[361,2132,2134],{"href":2133},"#floats","Placement","), where letters enumerate permitted placements.",[2103,2137,2138,2141],{},[366,2139,2140],{},"ext"," - the file name extension of an auxiliary file for the list of figures (or whatever). LaTeX writes the captions to this file.",[2103,2143,2144,2147],{},[366,2145,2146],{},"outer counter"," - the presence of this parameter indicates that the counter associated with this new float should depend on outer counter, for example 'chapter'.",[2103,2149,2150,2151,560],{},"The default name that appears at the start of the caption is the type. If you wish to alter this, use ",[402,2152,2153],{},"\\floatname{type}{floatname}",[2103,2155,2156,2157,2160,2161,2164,2165,2167,2168],{},"Changing float style can be issued with ",[402,2158,2159],{},"\\floatstyle{style}"," (works on all subsequent ",[402,2162,2163],{},"\\newfloat"," commands, therefore must be inserted before ",[402,2166,2163],{}," to be effective):\n",[2117,2169,2170,2176,2182,2188],{},[2103,2171,2172,2175],{},[402,2173,2174],{},"plain"," - the normal style for LaTeX floats, but the caption is always below the content.",[2103,2177,2178,2181],{},[402,2179,2180],{},"plaintop"," - the normal style for LaTeX floats, but the caption is always above the content.",[2103,2183,2184,2187],{},[402,2185,2186],{},"boxed"," - a box is drawn that surrounds the float, and the caption is printed below.",[2103,2189,2190,2193],{},[402,2191,2192],{},"ruled"," - the caption appears above the float, with rules immediately above and below. Then the float contents, followed by a final horizontal rule.",[357,2195,2196],{},"Float styles can also be customized as the second example below illustrates.",[357,2198,2199,2200,2202],{},"An example document using a new ",[402,2201,2091],{}," float type:",[396,2204,2206],{"className":419,"code":2205,"language":421,"meta":422,"style":422},"\\documentclass{article}\n\n\\usepackage{float}\n\n\\floatstyle{ruled}\n\\newfloat{program}{thp}{lop}\n\\floatname{program}{Program}\n\n\\begin{document}\n\n\\begin{program}\n  \\begin{verbatim}\n\nclass HelloWorldApp {\n  public static void main(String[] args) {\n    \u002F\u002FDisplay the string\n    System.out.println(\"Hello World!\");\n  }\n}\n  \\end{verbatim}\n  \\caption{The Hello World! program in Java.}\n\\end{program}\n\n\\end{document}\n",[402,2207,2208,2212,2216,2220,2224,2229,2234,2239,2243,2247,2251,2256,2261,2265,2270,2275,2280,2285,2290,2295,2300,2305,2310,2314],{"__ignoreMap":422},[426,2209,2210],{"class":428,"line":429},[426,2211,1037],{},[426,2213,2214],{"class":428,"line":435},[426,2215,805],{"emptyLinePlaceholder":804},[426,2217,2218],{"class":428,"line":441},[426,2219,616],{},[426,2221,2222],{"class":428,"line":673},[426,2223,805],{"emptyLinePlaceholder":804},[426,2225,2226],{"class":428,"line":679},[426,2227,2228],{},"\\floatstyle{ruled}\n",[426,2230,2231],{"class":428,"line":822},[426,2232,2233],{},"\\newfloat{program}{thp}{lop}\n",[426,2235,2236],{"class":428,"line":828},[426,2237,2238],{},"\\floatname{program}{Program}\n",[426,2240,2241],{"class":428,"line":833},[426,2242,805],{"emptyLinePlaceholder":804},[426,2244,2245],{"class":428,"line":839},[426,2246,825],{},[426,2248,2249],{"class":428,"line":845},[426,2250,805],{"emptyLinePlaceholder":804},[426,2252,2253],{"class":428,"line":851},[426,2254,2255],{},"\\begin{program}\n",[426,2257,2258],{"class":428,"line":857},[426,2259,2260],{},"  \\begin{verbatim}\n",[426,2262,2263],{"class":428,"line":862},[426,2264,805],{"emptyLinePlaceholder":804},[426,2266,2267],{"class":428,"line":867},[426,2268,2269],{},"class HelloWorldApp {\n",[426,2271,2272],{"class":428,"line":872},[426,2273,2274],{},"  public static void main(String[] args) {\n",[426,2276,2277],{"class":428,"line":877},[426,2278,2279],{},"    \u002F\u002FDisplay the string\n",[426,2281,2282],{"class":428,"line":883},[426,2283,2284],{},"    System.out.println(\"Hello World!\");\n",[426,2286,2287],{"class":428,"line":889},[426,2288,2289],{},"  }\n",[426,2291,2292],{"class":428,"line":895},[426,2293,2294],{},"}\n",[426,2296,2297],{"class":428,"line":901},[426,2298,2299],{},"  \\end{verbatim}\n",[426,2301,2302],{"class":428,"line":906},[426,2303,2304],{},"  \\caption{The Hello World! program in Java.}\n",[426,2306,2307],{"class":428,"line":911},[426,2308,2309],{},"\\end{program}\n",[426,2311,2312],{"class":428,"line":916},[426,2313,805],{"emptyLinePlaceholder":804},[426,2315,2316],{"class":428,"line":921},[426,2317,998],{},[357,2319,359,2320,2323,2324,2328,2329,2332,2333,2335],{},[402,2321,2322],{},"verbatim"," is an environment already discussed in ",[361,2325,2327],{"href":2326},"\u002Fdocument-fundamentals\u002Fparagraph-formatting#verbatim-text","Special paragraphs",". It is good for source code, but if you want to introduce a lot of code you might consider using the ",[402,2330,2331],{},"listings"," package described in ",[361,2334,170],{"href":171},", that was made just for it.",[357,2337,2338,2339,2342,2343,2345],{},"While this is useful, one should be careful when embedding the float within another float. In particular, the error ",[402,2340,2341],{},"not in outer par mode"," may occur. One solution might be to use the ",[426,2344,549],{}," option (not any other) on the inner float, as this option \"pins\" the inner float to the outer one.",[357,2347,2348,2349,2351,2352,2354],{},"Newly created floats with ",[402,2350,2163],{}," can also be used in combination with the ",[402,2353,1335],{}," package from above. E.g. the following code creates a floating text box, which floats in the text on the right side of the page and is complete with caption, numbering, an index file with the extension .lob and a customization of the float's visual layout:",[396,2356,2358],{"className":419,"code":2357,"language":421,"meta":422,"style":422},"\\documentclass{article}\n\n% have hyperref package before float in order to get strange errors with .\\theHfloatbox\n\\usepackage{hyperref}\n\n\\usepackage{float}\n\n% allows use of \"@\" in control sequence names\n\\makeatletter\n\n% this creates a custom and simpler ruled box style\n\\newcommand\\floatc@simplerule[2]{{\\@fs@cfont #1 #2}\\par}\n\\newcommand\\fs@simplerule{\\def\\@fs@cfont{\\bfseries}\\let\\@fs@capt\\floatc@simplerule\n  \\def\\@fs@pre{\\hrule height.8pt depth0pt \\kern4pt}%\n  \\def\\@fs@post{\\kern4pt\\hrule height.8pt depth0pt \\kern4pt \\relax}%\n  \\def\\@fs@mid{\\kern8pt}%\n  \\let\\@fs@iftopcapt\\iftrue}\n\n% this code block defines the new and custom floatbox float environment\n\\floatstyle{simplerule}\n\\newfloat{floatbox}{thp}{lob}[section]\n\\floatname{floatbox}{Text Box}\n\n\\begin{document}\n\n\\begin{floatbox}{r}{}\n  \\textit{Bootstrapping} is a resampling technique used \n  for robustly estimating statistical quantities, such as \n  the model fit $R^2$. It offers some protection against \n  the sampling bias.\n  \\caption{Bootstrapping}\n\\end{floatbox}\n\n\\end{document}\n",[402,2359,2360,2364,2368,2373,2378,2382,2386,2390,2395,2400,2404,2409,2414,2419,2424,2429,2434,2439,2443,2448,2453,2458,2463,2467,2471,2475,2480,2485,2490,2495,2500,2505,2510,2514],{"__ignoreMap":422},[426,2361,2362],{"class":428,"line":429},[426,2363,1037],{},[426,2365,2366],{"class":428,"line":435},[426,2367,805],{"emptyLinePlaceholder":804},[426,2369,2370],{"class":428,"line":441},[426,2371,2372],{},"% have hyperref package before float in order to get strange errors with .\\theHfloatbox\n",[426,2374,2375],{"class":428,"line":673},[426,2376,2377],{},"\\usepackage{hyperref}\n",[426,2379,2380],{"class":428,"line":679},[426,2381,805],{"emptyLinePlaceholder":804},[426,2383,2384],{"class":428,"line":822},[426,2385,616],{},[426,2387,2388],{"class":428,"line":828},[426,2389,805],{"emptyLinePlaceholder":804},[426,2391,2392],{"class":428,"line":833},[426,2393,2394],{},"% allows use of \"@\" in control sequence names\n",[426,2396,2397],{"class":428,"line":839},[426,2398,2399],{},"\\makeatletter\n",[426,2401,2402],{"class":428,"line":845},[426,2403,805],{"emptyLinePlaceholder":804},[426,2405,2406],{"class":428,"line":851},[426,2407,2408],{},"% this creates a custom and simpler ruled box style\n",[426,2410,2411],{"class":428,"line":857},[426,2412,2413],{},"\\newcommand\\floatc@simplerule[2]{{\\@fs@cfont #1 #2}\\par}\n",[426,2415,2416],{"class":428,"line":862},[426,2417,2418],{},"\\newcommand\\fs@simplerule{\\def\\@fs@cfont{\\bfseries}\\let\\@fs@capt\\floatc@simplerule\n",[426,2420,2421],{"class":428,"line":867},[426,2422,2423],{},"  \\def\\@fs@pre{\\hrule height.8pt depth0pt \\kern4pt}%\n",[426,2425,2426],{"class":428,"line":872},[426,2427,2428],{},"  \\def\\@fs@post{\\kern4pt\\hrule height.8pt depth0pt \\kern4pt \\relax}%\n",[426,2430,2431],{"class":428,"line":877},[426,2432,2433],{},"  \\def\\@fs@mid{\\kern8pt}%\n",[426,2435,2436],{"class":428,"line":883},[426,2437,2438],{},"  \\let\\@fs@iftopcapt\\iftrue}\n",[426,2440,2441],{"class":428,"line":889},[426,2442,805],{"emptyLinePlaceholder":804},[426,2444,2445],{"class":428,"line":895},[426,2446,2447],{},"% this code block defines the new and custom floatbox float environment\n",[426,2449,2450],{"class":428,"line":901},[426,2451,2452],{},"\\floatstyle{simplerule}\n",[426,2454,2455],{"class":428,"line":906},[426,2456,2457],{},"\\newfloat{floatbox}{thp}{lob}[section]\n",[426,2459,2460],{"class":428,"line":911},[426,2461,2462],{},"\\floatname{floatbox}{Text Box}\n",[426,2464,2465],{"class":428,"line":916},[426,2466,805],{"emptyLinePlaceholder":804},[426,2468,2469],{"class":428,"line":921},[426,2470,825],{},[426,2472,2473],{"class":428,"line":927},[426,2474,805],{"emptyLinePlaceholder":804},[426,2476,2477],{"class":428,"line":933},[426,2478,2479],{},"\\begin{floatbox}{r}{}\n",[426,2481,2482],{"class":428,"line":939},[426,2483,2484],{},"  \\textit{Bootstrapping} is a resampling technique used \n",[426,2486,2487],{"class":428,"line":945},[426,2488,2489],{},"  for robustly estimating statistical quantities, such as \n",[426,2491,2492],{"class":428,"line":951},[426,2493,2494],{},"  the model fit $R^2$. It offers some protection against \n",[426,2496,2497],{"class":428,"line":956},[426,2498,2499],{},"  the sampling bias.\n",[426,2501,2502],{"class":428,"line":962},[426,2503,2504],{},"  \\caption{Bootstrapping}\n",[426,2506,2507],{"class":428,"line":968},[426,2508,2509],{},"\\end{floatbox}\n",[426,2511,2512],{"class":428,"line":973},[426,2513,805],{"emptyLinePlaceholder":804},[426,2515,2516],{"class":428,"line":978},[426,2517,998],{},[407,2519,2521],{"id":2520},"caption-styles","Caption styles",[357,2523,2524,2525,2530],{},"To change the appearance of captions, use the ",[361,2526,2528],{"href":767,"rel":2527},[705],[402,2529,771],{}," package. For example, to make all caption labels small and bold:",[396,2532,2534],{"className":419,"code":2533,"language":421,"meta":422,"style":422},"\\usepackage[font=small,labelfont=bf]{caption}\n",[402,2535,2536],{"__ignoreMap":422},[426,2537,2538],{"class":428,"line":429},[426,2539,2533],{},[357,2541,2542,2543,1929,2546,1917,2549,2552,2553,1961],{},"The KOMA script packages have their own caption customizing features with e.g. ",[402,2544,2545],{},"\\captionabove",[402,2547,2548],{},"\\captionformat",[402,2550,2551],{},"\\setcapwidth",". However these definitions have limited effect on newly created float environments with the ",[402,2554,1335],{},[357,2556,2557,2558,2561],{},"Alternatively, you can redefine the ",[402,2559,2560],{},"\\thefigure"," command:",[396,2563,2565],{"className":419,"code":2564,"language":421,"meta":422,"style":422},"\\renewcommand{\\thefigure}{\\arabic{section}.\\arabic{figure}}\n",[402,2566,2567],{"__ignoreMap":422},[426,2568,2569],{"class":428,"line":429},[426,2570,2564],{},[357,2572,2573,2574,2577,2578,2581],{},"See ",[361,2575,2576],{"href":315},"this page"," for more information on counters.\nFinally, note that the ",[402,2579,2580],{},"caption2"," package has long been deprecated.",[375,2583,2585],{"id":2584},"labels-in-the-figures","Labels in the figures",[357,2587,2588,2589,2596],{},"There is a LaTeX package ",[361,2590,2593],{"href":2591,"rel":2592},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Flpic",[705],[402,2594,2595],{},"lpic"," to put LaTeX on top of included graphics, thus allowing to add TeX annotations to imported graphics.\nIt defines a convenient interface to put TeX over included graphics, and allows for drawing a white background under the typeset material to overshadow the graphics.\nIt is a better alternative for labels inside of graphics; you do not have to change text size when rescaling pictures, and all LaTeX power is available for labels.",[357,2598,2599,2600,2607,2608,1917,2611,560],{},"A very similar package, with somewhat different syntax, is ",[361,2601,2604],{"href":2602,"rel":2603},"http:\u002F\u002Fwww.ctan.org\u002Fpkg\u002Fpinlabel",[705],[402,2605,2606],{},"pinlabel",".  The link given also points to the packages ",[402,2609,2610],{},"psfrag",[402,2612,2613],{},"overpic",[357,2615,2616,2617,2620],{},"A much more complicated package which can be used in the same way is ",[361,2618,2619],{"href":133},"TikZ",". TikZ is a front-end to a drawing library called pgf (which is used to make beamer for instance). It can be used to label figures by adding text nodes on top of an image node.",[375,2622,2624],{"id":2623},"summary","Summary",[357,2626,2627],{},"That concludes all the fundamentals of floats. You will hopefully see how much easier it is to let LaTeX do all the hard work and tweak the page layouts in order to get your figures in the best place. As always, the fact that LaTeX takes care of all caption and reference numbering is a great time saver.",[375,2629,2631],{"id":2630},"notes-and-references","Notes and references",[2633,2634,2635],"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":422,"searchDepth":435,"depth":435,"links":2637},[2638,2642,2643,2648,2649,2650,2653,2654,2655,2656,2659,2660,2661],{"id":372,"depth":435,"text":377,"children":2639},[2640,2641],{"id":368,"depth":441,"text":409},{"id":632,"depth":441,"text":116},{"id":694,"depth":435,"text":695},{"id":778,"depth":435,"text":779,"children":2644},[2645,2646,2647],{"id":1008,"depth":441,"text":1009},{"id":1124,"depth":441,"text":1125},{"id":1141,"depth":441,"text":1142},{"id":1173,"depth":435,"text":1174},{"id":1287,"depth":435,"text":1288},{"id":1322,"depth":435,"text":1323,"children":2651},[2652],{"id":1529,"depth":441,"text":1530},{"id":1668,"depth":435,"text":1669},{"id":1950,"depth":435,"text":1951},{"id":2040,"depth":435,"text":2041},{"id":2085,"depth":435,"text":384,"children":2657},[2658],{"id":2520,"depth":441,"text":2521},{"id":2584,"depth":435,"text":2585},{"id":2623,"depth":435,"text":2624},{"id":2630,"depth":435,"text":2631},"Understanding floating environments, placing figures and tables, and configuring captions in LaTeX.","md",null,{},{"title":120,"description":2662},"N6oNAT7S1tT1_Ieto9poMXqvcvmLmF2c6WzLy3Qf9KU",[2669,2671],{"title":116,"path":117,"stem":118,"description":2670,"children":-1},"Learn how to create and customize tables in LaTeX, including multirow, multicolumn, and advanced styling.",{"title":124,"path":125,"stem":126,"description":2672,"children":-1},"How to include external images (PNG, JPG, PDF) and position them in LaTeX using the graphicx package.",1785155507710]