Guest User

Untitled

a guest
Oct 20th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. renewcommand{@pnumwidth}{<Required-Length-to-Fix-the-Problem>}
  2.  
  3. documentclass{article}
  4.  
  5. begin{document}
  6.  
  7. tableofcontents
  8.  
  9. pagenumbering{arabic}
  10. setcounter{page}{999}
  11. section{Page numbering using Arabic numbers}
  12. subsection{We can see that 999 is right-aligned as expected}
  13.  
  14. newpage
  15.  
  16. pagenumbering{Roman}
  17. setcounter{page}{999}
  18. section{Page numbering using Roman numbers}
  19. subsection{We can see that CMXCIX is not properly aligned}
  20.  
  21. end{document}
  22.  
  23. documentclass{article}
  24.  
  25. makeatletter
  26. renewcommand{@pnumwidth}{5em}
  27. makeatother
  28.  
  29. begin{document}
  30.  
  31. tableofcontents
  32.  
  33. pagenumbering{arabic}
  34. setcounter{page}{999}
  35. section{Page numbering using Arabic numbers}
  36. subsection{We can see that 999 is right-aligned as expected}
  37.  
  38. newpage
  39.  
  40. pagenumbering{Roman}
  41. setcounter{page}{999}
  42. section{Page numbering using Roman numbers}
  43. subsection{We can see that CMXCIX is not properly aligned}
  44.  
  45. end{document}
Add Comment
Please, Sign In to add comment