Questions tagged [ref]

The tag has no usage guidance.

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

tikz-plot label and ref in beamer inside only overlay

MWE: \documentclass{beamer} \usepackage{pgfplots, pgfplotstable,stackengine} \begin{document} \begin{frame}{Frame Title} \only<1>{} \only<2>{ \begin{tikzpicture} \begin{axis} \...
0
votes
0answers
15 views

Insert figure automatically at first \ref (not at declaration)

I have inherited a long document with a high density of figures. As I am going through the editing process, I noticed that it is prone to producing errors with respect to the position and sequence of ...
0
votes
2answers
29 views

out of order table of contents entries with pdfpages

currently i am in a situation where i have inserted some pages via includepdf, followed by additional \includepdf calls that use the addtotoc function, as follows: \includepdf{pdffile1} \includepdf{...
0
votes
1answer
27 views

linking specific page of document with pdfpages' linktotoc option

i am wondering if there is an easy way to link a specific page of a document added via pdfpages. for example if i have: \includepdf[addtotoc={1, section, 1, sectionname, sectionlabel, ...
1
vote
1answer
11 views

Restatable Does not Show Theorem Number

I learned about restatable from this answer. However, when I put the theorem in the appendix, its reference does not have a number. Here is a MWE: \documentclass{amsart} \usepackage{thmtools} \...
0
votes
0answers
25 views

How to use -cd label in latexmkrc when “No file C1.aux LABELS NOT IMPORTED.” error occured

I just get No file C1.aux LABELS NOT IMPORTED. error when I try to use \usepackage[subpreambles=true]{standalone} and \externaldocument{C1} commands, in order to quote from another latex files. I'm ...
0
votes
2answers
31 views

Non-breaking space (`~') should have been used in table

I am making a table with \ref{key} as only content in the first column. I am dynamically referring to item numbers in an \enumerate{}. CHKTeX gives me the warning Non-breaking space (`~') should have ...
0
votes
0answers
19 views

Color stack action is missing & Missing number, treated as zero

I am writing my thesis and I have roughly a lot of packages that were used during my research. Which could confuse the latex? I got a number of errors, and references do not show up. Package ...
0
votes
0answers
29 views

Custom Algorithm Environment - Automatically Inserting a Caption causes \ref to refer to the line number instead of algorithm number

I have a custom environment using xparse which I am using for pseudocode. \NewDocumentEnvironment{MyFunc}{o m o g d<> o} { \IfValueTF{#1}{\begin{algorithm}[#1]}{\begin{algorithm}[ht]} \...
0
votes
1answer
34 views

Referencing a Figure from an Appendix in the main text so that it includes the Appendix letter and figure number

I am referencing a figure from an Appendix in my main text, but I would like the reference to show the Appendix letter and figure number if it referencing a figure in the Appendix. For example, right ...
1
vote
1answer
30 views

Hyperlinks to tables that are in Appendix do not work well

In my Thesis I have to add suplementary tables into Appendices. I have to referenced them in the text outside Appendices. There are some hyperlinks that works well, but others, like the example that I'...
0
votes
1answer
59 views

How to add a link to a local html file(Bokeh figure) in Overleaf

I have a Bokeh figure which is saved locally as a html file how do I add a link to it in Overleaf? I've tried: \href{run:C:/---path---/file.html}{LINK} To no avail.
3
votes
2answers
135 views

cleveref type referencing for writing Constraint(s)

\cref{eq15,eq16,eq17,eq18} produces Eqs. (15) to (18). Some of the equations I want to write as Constraint/constraint/Constraints/constraints depending on the position of reference and number of ...
3
votes
2answers
94 views

How to cross-reference the (whole) bibliography?

A simple question, but I was unable to find it on Stackexchange here or somewhere else. I want to cross-reference the header generated by \printbibliography, i.e. not a specific entry but just the ...
3
votes
1answer
35 views

I want a different \ref for \section than the numbering

I have the following section numbering \renewcommand{\thesection}{\Roman{section}.} I introduce a section by \section{Literature Review}\label{sec:lit} and get "II. Literature Review" Now,...
0
votes
0answers
10 views

Identifying fault in multiple reference command

I have thesis template which uses the following command to refer to two references at once: \newcommand{\Equations}[2]{Equations~\eqref{#1} and~\eqref{#2}} \newcommand{\Sections}[2]{Sections~\ref{#1}~...
0
votes
0answers
17 views

Is it possible to label/export the 'total' from the Invoice package?

The invoice package helpfully uses calc to add up the total amount owed. Is it possible to label this total and then reference it elsewhere in the document? This would be quite useful as obviously ...
0
votes
0answers
30 views

Adding a label to graphic inside a longtable

There are multiple images in my long table environment, however I could not find a way to correctly label all the images in this long table. \setcounter{ltrow}{0} \setlength\LTleft{-1cm} \begin{...
0
votes
2answers
25 views

Write full ref name

\renewcommand{\figurename}{Paint } \begin{figure}[h] \includegraphics{22.png} \label{fig:22} \end{figure} This is example reference \autoref{fig:22} It write This is example reference Figure ...
3
votes
2answers
177 views

Refer to an equation with multiple labels

I have the following equation: \begin{equation}\tag{E$_{n}$}\label{E} f_n(x)=a \end{equation} When I write \eqref{E} I am referred to the equation and it is written E_n My question is: how to be ...
0
votes
1answer
34 views

Using \ref to refer to a section included in a document using \addcontentsline [duplicate]

I realize that this question appears to be similar to the following but it is different: Using hyperref with \addcontentsline I was unable to use the link above to solve my problem. I am writing a ...
1
vote
1answer
49 views

How to customize caption for supplementary materials?

I have two tex files, i.e., main.tex and supplementary.tex. For supplementary.tex, I have three requirements: Captions of figures start with prefix 'Figure S'. So I set, \documentclass{article} \...
1
vote
1answer
20 views

How to change the color of reference numbers in my dissertation?

The color of numbers for references is green . I need to change it to black. Any help is massively appreciated .
0
votes
0answers
23 views

How to extract the counter number of a reference in a bibliography?

I am in the process of writing up my thesis. There is a figure I included in my writing, which was adapted from a publication that I cited in the thesis, so this reference belongs to one of the ...
0
votes
1answer
51 views

Which package should I use? [duplicate]

I am reading a pdf which I guess it's written in LaTex, so all I need to know is that which package is this to refer figures and bib items?
2
votes
2answers
27 views

Equation ref in toc

I have the following code: \documentclass[a4paper,12pt,twoside,openright]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[italian,english]{babel} \usepackage[...
2
votes
1answer
36 views

Labeling Text in the Appendix and referencing it with (A.1), (A.2), … in the paper

I have the following problem: I have different bold written headers in the appendix and want to reference them in my paper \documentclass{report} \usepackage{amsmath} \usepackage{hyperref} \begin{...
2
votes
0answers
61 views

Reduce whitespace after \ref

I have the following latex file: \documentclass[AMA,STIX1COL]{WileyNJD-v2} \usepackage{moreverb} \usepackage{algpseudocode} \usepackage{algorithm} \usepackage{tabu} \usepackage{tabularx} \usepackage{...
1
vote
0answers
29 views

eqref - showonlyrefs

I have equations and I want to reference some of them. Also, I would like to number only the equations that I reference. For some reason when I use \mathtoolsset{showonlyrefs=true} - nothing works and ...
0
votes
0answers
17 views

Referencing a page outside of latex build

The wording of the title is not among my finest works, but let me explain my situation. I am writing an introduction to my dissertation, which consists also of three peer-reviewed articles. These ...
0
votes
1answer
17 views

Citation and Referring doesn't work on VS Studio Code

I am using Visual Studio Code for my Tex editor. Everything works fine except when I try to \ref a paragraph or \cite something from the bibliography. Could you please help? Thanks!
0
votes
1answer
23 views

Problem while referencing chapters

I am currently finishing my thesis. Being new to Latex I wrote 99% of the document in a WYSIWYG-type software then exported it as a Latex project and worked it around a bit into a decent project. I am ...
0
votes
0answers
59 views

XSIM and crossrefs

I looked at the template xsim_crossref.tex (in the XSIM documentation) to create hyperlinks between statements and solutions. It works fine but now I would like to hide the empty references (exercises ...
0
votes
0answers
16 views

Latex wrong reference number when I use minipage

I have searched many Forums with the same problem, but they all did not work for me. Whenever I put the reference to the img it ads up the subnumber +1. I should get something like " Picture 2.2a ...
0
votes
0answers
19 views

Reducing blank space in \ref statement when compiled

I am using Latex/Overleaf and I'm still relatively new to this way of drawing up documents. I'm currently using the optical society association template, and I really like how good my document looks ...
0
votes
1answer
19 views

Glossaries - How to retrieve referencing when using nonumberlist?

At the beginning, I use the glossaries package with the following options : \usepackage[toc]{glossaries} \setglossarystyle{long3col-booktabs} Since I add some options (and change the style) to ...
1
vote
1answer
24 views

How to drop the period character from custom item numbering when referencing the item?

Edit: Code snippet extended to a complete working sample. It contains all the packages used in the actual document I'm working with. I have a custom enumerate environment set up as: \documentclass{...
1
vote
2answers
78 views

Two separate equation counters?

I do my homework in LaTeX, and I encountered a new problem. I usually don't number my equations. In this assignment, I would like to number at least one equation of mine that I will reference later. ...
1
vote
1answer
67 views

problem in the reference on \newtcbtheorem

Consider the following code: \documentclass[a4paper,12pt,openany]{book} \usepackage[most]{tcolorbox} \usepackage{cleveref} \makeatletter \makeatother \newtcbtheorem[auto counter, number within = ...
0
votes
0answers
17 views

How to get a table of labels in the .tex and their corresponding numbers in the .pdf?

For doing corrections on my .tex files, it would be helpful to create a file with a table containing all the labels in one column and their corresponding equation, picture or theorem in the pdf. It ...
0
votes
0answers
21 views

Referencing my own .tex-files

I am trying to reference doc1.tex in doc2.tex inside the same project on overleaf. I have seen several posts here, but they were all not detailed enough for me. I am very new to LateX. So far I have ...
2
votes
1answer
30 views

Change the text style of references to line numbers in listings

Consider the following document: % Document \documentclass[10pt]{article} % Packages \usepackage{lipsum} \usepackage{xcolor} \usepackage{listings} \usepackage[ colorlinks, citecolor = blue, ...
1
vote
2answers
30 views

Numbering equation referring to another equation

Sorry I don't know if the title is clear. I would like to know how to do the following: I have an equation, lets say its number is 1.1 After a few paragraphs I want to write another version of ...
0
votes
0answers
25 views

How do I reference a table, figure or any other float before it occurs? [duplicate]

I understand that I'll need to compile my document multiple times to update references links. However I compiled it three times and it still can't display references before the actual table occurs. ...
4
votes
1answer
54 views

How to format \ref output as word instead of as number?

I have a requirement in a document of class book with which I'm working that requires all numbers below 10 (0 until 9, but not negative numbers I presume) to be written as a word. So in my document, ...
1
vote
1answer
74 views

Full referencing from exercises

I have the following setup: \documentclass{book} \usepackage{enumitem} \usepackage{hyperref} \hypersetup { colorlinks=true, linktoc=all, linkcolor=black, citecolor=teal, } \newlist{...
0
votes
0answers
27 views

numbering and refering to equation in the Appendix in Memoir

I am writing in Latex a mathematical Memoir with 2 chapters and a few Appendices named A, B, etc.. The labelled formulas in the Appendices turn out all numbered as A.0, B.0, etc. . When I refer to any ...
1
vote
0answers
35 views

Is there a way to SAVE and REUSE some contents later

%% 19 Feb 2020 \documentclass[12pt,a4paper,UTF8]{report} %% %% \usepackage{amsmath,amssymb} \usepackage{graphicx} \usepackage[flushleft]{paralist}[2013/06/09] \usepackage{hyperref} \usepackage{lipsum} ...
4
votes
1answer
79 views

prettyref bug when used with babel-french

I'm writting in French so I use babel. I'd like to use prettyref to keep from writting "Section" and co. The problem is that I can not use it with French babel. It throws me: ! Paragraph ended ...
0
votes
1answer
834 views

Using the xr package and - missing aux file? “Warning: No file SupplementalMaterial.aux LABELS NOT IMPORTED”

I'm using Overleaf to write a paper with supplementary material and have been having substantial trouble with separating out Supplemental Material while maintaining references. My MWE is as follows - ...