Questions tagged [zref]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

zref: # vs. %23 [closed]

I'm using zref-xr to generate links from part II of a paper to part I. It seems to be working fine with one weird kink: When I hit the link, it loads in a browser, but changes the # in the url to %...
1
vote
0answers
20 views

zref-pagelayout/zref-abspos packages compilation error

Before a recent update of TeXLive distribution, a personal package dependant of several official packages worked fine. Since the update, the following compilation error occurs: ! Undefined control ...
3
votes
2answers
118 views

Again on smart cross-references using zref package

While working on a multivolume book, I use a smart cross-referencing method as suggested at Smart cross-references between 2 volumes using Zref package. The \sref and \seqref commands described there ...
0
votes
0answers
101 views

Use of \cref doesn't match its definition inside unnumbered subsection

Processing the following memoir document, which contains a custom command \subsec for unnumbered subsections, causes the error: .[docname]:64: Use of \cref doesn't match its definition. l.64 Here we ...
0
votes
1answer
51 views

Zref package, hyperref not working

I am using zref for crossreferencing from one file to another. But my Hyperreferencing is not working. Here's the code Main.tex \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \...
2
votes
2answers
58 views

zref: Unstable output when conditionally appending a tikz-drawn page using \ztotpages with \AtVeryEndDocument

I need to append a draft page only if the total number of pages in the main document is odd. The following works well \documentclass{exam} \usepackage{blindtext,tikz,ulem,atveryend,hyperref} \...
1
vote
1answer
95 views

Avoiding expansion of referenced captions when cross-referencing external documents with TeX4ht

This is a follow-up question to another question. The selected answer proposes the use of zref-xr, which works fine for PDF output, but has its limitations when using TeX4ht: the configuration via \...
2
votes
2answers
100 views

Typesetting mind map table of contents spanning over two pages, displayed on both even and odd page

in my book project, I was inspired by fantastic table of contents display as a mindmap, posted as answer in this question: Visual table of contents using tikz mindmap or similar but in my case, the ...
2
votes
1answer
146 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
54 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
41 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
497 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
54 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
65 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
48 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
298 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
48 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
290 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
102 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
105 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
2answers
239 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
357 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
88 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
103 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
50 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
135 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
287 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 ...
3
votes
0answers
84 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
43 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
263 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
84 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
98 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
103 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
140 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
170 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
328 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
122 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
154 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
280 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
134 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
51 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
209 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
372 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
214 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
109 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
78 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 ...
7
votes
0answers
1k 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
135 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 ...
7
votes
2answers
434 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
460 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 ...