Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zref]

{zref} is about questions related to the `zref` reference scheme for LaTeX

2
votes
1answer
104 views

zref: Read out first and last reference page per page

I have some paragraph numbers on most of my pages. I want to write "(1-3)" in the head if the current page contains the paragraph numbers 1,2,3. Is it possible to read out the first and the last ...
2
votes
1answer
31 views

Setting default value of zref abspage to avoid arithmetic overflow error while computing rotation of tikz picture logo (picture on every page)

Combing answers from this question: How to use \pageref{foo} as a number? Positioning TikZ picture on page background to be on each page of twosided document I was able to create picture of my logo ...
1
vote
1answer
19 views

Using zref return value as input for counter

I am trying to create a new counter, which is counting the page numbers to store them and reuse them later. I always remove the 3 pages, which are not numbered at the beginning of the document and I ...
0
votes
0answers
136 views

! Argument of \@firstoftwo has an extra }

I am attempting to write macro that extracts and formats information from a label. I get the messages ! Argument of \@firstoftwo has an extra }. <inserted text> \par l.84 ......
0
votes
3answers
50 views

How to print something that in each section on the first page

I want to reference some numbers in each section on the first page of the document. But I can't find any package to do this. \documentclass{article} %\usepackage{zref} \begin{document} \...
3
votes
0answers
41 views

zref-abspage needs defining a label, but zref-nextpage does not. Why?

