A simple .tex file for creating a paginated pdf to add page numbers to another pdf
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
976 B

2 years ago
2 years ago
2 years ago
  1. \documentclass[9pt,twoside]{article}
  2. \usepackage{geometry}
  3. \geometry{
  4. % The next two lines create a half-size document for a booklet
  5. paperheight=8.5in,
  6. paperwidth=5.5in,
  7. % If you are using regular size paper, you can delete them, and
  8. % add "letter" or "A4" to the documentclass declaration
  9. top=0.15in, % Adjust the height of your page number from the top of the page
  10. inner=0.5in, % Adjust the inner margin
  11. outer=0.5in, % Adjust the outer margin
  12. nohead,
  13. nofoot
  14. }
  15. \usepackage{fancyhdr}
  16. \pagestyle{fancy}
  17. \fancyhf{}
  18. \fancyhead[LE]{\thepage} % This appears on the Left side of Even-numbered pages
  19. \fancyhead[RO]{\thepage} % This appears on the Right side of Odd-numbered pages
  20. \renewcommand{\headrulewidth}{0.2pt}
  21. \renewcommand{\footrulewidth}{0pt}
  22. \pagenumbering{roman} % Change this to whatever type of lettering you prefer
  23. \usepackage{multido}
  24. \begin{document}
  25. % Change the '18' to however many pages you need.
  26. \multido{}{18}{\vphantom{x}\newpage}
  27. \end{document}