[{"data":1,"prerenderedAt":2053},["ShallowReactive",2],{"navigation_docs":3,"-tables-and-graphics-picture":351,"-tables-and-graphics-picture-surround":2048},[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":144,"body":353,"description":2042,"extension":2043,"links":2044,"meta":2045,"navigation":1525,"path":145,"seo":2046,"stem":146,"__hash__":2047},"docs\u002F05.tables-and-graphics\u002F08.picture.md",{"type":354,"value":355,"toc":2027},"minimark",[356,373,376,379,384,387,416,419,438,441,444,465,474,480,483,492,494,503,506,515,521,525,528,537,544,554,559,728,732,735,744,751,825,829,832,841,852,996,1003,1007,1014,1092,1102,1104,1112,1118,1208,1212,1214,1223,1225,1234,1271,1356,1360,1367,1376,1383,1392,1398,1407,1410,1431,1586,1590,1592,1601,1604,1612,1621,1727,1739,1743,1897,1904,1912,1915,1919,2006,2009,2013,2020,2023],[357,358,359,360,364,365,369,370,372],"p",{},"The picture environment allows programming pictures directly in LaTeX. On the one hand, there are rather severe constraints, as the slopes of line segments and the radii of circles are restricted to a narrow choice of values. On the other hand, the picture environment of LaTeX2e brings with it the ",[361,362,363],"code",{},"\\qbezier"," command, \"q\" meaning ",[366,367,368],"em",{},"quadratic",". Many frequently-used curves such as circles, ellipses, and catenaries can be satisfactorily approximated by quadratic Bézier curves, although this may require some mathematical toil. If a programming language like Java is used to generate ",[361,371,363],{}," blocks of LaTeX input files, the picture environment becomes quite powerful.",[357,374,375],{},"Although programming pictures directly in LaTeX is severely restricted, and often rather tiresome, there are still reasons for doing so. The documents thus produced are \"small\" with respect to bytes, and there are no additional graphics files to be dragged along.",[357,377,378],{},"Packages like pict2e, epic, eepic or pstricks enhance the original picture environment, and greatly strengthen the graphical power of LaTeX.",[380,381,383],"h2",{"id":382},"basic-commands","Basic commands",[357,385,386],{},"A picture environment is available in any LaTeX distribution, without the need of loading any external package. This environment is created with one of the two commands",[388,389,394],"pre",{"className":390,"code":391,"language":392,"meta":393,"style":393},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\begin{picture}(x, y)\n ...\n\\end{picture}\n","latex","",[361,395,396,404,410],{"__ignoreMap":393},[397,398,401],"span",{"class":399,"line":400},"line",1,[397,402,403],{},"\\begin{picture}(x, y)\n",[397,405,407],{"class":399,"line":406},2,[397,408,409],{}," ...\n",[397,411,413],{"class":399,"line":412},3,[397,414,415],{},"\\end{picture}\n",[357,417,418],{},"or",[388,420,422],{"className":390,"code":421,"language":392,"meta":393,"style":393},"\\begin{picture}(x, y)(x0, y0)\n...\n\\end{picture}\n",[361,423,424,429,434],{"__ignoreMap":393},[397,425,426],{"class":399,"line":400},[397,427,428],{},"\\begin{picture}(x, y)(x0, y0)\n",[397,430,431],{"class":399,"line":406},[397,432,433],{},"...\n",[397,435,436],{"class":399,"line":412},[397,437,415],{},[357,439,440],{},"The first pair, (x, y), affects the reservation, within the document, of rectangular space for the picture.",[357,442,443],{},"The optional second pair, (x₀, y₀), assigns arbitrary coordinates to the bottom left corner of the reserved rectangle.",[357,445,446,447,450,451,450,454,450,457,460,461,464],{},"The numbers ",[366,448,449],{},"x",", ",[366,452,453],{},"y",[366,455,456],{},"x₀",[366,458,459],{},"y₀"," are numbers (lengths) in the units of ",[361,462,463],{},"\\unitlength",", which can be reset any time (but not within a picture environment) with a command such as",[388,466,468],{"className":390,"code":467,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{1.2cm}\n",[361,469,470],{"__ignoreMap":393},[397,471,472],{"class":399,"line":400},[397,473,467],{},[357,475,476,477,479],{},"The default value of ",[361,478,463],{}," is 1pt.",[357,481,482],{},"Most drawing commands have one of the two forms",[388,484,486],{"className":390,"code":485,"language":392,"meta":393,"style":393},"\\put(x, y){object}\n",[361,487,488],{"__ignoreMap":393},[397,489,490],{"class":399,"line":400},[397,491,485],{},[357,493,418],{},[388,495,497],{"className":390,"code":496,"language":392,"meta":393,"style":393},"\\multiput(x, y)(dx, dy){n}{object}\n",[361,498,499],{"__ignoreMap":393},[397,500,501],{"class":399,"line":400},[397,502,496],{},[357,504,505],{},"Bézier curves are an exception. They are drawn with the command",[388,507,509],{"className":390,"code":508,"language":392,"meta":393,"style":393},"\\qbezier(x1, y1)(x2, y2)(x3, y3)\n",[361,510,511],{"__ignoreMap":393},[397,512,513],{"class":399,"line":400},[397,514,508],{},[357,516,517,518,520],{},"With the package picture absolute dimension (like 15pt) and expression are allowed, in addition to numbers relative to ",[361,519,463],{},".",[380,522,524],{"id":523},"line-segments","Line segments",[357,526,527],{},"Line segments are drawn with the command:",[388,529,531],{"className":390,"code":530,"language":392,"meta":393,"style":393},"\\put(x, y){ \\line(x1, y1){length} }\n",[361,532,533],{"__ignoreMap":393},[397,534,535],{"class":399,"line":400},[397,536,530],{},[357,538,539,540,543],{},"The ",[361,541,542],{},"\\line"," command has two arguments:",[545,546,547,551],"ol",{},[548,549,550],"li",{},"a direction vector,",[548,552,553],{},"a \"length\" (sort of: this argument is the vertical length in the case of a vertical line segment and in all other cases the horizontal distance of the line, rather than the length of the segment itself).",[357,555,556,557,520],{},"The components of the direction vector are restricted to the integers (−6, −5, ... , 5, 6) and they have to be coprime (no common divisor except 1). The figure below illustrates all 25 possible slope values in the first quadrant. The length is relative to ",[361,558,463],{},[388,560,562],{"className":390,"code":561,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{5cm}\n\\begin{picture}(1,1)\n\\put(0,0){\\line(0,1){1} }\n\\put(0,0){\\line(1,0){1} }\n\\put(0,0){\\line(1,1){1} }\n\\put(0,0){\\line(1,2){.5} }\n\\put(0,0){\\line(1,3){.3333} }\n\\put(0,0){\\line(1,4){.25} }\n\\put(0,0){\\line(1,5){.2} }\n\\put(0,0){\\line(1,6){.1667} }\n\\put(0,0){\\line(2,1){1} }\n\\put(0,0){\\line(2,3){.6667} }\n\\put(0,0){\\line(2,5){.4} }\n\\put(0,0){\\line(3,1){1} }\n\\put(0,0){\\line(3,2){1} }\n\\put(0,0){\\line(3,4){.75} }\n\\put(0,0){\\line(3,5){.6} }\n\\put(0,0){\\line(4,1){1} }\n\\put(0,0){\\line(4,3){1} }\n\\put(0,0){\\line(4,5){.8} }\n\\put(0,0){\\line(5,1){1} }\n\\put(0,0){\\line(5,2){1} }\n\\put(0,0){\\line(5,3){1} }\n\\put(0,0){\\line(5,4){1} }\n\\put(0,0){\\line(5,6){.8333} }\n\\put(0,0){\\line(6,1){1} }\n\\put(0,0){\\line(6,5){1} }\n\\end{picture}\n",[361,563,564,569,574,579,585,591,597,603,609,615,621,627,633,639,645,651,657,663,669,675,681,687,693,699,705,711,717,723],{"__ignoreMap":393},[397,565,566],{"class":399,"line":400},[397,567,568],{},"\\setlength{\\unitlength}{5cm}\n",[397,570,571],{"class":399,"line":406},[397,572,573],{},"\\begin{picture}(1,1)\n",[397,575,576],{"class":399,"line":412},[397,577,578],{},"\\put(0,0){\\line(0,1){1} }\n",[397,580,582],{"class":399,"line":581},4,[397,583,584],{},"\\put(0,0){\\line(1,0){1} }\n",[397,586,588],{"class":399,"line":587},5,[397,589,590],{},"\\put(0,0){\\line(1,1){1} }\n",[397,592,594],{"class":399,"line":593},6,[397,595,596],{},"\\put(0,0){\\line(1,2){.5} }\n",[397,598,600],{"class":399,"line":599},7,[397,601,602],{},"\\put(0,0){\\line(1,3){.3333} }\n",[397,604,606],{"class":399,"line":605},8,[397,607,608],{},"\\put(0,0){\\line(1,4){.25} }\n",[397,610,612],{"class":399,"line":611},9,[397,613,614],{},"\\put(0,0){\\line(1,5){.2} }\n",[397,616,618],{"class":399,"line":617},10,[397,619,620],{},"\\put(0,0){\\line(1,6){.1667} }\n",[397,622,624],{"class":399,"line":623},11,[397,625,626],{},"\\put(0,0){\\line(2,1){1} }\n",[397,628,630],{"class":399,"line":629},12,[397,631,632],{},"\\put(0,0){\\line(2,3){.6667} }\n",[397,634,636],{"class":399,"line":635},13,[397,637,638],{},"\\put(0,0){\\line(2,5){.4} }\n",[397,640,642],{"class":399,"line":641},14,[397,643,644],{},"\\put(0,0){\\line(3,1){1} }\n",[397,646,648],{"class":399,"line":647},15,[397,649,650],{},"\\put(0,0){\\line(3,2){1} }\n",[397,652,654],{"class":399,"line":653},16,[397,655,656],{},"\\put(0,0){\\line(3,4){.75} }\n",[397,658,660],{"class":399,"line":659},17,[397,661,662],{},"\\put(0,0){\\line(3,5){.6} }\n",[397,664,666],{"class":399,"line":665},18,[397,667,668],{},"\\put(0,0){\\line(4,1){1} }\n",[397,670,672],{"class":399,"line":671},19,[397,673,674],{},"\\put(0,0){\\line(4,3){1} }\n",[397,676,678],{"class":399,"line":677},20,[397,679,680],{},"\\put(0,0){\\line(4,5){.8} }\n",[397,682,684],{"class":399,"line":683},21,[397,685,686],{},"\\put(0,0){\\line(5,1){1} }\n",[397,688,690],{"class":399,"line":689},22,[397,691,692],{},"\\put(0,0){\\line(5,2){1} }\n",[397,694,696],{"class":399,"line":695},23,[397,697,698],{},"\\put(0,0){\\line(5,3){1} }\n",[397,700,702],{"class":399,"line":701},24,[397,703,704],{},"\\put(0,0){\\line(5,4){1} }\n",[397,706,708],{"class":399,"line":707},25,[397,709,710],{},"\\put(0,0){\\line(5,6){.8333} }\n",[397,712,714],{"class":399,"line":713},26,[397,715,716],{},"\\put(0,0){\\line(6,1){1} }\n",[397,718,720],{"class":399,"line":719},27,[397,721,722],{},"\\put(0,0){\\line(6,5){1} }\n",[397,724,726],{"class":399,"line":725},28,[397,727,415],{},[380,729,731],{"id":730},"arrows","Arrows",[357,733,734],{},"Arrows are drawn with the command",[388,736,738],{"className":390,"code":737,"language":392,"meta":393,"style":393},"\\put(x, y){\\vector(x1, y1){length} }\n",[361,739,740],{"__ignoreMap":393},[397,741,742],{"class":399,"line":400},[397,743,737],{},[357,745,746,747,750],{},"For arrows, the components of the direction vector are even more narrowly restricted than for line segments, namely to the integers (−4, −3, ... , 3, 4). Components also have to be coprime (no common divisor except 1). Notice the effect of the ",[361,748,749],{},"\\thicklines"," command on the two arrows pointing to the upper left.",[388,752,754],{"className":390,"code":753,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{0.75mm}\n\\begin{picture}(60,40)\n\\put(30,20){\\vector(1,0){30} }\n\\put(30,20){\\vector(4,1){20} }\n\\put(30,20){\\vector(3,1){25} }\n\\put(30,20){\\vector(2,1){30} }\n\\put(30,20){\\vector(1,2){10} }\n\\thicklines\n\\put(30,20){\\vector(-4,1){30} }\n\\put(30,20){\\vector(-1,4){5} }\n\\thinlines\n\\put(30,20){\\vector(-1,-1){5} }\n\\put(30,20){\\vector(-1,-4){5} }\n\\end{picture}\n",[361,755,756,761,766,771,776,781,786,791,796,801,806,811,816,821],{"__ignoreMap":393},[397,757,758],{"class":399,"line":400},[397,759,760],{},"\\setlength{\\unitlength}{0.75mm}\n",[397,762,763],{"class":399,"line":406},[397,764,765],{},"\\begin{picture}(60,40)\n",[397,767,768],{"class":399,"line":412},[397,769,770],{},"\\put(30,20){\\vector(1,0){30} }\n",[397,772,773],{"class":399,"line":581},[397,774,775],{},"\\put(30,20){\\vector(4,1){20} }\n",[397,777,778],{"class":399,"line":587},[397,779,780],{},"\\put(30,20){\\vector(3,1){25} }\n",[397,782,783],{"class":399,"line":593},[397,784,785],{},"\\put(30,20){\\vector(2,1){30} }\n",[397,787,788],{"class":399,"line":599},[397,789,790],{},"\\put(30,20){\\vector(1,2){10} }\n",[397,792,793],{"class":399,"line":605},[397,794,795],{},"\\thicklines\n",[397,797,798],{"class":399,"line":611},[397,799,800],{},"\\put(30,20){\\vector(-4,1){30} }\n",[397,802,803],{"class":399,"line":617},[397,804,805],{},"\\put(30,20){\\vector(-1,4){5} }\n",[397,807,808],{"class":399,"line":623},[397,809,810],{},"\\thinlines\n",[397,812,813],{"class":399,"line":629},[397,814,815],{},"\\put(30,20){\\vector(-1,-1){5} }\n",[397,817,818],{"class":399,"line":635},[397,819,820],{},"\\put(30,20){\\vector(-1,-4){5} }\n",[397,822,823],{"class":399,"line":641},[397,824,415],{},[380,826,828],{"id":827},"circles","Circles",[357,830,831],{},"The command",[388,833,835],{"className":390,"code":834,"language":392,"meta":393,"style":393},"\\put(x, y){\\circle{diameter} }\n",[361,836,837],{"__ignoreMap":393},[397,838,839],{"class":399,"line":400},[397,840,834],{},[357,842,843,844,847,848,851],{},"draws a circle with center (x, y) and diameter (not radius) specified by ",[366,845,846],{},"diameter",". The picture environment only admits diameters up to approximately 14mm, and even below this limit, not all diameters are possible. The ",[361,849,850],{},"\\circle*"," command produces disks (filled circles). As in the case of line segments, one may have to resort to additional packages, such as eepic, pstricks, or tikz.",[388,853,855],{"className":390,"code":854,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{1mm}\n\\begin{picture}(60, 40)\n\\put(20,30){\\circle{1} }\n\\put(20,30){\\circle{2} }\n\\put(20,30){\\circle{4} }\n\\put(20,30){\\circle{8} }\n\\put(20,30){\\circle{16} }\n\\put(20,30){\\circle{32} }\n\\put(40,30){\\circle{1} }\n\\put(40,30){\\circle{2} }\n\\put(40,30){\\circle{3} }\n\\put(40,30){\\circle{4} }\n\\put(40,30){\\circle{5} }\n\\put(40,30){\\circle{6} }\n\\put(40,30){\\circle{7} }\n\\put(40,30){\\circle{8} }\n\\put(40,30){\\circle{9} }\n\\put(40,30){\\circle{10} }\n\\put(40,30){\\circle{11} }\n\\put(40,30){\\circle{12} }\n\\put(40,30){\\circle{13} }\n\\put(40,30){\\circle{14} }\n\\put(15,10){\\circle*{1} }\n\\put(20,10){\\circle*{2} }\n\\put(25,10){\\circle*{3} }\n\\put(30,10){\\circle*{4} }\n\\put(35,10){\\circle*{5} }\n\\end{picture}\n",[361,856,857,862,867,872,877,882,887,892,897,902,907,912,917,922,927,932,937,942,947,952,957,962,967,972,977,982,987,992],{"__ignoreMap":393},[397,858,859],{"class":399,"line":400},[397,860,861],{},"\\setlength{\\unitlength}{1mm}\n",[397,863,864],{"class":399,"line":406},[397,865,866],{},"\\begin{picture}(60, 40)\n",[397,868,869],{"class":399,"line":412},[397,870,871],{},"\\put(20,30){\\circle{1} }\n",[397,873,874],{"class":399,"line":581},[397,875,876],{},"\\put(20,30){\\circle{2} }\n",[397,878,879],{"class":399,"line":587},[397,880,881],{},"\\put(20,30){\\circle{4} }\n",[397,883,884],{"class":399,"line":593},[397,885,886],{},"\\put(20,30){\\circle{8} }\n",[397,888,889],{"class":399,"line":599},[397,890,891],{},"\\put(20,30){\\circle{16} }\n",[397,893,894],{"class":399,"line":605},[397,895,896],{},"\\put(20,30){\\circle{32} }\n",[397,898,899],{"class":399,"line":611},[397,900,901],{},"\\put(40,30){\\circle{1} }\n",[397,903,904],{"class":399,"line":617},[397,905,906],{},"\\put(40,30){\\circle{2} }\n",[397,908,909],{"class":399,"line":623},[397,910,911],{},"\\put(40,30){\\circle{3} }\n",[397,913,914],{"class":399,"line":629},[397,915,916],{},"\\put(40,30){\\circle{4} }\n",[397,918,919],{"class":399,"line":635},[397,920,921],{},"\\put(40,30){\\circle{5} }\n",[397,923,924],{"class":399,"line":641},[397,925,926],{},"\\put(40,30){\\circle{6} }\n",[397,928,929],{"class":399,"line":647},[397,930,931],{},"\\put(40,30){\\circle{7} }\n",[397,933,934],{"class":399,"line":653},[397,935,936],{},"\\put(40,30){\\circle{8} }\n",[397,938,939],{"class":399,"line":659},[397,940,941],{},"\\put(40,30){\\circle{9} }\n",[397,943,944],{"class":399,"line":665},[397,945,946],{},"\\put(40,30){\\circle{10} }\n",[397,948,949],{"class":399,"line":671},[397,950,951],{},"\\put(40,30){\\circle{11} }\n",[397,953,954],{"class":399,"line":677},[397,955,956],{},"\\put(40,30){\\circle{12} }\n",[397,958,959],{"class":399,"line":683},[397,960,961],{},"\\put(40,30){\\circle{13} }\n",[397,963,964],{"class":399,"line":689},[397,965,966],{},"\\put(40,30){\\circle{14} }\n",[397,968,969],{"class":399,"line":695},[397,970,971],{},"\\put(15,10){\\circle*{1} }\n",[397,973,974],{"class":399,"line":701},[397,975,976],{},"\\put(20,10){\\circle*{2} }\n",[397,978,979],{"class":399,"line":707},[397,980,981],{},"\\put(25,10){\\circle*{3} }\n",[397,983,984],{"class":399,"line":713},[397,985,986],{},"\\put(30,10){\\circle*{4} }\n",[397,988,989],{"class":399,"line":719},[397,990,991],{},"\\put(35,10){\\circle*{5} }\n",[397,993,994],{"class":399,"line":725},[397,995,415],{},[357,997,998,999,1002],{},"There is another possibility within the picture environment. If one is not afraid of doing the necessary calculations (or leaving them to a program), arbitrary circles and ellipses can be patched together from quadratic Bézier curves. See ",[366,1000,1001],{},"Graphics in LaTeX2e"," for examples and Java source files.",[380,1004,1006],{"id":1005},"text-and-formulae","Text and formulae",[357,1008,1009,1010,1013],{},"As this example shows, text and formulae can be written in the environment with the ",[361,1011,1012],{},"\\put"," command in the usual way:",[388,1015,1017],{"className":390,"code":1016,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{0.8cm}\n\\begin{picture}(6,5)\n\\thicklines\n\\put(1,0.5){\\line(2,1){3} }\n\\put(4,2){\\line(-2,1){2} }\n\\put(2,3){\\line(-2,-5){1} }\n\\put(0.7,0.3){$A$}\n\\put(4.05,1.9){$B$}\n\\put(1.7,2.95){$C$}\n\\put(3.1,2.5){$a$}\n\\put(1.3,1.7){$b$}\n\\put(2.5,1.05){$c$}\n\\put(0.3,4){$F=\\sqrt{s(s-a)(s-b)(s-c)}$}\n\\put(3.5,0.4){$\\displaystyle s:=\\frac{a+b+c}{2}$}\n\\end{picture}\n",[361,1018,1019,1024,1029,1033,1038,1043,1048,1053,1058,1063,1068,1073,1078,1083,1088],{"__ignoreMap":393},[397,1020,1021],{"class":399,"line":400},[397,1022,1023],{},"\\setlength{\\unitlength}{0.8cm}\n",[397,1025,1026],{"class":399,"line":406},[397,1027,1028],{},"\\begin{picture}(6,5)\n",[397,1030,1031],{"class":399,"line":412},[397,1032,795],{},[397,1034,1035],{"class":399,"line":581},[397,1036,1037],{},"\\put(1,0.5){\\line(2,1){3} }\n",[397,1039,1040],{"class":399,"line":587},[397,1041,1042],{},"\\put(4,2){\\line(-2,1){2} }\n",[397,1044,1045],{"class":399,"line":593},[397,1046,1047],{},"\\put(2,3){\\line(-2,-5){1} }\n",[397,1049,1050],{"class":399,"line":599},[397,1051,1052],{},"\\put(0.7,0.3){$A$}\n",[397,1054,1055],{"class":399,"line":605},[397,1056,1057],{},"\\put(4.05,1.9){$B$}\n",[397,1059,1060],{"class":399,"line":611},[397,1061,1062],{},"\\put(1.7,2.95){$C$}\n",[397,1064,1065],{"class":399,"line":617},[397,1066,1067],{},"\\put(3.1,2.5){$a$}\n",[397,1069,1070],{"class":399,"line":623},[397,1071,1072],{},"\\put(1.3,1.7){$b$}\n",[397,1074,1075],{"class":399,"line":629},[397,1076,1077],{},"\\put(2.5,1.05){$c$}\n",[397,1079,1080],{"class":399,"line":635},[397,1081,1082],{},"\\put(0.3,4){$F=\\sqrt{s(s-a)(s-b)(s-c)}$}\n",[397,1084,1085],{"class":399,"line":641},[397,1086,1087],{},"\\put(3.5,0.4){$\\displaystyle s:=\\frac{a+b+c}{2}$}\n",[397,1089,1090],{"class":399,"line":647},[397,1091,415],{},[380,1093,1095,1098,1099],{"id":1094},"multiput-and-linethickness",[361,1096,1097],{},"\\multiput"," and ",[361,1100,1101],{},"\\linethickness",[357,1103,831],{},[388,1105,1106],{"className":390,"code":496,"language":392,"meta":393,"style":393},[361,1107,1108],{"__ignoreMap":393},[397,1109,1110],{"class":399,"line":400},[397,1111,496],{},[357,1113,1114,1115,1117],{},"has 4 arguments: the starting point, the translation vector from one object to the next, the number of objects, and the object to be drawn. The ",[361,1116,1101],{}," command applies to horizontal and vertical line segments, but neither to oblique line segments nor to circles. It does, however, apply to quadratic Bézier curves!",[388,1119,1121],{"className":390,"code":1120,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{2mm}\n\\begin{picture}(30,20)\n\\linethickness{0.075mm}\n\\multiput(0,0)(1,0){26}%\n{\\line(0,1){20} }\n\\multiput(0,0)(0,1){21}%\n{\\line(1,0){25} }\n\\linethickness{0.15mm}\n\\multiput(0,0)(5,0){6}%\n{\\line(0,1){20} }\n\\multiput(0,0)(0,5){5}%\n{\\line(1,0){25} }\n\\linethickness{0.3mm}\n\\multiput(5,0)(10,0){2}%\n{\\line(0,1){20} }\n\\multiput(0,5)(0,10){2}%\n{\\line(1,0){25} }\n\\end{picture}\n",[361,1122,1123,1128,1133,1138,1143,1148,1153,1158,1163,1168,1172,1177,1181,1186,1191,1195,1200,1204],{"__ignoreMap":393},[397,1124,1125],{"class":399,"line":400},[397,1126,1127],{},"\\setlength{\\unitlength}{2mm}\n",[397,1129,1130],{"class":399,"line":406},[397,1131,1132],{},"\\begin{picture}(30,20)\n",[397,1134,1135],{"class":399,"line":412},[397,1136,1137],{},"\\linethickness{0.075mm}\n",[397,1139,1140],{"class":399,"line":581},[397,1141,1142],{},"\\multiput(0,0)(1,0){26}%\n",[397,1144,1145],{"class":399,"line":587},[397,1146,1147],{},"{\\line(0,1){20} }\n",[397,1149,1150],{"class":399,"line":593},[397,1151,1152],{},"\\multiput(0,0)(0,1){21}%\n",[397,1154,1155],{"class":399,"line":599},[397,1156,1157],{},"{\\line(1,0){25} }\n",[397,1159,1160],{"class":399,"line":605},[397,1161,1162],{},"\\linethickness{0.15mm}\n",[397,1164,1165],{"class":399,"line":611},[397,1166,1167],{},"\\multiput(0,0)(5,0){6}%\n",[397,1169,1170],{"class":399,"line":617},[397,1171,1147],{},[397,1173,1174],{"class":399,"line":623},[397,1175,1176],{},"\\multiput(0,0)(0,5){5}%\n",[397,1178,1179],{"class":399,"line":629},[397,1180,1157],{},[397,1182,1183],{"class":399,"line":635},[397,1184,1185],{},"\\linethickness{0.3mm}\n",[397,1187,1188],{"class":399,"line":641},[397,1189,1190],{},"\\multiput(5,0)(10,0){2}%\n",[397,1192,1193],{"class":399,"line":647},[397,1194,1147],{},[397,1196,1197],{"class":399,"line":653},[397,1198,1199],{},"\\multiput(0,5)(0,10){2}%\n",[397,1201,1202],{"class":399,"line":659},[397,1203,1157],{},[397,1205,1206],{"class":399,"line":665},[397,1207,415],{},[380,1209,1211],{"id":1210},"ovals","Ovals",[357,1213,831],{},[388,1215,1217],{"className":390,"code":1216,"language":392,"meta":393,"style":393},"\\put(x, y){\\oval(w, h)}\n",[361,1218,1219],{"__ignoreMap":393},[397,1220,1221],{"class":399,"line":400},[397,1222,1216],{},[357,1224,418],{},[388,1226,1228],{"className":390,"code":1227,"language":392,"meta":393,"style":393},"\\put(x, y){\\oval(w, h)[position]}\n",[361,1229,1230],{"__ignoreMap":393},[397,1231,1232],{"class":399,"line":400},[397,1233,1227],{},[357,1235,1236,1237,1240,1241,1244,1245,1248,1249,1252,1253,1256,1257,1098,1260,1262,1263,1265,1266,1098,1268,1270],{},"produces an oval centered at ",[366,1238,1239],{},"(x, y)"," and having width ",[366,1242,1243],{},"w"," and height ",[366,1246,1247],{},"h",". The optional position arguments ",[366,1250,1251],{},"b, t, l, r"," refer to \"top\", \"bottom\", \"left\", \"right\", and can be combined, as the example illustrates. Line thickness can be controlled by two kinds of commands: ",[361,1254,1255],{},"\\linethickness{length}"," on the one hand, ",[361,1258,1259],{},"\\thinlines",[361,1261,749],{}," on the other. While ",[361,1264,1255],{}," applies only to horizontal and vertical lines (and quadratic Bézier curves), ",[361,1267,1259],{},[361,1269,749],{}," apply to oblique line segments as well as to circles and ovals.",[388,1272,1274],{"className":390,"code":1273,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{0.75cm}\n\\begin{picture}(6,4)\n\\linethickness{0.075mm}\n\\multiput(0,0)(1,0){7}%\n{\\line(0,1){4} }\n\\multiput(0,0)(0,1){5}%\n{\\line(1,0){6} }\n\\thicklines\n\\put(2,3){\\oval(3,1.8)}\n\\thinlines\n\\put(3,2){\\oval(3,1.8)}\n\\thicklines\n\\put(2,1){\\oval(3,1.8)[tl]}\n\\put(4,1){\\oval(3,1.8)[b]}\n\\put(4,3){\\oval(3,1.8)[r]}\n\\put(3,1.5){\\oval(1.8,0.4)}\n\\end{picture}\n",[361,1275,1276,1281,1286,1290,1295,1300,1305,1310,1314,1319,1323,1328,1332,1337,1342,1347,1352],{"__ignoreMap":393},[397,1277,1278],{"class":399,"line":400},[397,1279,1280],{},"\\setlength{\\unitlength}{0.75cm}\n",[397,1282,1283],{"class":399,"line":406},[397,1284,1285],{},"\\begin{picture}(6,4)\n",[397,1287,1288],{"class":399,"line":412},[397,1289,1137],{},[397,1291,1292],{"class":399,"line":581},[397,1293,1294],{},"\\multiput(0,0)(1,0){7}%\n",[397,1296,1297],{"class":399,"line":587},[397,1298,1299],{},"{\\line(0,1){4} }\n",[397,1301,1302],{"class":399,"line":593},[397,1303,1304],{},"\\multiput(0,0)(0,1){5}%\n",[397,1306,1307],{"class":399,"line":599},[397,1308,1309],{},"{\\line(1,0){6} }\n",[397,1311,1312],{"class":399,"line":605},[397,1313,795],{},[397,1315,1316],{"class":399,"line":611},[397,1317,1318],{},"\\put(2,3){\\oval(3,1.8)}\n",[397,1320,1321],{"class":399,"line":617},[397,1322,810],{},[397,1324,1325],{"class":399,"line":623},[397,1326,1327],{},"\\put(3,2){\\oval(3,1.8)}\n",[397,1329,1330],{"class":399,"line":629},[397,1331,795],{},[397,1333,1334],{"class":399,"line":635},[397,1335,1336],{},"\\put(2,1){\\oval(3,1.8)[tl]}\n",[397,1338,1339],{"class":399,"line":641},[397,1340,1341],{},"\\put(4,1){\\oval(3,1.8)[b]}\n",[397,1343,1344],{"class":399,"line":647},[397,1345,1346],{},"\\put(4,3){\\oval(3,1.8)[r]}\n",[397,1348,1349],{"class":399,"line":653},[397,1350,1351],{},"\\put(3,1.5){\\oval(1.8,0.4)}\n",[397,1353,1354],{"class":399,"line":659},[397,1355,415],{},[380,1357,1359],{"id":1358},"multiple-use-of-predefined-picture-boxes","Multiple use of predefined picture boxes",[357,1361,1362,1363,1366],{},"A picture box can be ",[366,1364,1365],{},"declared"," by the command",[388,1368,1370],{"className":390,"code":1369,"language":392,"meta":393,"style":393},"\\newsavebox{name}\n",[361,1371,1372],{"__ignoreMap":393},[397,1373,1374],{"class":399,"line":400},[397,1375,1369],{},[357,1377,1378,1379,1382],{},"then ",[366,1380,1381],{},"defined"," by",[388,1384,1386],{"className":390,"code":1385,"language":392,"meta":393,"style":393},"\\savebox{name}(width,height)[position]{content}\n",[361,1387,1388],{"__ignoreMap":393},[397,1389,1390],{"class":399,"line":400},[397,1391,1385],{},[357,1393,1394,1395,1382],{},"and finally, arbitrarily often be ",[366,1396,1397],{},"drawn",[388,1399,1401],{"className":390,"code":1400,"language":392,"meta":393,"style":393},"\\put(x, y){\\usebox{name} }\n",[361,1402,1403],{"__ignoreMap":393},[397,1404,1405],{"class":399,"line":400},[397,1406,1400],{},[357,1408,1409],{},"The optional position parameter has the effect of defining the \"anchor point\" of the savebox. In the example, it is set to \"bl\" which puts the anchor point into the bottom left corner of the savebox. The other position specifiers are top and right.",[357,1411,539,1412,1415,1416,1419,1420,1423,1424,1427,1428,1430],{},[366,1413,1414],{},"name"," argument refers to a LaTeX storage bin and therefore is of a command nature (which accounts for the backslashes in the current example). Boxed pictures can be nested: In this example, ",[361,1417,1418],{},"\\foldera"," is used within the definition of ",[361,1421,1422],{},"\\folderb",". The ",[361,1425,1426],{},"\\oval"," command had to be used as the ",[361,1429,542],{}," command does not work if the segment length is less than about 3 mm.",[388,1432,1434],{"className":390,"code":1433,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{0.5mm}\n\\begin{picture}(120,168)\n\\newsavebox{\\foldera}\n\\savebox{\\foldera}\n  (40,32)[bl]{% definition\n  \\multiput(0,0)(0,28){2}\n    {\\line(1,0){40} }\n  \\multiput(0,0)(40,0){2}\n    {\\line(0,1){28} }\n  \\put(1,28){\\oval(2,2)[tl]}\n  \\put(1,29){\\line(1,0){5} }\n  \\put(9,29){\\oval(6,6)[tl]}\n  \\put(9,32){\\line(1,0){8} }\n  \\put(17,29){\\oval(6,6)[tr]}\n  \\put(20,29){\\line(1,0){19} }\n  \\put(39,28){\\oval(2,2)[tr]}\n}\n\n\\newsavebox{\\folderb}\n\\savebox{\\folderb}\n  (40,32)[l]{% definition\n  \\put(0,14){\\line(1,0){8} }\n  \\put(8,0){\\usebox{\\foldera} }\n}\n\n\\put(34,26){\\line(0,1){102} }\n\\put(14,128){\\usebox{\\foldera} }\n\\multiput(34,86)(0,-37){3}\n{\\usebox{\\folderb} }\n\\end{picture}\n",[361,1435,1436,1441,1446,1451,1456,1461,1466,1471,1476,1481,1486,1491,1496,1501,1506,1511,1516,1521,1527,1532,1537,1542,1547,1552,1556,1560,1565,1570,1575,1581],{"__ignoreMap":393},[397,1437,1438],{"class":399,"line":400},[397,1439,1440],{},"\\setlength{\\unitlength}{0.5mm}\n",[397,1442,1443],{"class":399,"line":406},[397,1444,1445],{},"\\begin{picture}(120,168)\n",[397,1447,1448],{"class":399,"line":412},[397,1449,1450],{},"\\newsavebox{\\foldera}\n",[397,1452,1453],{"class":399,"line":581},[397,1454,1455],{},"\\savebox{\\foldera}\n",[397,1457,1458],{"class":399,"line":587},[397,1459,1460],{},"  (40,32)[bl]{% definition\n",[397,1462,1463],{"class":399,"line":593},[397,1464,1465],{},"  \\multiput(0,0)(0,28){2}\n",[397,1467,1468],{"class":399,"line":599},[397,1469,1470],{},"    {\\line(1,0){40} }\n",[397,1472,1473],{"class":399,"line":605},[397,1474,1475],{},"  \\multiput(0,0)(40,0){2}\n",[397,1477,1478],{"class":399,"line":611},[397,1479,1480],{},"    {\\line(0,1){28} }\n",[397,1482,1483],{"class":399,"line":617},[397,1484,1485],{},"  \\put(1,28){\\oval(2,2)[tl]}\n",[397,1487,1488],{"class":399,"line":623},[397,1489,1490],{},"  \\put(1,29){\\line(1,0){5} }\n",[397,1492,1493],{"class":399,"line":629},[397,1494,1495],{},"  \\put(9,29){\\oval(6,6)[tl]}\n",[397,1497,1498],{"class":399,"line":635},[397,1499,1500],{},"  \\put(9,32){\\line(1,0){8} }\n",[397,1502,1503],{"class":399,"line":641},[397,1504,1505],{},"  \\put(17,29){\\oval(6,6)[tr]}\n",[397,1507,1508],{"class":399,"line":647},[397,1509,1510],{},"  \\put(20,29){\\line(1,0){19} }\n",[397,1512,1513],{"class":399,"line":653},[397,1514,1515],{},"  \\put(39,28){\\oval(2,2)[tr]}\n",[397,1517,1518],{"class":399,"line":659},[397,1519,1520],{},"}\n",[397,1522,1523],{"class":399,"line":665},[397,1524,1526],{"emptyLinePlaceholder":1525},true,"\n",[397,1528,1529],{"class":399,"line":671},[397,1530,1531],{},"\\newsavebox{\\folderb}\n",[397,1533,1534],{"class":399,"line":677},[397,1535,1536],{},"\\savebox{\\folderb}\n",[397,1538,1539],{"class":399,"line":683},[397,1540,1541],{},"  (40,32)[l]{% definition\n",[397,1543,1544],{"class":399,"line":689},[397,1545,1546],{},"  \\put(0,14){\\line(1,0){8} }\n",[397,1548,1549],{"class":399,"line":695},[397,1550,1551],{},"  \\put(8,0){\\usebox{\\foldera} }\n",[397,1553,1554],{"class":399,"line":701},[397,1555,1520],{},[397,1557,1558],{"class":399,"line":707},[397,1559,1526],{"emptyLinePlaceholder":1525},[397,1561,1562],{"class":399,"line":713},[397,1563,1564],{},"\\put(34,26){\\line(0,1){102} }\n",[397,1566,1567],{"class":399,"line":719},[397,1568,1569],{},"\\put(14,128){\\usebox{\\foldera} }\n",[397,1571,1572],{"class":399,"line":725},[397,1573,1574],{},"\\multiput(34,86)(0,-37){3}\n",[397,1576,1578],{"class":399,"line":1577},29,[397,1579,1580],{},"{\\usebox{\\folderb} }\n",[397,1582,1584],{"class":399,"line":1583},30,[397,1585,415],{},[380,1587,1589],{"id":1588},"quadratic-bézier-curves","Quadratic Bézier curves",[357,1591,831],{},[388,1593,1595],{"className":390,"code":1594,"language":392,"meta":393,"style":393},"\\qbezier(x1, y1)(x, y)(x2, y2)\n",[361,1596,1597],{"__ignoreMap":393},[397,1598,1599],{"class":399,"line":400},[397,1600,1594],{},[357,1602,1603],{},"draws a quadratic bezier curve where P₁ = (x₁, y₁), P₂ = (x₂, y₂) denote the end points, and S = (x, y) denotes the intermediate control point. The respective tangent slopes, m₁ and m₂, can be obtained from the equations:",[388,1605,1610],{"className":1606,"code":1608,"language":1609,"meta":393},[1607],"language-text","x = (m₂x₂ - m₁x₁ - (y₂ - y₁)) \u002F (m₂ - m₁)\ny = yᵢ + mᵢ(x - xᵢ); (i = 1, 2 gives same solution)\n","text",[361,1611,1608],{"__ignoreMap":393},[357,1613,1614,1615,1617,1618,1620],{},"See ",[366,1616,1001],{}," for a Java program which generates the necessary ",[361,1619,363],{}," command line.",[388,1622,1624],{"className":390,"code":1623,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{0.8cm}\n\\begin{picture}(6,4)\n\\linethickness{0.075mm}\n\\multiput(0,0)(1,0){7}\n{\\line(0,1){4} }\n\\multiput(0,0)(0,1){5}\n{\\line(1,0){6} }\n\\thicklines\n\\put(0.5,0.5){\\line(1,5){0.5} }\n\\put(1,3){\\line(4,1){2} }\n\\qbezier(0.5,0.5)(1,3)(3,3.5)\n\\thinlines\n\\put(2.5,2){\\line(2,-1){3} }\n\\put(5.5,0.5){\\line(-1,5){0.5} }\n\\linethickness{1mm}\n\\qbezier(2.5,2)(5.5,0.5)(5,3)\n\\thinlines\n\\qbezier(4,2)(4,3)(3,3)\n\\qbezier(3,3)(2,3)(2,2)\n\\qbezier(2,2)(2,1)(3,1)\n\\qbezier(3,1)(4,1)(4,2)\n\\end{picture}\n",[361,1625,1626,1630,1634,1638,1643,1647,1652,1656,1660,1665,1670,1675,1679,1684,1689,1694,1699,1703,1708,1713,1718,1723],{"__ignoreMap":393},[397,1627,1628],{"class":399,"line":400},[397,1629,1023],{},[397,1631,1632],{"class":399,"line":406},[397,1633,1285],{},[397,1635,1636],{"class":399,"line":412},[397,1637,1137],{},[397,1639,1640],{"class":399,"line":581},[397,1641,1642],{},"\\multiput(0,0)(1,0){7}\n",[397,1644,1645],{"class":399,"line":587},[397,1646,1299],{},[397,1648,1649],{"class":399,"line":593},[397,1650,1651],{},"\\multiput(0,0)(0,1){5}\n",[397,1653,1654],{"class":399,"line":599},[397,1655,1309],{},[397,1657,1658],{"class":399,"line":605},[397,1659,795],{},[397,1661,1662],{"class":399,"line":611},[397,1663,1664],{},"\\put(0.5,0.5){\\line(1,5){0.5} }\n",[397,1666,1667],{"class":399,"line":617},[397,1668,1669],{},"\\put(1,3){\\line(4,1){2} }\n",[397,1671,1672],{"class":399,"line":623},[397,1673,1674],{},"\\qbezier(0.5,0.5)(1,3)(3,3.5)\n",[397,1676,1677],{"class":399,"line":629},[397,1678,810],{},[397,1680,1681],{"class":399,"line":635},[397,1682,1683],{},"\\put(2.5,2){\\line(2,-1){3} }\n",[397,1685,1686],{"class":399,"line":641},[397,1687,1688],{},"\\put(5.5,0.5){\\line(-1,5){0.5} }\n",[397,1690,1691],{"class":399,"line":647},[397,1692,1693],{},"\\linethickness{1mm}\n",[397,1695,1696],{"class":399,"line":653},[397,1697,1698],{},"\\qbezier(2.5,2)(5.5,0.5)(5,3)\n",[397,1700,1701],{"class":399,"line":659},[397,1702,810],{},[397,1704,1705],{"class":399,"line":665},[397,1706,1707],{},"\\qbezier(4,2)(4,3)(3,3)\n",[397,1709,1710],{"class":399,"line":671},[397,1711,1712],{},"\\qbezier(3,3)(2,3)(2,2)\n",[397,1714,1715],{"class":399,"line":677},[397,1716,1717],{},"\\qbezier(2,2)(2,1)(3,1)\n",[397,1719,1720],{"class":399,"line":683},[397,1721,1722],{},"\\qbezier(3,1)(4,1)(4,2)\n",[397,1724,1725],{"class":399,"line":689},[397,1726,415],{},[357,1728,1729,1730,1732,1733,1735,1736,1738],{},"As this example illustrates, splitting up a circle into 4 quadratic Bézier curves is not satisfactory. At least 8 are needed. The figure again shows the effect of the ",[361,1731,1101],{}," command on horizontal or vertical lines, and of the ",[361,1734,1259],{}," and the ",[361,1737,749],{}," commands on oblique line segments. It also shows that both kinds of commands affect quadratic Bézier curves, each command overriding all previous ones.",[380,1740,1742],{"id":1741},"catenary","Catenary",[388,1744,1746],{"className":390,"code":1745,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{1cm}\n\\begin{picture}(4.3,3.6)(-2.5,-0.25)\n\\put(-2,0){\\vector(1,0){4.4} }\n\\put(2.45,-.05){$x$}\n\\put(0,0){\\vector(0,1){3.2} }\n\\put(0,3.35){\\makebox(0,0){$y$} }\n\\qbezier(0.0,0.0)(1.2384,0.0)\n(2.0,2.7622)\n\\qbezier(0.0,0.0)(-1.2384,0.0)\n(-2.0,2.7622)\n\\linethickness{.075mm}\n\\multiput(-2,0)(1,0){5}\n{\\line(0,1){3} }\n\\multiput(-2,0)(0,1){4}\n{\\line(1,0){4} }\n\\linethickness{.2mm}\n\\put( .3,.12763){\\line(1,0){.4} }\n\\put(.5,-.07237){\\line(0,1){.4} }\n\\put(-.7,.12763){\\line(1,0){.4} }\n\\put(-.5,-.07237){\\line(0,1){.4} }\n\\put(.8,.54308){\\line(1,0){.4} }\n\\put(1,.34308){\\line(0,1){.4} }\n\\put(-1.2,.54308){\\line(1,0){.4} }\n\\put(-1,.34308){\\line(0,1){.4} }\n\\put(1.3,1.35241){\\line(1,0){.4} }\n\\put(1.5,1.15241){\\line(0,1){.4} }\n\\put(-1.7,1.35241){\\line(1,0){.4} }\n\\put(-1.5,1.15241){\\line(0,1){.4} }\n\\put(-2.5,-0.25){\\circle*{0.2} }\n\\end{picture}\n",[361,1747,1748,1753,1758,1763,1768,1773,1778,1783,1788,1793,1798,1803,1808,1813,1818,1823,1828,1833,1838,1843,1848,1853,1858,1863,1868,1873,1878,1883,1888,1893],{"__ignoreMap":393},[397,1749,1750],{"class":399,"line":400},[397,1751,1752],{},"\\setlength{\\unitlength}{1cm}\n",[397,1754,1755],{"class":399,"line":406},[397,1756,1757],{},"\\begin{picture}(4.3,3.6)(-2.5,-0.25)\n",[397,1759,1760],{"class":399,"line":412},[397,1761,1762],{},"\\put(-2,0){\\vector(1,0){4.4} }\n",[397,1764,1765],{"class":399,"line":581},[397,1766,1767],{},"\\put(2.45,-.05){$x$}\n",[397,1769,1770],{"class":399,"line":587},[397,1771,1772],{},"\\put(0,0){\\vector(0,1){3.2} }\n",[397,1774,1775],{"class":399,"line":593},[397,1776,1777],{},"\\put(0,3.35){\\makebox(0,0){$y$} }\n",[397,1779,1780],{"class":399,"line":599},[397,1781,1782],{},"\\qbezier(0.0,0.0)(1.2384,0.0)\n",[397,1784,1785],{"class":399,"line":605},[397,1786,1787],{},"(2.0,2.7622)\n",[397,1789,1790],{"class":399,"line":611},[397,1791,1792],{},"\\qbezier(0.0,0.0)(-1.2384,0.0)\n",[397,1794,1795],{"class":399,"line":617},[397,1796,1797],{},"(-2.0,2.7622)\n",[397,1799,1800],{"class":399,"line":623},[397,1801,1802],{},"\\linethickness{.075mm}\n",[397,1804,1805],{"class":399,"line":629},[397,1806,1807],{},"\\multiput(-2,0)(1,0){5}\n",[397,1809,1810],{"class":399,"line":635},[397,1811,1812],{},"{\\line(0,1){3} }\n",[397,1814,1815],{"class":399,"line":641},[397,1816,1817],{},"\\multiput(-2,0)(0,1){4}\n",[397,1819,1820],{"class":399,"line":647},[397,1821,1822],{},"{\\line(1,0){4} }\n",[397,1824,1825],{"class":399,"line":653},[397,1826,1827],{},"\\linethickness{.2mm}\n",[397,1829,1830],{"class":399,"line":659},[397,1831,1832],{},"\\put( .3,.12763){\\line(1,0){.4} }\n",[397,1834,1835],{"class":399,"line":665},[397,1836,1837],{},"\\put(.5,-.07237){\\line(0,1){.4} }\n",[397,1839,1840],{"class":399,"line":671},[397,1841,1842],{},"\\put(-.7,.12763){\\line(1,0){.4} }\n",[397,1844,1845],{"class":399,"line":677},[397,1846,1847],{},"\\put(-.5,-.07237){\\line(0,1){.4} }\n",[397,1849,1850],{"class":399,"line":683},[397,1851,1852],{},"\\put(.8,.54308){\\line(1,0){.4} }\n",[397,1854,1855],{"class":399,"line":689},[397,1856,1857],{},"\\put(1,.34308){\\line(0,1){.4} }\n",[397,1859,1860],{"class":399,"line":695},[397,1861,1862],{},"\\put(-1.2,.54308){\\line(1,0){.4} }\n",[397,1864,1865],{"class":399,"line":701},[397,1866,1867],{},"\\put(-1,.34308){\\line(0,1){.4} }\n",[397,1869,1870],{"class":399,"line":707},[397,1871,1872],{},"\\put(1.3,1.35241){\\line(1,0){.4} }\n",[397,1874,1875],{"class":399,"line":713},[397,1876,1877],{},"\\put(1.5,1.15241){\\line(0,1){.4} }\n",[397,1879,1880],{"class":399,"line":719},[397,1881,1882],{},"\\put(-1.7,1.35241){\\line(1,0){.4} }\n",[397,1884,1885],{"class":399,"line":725},[397,1886,1887],{},"\\put(-1.5,1.15241){\\line(0,1){.4} }\n",[397,1889,1890],{"class":399,"line":1577},[397,1891,1892],{},"\\put(-2.5,-0.25){\\circle*{0.2} }\n",[397,1894,1895],{"class":399,"line":1583},[397,1896,415],{},[357,1898,1899,1900,1903],{},"In this figure, each symmetric half of the catenary y = cosh x − 1 is approximated by a quadratic Bézier curve. The right half of the curve ends in the point (2, 2.7622), the slope there having the value m = 3.6269. Using again equation (*), we can calculate the intermediate control points. They turn out to be (1.2384, 0) and (−1.2384, 0). The crosses indicate points of the real catenary. The error is barely noticeable, being less than one percent. This example points out the use of the optional argument of the ",[361,1901,1902],{},"\\begin{picture}"," command. The picture is defined in a convenient \"mathematical\" coordinates, whereas by the command",[388,1905,1906],{"className":390,"code":1757,"language":392,"meta":393,"style":393},[361,1907,1908],{"__ignoreMap":393},[397,1909,1910],{"class":399,"line":400},[397,1911,1757],{},[357,1913,1914],{},"its lower-left corner (marked by the black disk) is assigned the coordinates (−2.5,−0.25).",[380,1916,1918],{"id":1917},"plotting-graphs","Plotting graphs",[388,1920,1922],{"className":390,"code":1921,"language":392,"meta":393,"style":393},"\\setlength{\\unitlength}{1cm}\n\\begin{picture}(6,6)(-3,-3)\n\\put(-1.5,0){\\vector(1,0){3} }\n\\put(2.7,-0.1){$\\chi$}\n\\put(0,-1.5){\\vector(0,1){3} }\n\\multiput(-2.5,1)(0.4,0){13}\n{\\line(1,0){0.2} }\n\\multiput(-2.5,-1)(0.4,0){13}\n{\\line(1,0){0.2} }\n\\put(0.2,1.4)\n{$\\beta=v\u002Fc=\\tanh\\chi$}\n\\qbezier(0,0)(0.8853,0.8853)\n(2,0.9640)\n\\qbezier(0,0)(-0.8853,-0.8853)\n(-2,-0.9640)\n\\put(-3,-2){\\circle*{0.2} }\n\\end{picture}\n",[361,1923,1924,1928,1933,1938,1943,1948,1953,1958,1963,1967,1972,1977,1982,1987,1992,1997,2002],{"__ignoreMap":393},[397,1925,1926],{"class":399,"line":400},[397,1927,1752],{},[397,1929,1930],{"class":399,"line":406},[397,1931,1932],{},"\\begin{picture}(6,6)(-3,-3)\n",[397,1934,1935],{"class":399,"line":412},[397,1936,1937],{},"\\put(-1.5,0){\\vector(1,0){3} }\n",[397,1939,1940],{"class":399,"line":581},[397,1941,1942],{},"\\put(2.7,-0.1){$\\chi$}\n",[397,1944,1945],{"class":399,"line":587},[397,1946,1947],{},"\\put(0,-1.5){\\vector(0,1){3} }\n",[397,1949,1950],{"class":399,"line":593},[397,1951,1952],{},"\\multiput(-2.5,1)(0.4,0){13}\n",[397,1954,1955],{"class":399,"line":599},[397,1956,1957],{},"{\\line(1,0){0.2} }\n",[397,1959,1960],{"class":399,"line":605},[397,1961,1962],{},"\\multiput(-2.5,-1)(0.4,0){13}\n",[397,1964,1965],{"class":399,"line":611},[397,1966,1957],{},[397,1968,1969],{"class":399,"line":617},[397,1970,1971],{},"\\put(0.2,1.4)\n",[397,1973,1974],{"class":399,"line":623},[397,1975,1976],{},"{$\\beta=v\u002Fc=\\tanh\\chi$}\n",[397,1978,1979],{"class":399,"line":629},[397,1980,1981],{},"\\qbezier(0,0)(0.8853,0.8853)\n",[397,1983,1984],{"class":399,"line":635},[397,1985,1986],{},"(2,0.9640)\n",[397,1988,1989],{"class":399,"line":641},[397,1990,1991],{},"\\qbezier(0,0)(-0.8853,-0.8853)\n",[397,1993,1994],{"class":399,"line":647},[397,1995,1996],{},"(-2,-0.9640)\n",[397,1998,1999],{"class":399,"line":653},[397,2000,2001],{},"\\put(-3,-2){\\circle*{0.2} }\n",[397,2003,2004],{"class":399,"line":659},[397,2005,415],{},[357,2007,2008],{},"The control points of the two Bézier curves were calculated with formulas (*). The positive branch is determined by P₁ = (0, 0), m₁ = 1 and P₂ = (2, tanh 2), m₂ = 1\u002Fcosh²2. Again, the picture is defined in mathematically convenient coordinates, and the lower left corner is assigned the mathematical coordinates (−3,−2) (black disk).",[380,2010,2012],{"id":2011},"the-picture-environment-and-gnuplot","The picture environment and gnuplot",[357,2014,2015,2016,2019],{},"The powerful scientific plotting package gnuplot has the capability to output directly to a LaTeX picture environment. It is often far more convenient to plot directly to LaTeX, since this saves having to deal with potentially troublesome postscript files. Plotting scientific data (or, indeed, mathematical figures) this way gives much greater control, and of course typesetting ability, than is available from other means (such as postscript). Such pictures can then be added to a document by an ",[361,2017,2018],{},"\\include{}"," command.",[357,2021,2022],{},"N.B. gnuplot is a powerful piece of software with a vast array of commands. A full discussion of gnuplot lies beyond the scope of this note. See the gnuplot tutorial for more information.",[2024,2025,2026],"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":393,"searchDepth":406,"depth":406,"links":2028},[2029,2030,2031,2032,2033,2034,2036,2037,2038,2039,2040,2041],{"id":382,"depth":406,"text":383},{"id":523,"depth":406,"text":524},{"id":730,"depth":406,"text":731},{"id":827,"depth":406,"text":828},{"id":1005,"depth":406,"text":1006},{"id":1094,"depth":406,"text":2035},"\\multiput and \\linethickness",{"id":1210,"depth":406,"text":1211},{"id":1358,"depth":406,"text":1359},{"id":1588,"depth":406,"text":1589},{"id":1741,"depth":406,"text":1742},{"id":1917,"depth":406,"text":1918},{"id":2011,"depth":406,"text":2012},"Learn how to use the picture environment for creating graphics directly in LaTeX","md",null,{},{"title":144,"description":2042},"SocKMNxI_0YQ5fdyOLEbJ0Bjl-EFFyssQ-3vo09GANw",[2049,2051],{"title":140,"path":141,"stem":142,"description":2050,"children":-1},"Learn how to use MetaPost for creating mathematical and technical vector graphics in LaTeX documents.",{"title":154,"path":155,"stem":156,"description":2052,"children":-1},"Comprehensive guide to typesetting mathematical formulas, notations, equations, and structures in LaTeX.",1785155503768]