Created
November 10, 2020 19:32
-
-
Save ben-cohen/9fa7d28e3d89922216c34d407884657f to your computer and use it in GitHub Desktop.
LaTeX document with image instead of page numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% 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