Questions tagged [zref]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
88 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
226 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
107 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
  • 311
0 votes
1 answer
87 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 = ...
matteo339's user avatar
  • 101
1 vote
1 answer
120 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 \...
matteo339's user avatar
  • 101
0 votes
0 answers
118 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
77 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
58 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
  • 921
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
99 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
410 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
535 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
212 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
167 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
308 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
107 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
58 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
51 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
  • 8,714
0 votes
1 answer
54 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
73 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
166 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
  • 13.8k
0 votes
1 answer
93 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
  • 3,932
0 votes
1 answer
83 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
71 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
56 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,047
4 votes
2 answers
570 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
645 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
  • 7,964
0 votes
1 answer
871 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
114 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,609
4 votes
1 answer
551 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
185 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
262 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
  • 8,139
2 votes
1 answer
87 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
89 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,449
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
317 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
  • 54.9k
4 votes
1 answer
80 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
332 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
58 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
230 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
3 votes
2 answers
244 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{...
Atom's user avatar
  • 33
2 votes
2 answers
364 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: \...
SongHerz's user avatar
  • 147
0 votes
1 answer
584 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 ...
stx932's user avatar
  • 950
1 vote
1 answer
105 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 ...
Obi_77's user avatar
  • 11
1 vote
1 answer
92 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} ...
SongHerz's user avatar
  • 147
4 votes
1 answer
249 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. ...
Jipí's user avatar
  • 1,037
1 vote
2 answers
472 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 ...
Jason's user avatar
  • 939
3 votes
0 answers
95 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 ...
MaPo's user avatar
  • 1,163