I am looking for a straightforward way to get the absolute page number at the current position. I came across package zref-abspage (the programmer's interface) out of the oberdiek bundle. Why do I ...
4
votes
1answer
38 views

Using zpageref in includepdf

I wanted to extract the appendix from an external pdf document automatically by using \zpageref to get the page number specified by the label sec:appendix in paper.tex (the source of paper.pdf). ...
9
votes
2answers
283 views

Creating several ways of referencing for just one type of label

I want to create a statement enumeration environment together with a referencing mechanism such that the code \section{A section} \begin{theorem} \begin{statement} \item Test \label{Test1}...
2
votes
0answers
46 views

Determine the location of cross-references

I'm trying to determine which cross-references land far away from their label/anchor or more generally the location of cross-references throughout a document. \documentclass{article} \usepackage{...
1
vote
0answers
133 views

zref interaction with hyperref [closed]

This is an MWE to generate hyperlinks using zref. Let's say we have two chapter files like this \chapter{Test 1} \zexternaldocument*{chap2} \section{section 11} \label{sec:11} I need to refer to ...
3
votes
2answers
71 views

zlabel not recorded in aux file

I want to use zref to record page numbers, but with this code structure, labels are not recorded in the aux file. And I have no idea what I have missed. MWE: \documentclass{article} \usepackage{...
2
votes
1answer
59 views

zref not working for align environment

I use zref, but the numbers are not correctly displayed for align environments (they are for equation, though). example: \documentclass{report} \usepackage{amsmath} \usepackage{zref} \usepackage{...
2
votes
1answer
161 views

\vspace*{\fill} exceeds a page in multicols* environment

I am using TexLive 2017, and would like to record positions of objects. But the bottom of the last \vspace*{\fill} usually exceeds a page when it is inside multicols* environment. Here is the MWE: \...
0
votes
1answer
193 views

Remove space after \crossref

I have a relatively complicated reference system due to the fact that I have to produce three volumes and cross-reference them. So far everything is working well except one minor thing: After I ...
1
vote
1answer
65 views

User defined macro in condition

I'm a LaTeX newbie and want to use current vertical position in a condition. I wrote this macro \ypos: \usepackage{zref-savepos} \newcommand*{\ypos}[1]{% \zsavepos{#1}% \zposy{#1}% } How can I ...
1
vote
0answers
71 views

Problem with cross-referencing using zref [closed]

I have an appendix file like this: \chapter{Proofs} \section{Prop1} \label{proof:prop1} \lipsum[1] \section{Theorem 10} \label{proof:thm1} \lipsum[1] and I need to refer to a particular label of ...
1
vote
1answer
39 views

How to replace \zpageref to page number in \edef

I want to dump positions of objects to an external file with zref package. I can dump zposx and zposy, but not be able to dump zrefpage. MWE: \documentclass{article} \usepackage[user,savepos]{zref} ...
3
votes
1answer
103 views

\linewidth in expex

It seems to me that examples in expex have no effect on the length of \linewidth, which is especially annoying if you want to put two things next to each other with a minipage, or you include a table. ...
1
vote
2answers
177 views

import counter value from .aux file

Note: This seems like it has to be asked somewhere, but my Google-foo is failing me. If someone can point me to it, I can delete this question. I am trying to save a number to the .aux file, and then ...
2
votes
0answers
74 views

zref an amsmath envirnonment

In this post I asked a specific question about zref package. The answer is very satisfactory, but unfortunately I noticed that, for example zref is not workin with some ams envirnomnent such as ...
1
vote
1answer
39 views

Automatic reference of superior section in folderpath

Note the focus of this question changed slightly. See my answer for further clarification! I would like to make certain references/links dependent on where exactly I put certain content in my ...
1
vote
1answer
137 views

Finding a reference position with zref

I have a solution for \pageref, but for top/middle/bottom of the page; however, with IEEEtran, \maketitle interferes with determining the top-left corner of the text area as a reference position. You ...
4
votes
1answer
75 views

zref resets equation numbers in `align`

The example shows that when I use the zref-perpage package, the equation numbers are reset (start at 1) when entering an align environment. The perpage package doesn't have this problem. \...
4
votes
1answer
88 views

zref-perpage doesn't work with theorem-like environments

I am trying to use the zref-perpage package to number theorem-like enviroments and equations by page. Unfortunately, it doesn't work well. In this first example, we see that the second thm appears ...
2
votes
2answers
93 views

Page counter doesn't work in equation on top of a new page

In the example below (sorry, I don't know how to make it smaller), I try to include the page number in the equation numbering, but on top of a new page, the equation gets numbered by the previous page ...
2
votes
1answer
66 views

Carrying counters over to another file using zref

During my last experiences with cross-referencing on total counts between different files, a problem of carrying counters over to another file appears. Somehow there is an error when I use for these ...
1
vote
1answer
112 views

How to get a total number of literature references and save it to a user defined counter?

During my last experience with Cross-referencing on total counts between different files, which can be read here, a problem of saving the total number of literature references in a user defined ...
5
votes
1answer
256 views

Cross-referencing on total counts between different files

Suppose that we have three .tex files in one folder called PhDThesis.tex, Synopsis.tex and conclusion.tex. There is also one bib-file called my_bibio.bib In Synopsis we have a short description of ...
4
votes
1answer
105 views

Using zref in beamer

I am writing a package for lecture's slides and script that should be used by third persons at our department. I want to use features of the zref package together with beamer, but in a transparent ...
2
votes
1answer
133 views

How to properly use a counter value in zref command

I am trying to expand on the answer to this question in order to automatize the creation of position markers with zref. I guess I am missing some important knowledge about how counters are printed. ...
1
vote
0answers
218 views

media9 seems to conflict with xr-hyper [closed]

A year ago everything was fine with my book. But now compilation fails. I managed to localize my problem to the following MWE. The following error occurs when pdflatex runs over second file (B.tex): ...
5
votes
1answer
107 views

Stating a linear program - problems with its caption

I found here a possibility for stating linear programs. But if I have several LPs and change for example one of the constraints, the positions of the captions get lost - only the last of them is ...
0
votes
1answer
43 views

zref variable is cached incorrectly in page header/footer when \setsecnumdepth{none}

Following on from this question: How to access per-page variable/command for use in footer I'm using the zref package to provide custom, per-chapter variables in the page footer (namely, a "reviewed ...
1
vote
1answer
161 views

Missing \endcsname with xr cross referencing

I searched a lot, but cannot figure out the following problem: I am trying to reference another document using the xr package. I also tried out zref but it does not matter regarding the error message. ...
10
votes
1answer
354 views

Why the new changes to LaTeX kernel breaks zref-perpage package?

Consider the following minimal example: \documentclass{book} \usepackage{zref-perpage} \zmakeperpage{footnote} \begin{document} \chapter{Test} \footnote{A footnote} \footnote{A footnote} \newpage \...
3
votes
1answer
193 views

How to get in preamble the correct total pages number?

Context: In a personal class (for two sided documents), I'd like to translate the layout area towards inner or outer margins (thanks to geometry package's settings), depending on the total pages ...
4
votes
1answer
93 views

Write absolute pagenumber of a reference to a file by macro

I want to write the absolute pagenumber of a reference to a file. therefore i cant use \immediate\write. The problem is now i think that \write expands its parameters when a page is finished, but then ...
2
votes
1answer
65 views

Measure upper left and bottom right of text with zref

i want to get the position of the upper left of a text and the position of the bottom right of a text. right now i'm using the following code which works ok for images but not for text because it ...
6
votes
0answers
775 views

Table of contents in a separate file with correct hyperlinks to many files

It's my first question here. Sorry if it doesn't follow the rules. I have: I'm writing a manual in the book class with pdflatex (TeX Live under Linux). Each chapter is stored in a separate tex-file (...
3
votes
1answer
126 views

Hyperref stops zref from picking the appropriate counter

zref's counter module allows one to track which counter was (ref)stepped, similar in functionality to autoref. The property keeping track of this counter is aptly called counter. Consider the ...
5
votes
2answers
360 views

Smart cross-references between 2 volumes using Zref package

Following the post How to enable smart references when using xr-hyper package for producing multi-volume book? I tried to elaborate required solution using zref package as was suggested by @Andrew ...
6
votes
0answers
437 views

How to enable smart references when using xr-hyper package for producing multi-volume book?

I'm using xr-hyper package by @David Carlisle and smartref package by Giuseppe Bilotta to compile a multi-volume book. xr-hyper enables cross-references between different volumes as shows the ...
3
votes
1answer
348 views

Possible solution to make tabulars fill page vertically!

I wrote this code which fills a tabularx with blank lines until the end of the page. It worked but has one problem: When the space to fill is less than one line (e.g. paperwidth=180pt), it inserts one ...
2
votes
1answer
177 views

Making polyglossia and zref-savepos or pdfsavepos work together

When I add the polyglossia package to use my Hebrew text, it breaks the writing of the coordinates to a file. If I remove the polyglossia package it works fine. Not sure if it is related to zref. And ...
1
vote
0answers
669 views

.aux file not found or empty while cross-referencing between files [closed]

I have an issue similar to this one. In oppose to that thread, I use xelatex. Don't know, though, if this is the issue or not. I have two files. In the first one (Characteristics.tex) I have: % ...
7
votes
1answer
2k views

Cross referencing: zref-xr does not detect .aux file of second document

So I am trying to crossreference labels across two documents: draft.tex and appendix.tex. When compiling I get the following error message: ./draft04.tex:16: Package zref-xr Warning: File `appendix....
6
votes
1answer
224 views

Modified \overline over first character of complex argument

I've been using zref to handle my references. It has allowed me to customize a reference the way I want through its property lists. In particular, I reference a variety of structures in my document ...
7
votes
1answer
217 views

Decide whether a label occurs in the current chapter

I want to decide if some label occurs in the same chapter as the current one. I use the zref package as suggested in Chapter ref with LaTeX to find out in which chapter a label occurs, and compare ...
8
votes
1answer
415 views

Hyperlinks in zref

I use the great package zref to create my own referencing system. Can I make hyperlinks for pdftex (and tex4ht)? See the following code. I'd like to make the \showref command clickable, so that I ...
19
votes
3answers
612 views

How to reset footnote counter in each column of a two-column document?

Footnote counters can be reset in each page by using either zref-perpage or perpage packages but how do you reset footnote counter in each column of a two column documents? \documentclass[twocolumn]{...