Skip to content

Instantly share code, notes, and snippets.

@ben-cohen
Created November 10, 2020 19:32
Show Gist options
  • Save ben-cohen/9fa7d28e3d89922216c34d407884657f to your computer and use it in GitHub Desktop.
Save ben-cohen/9fa7d28e3d89922216c34d407884657f to your computer and use it in GitHub Desktop.
LaTeX document with image instead of page numbers
%
% A LaTeX document where images called img-1.jpg, img-2.jpg, ... are
% displayed in the corner of the page instead of a textual page number.
%
% Ben Cohen, November 2020
%
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[R]{\includegraphics[width=0.5cm]{img-\thepage.jpg}} % Or L for the left corner!
%\fancyfoot[LE,RO]{\includegraphics[width=0.5cm]{img-\thepage.jpg}} % Use this instead if you want twoside
\pagestyle{fancy}
\begin{document}
\lipsum[1-23]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment