[{"data":1,"prerenderedAt":2005},["ShallowReactive",2],{"navigation_docs":3,"-page-design-customizing-page-headers-and-footers":351,"-page-design-customizing-page-headers-and-footers-surround":2000},[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":94,"body":353,"description":1994,"extension":1995,"links":1996,"meta":1997,"navigation":1165,"path":95,"seo":1998,"stem":96,"__hash__":1999},"docs\u002F04.page-design\u002F02.customizing-page-headers-and-footers.md",{"type":354,"value":355,"toc":1983},"minimark",[356,360,365,377,437,448,471,474,552,561,576,596,605,608,611,626,629,634,668,693,728,731,745,751,765,768,789,792,799,805,832,837,846,852,857,877,897,924,937,946,949,1013,1020,1046,1058,1065,1074,1077,1081,1084,1101,1108,1139,1142,1152,1194,1200,1204,1214,1249,1255,1275,1278,1366,1372,1456,1460,1467,1535,1538,1541,1544,1547,1551,1624,1633,1637,1718,1722,1725,1826,1837,1844,1864,1873,1877,1886,1889,1914,1921,1924,1979],[357,358,359],"p",{},"Page styles in LaTeX terms refers not to page dimensions, but to the running headers and footers of a document. These headers typically contain document titles, chapter or section numbers\u002Fnames, and page numbers.",[361,362,364],"h2",{"id":363},"standard-page-styles","Standard page styles",[357,366,367,368,372,373,376],{},"The possibilities of changing the headers in plain LaTeX are actually quite limited. There are two commands available: ",[369,370,371],"code",{},"\\pagestyle{*style*}"," will apply the specified style to the current and all subsequent pages, and ",[369,374,375],{},"\\thispagestyle{*style*}"," will only affect the current page. The possible styles are:",[378,379,380,393],"table",{},[381,382,383],"thead",{},[384,385,386,390],"tr",{},[387,388,389],"th",{},"Style",[387,391,392],{},"Description",[394,395,396,407,417,427],"tbody",{},[384,397,398,404],{},[399,400,401],"td",{},[369,402,403],{},"empty",[399,405,406],{},"Both header and footer are cleared",[384,408,409,414],{},[399,410,411],{},[369,412,413],{},"plain",[399,415,416],{},"Header is clear, but the footer contains the page number in the center.",[384,418,419,424],{},[399,420,421],{},[369,422,423],{},"headings",[399,425,426],{},"Footer is blank, header displays information according to document class (e.g., section name) and page number top right.",[384,428,429,434],{},[399,430,431],{},[369,432,433],{},"myheadings",[399,435,436],{},"Page number is top right, and it is possible to control the rest of the header.",[357,438,439,440,443,444,447],{},"The commands ",[369,441,442],{},"\\markright","  and ",[369,445,446],{},"\\markboth"," can be used to set the content of the headings by hand. The following commands placed at the beginning of an article document will set the header of all pages (one-sided)  to contain \"John Smith\" top left, \"On page styles\" centered and the page number top right:",[449,450,455],"pre",{"className":451,"code":452,"language":453,"meta":454,"style":454},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\pagestyle{myheadings}\n\\markright{John Smith\\hfill On page styles\\hfill}\n","latex","",[369,456,457,465],{"__ignoreMap":454},[458,459,462],"span",{"class":460,"line":461},"line",1,[458,463,464],{},"\\pagestyle{myheadings}\n",[458,466,468],{"class":460,"line":467},2,[458,469,470],{},"\\markright{John Smith\\hfill On page styles\\hfill}\n",[357,472,473],{},"There are special commands containing details on the running page of the document.",[378,475,476,485],{},[381,477,478],{},[384,479,480,483],{},[387,481,482],{},"Command",[387,484,392],{},[394,486,487,497,507,517,532,542],{},[384,488,489,494],{},[399,490,491],{},[369,492,493],{},"\\thepage",[399,495,496],{},"number of the current page",[384,498,499,504],{},[399,500,501],{},[369,502,503],{},"\\leftmark",[399,505,506],{},"current chapter name printed like \"CHAPTER 3. THIS IS THE CHAPTER TITLE\"",[384,508,509,514],{},[399,510,511],{},[369,512,513],{},"\\rightmark",[399,515,516],{},"current section name printed like \"1.6. THIS IS THE SECTION TITLE\"",[384,518,519,524],{},[399,520,521],{},[369,522,523],{},"\\chaptername",[399,525,526,527,531],{},"the name ",[528,529,530],"em",{},"chapter"," in the current language. If this is English, it will display \"Chapter\"",[384,533,534,539],{},[399,535,536],{},[369,537,538],{},"\\thechapter",[399,540,541],{},"current chapter number",[384,543,544,549],{},[399,545,546],{},[369,547,548],{},"\\thesection",[399,550,551],{},"current section number",[357,553,554,555,557,558,560],{},"Note that ",[369,556,503],{}," and ",[369,559,513],{}," convert the names to uppercase, whichever was the formatting of the text. If you want them to print the actual name of the chapter without converting it to uppercase use the following command:",[449,562,564],{"className":451,"code":563,"language":453,"meta":454,"style":454},"\\renewcommand{\\chaptermark}[1]{ \\markboth{#1}{} }\n\\renewcommand{\\sectionmark}[1]{ \\markright{#1}{} }\n",[369,565,566,571],{"__ignoreMap":454},[458,567,568],{"class":460,"line":461},[458,569,570],{},"\\renewcommand{\\chaptermark}[1]{ \\markboth{#1}{} }\n",[458,572,573],{"class":460,"line":467},[458,574,575],{},"\\renewcommand{\\sectionmark}[1]{ \\markright{#1}{} }\n",[357,577,578,579,557,581,583,584,587,588,591,592,595],{},"Now ",[369,580,503],{},[369,582,513],{}," will just print the name of the chapter and section, without number and without affecting the formatting. Note that these redefinitions must be inserted ",[528,585,586],{},"after"," the first call of ",[369,589,590],{},"\\pagestyle{fancy}",".  The standard book formatting of the ",[369,593,594],{},"\\chaptermark"," is:",[449,597,599],{"className":451,"code":598,"language":453,"meta":454,"style":454},"\\renewcommand{\\chaptermark}[1]{\\markboth{\\MakeUppercase{\\chaptername\\ \\thechapter.\\ #1}}{}}\n",[369,600,601],{"__ignoreMap":454},[458,602,603],{"class":460,"line":461},[458,604,598],{},[357,606,607],{},"Watch out: if you provide long text in two different \"parts\" only in the footer or only in the header, you might see overlapping text.",[357,609,610],{},"Moreover, with the following commands you can define the thickness of the decorative lines on both the header and the footer:",[449,612,614],{"className":451,"code":613,"language":453,"meta":454,"style":454},"\\renewcommand{\\headrulewidth}{0.5pt}\n\\renewcommand{\\footrulewidth}{0pt}\n",[369,615,616,621],{"__ignoreMap":454},[458,617,618],{"class":460,"line":461},[458,619,620],{},"\\renewcommand{\\headrulewidth}{0.5pt}\n",[458,622,623],{"class":460,"line":467},[458,624,625],{},"\\renewcommand{\\footrulewidth}{0pt}\n",[357,627,628],{},"The first line for the header, the second for the footer. Setting it to zero means that there will be no line.",[630,631,633],"h3",{"id":632},"plain-pages-issue","Plain pages issue",[357,635,636,637,640,641,644,645,648,649,652,653,656,657,660,661,663,664,667],{},"An issue to look out for is that the major sectioning commands (",[369,638,639],{},"\\part",", ",[369,642,643],{},"\\chapter"," or ",[369,646,647],{},"\\maketitle",") specify a ",[369,650,651],{},"\\thispagestyle{plain}",". So, if you wish to suppress all styles by inserting a ",[369,654,655],{},"\\pagestyle{empty}"," at the beginning of your document, then the style command at each section will override your initial rule, for those pages only. To achieve the intended result one can follow the new section commands with ",[369,658,659],{},"\\thispagestyle{empty}",". The ",[369,662,639],{}," command, however, cannot be fixed this way, because it sets the page style, but also advances to the next page, so that ",[369,665,666],{},"\\thispagestyle{}"," cannot be applied to that page. Two solutions:",[669,670,671,686],"ul",{},[672,673,674,675,678,679,682,683,685],"li",{},"simply write ",[369,676,677],{},"\\usepackage{nopageno}"," in the preamble. This package will make ",[369,680,681],{},"\\pagestyle{plain}"," have the same effect as ",[369,684,655],{},", effectively suppressing page numbering when it is used.",[672,687,688,689,692],{},"Use ",[369,690,691],{},"fancyhdr"," as described below.",[357,694,695,696,557,698,700,701,703,704,557,706,708,709,640,711,714,715,718,719,557,721,723,724,727],{},"The tricky problem when customizing headers and footers is to get things like running section and chapter names in there. Standard LaTeX accomplishes this with a two-stage approach. In the header and footer definition, you use the commands ",[369,697,513],{},[369,699,503],{}," to represent the current section and chapter heading, respectively. The values of these two commands are overwritten whenever a chapter or section command is processed. For ultimate flexibility, the ",[369,702,643],{}," command and its friends do not redefine ",[369,705,513],{},[369,707,503],{}," themselves. They call yet another command (",[369,710,594],{},[369,712,713],{},"\\sectionmark",", or ",[369,716,717],{},"\\subsectionmark",") that is responsible for redefining ",[369,720,513],{},[369,722,503],{},", except if they are starred -- in such a case, ",[369,725,726],{},"\\markboth{Chapter\u002FSection name}{}"," must be used inside the sectioning command if header and footer lines are to be updated.",[357,729,730],{},"Again, several packages provide a solution:",[669,732,733,740],{},[672,734,735,736,739],{},"an alternative one-stage mechanism is provided by the package ",[369,737,738],{},"titleps",");",[672,741,742,744],{},[369,743,691],{}," will handle the process its own way.",[630,746,748,749],{"id":747},"customizing-with-fancyhdr","Customizing with ",[528,750,691],{},[357,752,753,754,756,757,764],{},"To get better control over the headers, one can use the package ",[369,755,691],{}," written by\nPiet van Oostrum. It provides several commands that allow you to customize the header and footer lines of\nyour document. For a more complete guide, the author of the package produced this ",[758,759,763],"a",{"href":760,"rel":761},"http:\u002F\u002Fwww.ctan.org\u002Ftex-archive\u002Fmacros\u002Flatex\u002Fcontrib\u002Ffancyhdr\u002Ffancyhdr.pdf",[762],"nofollow","documentation",".",[357,766,767],{},"To begin, add the following lines to your preamble:",[449,769,771],{"className":451,"code":770,"language":453,"meta":454,"style":454},"\\usepackage{fancyhdr}\n\\setlength{\\headheight}{15.2pt}\n\\pagestyle{fancy}\n",[369,772,773,778,783],{"__ignoreMap":454},[458,774,775],{"class":460,"line":461},[458,776,777],{},"\\usepackage{fancyhdr}\n",[458,779,780],{"class":460,"line":467},[458,781,782],{},"\\setlength{\\headheight}{15.2pt}\n",[458,784,786],{"class":460,"line":785},3,[458,787,788],{},"\\pagestyle{fancy}\n",[357,790,791],{},"You can now observe a new style in your document.",[357,793,794,795,798],{},"The ",[369,796,797],{},"\\headheight"," needs to be 13.6pt or more, otherwise you will get a warning and possibly formatting issues. Both the header and footer comprise three elements each according to its horizontal position (left, centre or right).",[357,800,801,802,804],{},"The styles supported by ",[369,803,691],{},":",[669,806,807,810,820],{},[672,808,809],{},"the four LaTeX styles;",[672,811,812,815,816,819],{},[369,813,814],{},"fancy"," defines a new header for all pages but ",[528,817,818],{},"plain-style"," pages such as chapters and titlepage;",[672,821,822,825,826,557,828,831],{},[369,823,824],{},"fancyplain"," is the same, but for absolutely all pages (this page style is deprecated, for new documents a combination of ",[369,827,814],{},[369,829,830],{},"\\fancypagestyle"," should be used instead, see section 26 of the manual).",[833,834,836],"h4",{"id":835},"style-customization","Style customization",[357,838,839,840,842,843,845],{},"The styles can be customized with ",[369,841,691],{}," specific commands.\nThose two styles may be configured directly, whereas for LaTeX styles you need to make a call to the ",[369,844,830],{}," command.",[357,847,848,849,851],{},"To set header and footer style, ",[369,850,691],{}," provides three interfaces. They all provide the same features, you just use them differently. Choose the one you like most.",[669,853,854],{},[672,855,856],{},"You can use the following six commands (these commands are deprecated, use the new ones defined below).",[449,858,860],{"className":451,"code":859,"language":453,"meta":454,"style":454},"\\lhead[\u003Ceven output>]{\u003Codd output>}\n\\chead[\u003Ceven output>]{\u003Codd output>}\n\\rhead[\u003Ceven output>]{\u003Codd output>}\n",[369,861,862,867,872],{"__ignoreMap":454},[458,863,864],{"class":460,"line":461},[458,865,866],{},"\\lhead[\u003Ceven output>]{\u003Codd output>}\n",[458,868,869],{"class":460,"line":467},[458,870,871],{},"\\chead[\u003Ceven output>]{\u003Codd output>}\n",[458,873,874],{"class":460,"line":785},[458,875,876],{},"\\rhead[\u003Ceven output>]{\u003Codd output>}\n",[449,878,880],{"className":451,"code":879,"language":453,"meta":454,"style":454},"\\lfoot[\u003Ceven output>]{\u003Codd output>}\n\\cfoot[\u003Ceven output>]{\u003Codd output>}\n\\rfoot[\u003Ceven output>]{\u003Codd output>}\n",[369,881,882,887,892],{"__ignoreMap":454},[458,883,884],{"class":460,"line":461},[458,885,886],{},"\\lfoot[\u003Ceven output>]{\u003Codd output>}\n",[458,888,889],{"class":460,"line":467},[458,890,891],{},"\\cfoot[\u003Ceven output>]{\u003Codd output>}\n",[458,893,894],{"class":460,"line":785},[458,895,896],{},"\\rfoot[\u003Ceven output>]{\u003Codd output>}\n",[357,898,899,900,903,904,640,907,557,910,913,914,917,918,920,921,923],{},"Hopefully, the behaviour of the above commands is fairly intuitive: if it has ",[528,901,902],{},"head"," in it, it affects the head etc, and obviously, ",[528,905,906],{},"l",[528,908,909],{},"c",[528,911,912],{},"r"," means ",[915,916,906],"strong",{},"eft, ",[915,919,909],{},"entre and ",[915,922,912],{},"ight respectively.",[669,925,926],{},[672,927,928,929,932,933,936],{},"You can also use the command ",[369,930,931],{},"\\fancyhead"," for header and ",[369,934,935],{},"\\fancyfoot"," for footer. They work in the same way, so we'll explain only the first one. The syntax is:",[449,938,940],{"className":451,"code":939,"language":453,"meta":454,"style":454},"\\fancyhead[selectors]{output you want}\n",[369,941,942],{"__ignoreMap":454},[458,943,944],{"class":460,"line":461},[458,945,939],{},[357,947,948],{},"You can use multiple selectors optionally separated by a comma. The selectors are the following:",[378,950,951,961],{},[381,952,953],{},[384,954,955,958],{},[387,956,957],{},"Selector",[387,959,960],{},"Meaning",[394,962,963,973,983,993,1003],{},[384,964,965,970],{},[399,966,967],{},[369,968,969],{},"E",[399,971,972],{},"even page",[384,974,975,980],{},[399,976,977],{},[369,978,979],{},"O",[399,981,982],{},"odd page",[384,984,985,990],{},[399,986,987],{},[369,988,989],{},"L",[399,991,992],{},"left side",[384,994,995,1000],{},[399,996,997],{},[369,998,999],{},"C",[399,1001,1002],{},"centered",[384,1004,1005,1010],{},[399,1006,1007],{},[369,1008,1009],{},"R",[399,1011,1012],{},"right side",[357,1014,1015,1016,1019],{},"so ",[369,1017,1018],{},"CE,RO"," will refer to the center of the even pages and to the right side of the odd pages.",[669,1021,1022],{},[672,1023,1024,1027,1028,557,1030,1032,1033,557,1036,1039,1040,1042,1043,1045],{},[369,1025,1026],{},"\\fancyhf"," is a merge of ",[369,1029,931],{},[369,1031,935],{},", hence the name. There are two additional selectors ",[369,1034,1035],{},"H",[369,1037,1038],{},"F"," to specify the header or the footer, respectively. If you omit the ",[369,1041,1035],{}," and the ",[369,1044,1038],{},", it will set the fields for both.",[357,1047,1048,1049,557,1051,1053,1054,1057],{},"These commands will only work for ",[369,1050,814],{},[369,1052,824],{},". To customize LaTeX default style you need the ",[369,1055,1056],{},"\\fancyplainstyle"," command. See below for examples.",[357,1059,1060,1061,1064],{},"For a clean customization, we recommend you start from scratch. To do so you should ",[528,1062,1063],{},"erase"," the current pagestyle.  Providing empty values will make the field blank. So",[449,1066,1068],{"className":451,"code":1067,"language":453,"meta":454,"style":454},"\\fancyhf{}\n",[369,1069,1070],{"__ignoreMap":454},[458,1071,1072],{"class":460,"line":461},[458,1073,1067],{},[357,1075,1076],{},"will just delete the current heading\u002Ffooter configuration, so you can make your own.",[833,1078,1080],{"id":1079},"plain-pages","Plain pages",[357,1082,1083],{},"There are two ways to change the style of plain pages like chapters and titlepage.",[357,1085,1086,1087,1089,1090,1093,1094,1096,1097,1100],{},"First you can use the ",[369,1088,824],{}," style. If you do so, you can use the command ",[369,1091,1092],{},"\\fancyplain{...}{...}"," inside ",[369,1095,691],{}," commands like ",[369,1098,1099],{},"\\lhead{...}",", etc.",[357,1102,1103,1104,1107],{},"When LaTeX wants to create a page with an empty style, it will insert the first argument of ",[369,1105,1106],{},"\\fancyplain",", in all the other cases it will use the second argument. For instance:",[449,1109,1111],{"className":451,"code":1110,"language":453,"meta":454,"style":454},"\\pagestyle{fancyplain}\n\\fancyhf{}\n\\lhead{ \\fancyplain{}{Author Name} }\n\\rhead{ \\fancyplain{}{\\today} }\n\\rfoot{ \\fancyplain{}{\\thepage} }\n",[369,1112,1113,1118,1122,1127,1133],{"__ignoreMap":454},[458,1114,1115],{"class":460,"line":461},[458,1116,1117],{},"\\pagestyle{fancyplain}\n",[458,1119,1120],{"class":460,"line":467},[458,1121,1067],{},[458,1123,1124],{"class":460,"line":785},[458,1125,1126],{},"\\lhead{ \\fancyplain{}{Author Name} }\n",[458,1128,1130],{"class":460,"line":1129},4,[458,1131,1132],{},"\\rhead{ \\fancyplain{}{\\today} }\n",[458,1134,1136],{"class":460,"line":1135},5,[458,1137,1138],{},"\\rfoot{ \\fancyplain{}{\\thepage} }\n",[357,1140,1141],{},"It has the same behavior of the previous code, but you will get empty header and footer in the title and at the beginning of chapters.",[357,1143,1144,1145,1147,1148,1151],{},"Alternatively you could redefine the ",[528,1146,413],{}," style, for example to have a really plain page when you want. The command to use is ",[369,1149,1150],{},"\\fancypagestyle{plain}{...}"," and the argument can contain all the commands explained before. An example is the following:",[449,1153,1155],{"className":451,"code":1154,"language":453,"meta":454,"style":454},"\\pagestyle{fancy}\n\n\\fancypagestyle{plain}{ %\n  \\fancyhf{} % remove everything\n  \\renewcommand{\\headrulewidth}{0pt} % remove lines as well\n  \\renewcommand{\\footrulewidth}{0pt}\n}\n",[369,1156,1157,1161,1167,1172,1177,1182,1188],{"__ignoreMap":454},[458,1158,1159],{"class":460,"line":461},[458,1160,788],{},[458,1162,1163],{"class":460,"line":467},[458,1164,1166],{"emptyLinePlaceholder":1165},true,"\n",[458,1168,1169],{"class":460,"line":785},[458,1170,1171],{},"\\fancypagestyle{plain}{ %\n",[458,1173,1174],{"class":460,"line":1129},[458,1175,1176],{},"  \\fancyhf{} % remove everything\n",[458,1178,1179],{"class":460,"line":1135},[458,1180,1181],{},"  \\renewcommand{\\headrulewidth}{0pt} % remove lines as well\n",[458,1183,1185],{"class":460,"line":1184},6,[458,1186,1187],{},"  \\renewcommand{\\footrulewidth}{0pt}\n",[458,1189,1191],{"class":460,"line":1190},7,[458,1192,1193],{},"}\n",[357,1195,1196,1197,1199],{},"In that case you can use any style but ",[369,1198,824],{}," because it would override your redefinition.",[833,1201,1203],{"id":1202},"examples","Examples",[357,1205,1206,1207,557,1210,1213],{},"For two-sided, it's common to mirror the style of opposite pages, you tend to think in terms of ",[528,1208,1209],{},"inner",[528,1211,1212],{},"outer",". So, the same example as above for two-sided is:",[449,1215,1217],{"className":451,"code":1216,"language":453,"meta":454,"style":454},"\\lhead[Author Name]{}\n\\rhead[]{Author Name}\n\\lhead[]{\\today}\n\\rhead[\\today]{}\n\\lfoot[\\thepage]{}\n\\rfoot[]{\\thepage}\n",[369,1218,1219,1224,1229,1234,1239,1244],{"__ignoreMap":454},[458,1220,1221],{"class":460,"line":461},[458,1222,1223],{},"\\lhead[Author Name]{}\n",[458,1225,1226],{"class":460,"line":467},[458,1227,1228],{},"\\rhead[]{Author Name}\n",[458,1230,1231],{"class":460,"line":785},[458,1232,1233],{},"\\lhead[]{\\today}\n",[458,1235,1236],{"class":460,"line":1129},[458,1237,1238],{},"\\rhead[\\today]{}\n",[458,1240,1241],{"class":460,"line":1135},[458,1242,1243],{},"\\lfoot[\\thepage]{}\n",[458,1245,1246],{"class":460,"line":1184},[458,1247,1248],{},"\\rfoot[]{\\thepage}\n",[357,1250,1251,1252,1254],{},"This is effectively saying author name is top outer, today's date is top inner, and current page number is bottom outer. Using ",[369,1253,1026],{}," can make it shorter:",[449,1256,1258],{"className":451,"code":1257,"language":453,"meta":454,"style":454},"\\fancyhf[HLE,HRO]{Author's Name}\n\\fancyhf[HRE,HLO]{\\today}\n\\fancyhf[FLE,FRO]{\\thepage}\n",[369,1259,1260,1265,1270],{"__ignoreMap":454},[458,1261,1262],{"class":460,"line":461},[458,1263,1264],{},"\\fancyhf[HLE,HRO]{Author's Name}\n",[458,1266,1267],{"class":460,"line":467},[458,1268,1269],{},"\\fancyhf[HRE,HLO]{\\today}\n",[458,1271,1272],{"class":460,"line":785},[458,1273,1274],{},"\\fancyhf[FLE,FRO]{\\thepage}\n",[357,1276,1277],{},"Here is the complete code of a possible style you could use for a two-sided document:",[449,1279,1281],{"className":451,"code":1280,"language":453,"meta":454,"style":454},"\\usepackage{fancyhdr}\n\\setlength{\\headheight}{15pt}\n\n\\pagestyle{fancy}\n\\renewcommand{\\chaptermark}[1]{ \\markboth{#1}{} }\n\\renewcommand{\\sectionmark}[1]{ \\markright{#1} }\n\n\\fancyhf{}\n\\fancyhead[LE,RO]{\\thepage}\n\\fancyhead[RE]{\\textit{ \\nouppercase{\\leftmark}} }\n\\fancyhead[LO]{\\textit{ \\nouppercase{\\rightmark}} }\n\n\\fancypagestyle{plain}{ %\n  \\fancyhf{} % remove everything\n  \\renewcommand{\\headrulewidth}{0pt} % remove lines as well\n  \\renewcommand{\\footrulewidth}{0pt}\n}\n",[369,1282,1283,1287,1292,1296,1300,1304,1309,1313,1318,1324,1330,1336,1341,1346,1351,1356,1361],{"__ignoreMap":454},[458,1284,1285],{"class":460,"line":461},[458,1286,777],{},[458,1288,1289],{"class":460,"line":467},[458,1290,1291],{},"\\setlength{\\headheight}{15pt}\n",[458,1293,1294],{"class":460,"line":785},[458,1295,1166],{"emptyLinePlaceholder":1165},[458,1297,1298],{"class":460,"line":1129},[458,1299,788],{},[458,1301,1302],{"class":460,"line":1135},[458,1303,570],{},[458,1305,1306],{"class":460,"line":1184},[458,1307,1308],{},"\\renewcommand{\\sectionmark}[1]{ \\markright{#1} }\n",[458,1310,1311],{"class":460,"line":1190},[458,1312,1166],{"emptyLinePlaceholder":1165},[458,1314,1316],{"class":460,"line":1315},8,[458,1317,1067],{},[458,1319,1321],{"class":460,"line":1320},9,[458,1322,1323],{},"\\fancyhead[LE,RO]{\\thepage}\n",[458,1325,1327],{"class":460,"line":1326},10,[458,1328,1329],{},"\\fancyhead[RE]{\\textit{ \\nouppercase{\\leftmark}} }\n",[458,1331,1333],{"class":460,"line":1332},11,[458,1334,1335],{},"\\fancyhead[LO]{\\textit{ \\nouppercase{\\rightmark}} }\n",[458,1337,1339],{"class":460,"line":1338},12,[458,1340,1166],{"emptyLinePlaceholder":1165},[458,1342,1344],{"class":460,"line":1343},13,[458,1345,1171],{},[458,1347,1349],{"class":460,"line":1348},14,[458,1350,1176],{},[458,1352,1354],{"class":460,"line":1353},15,[458,1355,1181],{},[458,1357,1359],{"class":460,"line":1358},16,[458,1360,1187],{},[458,1362,1364],{"class":460,"line":1363},17,[458,1365,1193],{},[357,1367,1368,1369,1371],{},"Using ",[369,1370,830],{}," one can additionally define multiple styles for one's document that are easy to switch between. Here's a somewhat complicated example for a two-sided book style:",[449,1373,1375],{"className":451,"code":1374,"language":453,"meta":454,"style":454},"\\fancypagestyle{fancybook}{%\n    \\fancyhf{}%\n    % Note the ## here. It's required because \\fancypagestyle is making a macro (\\ps@fancybook).\n    % If we just wrote #1, TeX would think that it's the argument to \\ps@fancybook, but\n    % \\ps@fancybook doesn't take any arguments, so TeX would complain with an error message.\n    % You are not expected to understand this.\n    \\renewcommand*{\\sectionmark}[1]{ \\markright{\\thesection\\ ##1} }%\n    \\renewcommand*{\\chaptermark}[1]{ \\markboth{\\chaptername\\ \\thechapter: ##1}{} }%\n    % Increase the length of the header such that the folios \n    % (typography jargon for page numbers) move into the margin\n    \\fancyhfoffset[LE]{6mm}% slightly less than 0.25in\n    \\fancyhfoffset[RO]{6mm}%\n    % Put some space and a vertical bar between the folio and the rest of the header\n    \\fancyhead[LE]{\\thepage\\hskip3mm\\vrule\\hskip3mm\\leftmark}%\n    \\fancyhead[RO]{\\rightmark\\hskip3mm\\vrule\\hskip3mm\\thepage}%\n}\n",[369,1376,1377,1382,1387,1392,1397,1402,1407,1412,1417,1422,1427,1432,1437,1442,1447,1452],{"__ignoreMap":454},[458,1378,1379],{"class":460,"line":461},[458,1380,1381],{},"\\fancypagestyle{fancybook}{%\n",[458,1383,1384],{"class":460,"line":467},[458,1385,1386],{},"    \\fancyhf{}%\n",[458,1388,1389],{"class":460,"line":785},[458,1390,1391],{},"    % Note the ## here. It's required because \\fancypagestyle is making a macro (\\ps@fancybook).\n",[458,1393,1394],{"class":460,"line":1129},[458,1395,1396],{},"    % If we just wrote #1, TeX would think that it's the argument to \\ps@fancybook, but\n",[458,1398,1399],{"class":460,"line":1135},[458,1400,1401],{},"    % \\ps@fancybook doesn't take any arguments, so TeX would complain with an error message.\n",[458,1403,1404],{"class":460,"line":1184},[458,1405,1406],{},"    % You are not expected to understand this.\n",[458,1408,1409],{"class":460,"line":1190},[458,1410,1411],{},"    \\renewcommand*{\\sectionmark}[1]{ \\markright{\\thesection\\ ##1} }%\n",[458,1413,1414],{"class":460,"line":1315},[458,1415,1416],{},"    \\renewcommand*{\\chaptermark}[1]{ \\markboth{\\chaptername\\ \\thechapter: ##1}{} }%\n",[458,1418,1419],{"class":460,"line":1320},[458,1420,1421],{},"    % Increase the length of the header such that the folios \n",[458,1423,1424],{"class":460,"line":1326},[458,1425,1426],{},"    % (typography jargon for page numbers) move into the margin\n",[458,1428,1429],{"class":460,"line":1332},[458,1430,1431],{},"    \\fancyhfoffset[LE]{6mm}% slightly less than 0.25in\n",[458,1433,1434],{"class":460,"line":1338},[458,1435,1436],{},"    \\fancyhfoffset[RO]{6mm}%\n",[458,1438,1439],{"class":460,"line":1343},[458,1440,1441],{},"    % Put some space and a vertical bar between the folio and the rest of the header\n",[458,1443,1444],{"class":460,"line":1348},[458,1445,1446],{},"    \\fancyhead[LE]{\\thepage\\hskip3mm\\vrule\\hskip3mm\\leftmark}%\n",[458,1448,1449],{"class":460,"line":1353},[458,1450,1451],{},"    \\fancyhead[RO]{\\rightmark\\hskip3mm\\vrule\\hskip3mm\\thepage}%\n",[458,1453,1454],{"class":460,"line":1358},[458,1455,1193],{},[630,1457,1459],{"id":1458},"customizing-with-scrlayer-scrpage","Customizing with scrlayer-scrpage",[357,1461,1462,1463,1466],{},"Package ",[369,1464,1465],{},"scrlayer-scrpage"," is part of the KOMA-script\nbundle. Using this package to customize the headers and footers\nis recommended with every KOMA-script class. The package can be\nused with the standard classes as well.",[449,1468,1470],{"className":451,"code":1469,"language":453,"meta":454,"style":454},"\\documentclass{book}\n\\usepackage{scrlayer-scrpage}\n\\usepackage{mwe}\n\\begin{document}\n\\chapter{Manta Ray}\n\\blindtext\n\\section{Taxonomy}\n\\blindtext[10]\n\\chapter{Mobula}\n\\blindtext\n\\section{Life style}\n\\blindtext[10]\n\\end{document}\n",[369,1471,1472,1477,1482,1487,1492,1497,1502,1507,1512,1517,1521,1526,1530],{"__ignoreMap":454},[458,1473,1474],{"class":460,"line":461},[458,1475,1476],{},"\\documentclass{book}\n",[458,1478,1479],{"class":460,"line":467},[458,1480,1481],{},"\\usepackage{scrlayer-scrpage}\n",[458,1483,1484],{"class":460,"line":785},[458,1485,1486],{},"\\usepackage{mwe}\n",[458,1488,1489],{"class":460,"line":1129},[458,1490,1491],{},"\\begin{document}\n",[458,1493,1494],{"class":460,"line":1135},[458,1495,1496],{},"\\chapter{Manta Ray}\n",[458,1498,1499],{"class":460,"line":1184},[458,1500,1501],{},"\\blindtext\n",[458,1503,1504],{"class":460,"line":1190},[458,1505,1506],{},"\\section{Taxonomy}\n",[458,1508,1509],{"class":460,"line":1315},[458,1510,1511],{},"\\blindtext[10]\n",[458,1513,1514],{"class":460,"line":1320},[458,1515,1516],{},"\\chapter{Mobula}\n",[458,1518,1519],{"class":460,"line":1326},[458,1520,1501],{},[458,1522,1523],{"class":460,"line":1332},[458,1524,1525],{},"\\section{Life style}\n",[458,1527,1528],{"class":460,"line":1338},[458,1529,1511],{},[458,1531,1532],{"class":460,"line":1343},[458,1533,1534],{},"\\end{document}\n",[357,1536,1537],{},"Just loading the package doesn't change the default behavior.\nChapter titles are on left hand pages, the section titles on\nright hand pages. The page number appears in the outer head.",[357,1539,1540],{},"Now, what can we do to customize the headers and footers?",[357,1542,1543],{},"We can use the commands that are available with the package, they\nare described in more detail in the package documentation.",[357,1545,1546],{},"Following a few examples that may be needed in real documents.",[833,1548,1550],{"id":1549},"how-can-one-move-the-page-number-to-the-center-of-the-footer-and-remove-the-capitalization-of-the-header","How can one move the page number to the center of the footer and remove the capitalization of the header?",[449,1552,1554],{"className":451,"code":1553,"language":453,"meta":454,"style":454},"\\documentclass{book}\n\\usepackage{mwe}\n\\usepackage[markcase=noupper% remove the uppercasing\n]{scrlayer-scrpage}\n\\ohead{}% clear the outer head\n\\cfoot*{\\pagemark}% the pagenumber in the center of the foot, also on plain pages\n\\begin{document}\n\\chapter{Manta Ray}\n\\blindtext\n\\section{Taxonomy}\n\\blindtext[10]\n\\chapter{Mobula}\n\\blindtext\n\\section{Life style}\n\\blindtext[10]\n\\end{document}\n",[369,1555,1556,1560,1564,1569,1574,1579,1584,1588,1592,1596,1600,1604,1608,1612,1616,1620],{"__ignoreMap":454},[458,1557,1558],{"class":460,"line":461},[458,1559,1476],{},[458,1561,1562],{"class":460,"line":467},[458,1563,1486],{},[458,1565,1566],{"class":460,"line":785},[458,1567,1568],{},"\\usepackage[markcase=noupper% remove the uppercasing\n",[458,1570,1571],{"class":460,"line":1129},[458,1572,1573],{},"]{scrlayer-scrpage}\n",[458,1575,1576],{"class":460,"line":1135},[458,1577,1578],{},"\\ohead{}% clear the outer head\n",[458,1580,1581],{"class":460,"line":1184},[458,1582,1583],{},"\\cfoot*{\\pagemark}% the pagenumber in the center of the foot, also on plain pages\n",[458,1585,1586],{"class":460,"line":1190},[458,1587,1491],{},[458,1589,1590],{"class":460,"line":1315},[458,1591,1496],{},[458,1593,1594],{"class":460,"line":1320},[458,1595,1501],{},[458,1597,1598],{"class":460,"line":1326},[458,1599,1506],{},[458,1601,1602],{"class":460,"line":1332},[458,1603,1511],{},[458,1605,1606],{"class":460,"line":1338},[458,1607,1516],{},[458,1609,1610],{"class":460,"line":1343},[458,1611,1501],{},[458,1613,1614],{"class":460,"line":1348},[458,1615,1525],{},[458,1617,1618],{"class":460,"line":1353},[458,1619,1511],{},[458,1621,1622],{"class":460,"line":1358},[458,1623,1534],{},[357,1625,1626,1627,1629,1630,1632],{},"Both, header and footer are separated in an inner, center, and\nouter part, which can be set independently. The asterisk defines\nthe same content to be on ",[369,1628,413],{}," pages as well.\nUsually, pages on which a chapter starts, use the\n",[369,1631,413],{}," style.",[833,1634,1636],{"id":1635},"how-can-i-have-my-name-and-title-of-my-thesis-in-the-inner-foot","How can I have my name and title of my thesis in the inner foot?",[449,1638,1640],{"className":451,"code":1639,"language":453,"meta":454,"style":454},"\\documentclass{book}\n\\usepackage{mwe}\n\\usepackage[markcase=noupper% remove the uppercasing\n]{scrlayer-scrpage}\n\\ohead{}% clear the outer head\n\\ofoot*{\\pagemark}% the pagenumber in the outer part of the foot, also on plain pages\n\\ifoot*{Walter Wombat\\\\ Is life on Mars possible?}% Name and title beneath each other in the inner part of the foot\n\\setlength{\\footheight}{24.0pt}\n\\begin{document}\n\\chapter{Manta Ray}\n\\blindtext\n\\section{Taxonomy}\n\\blindtext[10]\n\\chapter{Mobula}\n\\blindtext\n\\section{Life style}\n\\blindtext[10]\n\\end{document}\n",[369,1641,1642,1646,1650,1654,1658,1662,1667,1672,1677,1681,1685,1689,1693,1697,1701,1705,1709,1713],{"__ignoreMap":454},[458,1643,1644],{"class":460,"line":461},[458,1645,1476],{},[458,1647,1648],{"class":460,"line":467},[458,1649,1486],{},[458,1651,1652],{"class":460,"line":785},[458,1653,1568],{},[458,1655,1656],{"class":460,"line":1129},[458,1657,1573],{},[458,1659,1660],{"class":460,"line":1135},[458,1661,1578],{},[458,1663,1664],{"class":460,"line":1184},[458,1665,1666],{},"\\ofoot*{\\pagemark}% the pagenumber in the outer part of the foot, also on plain pages\n",[458,1668,1669],{"class":460,"line":1190},[458,1670,1671],{},"\\ifoot*{Walter Wombat\\\\ Is life on Mars possible?}% Name and title beneath each other in the inner part of the foot\n",[458,1673,1674],{"class":460,"line":1315},[458,1675,1676],{},"\\setlength{\\footheight}{24.0pt}\n",[458,1678,1679],{"class":460,"line":1320},[458,1680,1491],{},[458,1682,1683],{"class":460,"line":1326},[458,1684,1496],{},[458,1686,1687],{"class":460,"line":1332},[458,1688,1501],{},[458,1690,1691],{"class":460,"line":1338},[458,1692,1506],{},[458,1694,1695],{"class":460,"line":1343},[458,1696,1511],{},[458,1698,1699],{"class":460,"line":1348},[458,1700,1516],{},[458,1702,1703],{"class":460,"line":1353},[458,1704,1501],{},[458,1706,1707],{"class":460,"line":1358},[458,1708,1525],{},[458,1710,1711],{"class":460,"line":1363},[458,1712,1511],{},[458,1714,1716],{"class":460,"line":1715},18,[458,1717,1534],{},[833,1719,1721],{"id":1720},"how-to-change-to-font-style-in-headers-and-footers","How to change to font style in headers and footers?",[357,1723,1724],{},"The package provides an interface similar to the KOMA-script classes. You can\nadd font attribute to the header and footer. The page number can be set\nindependently.",[449,1726,1728],{"className":451,"code":1727,"language":453,"meta":454,"style":454},"\\documentclass{book}\n\\usepackage{mwe}\n\\usepackage{xcolor}\n\\usepackage[markcase=noupper% remove the uppercasing\n]{scrlayer-scrpage}\n\\ohead{}% clear the outer head\n\\addtokomafont{pagehead}{\\sffamily}\n\\addtokomafont{pagefoot}{\\tiny}% Making the foot extra tiny to demonstrate\n\\addtokomafont{pagenumber}{\\large\\bfseries\\color{red!80!black}}% that the page number can be controlled on its own. \n\\ofoot*{\\pagemark}% the pagenumber in the outer part of the foot, also on plain pages\n\\ifoot*{Walter Wombat\\\\ Is life on Mars possible?}% Name and title beneath each other in the inner part of the foot\n\\setlength{\\footheight}{24.0pt}\n\\begin{document}\n\\chapter{Manta Ray}\n\\blindtext\n\\section{Taxonomy}\n\\blindtext[10]\n\\chapter{Mobula}\n\\blindtext\n\\section{Life style}\n\\blindtext[10]\n\\end{document}\n",[369,1729,1730,1734,1738,1743,1747,1751,1755,1760,1765,1770,1774,1778,1782,1786,1790,1794,1798,1802,1806,1811,1816,1821],{"__ignoreMap":454},[458,1731,1732],{"class":460,"line":461},[458,1733,1476],{},[458,1735,1736],{"class":460,"line":467},[458,1737,1486],{},[458,1739,1740],{"class":460,"line":785},[458,1741,1742],{},"\\usepackage{xcolor}\n",[458,1744,1745],{"class":460,"line":1129},[458,1746,1568],{},[458,1748,1749],{"class":460,"line":1135},[458,1750,1573],{},[458,1752,1753],{"class":460,"line":1184},[458,1754,1578],{},[458,1756,1757],{"class":460,"line":1190},[458,1758,1759],{},"\\addtokomafont{pagehead}{\\sffamily}\n",[458,1761,1762],{"class":460,"line":1315},[458,1763,1764],{},"\\addtokomafont{pagefoot}{\\tiny}% Making the foot extra tiny to demonstrate\n",[458,1766,1767],{"class":460,"line":1320},[458,1768,1769],{},"\\addtokomafont{pagenumber}{\\large\\bfseries\\color{red!80!black}}% that the page number can be controlled on its own. \n",[458,1771,1772],{"class":460,"line":1326},[458,1773,1666],{},[458,1775,1776],{"class":460,"line":1332},[458,1777,1671],{},[458,1779,1780],{"class":460,"line":1338},[458,1781,1676],{},[458,1783,1784],{"class":460,"line":1343},[458,1785,1491],{},[458,1787,1788],{"class":460,"line":1348},[458,1789,1496],{},[458,1791,1792],{"class":460,"line":1353},[458,1793,1501],{},[458,1795,1796],{"class":460,"line":1358},[458,1797,1506],{},[458,1799,1800],{"class":460,"line":1363},[458,1801,1511],{},[458,1803,1804],{"class":460,"line":1715},[458,1805,1516],{},[458,1807,1809],{"class":460,"line":1808},19,[458,1810,1501],{},[458,1812,1814],{"class":460,"line":1813},20,[458,1815,1525],{},[458,1817,1819],{"class":460,"line":1818},21,[458,1820,1511],{},[458,1822,1824],{"class":460,"line":1823},22,[458,1825,1534],{},[630,1827,1829,1830,1833,1834],{"id":1828},"page-n-of-m","Page ",[528,1831,1832],{},"n"," of ",[528,1835,1836],{},"m",[357,1838,1839,1840,1843],{},"Some people like to put the current page number in context with the whole document. LaTeX only provides access to the current page number.  However, you can use the ",[369,1841,1842],{},"lastpage"," package to find the total number of pages, like this:",[449,1845,1847],{"className":451,"code":1846,"language":453,"meta":454,"style":454},"\\usepackage{lastpage}\n...\n\\cfoot{\\thepage\\ of \\pageref{LastPage} }\n",[369,1848,1849,1854,1859],{"__ignoreMap":454},[458,1850,1851],{"class":460,"line":461},[458,1852,1853],{},"\\usepackage{lastpage}\n",[458,1855,1856],{"class":460,"line":467},[458,1857,1858],{},"...\n",[458,1860,1861],{"class":460,"line":785},[458,1862,1863],{},"\\cfoot{\\thepage\\ of \\pageref{LastPage} }\n",[357,1865,1866,1869,1870,1872],{},[528,1867,1868],{},"Note the capital letters",". Also, add a backslash after ",[369,1871,493],{}," to ensure adequate space between the page number and 'of'. And recall, when using references, that you have to run LaTeX an extra time to resolve the cross-references.",[630,1874,1876],{"id":1875},"customizing-with-titleps","Customizing with titleps",[357,1878,1879,1881,1882,644,1884,764],{},[369,1880,738],{}," takes a one-stage approach, without having to use ",[369,1883,503],{},[369,1885,513],{},[357,1887,1888],{},"For example:",[449,1890,1892],{"className":451,"code":1891,"language":453,"meta":454,"style":454},"\\newpagestyle{main}{\n   \\sethead[\\thepage][\\chaptertitle][(\\thesection]  % even\n           {\\thesection)}{\\sectiontitle}{\\thepage}} % odd\n\\pagestyle{main}\n",[369,1893,1894,1899,1904,1909],{"__ignoreMap":454},[458,1895,1896],{"class":460,"line":461},[458,1897,1898],{},"\\newpagestyle{main}{\n",[458,1900,1901],{"class":460,"line":467},[458,1902,1903],{},"   \\sethead[\\thepage][\\chaptertitle][(\\thesection]  % even\n",[458,1905,1906],{"class":460,"line":785},[458,1907,1908],{},"           {\\thesection)}{\\sectiontitle}{\\thepage}} % odd\n",[458,1910,1911],{"class":460,"line":1129},[458,1912,1913],{},"\\pagestyle{main}\n",[357,1915,1916,1917,1920],{},"defines a pagestyle named ",[369,1918,1919],{},"main"," with the page at the left on even pages and at the right on odd pages, the chapter title at the center of even pages, and so on.",[357,1922,1923],{},"With titleps all the format is done in the page style, and not partly when the mark is emitted and partly when the mark is retrieved.\nThe following example is similar to the previous one, but elements are coloured:",[449,1925,1927],{"className":451,"code":1926,"language":453,"meta":454,"style":454},"\\usepackage[dvipsnames,usenames]{color}\n  \\usepackage{titleps}\n  \\newpagestyle{main}[\\small]{\n    \\setheadrule{.55pt}%\n    \\sethead[\\colorbox{black}{\\color{white}{\\thepage}}]%  even-left\n            [\\chaptertitle]%                              even-center\n            [\\colorbox{CornflowerBlue}{\\thesection}]%     even-right\n            {\\colorbox{CornflowerBlue}{\\thesection}}%     odd-left\n            {\\sectiontitle}%                              odd-center\n            {\\colorbox{black}{\\color{white}{\\thepage}}}%  odd-right\n",[369,1928,1929,1934,1939,1944,1949,1954,1959,1964,1969,1974],{"__ignoreMap":454},[458,1930,1931],{"class":460,"line":461},[458,1932,1933],{},"\\usepackage[dvipsnames,usenames]{color}\n",[458,1935,1936],{"class":460,"line":467},[458,1937,1938],{},"  \\usepackage{titleps}\n",[458,1940,1941],{"class":460,"line":785},[458,1942,1943],{},"  \\newpagestyle{main}[\\small]{\n",[458,1945,1946],{"class":460,"line":1129},[458,1947,1948],{},"    \\setheadrule{.55pt}%\n",[458,1950,1951],{"class":460,"line":1135},[458,1952,1953],{},"    \\sethead[\\colorbox{black}{\\color{white}{\\thepage}}]%  even-left\n",[458,1955,1956],{"class":460,"line":1184},[458,1957,1958],{},"            [\\chaptertitle]%                              even-center\n",[458,1960,1961],{"class":460,"line":1190},[458,1962,1963],{},"            [\\colorbox{CornflowerBlue}{\\thesection}]%     even-right\n",[458,1965,1966],{"class":460,"line":1315},[458,1967,1968],{},"            {\\colorbox{CornflowerBlue}{\\thesection}}%     odd-left\n",[458,1970,1971],{"class":460,"line":1320},[458,1972,1973],{},"            {\\sectiontitle}%                              odd-center\n",[458,1975,1976],{"class":460,"line":1326},[458,1977,1978],{},"            {\\colorbox{black}{\\color{white}{\\thepage}}}%  odd-right\n",[1980,1981,1982],"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":454,"searchDepth":467,"depth":467,"links":1984},[1985],{"id":363,"depth":467,"text":364,"children":1986},[1987,1988,1990,1991,1993],{"id":632,"depth":785,"text":633},{"id":747,"depth":785,"text":1989},"Customizing with fancyhdr",{"id":1458,"depth":785,"text":1459},{"id":1828,"depth":785,"text":1992},"Page n of m",{"id":1875,"depth":785,"text":1876},"How to customize headers, footers, page numbering styles, and layout elements in LaTeX.","md",null,{},{"title":94,"description":1994},"cVhx4KHWDpfw56k0ya2gS3px4oo4H7nWx_21ujEwCTU",[2001,2003],{"title":90,"path":91,"stem":92,"description":2002,"children":-1},"Understand page geometry, margins, paper size, and page breaks in LaTeX documents.",{"title":98,"path":99,"stem":100,"description":2004,"children":-1},"How to create title pages, cover sheets, and document metadata in LaTeX.",1785155506799]