StartLaTeX faqLaTeX for Beginners F.A.Q.LaTeX topicsLaTeX courseSearch

In LaTeX, you can alter the appearance of pages using the \pagestyle command. Unlike the \thispagestyle command demonstrated in the previous post, which only affects the current page, \pagestyle changes the appearance for all pages.

There are four possible settings for pagestyle:

  1. \pagestyle{plain}: Displays the page number at the bottom center of each page.
  2. \pagestyle{empty}: Removes both header and footer (and hence, no page numbers).
  3. \pagestyle{headings}: Displays a header with the page number and section name (depending on the document class and whether oneside or twoside is used, the appearance may vary).
  4. \pagestyle{myheadings}: In oneside mode, inserts the text on the left side and the page number on the right side of the header using \markright{Text}. In twoside mode, on even-numbered pages, the header on the left displays the page number, and on the right, the content of {Left}. On odd-numbered pages, the header on the left displays the content of {Right}, and on the right, the page number.

These settings allow you to customize the appearance of headers and footers according to your document's requirements.

Contact   Privacy Policy   disclosures

accept decline

This website uses cookies and pixel tags to ensure you get the best experience on our website. By using this website, you consent to the use of cookies.learn more about cookies see also our privacy policy