Guest User

Untitled

a guest
Nov 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. documentclass{article}
  2. title{MWE}
  3. RequirePackage[user,savepos]{zref}
  4. begin{document}
  5. Some textpar
  6. clearpage
  7. More textpar
  8. clearpage
  9. On this page, I want to store the vertical position of the following zref. But I want the number to be available as a stored variable, which I can later access, do calculations, and write to the log file (not aux file).par
  10. zsaveposy{here}This is where I want the vertical position. I do not need to take immediate action.par
  11. Yet more textpar
  12. clearpage
  13. And finally, more text.par
  14. end{document}
  15.  
  16. % In Preamble:
  17. newcommandgetzposy[1]{% zlabel
  18. % Here, it retrieves the number corresponding to the given label
  19. }
  20. % In document body:
  21. Some text.par
  22. zsaveposy{mylabel}And text.par
  23. More text.par
  24. % At the end:
  25. typeout{The y-position of mylabel is getzposy{mylabel}.}
Add Comment
Please, Sign In to add comment