Tagged Questions
3
votes
0answers
30 views
Integer operations on cross references [duplicate]
I would like to perform integer operations on a cross reference.
\documentclass{article}
\usepackage{etoolbox}
\begin{document}
hello \label{here}
\ifnumequal{\pageref{here}}{1}{You are on the 1st ...
3
votes
1answer
119 views
convert outcome of reference to regular number
Is it possible to transform the outcome of a reference (e.g., a line number) to a regular number that I can use in a calculation?
I have this (and works fine):
\FPeval{\result}{clip(5+6)} $\result$
...
22
votes
5answers
2k views
How to use \pageref{foo} as a number?
What I want to do is to show a "progress bar" in the header to show how far you are in the document, by making a rule with width pagenumber divided by total pages times the paper width.
This is what ...