Skip to main content

Questions tagged [zref]

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

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

Add the prefix "Supplementary" to a subfigure when cross-referencing it (with "zref-clever")

This is a follow-up question to Add the word "Supplementary" to tables and figures, in a cross-referenced file, and How can I pass the name of a section from a tex file to another (with &...
Ommo's user avatar
  • 897
1 vote
1 answer
26 views

how to get a new zsavepos for each invocation of a command

In order to check when a margin overfills, I need to calculate the distance to the bottom. I hope I can do this with the \zsavepos command, but cannot see how I can have a new position determined for ...
user855443's user avatar
  • 1,198
0 votes
0 answers
69 views

How convert cleveref & varioref to zref-cleveref & zref-vario?

A book-length document heavily uses cleveref and varioref, so will not compile if I use: \DocumentMetadata{ testphase={phase-III,math,table}, pdfstandard=a-2u } (It also uses crossreftools; ...
murray's user avatar
  • 8,722
0 votes
1 answer
68 views

How can I pass the name of a section from a tex file to another (with "zref-clever")?

Introduction & Question. This is a follow-up question to Add the word "Supplementary" to tables and figures, in a cross-referenced file. Given the following MWE, which is based on the @...
Ommo's user avatar
  • 897
0 votes
1 answer
38 views

Met an error "mdframed.sty: error: 76: File `zref-abspage.sty' not found. \RequirePackage"

Met an error "mdframed.sty: error: 76: File `zref-abspage.sty' not found. \RequirePackage". Do I need to install the zref package?
Carl's user avatar
  • 489
0 votes
1 answer
70 views

Dynamic references with \zcref

My objective is to have the following mechanism for numbering \item in enumerate inside a theorem environment. When a new theorem wasn't issued yet (e.g. in the proof of the current theorem), then \...
Gargantuar's user avatar
  • 1,251
0 votes
1 answer
77 views

zref substitutes for some crossreftools commands?

I'd like to switch from cleveref and crossreftools to zref-based cross-referencing — including with zref-clever and zref-vario — (with hyperref, too), . [The reason is: (i) to allow compatibility with ...
murray's user avatar
  • 8,722
1 vote
0 answers
79 views

Does zref replace hyperref?

I quite recently stumbled over zref. According to its documentation and the one of zref-clever, the one benefit is that with these packages we don't need to hack LaTeX's referencing system anymore (...
atticus's user avatar
  • 607
3 votes
1 answer
101 views

Save current position without modifying the document layout

Description I would like to add code to the preamble of a document such that I am able to identify and store the vertical position of an environment without modifying the layout. That is to say I ...
overratedclunk's user avatar
1 vote
1 answer
330 views

Horizontally centering and vertically filling svg

I am trying to fill the remaining space of a page with a tcbox wrapped includesvg item. There is funny behavior when I do this. When including a tall svg, one which will not fill the entire width of ...
Logan's user avatar
  • 113
1 vote
1 answer
144 views

How to capitalize \zcref as \Cref does?

I'm trying to migrate from cleveref to zref-clever, due to the former incompatibility with pdfmanagement phase-III. Is it possible to have a variant of zref-clever and zref-vario that outputs "...
Polizi8's user avatar
  • 321
0 votes
1 answer
91 views

starred option & setup within a group

I would like to modify the following personal cross-reference macro (the initial idea comes from the question: macro supra/infra using zlabel). % !TEX encoding = UTF-8 Unicode % !TEX program = ...
matteofg's user avatar
  • 177
1 vote
1 answer
127 views

macro supra/infra using zlabel

I'm trying to make a cross-reference macro. I premise that my technical knowledge of LaTeX is basic ,-) I adapted the source code found here % !TEX encoding = UTF-8 Unicode % !TEX program = lualatex \...
matteofg's user avatar
  • 177
0 votes
0 answers
150 views

Cannot use enumitem-zref

I have following MWE: % ------------------------------------------------------- \documentclass{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{hyperref} \usepackage{...
texrec's user avatar
  • 1
0 votes
1 answer
87 views

How to use uppercase with zref?

I would like to use the command \makefirstuc (from the package mfirstuc) to capitalize the first letter of what is printed by the command \ztitleref (from the package zref). It doesn't work. Here is ...
alpagab's user avatar
4 votes
3 answers
60 views

Custom footer text on every sixteenth absolute page

For a book, an Indian publisher wants me to include what they call "forma numbers" (not sure what the standard term is, if there is one) with the book name abbreviation on every sixteenth ...
user22209's user avatar
  • 931
0 votes
0 answers
61 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 ...
Vincent Krebs's user avatar
0 votes
1 answer
107 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 ...
Vincent Krebs's user avatar
1 vote
1 answer
477 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
659 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 ...
Drew M.'s user avatar
  • 15
0 votes
1 answer
229 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 ...
Wicker's user avatar
  • 1
1 vote
2 answers
202 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 \...
Randall Fairman's user avatar
0 votes
1 answer
320 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}{}{} \...
Vincent Krebs's user avatar
0 votes
1 answer
118 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,...
Markus W.'s user avatar
  • 272
0 votes
1 answer
61 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} ...
Markus W.'s user avatar
  • 272
0 votes
0 answers
57 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... ...
tobiasBora's user avatar
  • 9,116
0 votes
1 answer
57 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 ...
TheEndofTheWorld's user avatar
1 vote
1 answer
95 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." ...
TheEndofTheWorld's user avatar
1 vote
2 answers
173 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 ...
gusbrs's user avatar
  • 14.3k
0 votes
1 answer
96 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}{%...
JardaFait's user avatar
  • 4,048
0 votes
1 answer
94 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} \...
lemzwerg's user avatar
  • 599
0 votes
1 answer
75 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 ...
Bilal Yilmaz's user avatar
0 votes
0 answers
38 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} ...
Bilal Yilmaz's user avatar
1 vote
0 answers
60 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 ...
ejazz's user avatar
  • 1,059
4 votes
2 answers
605 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 ...
Igor Kotelnikov's user avatar
0 votes
0 answers
688 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 ...
murray's user avatar
  • 8,722
0 votes
1 answer
993 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} \...
Adupa Vasista's user avatar
2 votes
2 answers
130 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} \...
Diaa's user avatar
  • 9,699
4 votes
1 answer
569 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 \...
pazathoth's user avatar
  • 360
2 votes
2 answers
198 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 ...
Tomáš Kruliš's user avatar
2 votes
1 answer
272 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 ...
cis's user avatar
  • 9,087
2 votes
1 answer
92 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 ...
Tomáš Kruliš's user avatar
1 vote
1 answer
91 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 ...
hannes101's user avatar
  • 283
0 votes
0 answers
1k 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 ......
shmuel's user avatar
  • 1,459
0 votes
3 answers
74 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} \...
Brooks's user avatar
  • 573
4 votes
0 answers
346 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 ...
AlexG's user avatar
  • 55.5k
4 votes
1 answer
85 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). ...
Steve L.'s user avatar
9 votes
2 answers
333 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
59 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{...
Hugh's user avatar
  • 2,384
3 votes
2 answers
244 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{...
SongHerz's user avatar
  • 147