Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some part of the preamble (\cfoot and \pagenumbering) being counted as words #71

Open
ale03068 opened this issue Feb 3, 2021 · 0 comments

Comments

@ale03068
Copy link

ale03068 commented Feb 3, 2021

Input:

\documentclass[12pt,a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{lastpage}

\hypersetup{hidelinks}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage\ of \pageref{LastPage}}

\title{Essay}
\author{Jon}

\begin{document}

\maketitle
\tableofcontents

\pagenumbering{gobble}
\clearpage
\pagenumbering{arabic}

\section{yo}
hello world.

\end{document}

Expected output:

Essay
Jon
yo
hello world.

Real output:

of
Essay
Jon
gobble
arabic
yo
hello world.

The problem:
"of" inside of \cfoot{\thepage\ of \pageref{LastPage}} should not be counted
"gobble" and arabic" inside of \pagenumbering{} should not be counted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant