128

You can use fancyhdr to facilitate making headers and footers. If you want the first page to have no header or footer---without using any special packages---you can issue \thispagestyle{empty} on the first page. \documentclass{article} \usepackage{lipsum}%% a garbage package you don't need except to create examples. \usepackage{fancyhdr} \pagestyle{fancy} \...


117

You can use something like \addtobeamertemplate{navigation symbols}{}{% \usebeamerfont{footline}% \usebeamercolor[fg]{footline}% \hspace{1em}% \insertframenumber/\inserttotalframenumber } and use spaces, font and boxes to adjust the alignment of the numbers with the navigation symbols. You can change the font/color just by altering the ...


85

Add the following lines below the \documentclass line. \settopmatter{printacmref=false} % Removes citation information below abstract \renewcommand\footnotetextcopyrightpermission[1]{} % removes footnote with conference information in first column \pagestyle{plain} % removes running headers Removing "Manuscript submitted to ACM": add \fancyfoot{} in the ...


47

For the report document class, the command \chapter is defined in the file report.cls, starting on line 339 or so. Contained in the definition of the \chapter macro is the instruction \thispagestyle{plain}, instructing LaTeX to set the chapter's first page in the so-called "plain" style. To switch the page style of the first page of a chapter from "plain" ...


46

First of all, to change the behaviour of a single page, you have to use \thispagestyle instead of \pagestyle, which changes the style from the current page till the end of your document. Moreover, to have just the page number in the page, you have to use the style plain and not the style empty. This means that, to have a single page with only the page ...


44

The most obvious package is fancyhdr which allows you to set up left, right and center adjusted headers and footers. Your document ned to start with: \documentclass{...} \usepackage{fancyhdr} \pagestyle{fancy} You can then format your header and footer with \lhead{} \chead{} \rhead{} \lfoot{} \cfoot{} \rfoot{} Just leave them empty if you do not need ...


39

