• About
    • Cookie Policy
  • Code Snippets
    • Beamer (presentation)
    • Figures
    • Lists
    • Standard classes
    • Tables
  • Consulting
  • LaTeX Installation
  • Posting Questions
  • TeX/LaTeX Resources

texblog

because LaTeX matters

page number

Cross-referencing toc/lof/lot page numbers with content in LaTeX

24. August 2012 by tom 6 Comments

The hyperref package is extensive. Besides clickable hyperlinks, it provides an option to cross-reference page numbers in table-of-contents, list-of-figures and list-of-tables with the actual page. By default, the option is set to false. Loading the hyperref package without the linktopage option makes the list-entries clickable but not the page numbers.   Finally, always load hyperref … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: cross-reference, hyperref, LaTeX, linktocpage, listoffigures, listoftables, page number, tableofcontent, usepackage

Correct total number of pages in beamer presentations with backup slides

24. May 2012 by tom 4 Comments

While writing a presentation with beamer it may be convenient to have some backup/appendix slides ready as a support for answers to potential questions. By default, beamer will count the total number of slides, including the backup slides at the end of the presentation, leading to a wrong number of total slides intended for presentation. The package … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: appendix, appendixnumberbeamer, backup slides, beamer, LaTeX, page number, presentation

Page number with total number of pages: Page 4 of 65

15. October 2008 by tom 3 Comments

Showing the total number of pages in addition to the actual page number is straight forward using the lastpage package. Now you can simply access the number of pages using: Note: You will have to typeset the DVI/PDF twice in order to get the number right. Example: Note: See this recent comment on how to … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: fancyhdr, lastpage, LaTeX, page, page number, pageref, total, total number of pages




Consulting

Need help with your thesis or book project? Let’s discuss.

Join 6,570 other subscribers
doi2bib




Top Posts & Pages

  • Multi-column and multi-row cells in LaTeX tables
  • Control the width of table columns (tabular) in LaTeX
  • Big O and related notations in LaTeX
  • LaTeX documentclass options illustrated
  • Changing the font size in LaTeX

Tags

addcontentsline array article bibliography Bibtex & biblatex book caption chapter citation cite code color definecolor description documentclass draft enumerate equation fancyhdr figure graphicx hyperref includegraphics item itemize label landscape LaTeX letter listoffigures listoftables math minipage reference renewcommand report section subfigure table tableofcontent tabular text TikZ usepackage xcolor

Copyright © 2025 texblog.

Omega Child WordPress Theme by ThemeHall