[{"data":1,"prerenderedAt":1369},["ShallowReactive",2],{"navigation_docs":3,"-document-fundamentals-fonts":351,"-document-fundamentals-fonts-surround":1364},[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":64,"body":353,"description":1358,"extension":1359,"links":1360,"meta":1361,"navigation":1023,"path":65,"seo":1362,"stem":66,"__hash__":1363},"docs\u002F03.document-fundamentals\u002F04.fonts.md",{"type":354,"value":355,"toc":1340},"minimark",[356,361,378,381,384,400,407,426,430,433,494,500,509,512,521,524,533,542,546,549,749,752,787,791,796,799,913,924,933,946,950,956,965,968,988,992,996,1008,1066,1072,1077,1080,1129,1133,1136,1153,1176,1182,1222,1226,1229,1247,1251,1255,1258,1262,1279,1282,1297,1310,1314,1321,1336],[357,358,360],"h2",{"id":359},"font-families","Font Families",[362,363,364,365,369,370,373,374,377],"p",{},"There are hundreds—if not thousands—of typefaces, or font families. Common examples include Times, Courier, and Helvetica. These families can generally be grouped into three main categories: serif, sans serif, and monospaced. LaTeX commands generally refer to these with the shorthand ",[366,367,368],"code",{},"rm",", ",[366,371,372],{},"sf",", and ",[366,375,376],{},"tt"," respectively.",[362,379,380],{},"By default, LaTeX uses Computer Modern, a family of typefaces designed by Donald Knuth for use with TeX. It contains serif, sans serif, and monospaced fonts, each available in several weights and optical sizes.",[362,382,383],{},"The bodies of LaTeX documents are set in Roman (serif) type by default, but this can be changed by setting the family default:",[385,386,391],"pre",{"className":387,"code":388,"language":389,"meta":390,"style":390},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\renewcommand{\\familydefault}{\u003Cfamily>}\n","latex","",[366,392,393],{"__ignoreMap":390},[394,395,398],"span",{"class":396,"line":397},"line",1,[394,399,388],{},[362,401,402,403,406],{},"where ",[366,404,405],{},"\u003Cfamily>"," is any of the following:",[408,409,410,416,421],"ul",{},[411,412,413],"li",{},[366,414,415],{},"\\rmdefault",[411,417,418],{},[366,419,420],{},"\\sfdefault",[411,422,423],{},[366,424,425],{},"\\ttdefault",[357,427,429],{"id":428},"emphasizing-text","Emphasizing Text",[362,431,432],{},"TeX recognizes two types of markup commands:",[408,434,435,450],{},[411,436,437,441,442,445,446,449],{},[438,439,440],"strong",{},"Semantic"," - ",[366,443,444],{},"\\emph{text}"," — by default italicise font. Can be overwritten by ",[366,447,448],{},"\\renewcommand\\emph{\\textbf}",".",[411,451,452,455,456],{},[438,453,454],{},"Visual"," - which actually applies required formatting:\n",[408,457,458,471,482],{},[411,459,460,461,464,465,464,468],{},"Family - ",[366,462,463],{},"\\textrm{}"," ",[366,466,467],{},"\\textsf{}",[366,469,470],{},"\\texttt{}",[411,472,473,474,477,478,481],{},"Weight - ",[366,475,476],{},"\\textbf{}"," - bold, ",[366,479,480],{},"\\textmd{}"," - medium",[411,483,484,485,369,488,369,491],{},"Shape - ",[366,486,487],{},"\\textup{}",[366,489,490],{},"\\textit{}",[366,492,493],{},"\\textsl{}",[362,495,496,497,499],{},"To add some emphasis to a word or a phrase, use the ",[366,498,444],{}," command:",[385,501,503],{"className":387,"code":502,"language":389,"meta":390,"style":390},"I want to \\emph{emphasize} a word.\n",[366,504,505],{"__ignoreMap":390},[394,506,507],{"class":396,"line":397},[394,508,502],{},[362,510,511],{},"The command is dynamic: if you emphasize a word which is already in an emphasized sentence, it will be reverted to the upright font:",[385,513,515],{"className":387,"code":514,"language":389,"meta":390,"style":390},"\\emph{In this emphasized sentence, there is an emphasized \\emph{word} which looks upright.}\n",[366,516,517],{"__ignoreMap":390},[394,518,519],{"class":396,"line":397},[394,520,514],{},[362,522,523],{},"Text may be emphasized more heavily through the use of boldface:",[385,525,527],{"className":387,"code":526,"language":389,"meta":390,"style":390},"\\textbf{Bold text} may be used to heavily emphasize very important words or phrases.\n",[366,528,529],{"__ignoreMap":390},[394,530,531],{"class":396,"line":397},[394,532,526],{},[534,535,536],"blockquote",{},[362,537,538,541],{},[438,539,540],{},"Warning:"," Do not overuse emphasis in your paragraphs. Emphasis should be reserved for key terms or other particularly important concepts in a text, and bold text especially used minimally.",[357,543,545],{"id":544},"font-styles","Font Styles",[362,547,548],{},"Typefaces usually come in various styles and weights, such as italic and bold. The following table lists the commands you will need to access typical font shapes:",[550,551,552,568],"table",{},[553,554,555],"thead",{},[556,557,558,562,565],"tr",{},[559,560,561],"th",{},"LaTeX command",[559,563,564],{},"Equivalent switch",[559,566,567],{},"Output style",[569,570,571,587,602,617,632,647,662,677,692,707,719,734],"tbody",{},[556,572,573,579,584],{},[574,575,576],"td",{},[366,577,578],{},"\\textnormal{…}",[574,580,581],{},[366,582,583],{},"{\\normalfont …}",[574,585,586],{},"document font family",[556,588,589,594,599],{},[574,590,591],{},[366,592,593],{},"\\emph{…}",[574,595,596],{},[366,597,598],{},"{\\em …}",[574,600,601],{},"emphasis (typically italics)",[556,603,604,609,614],{},[574,605,606],{},[366,607,608],{},"\\textrm{…}",[574,610,611],{},[366,612,613],{},"{\\rmfamily …}",[574,615,616],{},"roman font family",[556,618,619,624,629],{},[574,620,621],{},[366,622,623],{},"\\textsf{…}",[574,625,626],{},[366,627,628],{},"{\\sffamily …}",[574,630,631],{},"sans serif font family",[556,633,634,639,644],{},[574,635,636],{},[366,637,638],{},"\\texttt{…}",[574,640,641],{},[366,642,643],{},"{\\ttfamily …}",[574,645,646],{},"teletype\u002Fmonospace font",[556,648,649,654,659],{},[574,650,651],{},[366,652,653],{},"\\textup{…}",[574,655,656],{},[366,657,658],{},"{\\upshape …}",[574,660,661],{},"upright shape",[556,663,664,669,674],{},[574,665,666],{},[366,667,668],{},"\\textit{…}",[574,670,671],{},[366,672,673],{},"{\\itshape …}",[574,675,676],{},"italic shape",[556,678,679,684,689],{},[574,680,681],{},[366,682,683],{},"\\textsl{…}",[574,685,686],{},[366,687,688],{},"{\\slshape …}",[574,690,691],{},"slanted shape",[556,693,694,699,704],{},[574,695,696],{},[366,697,698],{},"\\textsc{…}",[574,700,701],{},[366,702,703],{},"{\\scshape …}",[574,705,706],{},"Small Capitals",[556,708,709,714,716],{},[574,710,711],{},[366,712,713],{},"\\uppercase{…}",[574,715],{},[574,717,718],{},"uppercase (all caps)",[556,720,721,726,731],{},[574,722,723],{},[366,724,725],{},"\\textbf{…}",[574,727,728],{},[366,729,730],{},"{\\bfseries …}",[574,732,733],{},"bold",[556,735,736,741,746],{},[574,737,738],{},[366,739,740],{},"\\textmd{…}",[574,742,743],{},[366,744,745],{},"{\\mdseries …}",[574,747,748],{},"medium weight",[362,750,751],{},"Generally, one should prefer the commands over their equivalent switches because the former automatically corrects spacing immediately following the end of the selected style.",[534,753,754],{},[362,755,756,759,760,763,764,767,768,771,772,767,775,778,779,782,783,786],{},[438,757,758],{},"Note:"," Underlining is available via the ",[366,761,762],{},"\\underline{…}"," command, but text underlined in this way will not break properly. Instead, use the ",[366,765,766],{},"\\ul{…}"," command from the ",[366,769,770],{},"soul"," package or ",[366,773,774],{},"\\uline{…}",[366,776,777],{},"ulem"," package. Both packages also provide strikethrough text with ",[366,780,781],{},"\\st{…}"," or ",[366,784,785],{},"\\sout{…}",", respectively.",[357,788,790],{"id":789},"sizing-text","Sizing Text",[792,793,795],"h3",{"id":794},"built-in-sizes","Built-in Sizes",[362,797,798],{},"To scale text relative to the default body text size:",[550,800,801,811],{},[553,802,803],{},[556,804,805,808],{},[559,806,807],{},"Command",[559,809,810],{},"Description",[569,812,813,823,833,843,853,863,873,883,893,903],{},[556,814,815,820],{},[574,816,817],{},[366,818,819],{},"\\tiny",[574,821,822],{},"Very small",[556,824,825,830],{},[574,826,827],{},[366,828,829],{},"\\scriptsize",[574,831,832],{},"Script size",[556,834,835,840],{},[574,836,837],{},[366,838,839],{},"\\footnotesize",[574,841,842],{},"Footnote size",[556,844,845,850],{},[574,846,847],{},[366,848,849],{},"\\small",[574,851,852],{},"Small",[556,854,855,860],{},[574,856,857],{},[366,858,859],{},"\\normalsize",[574,861,862],{},"Normal",[556,864,865,870],{},[574,866,867],{},[366,868,869],{},"\\large",[574,871,872],{},"Large",[556,874,875,880],{},[574,876,877],{},[366,878,879],{},"\\Large",[574,881,882],{},"Larger",[556,884,885,890],{},[574,886,887],{},[366,888,889],{},"\\LARGE",[574,891,892],{},"Even larger",[556,894,895,900],{},[574,896,897],{},[366,898,899],{},"\\huge",[574,901,902],{},"Huge",[556,904,905,910],{},[574,906,907],{},[366,908,909],{},"\\Huge",[574,911,912],{},"Largest",[362,914,915,916,919,920,923],{},"These commands change the size within a given scope. For instance ",[366,917,918],{},"{\\Large some words}"," will change the size of only ",[366,921,922],{},"some words",":",[385,925,927],{"className":387,"code":926,"language":389,"meta":390,"style":390},"{\\Large\\tableofcontents}\n",[366,928,929],{"__ignoreMap":390},[394,930,931],{"class":396,"line":397},[394,932,926],{},[362,934,935,936,938,939,942,943,449],{},"By default, ",[366,937,859],{}," is 10 points, but this can be changed in the ",[366,940,941],{},"\\documentclass"," declaration, e.g. ",[366,944,945],{},"\\documentclass[12pt]{article}",[792,947,949],{"id":948},"arbitrary-sizes","Arbitrary Sizes",[362,951,952,953,955],{},"The ",[366,954,819],{},"...\\Huge` commands are often enough for your needs, but you may occasionally want an arbitrary font size:",[385,957,959],{"className":387,"code":958,"language":389,"meta":390,"style":390},"\\fontsize{5cm}{5.5cm}\\selectfont\n",[366,960,961],{"__ignoreMap":390},[394,962,963],{"class":396,"line":397},[394,964,958],{},[362,966,967],{},"sets the current font size to 5cm with 5.5 centimeter leading.",[534,969,970],{},[362,971,972,974,975,782,978,981,982,782,984,987],{},[438,973,758],{}," If you are using ",[366,976,977],{},"lualatex",[366,979,980],{},"xelatex",", you get automatic scaling. If you use ",[366,983,389],{},[366,985,986],{},"pdflatex",", you may get a warning about unsupported sizes since these engines only support a fixed set of sizes.",[357,989,991],{"id":990},"using-alternative-fonts","Using Alternative Fonts",[792,993,995],{"id":994},"using-ttf-and-otf-fonts","Using TTF and OTF Fonts",[362,997,998,999,782,1001,1003,1004,1007],{},"If you are using ",[366,1000,977],{},[366,1002,980],{},", you can use TTF and OTF fonts with the ",[366,1005,1006],{},"fontspec"," package:",[385,1009,1011],{"className":387,"code":1010,"language":389,"meta":390,"style":390},"\\documentclass{article}\n\n\\usepackage{fontspec}\n\\setmainfont[Ligatures=TeX]{Georgia}\n\\setsansfont[Ligatures=TeX]{Arial}\n\n\\begin{document}\nLorem ipsum...\n\\end{document}\n",[366,1012,1013,1018,1025,1031,1037,1043,1048,1054,1060],{"__ignoreMap":390},[394,1014,1015],{"class":396,"line":397},[394,1016,1017],{},"\\documentclass{article}\n",[394,1019,1021],{"class":396,"line":1020},2,[394,1022,1024],{"emptyLinePlaceholder":1023},true,"\n",[394,1026,1028],{"class":396,"line":1027},3,[394,1029,1030],{},"\\usepackage{fontspec}\n",[394,1032,1034],{"class":396,"line":1033},4,[394,1035,1036],{},"\\setmainfont[Ligatures=TeX]{Georgia}\n",[394,1038,1040],{"class":396,"line":1039},5,[394,1041,1042],{},"\\setsansfont[Ligatures=TeX]{Arial}\n",[394,1044,1046],{"class":396,"line":1045},6,[394,1047,1024],{"emptyLinePlaceholder":1023},[394,1049,1051],{"class":396,"line":1050},7,[394,1052,1053],{},"\\begin{document}\n",[394,1055,1057],{"class":396,"line":1056},8,[394,1058,1059],{},"Lorem ipsum...\n",[394,1061,1063],{"class":396,"line":1062},9,[394,1064,1065],{},"\\end{document}\n",[362,1067,952,1068,1071],{},[366,1069,1070],{},"[Ligatures=TeX]"," option allows you to use the standard TeX ligatures instead of Unicode characters that are unlikely to be on your keyboard.",[1073,1074,1076],"h4",{"id":1075},"selecting-font-files","Selecting Font Files",[362,1078,1079],{},"Different weights and styles of a given typeface are usually stored as separate font files. We can hand-pick weights:",[385,1081,1083],{"className":387,"code":1082,"language":389,"meta":390,"style":390},"\\usepackage{fontspec}\n\\setmainfont[\n    Ligatures=TeX,\n    UprightFont = *-Boo,\n    ItalicFont = *-BooObl,\n    SmallCapsFont = *SC-Boo,\n    BoldFont = *-Dem,\n    BoldItalicFont = *-DemObl\n]{Futura}\n",[366,1084,1085,1089,1094,1099,1104,1109,1114,1119,1124],{"__ignoreMap":390},[394,1086,1087],{"class":396,"line":397},[394,1088,1030],{},[394,1090,1091],{"class":396,"line":1020},[394,1092,1093],{},"\\setmainfont[\n",[394,1095,1096],{"class":396,"line":1027},[394,1097,1098],{},"    Ligatures=TeX,\n",[394,1100,1101],{"class":396,"line":1033},[394,1102,1103],{},"    UprightFont = *-Boo,\n",[394,1105,1106],{"class":396,"line":1039},[394,1107,1108],{},"    ItalicFont = *-BooObl,\n",[394,1110,1111],{"class":396,"line":1045},[394,1112,1113],{},"    SmallCapsFont = *SC-Boo,\n",[394,1115,1116],{"class":396,"line":1050},[394,1117,1118],{},"    BoldFont = *-Dem,\n",[394,1120,1121],{"class":396,"line":1056},[394,1122,1123],{},"    BoldItalicFont = *-DemObl\n",[394,1125,1126],{"class":396,"line":1062},[394,1127,1128],{},"]{Futura}\n",[1073,1130,1132],{"id":1131},"controlling-font-features","Controlling Font Features",[362,1134,1135],{},"The OpenType (OTF) format allows type designers to embed font features that can be turned on and off, such as:",[408,1137,1138,1141,1144,1147,1150],{},[411,1139,1140],{},"Alternate versions of glyphs",[411,1142,1143],{},"Lining and \"oldstyle\" figures",[411,1145,1146],{},"Up to three sets of ligatures: standard, contextual, and historical",[411,1148,1149],{},"Superscript and subscript glyphs",[411,1151,1152],{},"Small caps",[385,1154,1156],{"className":387,"code":1155,"language":389,"meta":390,"style":390},"\\setmainfont[\n    Ligatures=TeX,\n    Numbers={OldStyle, Proportional}\n]{Linux Libertine}\n",[366,1157,1158,1162,1166,1171],{"__ignoreMap":390},[394,1159,1160],{"class":396,"line":397},[394,1161,1093],{},[394,1163,1164],{"class":396,"line":1020},[394,1165,1098],{},[394,1167,1168],{"class":396,"line":1027},[394,1169,1170],{},"    Numbers={OldStyle, Proportional}\n",[394,1172,1173],{"class":396,"line":1033},[394,1174,1175],{},"]{Linux Libertine}\n",[362,1177,1178,1179,923],{},"Features can be turned on and off using ",[366,1180,1181],{},"\\addfontfeatures{...}",[385,1183,1185],{"className":387,"code":1184,"language":389,"meta":390,"style":390},"{\\addfontfeatures{Numbers={Lining, Tabular} }\n    \\begin{tabular}{l r}\n        Widgets: & 25 \\\\\n        Gadgets: & 6 \\\\\n        Whatsits & 24 \\\\\n    \\end{tabular}\n} % Return to previous figure style\n",[366,1186,1187,1192,1197,1202,1207,1212,1217],{"__ignoreMap":390},[394,1188,1189],{"class":396,"line":397},[394,1190,1191],{},"{\\addfontfeatures{Numbers={Lining, Tabular} }\n",[394,1193,1194],{"class":396,"line":1020},[394,1195,1196],{},"    \\begin{tabular}{l r}\n",[394,1198,1199],{"class":396,"line":1027},[394,1200,1201],{},"        Widgets: & 25 \\\\\n",[394,1203,1204],{"class":396,"line":1033},[394,1205,1206],{},"        Gadgets: & 6 \\\\\n",[394,1208,1209],{"class":396,"line":1039},[394,1210,1211],{},"        Whatsits & 24 \\\\\n",[394,1213,1214],{"class":396,"line":1045},[394,1215,1216],{},"    \\end{tabular}\n",[394,1218,1219],{"class":396,"line":1050},[394,1220,1221],{},"} % Return to previous figure style\n",[792,1223,1225],{"id":1224},"changing-fonts-in-latex-and-pdflatex","Changing Fonts in latex and pdflatex",[362,1227,1228],{},"If you are not using one of the Unicode-aware engines, font selection is more complicated. Useful resources include:",[408,1230,1231,1240],{},[411,1232,1233],{},[1234,1235,1239],"a",{"href":1236,"rel":1237},"https:\u002F\u002Ftug.org\u002FFontCatalogue\u002F",[1238],"nofollow","The LaTeX Font Catalogue",[411,1241,1242],{},[1234,1243,1246],{"href":1244,"rel":1245},"http:\u002F\u002Fwww.cl.cam.ac.uk\u002F~rf10\u002Fpstex\u002Flatexcommands.htm",[1238],"LaTeX font commands",[357,1248,1250],{"id":1249},"font-encoding","Font Encoding",[792,1252,1254],{"id":1253},"unicode","Unicode",[362,1256,1257],{},"Today, text is usually represented in computer systems using Unicode. LuaLaTeX and XeLaTeX use these tools to render Unicode-encoded input files into PDF documents.",[792,1259,1261],{"id":1260},"tex-encodings","TeX Encodings",[362,1263,1264,1265,782,1267,1269,1270,1274,1275,1278],{},"The original TeX and LaTeX use a very different scheme. When using ",[366,1266,389],{},[366,1268,986],{},", you must choose an ",[1271,1272,1273],"em",{},"input encoding"," and an ",[1271,1276,1277],{},"output encoding",". The default font encoding is OT1.",[362,1280,1281],{},"To overcome shortcomings of OT1, use T1 encoding:",[385,1283,1285],{"className":387,"code":1284,"language":389,"meta":390,"style":390},"\\usepackage[T1]{fontenc}\n\\usepackage{lmodern}\n",[366,1286,1287,1292],{"__ignoreMap":390},[394,1288,1289],{"class":396,"line":397},[394,1290,1291],{},"\\usepackage[T1]{fontenc}\n",[394,1293,1294],{"class":396,"line":1020},[394,1295,1296],{},"\\usepackage{lmodern}\n",[534,1298,1299],{},[362,1300,1301,1303,1304,782,1307,449],{},[438,1302,540],{}," If after using T1 you find yourself with very low quality fonts, install either ",[366,1305,1306],{},"cm-super",[366,1308,1309],{},"lmodern",[357,1311,1313],{"id":1312},"pdf-fonts-and-properties","PDF Fonts and Properties",[362,1315,1316,1317,1320],{},"PDF documents have the capability to embed font files. Many PDF viewers have a ",[1271,1318,1319],{},"Properties"," feature to list embedded fonts and document metadata.",[362,1322,1323,1324,1327,1328,1331,1332,1335],{},"Many Unix systems make use of the ",[1271,1325,1326],{},"poppler"," tool set which features ",[366,1329,1330],{},"pdfinfo"," to list PDF metadata, and ",[366,1333,1334],{},"pdffonts"," to list embedded fonts.",[1337,1338,1339],"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":390,"searchDepth":1020,"depth":1020,"links":1341},[1342,1343,1344,1345,1349,1353,1357],{"id":359,"depth":1020,"text":360},{"id":428,"depth":1020,"text":429},{"id":544,"depth":1020,"text":545},{"id":789,"depth":1020,"text":790,"children":1346},[1347,1348],{"id":794,"depth":1027,"text":795},{"id":948,"depth":1027,"text":949},{"id":990,"depth":1020,"text":991,"children":1350},[1351,1352],{"id":994,"depth":1027,"text":995},{"id":1224,"depth":1027,"text":1225},{"id":1249,"depth":1020,"text":1250,"children":1354},[1355,1356],{"id":1253,"depth":1027,"text":1254},{"id":1260,"depth":1027,"text":1261},{"id":1312,"depth":1020,"text":1313},"Learn about font families, emphasizing text, font styles, sizing text, and using alternative fonts in LaTeX.","md",null,{},{"title":64,"description":1358},"gfYQsFBDyY6t7WPtOUwr7ai7Lst6Pw5LAyZzUc5u91o",[1365,1367],{"title":60,"path":61,"stem":62,"description":1366,"children":-1},"Learn paragraph alignment, indentation, line spacing, manual breaks, and special paragraph environments in LaTeX.",{"title":68,"path":69,"stem":70,"description":1368,"children":-1},"Learn how to add colors to text, backgrounds, and define custom colors in LaTeX using the xcolor package.",1785155505678]