You can use the pagecommand key to declare the desired page style for the included pages: \documentclass{book} \usepackage[a6paper]{geometry}% just for the example \usepackage{fancyhdr} \usepackage{pdfpages} \pagestyle{fancy} \fancyhf{} \fancyhead[C]{Some centered header} \fancyfoot[C]{\thepage} \begin{document} \includepdf[pages=-,pagecommand={\...


38

Standard classes LaTeX predefines four page styles for standard classes: empty Both header and footer are empty. plain The header is empty; the footer contains the page number. headings The footer is empty; the header contains information determined by the class (based on sectional units) and the page number. myheadings It is similar to headings but the ...


38

As it turns out, to get a completely blank bottom of a Beamer document you need to do this: %gets rid of bottom navigation bars \setbeamertemplate{footline}[frame number]{} %gets rid of bottom navigation symbols \setbeamertemplate{navigation symbols}{} %gets rid of footer %will override 'frame number' instruction above %comment out to revert to previous/...


37

Besides adding unnumbered chapters/sections to the ToC, you may also want to ensure that they are correctly displayed in the header/footer. In the report and book class this may be done by writing, e.g., \chapter*{Introduction} \markboth{Introduction}{Introduction} for unnumbered chapters (the second argument of \markboth controls "right" [odd] pages in ...


34

Try \chapter*{chapter name} \markboth{chapter name}{} And consider using titlesec package rather using \centerline as a visual formatting approach.


31

You can use fancyhdr. \documentclass{book} \usepackage{fancyhdr} \usepackage{lipsum}% just to generate text for the example \pagestyle{fancy} \fancyhf{} \fancyhead[L]{\rightmark} \fancyhead[R]{\thepage} \renewcommand{\headrulewidth}{0pt} \begin{document} \chapter{Chapter title} \section{section title} \lipsum[1-20] \end{document} \pagestyle{fancy} ...


27

This is a job for the command \fancypagestyle from the fancyhdr package. You can define two styles and alter between them at your wish. \documentclass{article} \usepackage{fancyhdr} \fancypagestyle{style1}{ \fancyhf{} \fancyhead[C]{style 1 with thin line} \fancyfoot[C]{\thepage} \renewcommand{\headrulewidth}{0.4pt} } \fancypagestyle{style2}{ \fancyhf{} \...


26

This should get you started. \documentclass{article} \usepackage{fancyhdr} \usepackage{lipsum} \title{Some document} \author{Shivam Dhoot} % Turn on the style \pagestyle{fancy} % Clear the header and footer \fancyhead{} \fancyfoot{} % Set the right side of the footer to be the page number \fancyfoot[R]{\thepage} \begin{document} \maketitle % Input some ...


25

With the help of titlesec: \documentclass{book} \usepackage{titlesec} \usepackage{lipsum} \titleformat{\chapter}[display] {\normalfont\bfseries}{}{0pt}{\Large} \begin{document} \chapter{Test Chapter} \lipsum[3] \end{document} Without titlesec: \documentclass{book} \usepackage{lipsum} \makeatletter \def\@makechapterhead#1{% \vspace*{50\p@}% {\...


25

I'd suggest using the package savetrees loaded with the [extreme] option which its purpose is exactly the scenario you are describing by minimizing all the margins to the extreme, fitting as much text as possible on a page. More than that you'd print out of the paper. Its sample page, specifically the last page showcase the results that can be obtained.


24

You can redefine the plain style that's issued by \chapter. Here's how you can do; I'd recommend not having headings in the chapter starting pages, nor the upper rule. \documentclass[twoside]{report} \usepackage{lastpage} \usepackage{fancyhdr} % for use of \pageref{LastPage} \fancypagestyle{IHA-fancy-style}{% \fancyhf{}% Clear header and footer \...


23

I have something that might get you started. It has still many open construction zones, though... This is how it looks: It uses – as you've suspected – TikZ to draw the boxes, fill the page with gray, draw the lines… The idea is to put a tikz picture with options remember picture, overlay in the heading (with commands provided by KOMA's scrpage2) and use ...


23

In order to get fancyhdr to obey your geometry settings you need to call geometry first. And to get the title page to use the same style as the rest, use \thispagestyle after \maketitle. \documentclass{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Lecture 1} \rhead{Handout 1} \lfoot{Lecture 1} \rfoot{...


22

It depends which document class you are using. If you are using document class memoir you please have a look to the question simple footers with only a page number. Document class memoir has its own header and footer mechanismn. If you are using KOMA-Script, for example scrbook, you should use the KOMA-Script package scrpage2. If you are using the ...


21

You can add the following code before \begin{document}: \expandafter\def\expandafter\insertshorttitle\expandafter{% \insertshorttitle\hfill% \insertframenumber\,/\,\inserttotalframenumber}


21

In tufte-common.def it is said that in case XeLaTeX is used, its features for letter spacing will be used, but the authors forgot to do it, so the soul fallback mechanism is used, which miserably fails. Fix the definition: \documentclass[nofonts]{tufte-handout} \usepackage{fontspec} \usepackage{ifxetex} \setmainfont{Minion Pro} \usepackage{lipsum} \...


20

Your easiest approach here would be to include the fancyhdr package and set the header/footer rule widths using \renewcommand: \documentclass{article} \usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr \pagestyle{fancy}% Change page style to fancy \fancyhf{}% Clear header/footer \fancyhead[C]{Header} \fancyfoot[C]{Footer}% \fancyfoot[R]{\thepage} \...


19

You can use the fancyhdr and datetime package to help with this, as demonstrated in the following MWE. Note that \today is actually defined in LaTeX (no extra packages needed), but you need datetime for \currenttime \documentclass{article} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{datetime} \fancyhf{} \fancyfoot[L]{\today\ \currenttime} \...


19

Here are five possibilities: two rules (one below, one above); a double colored rule below; a "rule" made with a pattern produced with the help of pgfornament; a colored rounded box, and a colored frame (the last two produced with TikZ). To produce the header, I used the titleps package, but fancyhdr could've been used instead: \documentclass[draft]{article}...


19

The geometry package can do what you want, if you let it do the whole job of page layout instead of just part of it. I'm not sure exactly what physical margins your adjustments to \textwidth etc wind up producing, but these geometry settings produce something that looks roughly like your screenshot, except for better placement of the page number: \...


18

I think you can avoid using the afterpage package. In the preamble, write: \def\blankpage{% \clearpage% \thispagestyle{empty}% \addtocounter{page}{-1}% \null% \clearpage} In the document environment, use the \blankpage command to add blank pages without style or counting.


18

An image is worth a thousand words: \documentclass{article} \usepackage{layout} \begin{document} \layout \end{document} \headheight is the height od the area reserved to typeset headers. \headsep is the vertical length between the header and the top of the text area. \footskip is the vertical length between the bottom of the text area and the bottom of ...


17

You can simply use the selectors E and O for even and odd pages. Here is a MWE: \documentclass{book} \usepackage{lipsum} \usepackage{fancyhdr} \fancyfoot{} \fancyhead[RO,LE]{\thepage} \fancyhead[LO]{\leftmark} \fancyhead[RE]{\rightmark} \begin{document} \pagestyle{fancy} \chapter{Chapter} \section{section} \lipsum \lipsum \end{document} Here is the ...


Only top voted, non community-wiki answers of a minimum length are eligible