Questions tagged [zref]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

Cross-Refs: Sublabel-Skipping Variants

While cross-referencing linguistic examples, I am using zref to define commands for referring to pairs or ranges. For each command I have two "skipping" variants mainskip and maxskip, meant ...
user avatar
0 votes
1 answer
67 views

Using \zref in arguments of \ifnum (ranges)

Using zref I want to define a clever cross-ref command for ranges \clevestrip{ref1}{ref2} which returns a "stripping" string (1ab) if theExNo is equal for ref1 and ref2, and only prints ...
user avatar
1 vote
1 answer
42 views

Counting pages within certain chapters or sections of a book class document

Problem: For a document I need to submit to my university, the word count is unimportant but the page count is required to be equal to or less than a certain value (32 in this case). In the executive ...
user avatar
0 votes
1 answer
45 views

Different Results from Overleaf and VSCode?

My question is mostly trying to troubleshoot why I get different results in VSCode vs Overleaf. When I paste this code into Overleaf vs VSCode/LaTeX Workshop I get different results. The code comes ...
user avatar
  • 15
0 votes
1 answer
69 views

Section header element should occupy zero vertical space

My goal is to split a diagram across two facing pages, as such: The left-hand page will additionally have a \section or \subsection above the diagram. In order to make the two halves of the diagram ...
user avatar
  • 1
1 vote
2 answers
75 views

Getting the absolute page number with zref and latex3

Within a larger project, I want to set a string equal to the current absolute page number, like this \documentclass[10pt]{article} \usepackage{zref-abspage} \usepackage{zref-user} \ExplSyntaxOn \...
user avatar
0 votes
1 answer
179 views

Advanced Cross-Referencing with Linguex/Philex: Skipping and Stripping

\documentclass{report} \usepackage{philex} % Includes linguex. Only loading it for \phildashes. \usepackage{cleveref} % Referring to Subexample Ranges \crefname{ExNo}{}{} \crefname{SubExNo}{}{} \...
user avatar
0 votes
1 answer
65 views

What is a robust user-defined way to define cross-references and adjunct values that work inside and outside environments?

This question is a follow-up on these two Why does \zifrefundefined fail on tcolorbox reference? \@nameuse fails on definition within tcolorbox What I want to achieve: I want to have an environment,...
user avatar
  • 151
0 votes
1 answer
48 views

Why does \zifrefundefined fail on tcolorbox reference?

Given this MWE \documentclass[ a4paper, 11pt, parskip=half ]{scrbook} \usepackage[nospace]{varioref} \usepackage[pdfencoding=unicode, psdextra]{hyperref} \usepackage{cleveref} \usepackage{zref} ...
user avatar
  • 151
0 votes
0 answers
31 views

zref: some properties are not obtainable when they are added in my own property list

I'd like to create a single label in ref containing multiple values (page, counter, position...). I'm not sure why, but using zref I can't manage to get access to the counter value, the zposx value... ...
user avatar
  • 5,093
0 votes
0 answers
38 views

LaTex: Misplaced \omit. for inside table cell crossout

I am trying to do a crossout of a cell inside a table. I have inherited the code from the following question Cross out arbitrary table cells with diagonal line. Unfortunately, there is an error ...
user avatar
0 votes
1 answer
35 views

Expansive "sort" option in glossaries and zref package

I have a some important content "flying" through the document, and I want to make a list of these contents. These results are in a lot of different parts (sections, endnotes...) so, their ...
user avatar
1 vote
1 answer
30 views

Zref and information extraction (expansible commands in reference)

I am trying to create a simple if command to see if a reference go across one or more pages. In the case of one single page, it puts the "p." prefix, otherwise it puts the "pp." ...
user avatar
0 votes
0 answers
39 views

What is the most difference between zref and xr pckages?

I am using the following codes to exploit main.tex's label of equation, figure, table, etc. and citation number. \usepackage{zref-xr} \zxrsetup{tozreflabel=false, toltxlabel=true, verbose} \...
user avatar
  • 605
1 vote
2 answers
131 views

How to retrieve order of zref's labels in the aux file

I'm playing with the very intersting zref and I'm stumbling at one point, thanks to my insufficient expansion-fu, and perhaps someone may find this problem easier. zref writes labels to the aux file ...
user avatar
  • 11.3k
0 votes
1 answer
64 views

tcolorbox: \newtcbtheorem with \zref reference system for multivolume book

I would like to use nice package tcolorbox for frames together with modern reference system zref. My \newtcbtheorem looks like: \newtcbtheorem[auto counter,number within=chapter]{mathexam}{MyExample}{%...
user avatar
  • 3,526
0 votes
1 answer
57 views

Problem with `listings`, `babel`, and `zref`:

[listings 1.8d] [zref 2.32] [babel 3.54] I spent an evening to reduce my real-world example to the following code. \documentclass{scrartcl} \usepackage{listings} \usepackage[ngerman]{babel} \...
user avatar
  • 441
0 votes
1 answer
46 views

Baseline Problem with zref & textblock (north west vs baseline)

Zref does calculate the coordinate of north west of P1 (= baseline of "some text"), which in my case is approx (50mm, 274mm) so if i make "uuuuuu" in Textblock with the same ...
user avatar
0 votes
0 answers
27 views

Taking coordinates of Test.pos file type not possible!

1. Test.tex Running Test.tex (see below) saves the coordinates (as pt, not mm or sp) of \eins{title 1}{some text } in the file Test.pos, which is: % this is Test.tex \documentclass{article} ...
user avatar
1 vote
0 answers
39 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 ...
user avatar
  • 1,047
4 votes
2 answers
305 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 ...
user avatar
0 votes
0 answers
287 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 ...
user avatar
  • 6,538
0 votes
1 answer
373 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} \...
user avatar
2 votes
2 answers
75 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} \...
user avatar
  • 8,779
3 votes
1 answer
315 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 \...
user avatar
  • 350
2 votes
2 answers
138 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 ...
user avatar
2 votes
1 answer
220 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 ...
user avatar
  • 6,303
2 votes
1 answer
80 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 ...
user avatar
1 vote
1 answer
72 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 ...
user avatar
  • 283
0 votes
0 answers
905 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 ......
user avatar
  • 1,217
0 votes
3 answers
58 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} \...
user avatar
  • 573
4 votes
0 answers
196 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 ...
user avatar
  • 51.2k
4 votes
1 answer
64 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). ...
user avatar
9 votes
2 answers
318 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}...
user avatar
2 votes
0 answers
52 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{...
user avatar
  • 2,284
1 vote
0 answers
465 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 ...
user avatar
  • 572
3 votes
2 answers
167 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{...
user avatar
  • 147
3 votes
2 answers
201 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{...
user avatar
  • 33
2 votes
2 answers
295 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: \...
user avatar
  • 147
0 votes
1 answer
489 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 ...
user avatar
  • 940
1 vote
1 answer
98 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 ...
user avatar
  • 11
1 vote
0 answers
130 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 ...
user avatar
  • 572
1 vote
1 answer
59 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} ...
user avatar
  • 147
3 votes
1 answer
181 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. ...
user avatar
  • 975
1 vote
2 answers
395 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 ...
user avatar
  • 929
3 votes
0 answers
91 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 ...
user avatar
  • 1,083
1 vote
1 answer
55 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 ...
user avatar
  • 133
1 vote
1 answer
350 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 ...
user avatar
  • 5,132
4 votes
1 answer
94 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. \...
user avatar
4 votes
1 answer
115 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 ...
user avatar