[{"data":1,"prerenderedAt":1241},["ShallowReactive",2],{"navigation_docs":3,"-reference-tips-and-tricks":351,"-reference-tips-and-tricks-surround":1236},[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":302,"body":353,"description":1230,"extension":1231,"links":1232,"meta":1233,"navigation":986,"path":303,"seo":1234,"stem":304,"__hash__":1235},"docs\u002F10.reference\u002F02.tips-and-tricks.md",{"type":354,"value":355,"toc":1215},"minimark",[356,361,370,386,389,397,400,416,419,426,441,453,488,495,499,502,523,526,530,535,538,549,558,573,576,585,589,592,604,667,678,687,698,701,721,724,777,790,799,803,808,812,827,868,888,895,914,924,950,954,957,966,969,972,1027,1030,1039,1046,1050,1057,1118,1129,1133,1136,1151,1154,1181,1184,1211],[357,358,360],"h2",{"id":359},"always-writing-latex-in-roman","Always writing LaTeX in roman",[362,363,364,365,369],"p",{},"If you insert the ",[366,367,368],"code",{},"\\LaTeX"," command in an area with a non-default font, it will be formatted accordingly. If you want to keep LaTeX written in Computer Modern roman shape, you must redefine the function. However, the naive:",[371,372,377],"pre",{"className":373,"code":374,"language":375,"meta":376,"style":376},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\renewcommand{\\LaTeX}{ {\\rm \\LaTeX} }\n","latex","",[366,378,379],{"__ignoreMap":376},[380,381,384],"span",{"class":382,"line":383},"line",1,[380,385,374],{},[362,387,388],{},"will output:",[371,390,395],{"className":391,"code":393,"language":394,"meta":376},[392],"language-text","TeX capacity exceeded , sorry [ grouping levels =255].\n","text",[366,396,393],{"__ignoreMap":376},[362,398,399],{},"So you need to create a temporary variable. Sadly,",[371,401,403],{"className":373,"code":402,"language":375,"meta":376,"style":376},"\\newcommand{\\LaTeXtemp}{\\LaTeX}\n\\renewcommand{\\LaTeX}{ {\\rm \\LaTeXtemp} }\n",[366,404,405,410],{"__ignoreMap":376},[380,406,407],{"class":382,"line":383},[380,408,409],{},"\\newcommand{\\LaTeXtemp}{\\LaTeX}\n",[380,411,413],{"class":382,"line":412},2,[380,414,415],{},"\\renewcommand{\\LaTeX}{ {\\rm \\LaTeXtemp} }\n",[362,417,418],{},"does not work either.",[362,420,421,422,425],{},"We must use the TeX primitive ",[366,423,424],{},"\\let"," instead.",[371,427,429],{"className":373,"code":428,"language":375,"meta":376,"style":376},"\\let\\LaTeXtemp\\LaTeX\n\\renewcommand{\\LaTeX}{ {\\rm \\LaTeXtemp } }\n",[366,430,431,436],{"__ignoreMap":376},[380,432,433],{"class":382,"line":383},[380,434,435],{},"\\let\\LaTeXtemp\\LaTeX\n",[380,437,438],{"class":382,"line":412},[380,439,440],{},"\\renewcommand{\\LaTeX}{ {\\rm \\LaTeXtemp } }\n",[357,442,444,448,449,452],{"id":443},"id-est-and-exempli-gratia-ie-and-eg",[445,446,447],"em",{},"id est"," and ",[445,450,451],{},"exempli gratia"," (i.e. and e.g.)",[362,454,455,456,459,460,463,464,459,467,470,471,474,475,478,479,474,481,483,484,487],{},"If you simply use the forms \"",[366,457,458],{},"i.e.","\" or \"",[366,461,462],{},"e.g.","\", LaTeX will treat the periods as end of sentence periods (i.e. full stop) since they are followed by a space, and add more space before the next \"sentence\". To prevent LaTeX from adding space after the last period, the correct syntax is either \"",[366,465,466],{},"i.e.\\ ",[366,468,469],{},"e.g.\\ ","\", or else \"",[366,472,473],{},"i.e.,","\" and \"",[366,476,477],{},"e.g.,","\" with a comma. The comma is interpreted by LaTeX as part of a sentence, since the period is not followed by any space. In this case, \"",[366,480,473],{},[366,482,477],{},"\" do not need any special attention. The latter style is favored, e.g., by ",[445,485,486],{},"The Chicago Manual of Style",".",[362,489,490,491,494],{},"If the command ",[366,492,493],{},"\\frenchspacing"," is used in the preamble, the space between sentences is always the same as that between words.",[357,496,498],{"id":497},"grouping-figureequation-numbering-by-section","Grouping Figure\u002FEquation Numbering by Section",[362,500,501],{},"For long documents the numbering can become cumbersome as the numbers reach into double and triple digits. To reset the counters at the start of each section and prefix the numbers by the section number, include the following in the preamble:",[371,503,505],{"className":373,"code":504,"language":375,"meta":376,"style":376},"\\usepackage{amsmath}\n\\numberwithin{equation}{section}\n\\numberwithin{figure}{section}\n",[366,506,507,512,517],{"__ignoreMap":376},[380,508,509],{"class":382,"line":383},[380,510,511],{},"\\usepackage{amsmath}\n",[380,513,514],{"class":382,"line":412},[380,515,516],{},"\\numberwithin{equation}{section}\n",[380,518,520],{"class":382,"line":519},3,[380,521,522],{},"\\numberwithin{figure}{section}\n",[362,524,525],{},"The same can be done with similar counter types and document units such as \"subsection\".",[357,527,529],{"id":528},"graphics-and-graph-editors","Graphics and Graph editors",[531,532,534],"h3",{"id":533},"vector-image-editors-with-latex-support","Vector image editors with LaTeX support",[362,536,537],{},"It is often preferable to use the same font and font size in your images as in the document. Moreover, for scientific images, you may need mathematical formulae or special characters (such as Greek letters). Both things can be achieved easily if the image editor allows you to use LaTeX code in your image. Most vector image editors do not offer this option. There are, however, a few exceptions.",[362,539,540,541,548],{},"In early days, LaTeX users used ",[542,543,547],"a",{"href":544,"rel":545},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FXfig",[546],"nofollow","Xfig"," for their drawings. The editor is still used by quite a few people nowadays because it has special 'export to LaTeX' features.",[362,550,551,552,557],{},"A newer and easier-to-use vector image editor specially tailored to LaTeX use is ",[542,553,556],{"href":554,"rel":555},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FIpe_(program)",[546],"IPE",". It allows any LaTeX command, including but not limited to mathematical formulae in the image.",[362,559,560,561,566,567,572],{},"A very versatile vector image editor is ",[542,562,565],{"href":563,"rel":564},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FInkscape",[546],"Inkscape",". It does not support LaTeX text by itself, but you can use the plugin ",[542,568,571],{"href":569,"rel":570},"http:\u002F\u002Fpav.iki.fi\u002Fsoftware\u002Ftextext\u002F",[546],"Textext"," for that. This allows you to put any block of LaTeX code in your image.",[362,574,575],{},"LaTeXDraw is a free and open source graphical PSTricks generator and editor. It allows you to draw basic geometric objects and save the result in a variety of formats including .jpg, .png, .eps, .bmp as well as .tex.",[362,577,578,579,584],{},"Another way to generate vectorgraphics is using the ",[542,580,583],{"href":581,"rel":582},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAsymptote_(vector_graphics_language)",[546],"Asymptote"," language. It is a programming language which produces vector images in encapsulated postscript format and supports LaTeX syntax in any text labels.",[531,586,588],{"id":587},"graphs-with-gnuplot","Graphs with gnuplot",[362,590,591],{},"A simple method to include graphs and charts in LaTeX documents is to create it within a common spreadsheet software (OpenOffice Calc or MS Office Excel etc.) and include it in the document as a cropped screenshot. However, this produces poor quality rasterized images.",[362,593,594,595,603],{},"An excellent method to render graphs is through ",[596,597,598],"strong",{},[542,599,602],{"href":600,"rel":601},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002Fgnuplot",[546],"gnuplot",", a free and versatile plotting software, that has a special output filter directly for exporting files to LaTeX. We assume that the data is in a CSV file (comma separated text) in the first and third column. A simple gnuplot script to plot the data can look like this:",[371,605,608],{"className":606,"code":607,"language":602,"meta":376,"style":376},"language-gnuplot shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","set format \"$%g$\"\nset title \"Graph 3: Dependence of $V_p$ on $R_0$\"\nset xlabel \"Resistance $R_0$ \\[$\\Omega$\\]\"\nset ylabel \"Voltage $V_p$ \\[V\\]\"\nset border 3\nset xtics nomirror\nset ytics nomirror\nset terminal epslatex\nset output \"graph1.eps\"\nplot \"graph1.csv\" using 1:3   #Plot the data\n",[366,609,610,615,620,625,631,637,643,649,655,661],{"__ignoreMap":376},[380,611,612],{"class":382,"line":383},[380,613,614],{},"set format \"$%g$\"\n",[380,616,617],{"class":382,"line":412},[380,618,619],{},"set title \"Graph 3: Dependence of $V_p$ on $R_0$\"\n",[380,621,622],{"class":382,"line":519},[380,623,624],{},"set xlabel \"Resistance $R_0$ \\[$\\Omega$\\]\"\n",[380,626,628],{"class":382,"line":627},4,[380,629,630],{},"set ylabel \"Voltage $V_p$ \\[V\\]\"\n",[380,632,634],{"class":382,"line":633},5,[380,635,636],{},"set border 3\n",[380,638,640],{"class":382,"line":639},6,[380,641,642],{},"set xtics nomirror\n",[380,644,646],{"class":382,"line":645},7,[380,647,648],{},"set ytics nomirror\n",[380,650,652],{"class":382,"line":651},8,[380,653,654],{},"set terminal epslatex\n",[380,656,658],{"class":382,"line":657},9,[380,659,660],{},"set output \"graph1.eps\"\n",[380,662,664],{"class":382,"line":663},10,[380,665,666],{},"plot \"graph1.csv\" using 1:3   #Plot the data\n",[362,668,669,670,673,674,677],{},"Now gnuplot produces two files: the graph drawing in ",[366,671,672],{},"graph1.eps"," and the text in ",[366,675,676],{},"graph1.tex",". The second includes the EPS image, so that we only need to include the file graph1.tex in our document:",[371,679,681],{"className":373,"code":680,"language":375,"meta":376,"style":376},"\\input{graph1.tex}\n",[366,682,683],{"__ignoreMap":376},[380,684,685],{"class":382,"line":383},[380,686,680],{},[362,688,689,690,693,694,697],{},"The above steps can be automated by the package gnuplottex. By placing gnuplot commands inside ",[366,691,692],{},"\\begin{gnuplot}...\\end{gnuplot}",", and compiling with ",[366,695,696],{},"latex -shell-escape",", the graphs are created and added into your document.",[362,699,700],{},"When you are using gnuplottex it is also possible to directly pass the terminal settings as an argument to the environment:",[371,702,704],{"className":373,"code":703,"language":375,"meta":376,"style":376},"\\begin{gnuplot}[terminal=epslatex, terminaloptions=color, scale=0.9, linewidth=2]\n ...\n\\end{gnuplot}\n",[366,705,706,711,716],{"__ignoreMap":376},[380,707,708],{"class":382,"line":383},[380,709,710],{},"\\begin{gnuplot}[terminal=epslatex, terminaloptions=color, scale=0.9, linewidth=2]\n",[380,712,713],{"class":382,"line":412},[380,714,715],{}," ...\n",[380,717,718],{"class":382,"line":519},[380,719,720],{},"\\end{gnuplot}\n",[362,722,723],{},"When using pdfLaTeX instead of simple LaTeX, we must convert the EPS image to PDF. If we are working with a Unix-like shell:",[371,725,729],{"className":726,"code":727,"language":728,"meta":376,"style":376},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","eps2pdf graph1.eps\nsed -i s\u002F\".eps\"\u002F\".pdf\"\u002Fg graph1.tex\n","bash",[366,730,731,741],{"__ignoreMap":376},[380,732,733,737],{"class":382,"line":383},[380,734,736],{"class":735},"sBMFI","eps2pdf",[380,738,740],{"class":739},"sfazB"," graph1.eps\n",[380,742,743,746,749,752,756,759,761,764,766,769,771,774],{"class":382,"line":412},[380,744,745],{"class":735},"sed",[380,747,748],{"class":739}," -i",[380,750,751],{"class":739}," s\u002F",[380,753,755],{"class":754},"sMK4o","\"",[380,757,758],{"class":739},".eps",[380,760,755],{"class":754},[380,762,763],{"class":739},"\u002F",[380,765,755],{"class":754},[380,767,768],{"class":739},".pdf",[380,770,755],{"class":754},[380,772,773],{"class":739},"\u002Fg",[380,775,776],{"class":739}," graph1.tex\n",[362,778,779,780,782,783,786,787,789],{},"Instead of calling ",[366,781,736],{}," directly, we can also include the ",[366,784,785],{},"epstopdf"," package that automates the process. If we include a graphics now and leave out the file extension, ",[366,788,785],{}," will automatically transform the .eps-file to PDF and insert it in the text.",[371,791,793],{"className":373,"code":792,"language":375,"meta":376,"style":376},"\\includegraphics{graph1}\n",[366,794,795],{"__ignoreMap":376},[380,796,797],{"class":382,"line":383},[380,798,792],{},[531,800,802],{"id":801},"generate-png-screenshots","Generate png screenshots",[362,804,805,806,487],{},"See ",[542,807,288],{"href":289},[357,809,811],{"id":810},"spell-checking-and-word-counting","Spell-checking and Word Counting",[362,813,814,815,818,819,822,823,826],{},"If you want to spell-check your document, you can use the command-line ",[366,816,817],{},"aspell",", ",[366,820,821],{},"hunspell"," (preferably), or ",[366,824,825],{},"ispell"," programs.",[371,828,830],{"className":726,"code":829,"language":728,"meta":376,"style":376},"ispell yourfile.tex\naspell --mode=tex -c yourfile.tex\nhunspell -l -t -i utf-8 yourfile.tex\n",[366,831,832,839,851],{"__ignoreMap":376},[380,833,834,836],{"class":382,"line":383},[380,835,825],{"class":735},[380,837,838],{"class":739}," yourfile.tex\n",[380,840,841,843,846,849],{"class":382,"line":412},[380,842,817],{"class":735},[380,844,845],{"class":739}," --mode=tex",[380,847,848],{"class":739}," -c",[380,850,838],{"class":739},[380,852,853,855,858,861,863,866],{"class":382,"line":519},[380,854,821],{"class":735},[380,856,857],{"class":739}," -l",[380,859,860],{"class":739}," -t",[380,862,748],{"class":739},[380,864,865],{"class":739}," utf-8",[380,867,838],{"class":739},[362,869,870,871,818,876,881,882,887],{},"All three understand LaTeX and will skip LaTeX commands. You can also use a LaTeX editor with built-in spell checking, such as ",[542,872,875],{"href":873,"rel":874},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLyX",[546],"LyX",[542,877,880],{"href":878,"rel":879},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FKile",[546],"Kile",", or ",[542,883,886],{"href":884,"rel":885},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEmacs",[546],"Emacs",". Another option is to convert LaTeX source to plain text and open resulting file in a word processor like OpenOffice.org or KOffice.",[362,889,890,891,894],{},"If you want to count words you can, again, use LyX or convert your LaTeX source to plain text and use, for example, UNIX ",[366,892,893],{},"wc"," command:",[371,896,898],{"className":726,"code":897,"language":728,"meta":376,"style":376},"detex yourfile | wc\n",[366,899,900],{"__ignoreMap":376},[380,901,902,905,908,911],{"class":382,"line":383},[380,903,904],{"class":735},"detex",[380,906,907],{"class":739}," yourfile",[380,909,910],{"class":754}," |",[380,912,913],{"class":735}," wc\n",[362,915,916,917,919,920,923],{},"An alternative to the ",[366,918,904],{}," command is the ",[366,921,922],{},"pdftotext"," command which extracts an ASCII text file from PDF:",[371,925,927],{"className":726,"code":926,"language":728,"meta":376,"style":376},"pdflatex yourfile.tex\npdftotext yourfile.pdf\nwc yourfile.txt\n",[366,928,929,936,943],{"__ignoreMap":376},[380,930,931,934],{"class":382,"line":383},[380,932,933],{"class":735},"pdflatex",[380,935,838],{"class":739},[380,937,938,940],{"class":382,"line":412},[380,939,922],{"class":735},[380,941,942],{"class":739}," yourfile.pdf\n",[380,944,945,947],{"class":382,"line":519},[380,946,893],{"class":735},[380,948,949],{"class":739}," yourfile.txt\n",[357,951,953],{"id":952},"new-even-page","New even page",[362,955,956],{},"In the twoside-mode you have the ability to get a new odd-side page by:",[371,958,960],{"className":373,"code":959,"language":375,"meta":376,"style":376},"\\cleardoublepage\n",[366,961,962],{"__ignoreMap":376},[380,963,964],{"class":382,"line":383},[380,965,959],{},[362,967,968],{},"However, LaTeX doesn't give you the ability to get a new even-side page. The following method opens up this:",[362,970,971],{},"The following must be put in your document preamble:",[371,973,975],{"className":373,"code":974,"language":375,"meta":376,"style":376},"\\usepackage{ifthen}\n\n\\newcommand{\\newevenside}{\n    \\ifthenelse{\\isodd{\\thepage} }{\\newpage}{\n    \\newpage\n        \\phantom{placeholder} % doesn't appear on page\n    \\thispagestyle{empty} % if want no header\u002Ffooter\n    \\newpage\n    }\n}\n",[366,976,977,982,988,993,998,1003,1008,1013,1017,1022],{"__ignoreMap":376},[380,978,979],{"class":382,"line":383},[380,980,981],{},"\\usepackage{ifthen}\n",[380,983,984],{"class":382,"line":412},[380,985,987],{"emptyLinePlaceholder":986},true,"\n",[380,989,990],{"class":382,"line":519},[380,991,992],{},"\\newcommand{\\newevenside}{\n",[380,994,995],{"class":382,"line":627},[380,996,997],{},"    \\ifthenelse{\\isodd{\\thepage} }{\\newpage}{\n",[380,999,1000],{"class":382,"line":633},[380,1001,1002],{},"    \\newpage\n",[380,1004,1005],{"class":382,"line":639},[380,1006,1007],{},"        \\phantom{placeholder} % doesn't appear on page\n",[380,1009,1010],{"class":382,"line":645},[380,1011,1012],{},"    \\thispagestyle{empty} % if want no header\u002Ffooter\n",[380,1014,1015],{"class":382,"line":651},[380,1016,1002],{},[380,1018,1019],{"class":382,"line":657},[380,1020,1021],{},"    }\n",[380,1023,1024],{"class":382,"line":663},[380,1025,1026],{},"}\n",[362,1028,1029],{},"To activate the new even-side page, type the following where you want the new even-side:",[371,1031,1033],{"className":373,"code":1032,"language":375,"meta":376,"style":376},"\\newevenside\n",[366,1034,1035],{"__ignoreMap":376},[380,1036,1037],{"class":382,"line":383},[380,1038,1032],{},[362,1040,1041,1042,1045],{},"If the given page is an odd-side page, the next new page is subsequently an even-side page, and LaTeX will do nothing more than a regular ",[366,1043,1044],{},"\\newpage",". However, if the given page is an even page, LaTeX will make a new (odd) page, put in a placeholder, and make another new (even) page. A crude but effective method.",[357,1047,1049],{"id":1048},"sidebar-with-information","Sidebar with information",[362,1051,1052,1053,1056],{},"If you want to put a sidebar with information like copyright and author, you might want to use the ",[366,1054,1055],{},"eso-pic"," package. Example:",[371,1058,1060],{"className":373,"code":1059,"language":375,"meta":376,"style":376},"\\usepackage{eso-pic}\n...\n\\AddToShipoutPicture{%\n  \\AtPageLowerLeft{%\n    \\rotatebox{90}{%\n        \\begin{minipage}{\\paperheight}\n          \\centering\\copyright~\\today{} Humble me\n        \\end{minipage} %\n      }\n    } %\n  }%\n",[366,1061,1062,1067,1072,1077,1082,1087,1092,1097,1102,1107,1112],{"__ignoreMap":376},[380,1063,1064],{"class":382,"line":383},[380,1065,1066],{},"\\usepackage{eso-pic}\n",[380,1068,1069],{"class":382,"line":412},[380,1070,1071],{},"...\n",[380,1073,1074],{"class":382,"line":519},[380,1075,1076],{},"\\AddToShipoutPicture{%\n",[380,1078,1079],{"class":382,"line":627},[380,1080,1081],{},"  \\AtPageLowerLeft{%\n",[380,1083,1084],{"class":382,"line":633},[380,1085,1086],{},"    \\rotatebox{90}{%\n",[380,1088,1089],{"class":382,"line":639},[380,1090,1091],{},"        \\begin{minipage}{\\paperheight}\n",[380,1093,1094],{"class":382,"line":645},[380,1095,1096],{},"          \\centering\\copyright~\\today{} Humble me\n",[380,1098,1099],{"class":382,"line":651},[380,1100,1101],{},"        \\end{minipage} %\n",[380,1103,1104],{"class":382,"line":657},[380,1105,1106],{},"      }\n",[380,1108,1109],{"class":382,"line":663},[380,1110,1111],{},"    } %\n",[380,1113,1115],{"class":382,"line":1114},11,[380,1116,1117],{},"  }%\n",[362,1119,1120,1121,1124,1125,1128],{},"If you want it on one page only, use the starred version of the ",[445,1122,1123],{},"AddToShipoutPicture"," command at the page you want it. (",[366,1126,1127],{},"\\AddToShipoutPicture*{...}",")",[357,1130,1132],{"id":1131},"hide-auxiliary-files","Hide auxiliary files",[362,1134,1135],{},"If you're using pdflatex you can create a folder in which all the output files will be stored, so your top directory looks cleaner.",[371,1137,1139],{"className":726,"code":1138,"language":728,"meta":376,"style":376},"pdflatex -output-directory tmp\n",[366,1140,1141],{"__ignoreMap":376},[380,1142,1143,1145,1148],{"class":382,"line":383},[380,1144,933],{"class":735},[380,1146,1147],{"class":739}," -output-directory",[380,1149,1150],{"class":739}," tmp\n",[362,1152,1153],{},"Please note that the folder tmp should exist. However if you're using a Unix-based system you can do something like this:",[371,1155,1157],{"className":726,"code":1156,"language":728,"meta":376,"style":376},"alias pdflatex='mkdir -p tmp; pdflatex -output-directory tmp'\n",[366,1158,1159],{"__ignoreMap":376},[380,1160,1161,1165,1169,1172,1175,1178],{"class":382,"line":383},[380,1162,1164],{"class":1163},"spNyl","alias",[380,1166,1168],{"class":1167},"sTEyZ"," pdflatex",[380,1170,1171],{"class":754},"=",[380,1173,1174],{"class":754},"'",[380,1176,1177],{"class":739},"mkdir -p tmp; pdflatex -output-directory tmp",[380,1179,1180],{"class":754},"'\n",[362,1182,1183],{},"Or for vim modify your .vimrc:",[371,1185,1189],{"className":1186,"code":1187,"language":1188,"meta":376,"style":376},"language-vim shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\" use pdflatex\nlet g:Tex_DefaultTargetFormat='pdf'\nlet g:Tex_MultipleCompileFormats='pdf,dvi'\nlet g:Tex_CompileRule_pdf = 'mkdir -p tmp; pdflatex -output-directory tmp -interaction=nonstopmode $\\*; cp tmp\u002F*.pdf .'\n","vim",[366,1190,1191,1196,1201,1206],{"__ignoreMap":376},[380,1192,1193],{"class":382,"line":383},[380,1194,1195],{},"\" use pdflatex\n",[380,1197,1198],{"class":382,"line":412},[380,1199,1200],{},"let g:Tex_DefaultTargetFormat='pdf'\n",[380,1202,1203],{"class":382,"line":519},[380,1204,1205],{},"let g:Tex_MultipleCompileFormats='pdf,dvi'\n",[380,1207,1208],{"class":382,"line":627},[380,1209,1210],{},"let g:Tex_CompileRule_pdf = 'mkdir -p tmp; pdflatex -output-directory tmp -interaction=nonstopmode $\\*; cp tmp\u002F*.pdf .'\n",[1212,1213,1214],"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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":376,"searchDepth":412,"depth":412,"links":1216},[1217,1218,1220,1221,1226,1227,1228,1229],{"id":359,"depth":412,"text":360},{"id":443,"depth":412,"text":1219},"id est and exempli gratia (i.e. and e.g.)",{"id":497,"depth":412,"text":498},{"id":528,"depth":412,"text":529,"children":1222},[1223,1224,1225],{"id":533,"depth":519,"text":534},{"id":587,"depth":519,"text":588},{"id":801,"depth":519,"text":802},{"id":810,"depth":412,"text":811},{"id":952,"depth":412,"text":953},{"id":1048,"depth":412,"text":1049},{"id":1131,"depth":412,"text":1132},"Practical tips and tricks for LaTeX users, including font handling, numbering, graphics tools, spell-checking, and more.","md",null,{},{"title":302,"description":1230},"aaCNZxCSWeGH8yUFAbpvxtZCQIkSFDK0WgHS-G7q3fE",[1237,1239],{"title":298,"path":299,"stem":300,"description":1238,"children":-1},"Frequently asked questions about LaTeX, covering common issues and solutions for formatting, fonts, figures, and more.",{"title":306,"path":307,"stem":308,"description":1240,"children":-1},"Understanding and resolving common LaTeX error messages, warnings, and troubleshooting techniques.",1785155514524]