Questions tagged [ref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
32 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} ...
3
votes
1answer
48 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
0answers
35 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 - ...
0
votes
1answer
23 views

Referencing figures in Supplementary Information

I am hyperlinking with \usepackage{hyperref} and using the following command to start a Supplementary Information section: \begin\newcommand{\beginsupplement}{ \setcounter{section}{0} \...
0
votes
0answers
14 views

Use manual reference in elsarticle for elsevier journal paper

I am converting my word paper to latex. I'm using the elsarticle template from elsevier. In my word document I have manualy entered the references in name year style. Can I use the same format in ...
0
votes
0answers
10 views

Custom destination name for custom float label reference

I am using newfloat to define a 'supptable' float to customize the label and so on with the caption package, also I am using hyperref. It would be nice to change the destination names, by which I mean ...
0
votes
1answer
33 views

/ref not working. Too many }'s. Figure ref\{fig:tsdiag}

my code is as follows \begin{figure} \includegraphics[width=\linewidth]{tsdiagrambraytoncycle.JPG} \caption{T-S diagram of the Brayton Cycle} \label{fig:tsdiag} \end{figure} and my ...
0
votes
0answers
49 views

I want a good explanation of how to use \ref , \tag , \label when dealing with texts and equations and mathematical proofs?

I don't have experience with how to deal with \ref, \tag and \label, and how they work together and on their own.
0
votes
0answers
38 views

Missing point in references

My question is regarding the object references. My tables and figures are numbered like: figure:1.2.: table:1.3.1.: But when I try to reference these objects with: \ref{fig:example} \ref{tab:...
1
vote
1answer
45 views

Including “Appendix” in ref / ref as in TOC

I am using the appendix package with the title and titletoc options. This gives me an "Appendix" prefix in the TOC and in the actual section header. Is there an option to include the prefix in a ...
1
vote
2answers
35 views

Refer to a figure/table

I set up a label with \label{fig:f1} Now i want to be the ref "figure 1" How do i do that? With varioref it is "1 on the next page" And actually with hyperref "1"
2
votes
2answers
29 views

Use \nameref without displaying the entire name

Say I have a TeX section: \section*{Appendix A: My Name is Blah} \label{appendix} but I want to refer to "Appendix A" without the ": My Name is Blah". Is there a way to do this? The code \nameref{...
0
votes
0answers
32 views

Link text and figures including subplots

I have a figure with many subplots created and labeled in Matlab. In the text of the tex file, I need to refer to each subplot separately e.g. 1a) 1b)..., nevertheless I can obviously link only the ...
3
votes
2answers
55 views

Reference a list with letters

I defined parlist using lower case letters for the items (I know that there are other ways to use letters for the items but I wanted to customize the list style anyway). Unfortunately, if I refer to ...
0
votes
1answer
23 views

Make “property” countable as theorem or lemma

I need to reference some text in a itemized list. If I label the item and then referencing it, will appear in the result document a link to the closest section. If I label the item and then "...
1
vote
1answer
28 views

Using \autoref in IEEE article templates

I'm writing an article in the IEEE conference template. In the instructions to the use of this template, is written that equations must be referenced in the text as for exemple: "(1)", and figures as "...
0
votes
1answer
49 views

\ref + \inaccessible : ideas to help debug a document?

I have a error in a document and I'm unable to debug it. The errors At the second compilation of my document, the command \ref{} raises the error Missing control sequence inserted \...
1
vote
1answer
23 views

How to reference a tcbh theorem

I created a customised theorem environment via "\newtcbtheorem", however the referencing does not work properly. For example: \documentclass[a4paper, 11pt]{article} \usepackage[a4paper,left=3cm,right=...
0
votes
0answers
28 views

Getting a correct reference after being labeled with a command inside \label

If I label something with a command like this: \label{lst:\mycommand} Because \mycommand changes for everything I'm labelling in a particular repetitive section. When I'm using \ref{lst:abcd} for ...
0
votes
0answers
25 views

Creating a bracket [] macro for \ref when using hyperref

I've been trying to add brackets around cross-references in a more automatic manner in my recent report, but haven't been able to do so just yet. A simple \newcommand-macro does not seem to work. I've ...
1
vote
1answer
40 views

Why does \ref not jump to appendices but to subsection of section 3?

I have to deal with appendices in multiple papers which are represented by chapters. For this purpose I had to rewrite the appendix-environment (see MWE). It now is at the section layer. The ...
2
votes
2answers
82 views

Use \nameref to get text from a custom environment

I've got an own environment for requirements. In my document I want to reference each requirement and get its text. If I use \namref I get only the name of the corresponding section. Can someone help ...
1
vote
2answers
44 views

Align function not counting equations correctly when referencing them

When I use the \begin{align}\end{align} method to line up a group of related equations, the equation number next to the equation is counted correctly, but when I reference the equation using \ref{eq:...
2
votes
1answer
57 views

My reference to my `tcolorbox` doesn't work

I'm just trying to reference one of my example in my text but it's always labelled with the upper previous counter (here the section number). My example environment is defined as exmp which are a ...
0
votes
1answer
45 views

Using labels with enviroment \tcolorbox and personal titles

I'm a bit stack about using labels in my latex document, first, I have used this command to create a personal title \newcommand {\mytitleTeo}[1]{ \node[fill=red!30, ...
1
vote
1answer
48 views

Refer to Numbered Section in moderncv Class using \ref

I would like to refer back to a numbered section in the moderncv class using \ref but I am unable to do so. I read the post titled Using \ref in moderncv class and I was able to get the following: \...
0
votes
0answers
17 views

Multiple sets of references in Bibiliography

\documentclass[hyperref={pdfpagelabels=false},xcolor={table}]{beamer} \usetheme{Madrid} \usecolortheme{rose} \usefonttheme{structurebold} \useinnertheme{rounded} \usepackage[latin1]{inputenc} % <- ...
4
votes
2answers
57 views

Cleveref - Conditional label formats

I am trying to define a new reference style with cleveref: \crefname{prop}{property}{properties} \creflabelformat{prop}{#2#1.\@#3} This is meant to be used in a list of numbered properties in an ...
5
votes
3answers
66 views

Add a $\pm$ to the label in order to distinguish two different cases

I have an equation and I would like to label it in order to refer to it later on in the text, say \begin{equation}\label{eq1} f^\pm(x)=\ldots \end{equation} This labels the equation with, say, (1)...
0
votes
1answer
36 views

reference in the running head and babel

If section title contains a reference like \section{Proof of Theorem~\ref{maintheorem}} and we load babel, but not include \nouppercaseheads then LaTeX in interprets \ref{maintheorem} as \ref{...
2
votes
1answer
38 views

reference from equation does not work well

I have a problem with: \numberwithin{equation}{section} it only references the equation number not the chapter and the equation number. \documentclass[]{scrartcl} \usepackage[T1]{fontenc} \...
0
votes
0answers
157 views

Figure and table numbers are missing a period

I am writing a science dissertation in the memoir class. The numbering system of the figures and tables appears to use the Chapter Figure number in chapter format, but does not include any separator ...
0
votes
1answer
18 views

How to display the Refs Section on some frames?

I am using the online LaTeX editor for the presentation preparing. I need to add the References Section into the frame(s). I have tried two variants: The first attempt is: \section{References} \...
2
votes
1answer
134 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 ...
0
votes
1answer
38 views

Problem with \ContinuedFloat subfigs

I am trying to have multiple tabulars as subfloats using the subfig package and the table environment. Adding another table environment and binding them with \ContinuedFloat and stopping the table-...
1
vote
1answer
40 views

Wrong hyperref with repeated counter

I'm having an interesting problem with hyperref. Apparently, when a counter is reset by \setcounter{mycounter}{0} then hyperref always links to the first possible instance of the counter and not the ...
0
votes
0answers
57 views

Why \ref displays the label itself rather than the number

I met a strange problem. If a have a label \label{fig:Name}. The cross referencing code \ref{fig:Name} cannot show the proper number. 1 for example, but the label fig:Name itself. And the label is ...
1
vote
1answer
60 views

reference to a \section*{}

I need to answer my assignment in latex with a Assignment 1a Assignment 1b Assignment 1c Assignment 2a Assignment 2b I have tried to use the \section*{}, but referencing then doesn't work. Is ...
5
votes
2answers
182 views

Table mislabeled as figure

I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table ...
1
vote
1answer
51 views

How to use \refstepcounter correctly in attempt to implement subfigures?

Trying to use space on a page more economically, I developed the idea to arrange graphics as a table being part of a figure. As I still wanted to refer to individual graphics, I also wanted to have ...
2
votes
1answer
51 views

\autoref and subequations

I have an issue with \autoref and the subequations environment. I have added the () around the equation reference of \autoref (as explained here) and it works fine with normal equations. On the other ...
1
vote
1answer
31 views

Including a pdf into latex and reference it

A friend recommended me to use elsarticle for a report, which I am currently doing. Now I need to add an external pdf which contains a figure. Adding the figure works fine, but I wonder if I can ...
4
votes
1answer
86 views

How to use \ref Inside lstlistings

How can I use \ref inside lstlisting. I create two lstlistings, e.g. listing1 and listing2. Now, in the third lstlisting, I want to give a reference to them. But when I do, I do not get the ...
2
votes
1answer
67 views

Doc-Start appearing when using xr package

I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from ...
0
votes
0answers
19 views

Expand references to implicit local paragraph and line numbers

I just submitted a revised manuscript to a journal that demanded a list of locations in which the manuscript had been changed. It did not allow visible line numbers to be typeset on every page—...
0
votes
0answers
45 views

Redefine \autoref for paragraphs

I'm working with \autoref from the hyperref package to reference my sections, etc. What I currently work with: \documentclass[a4paper, 12pt, parskip]{scrreprt} \usepackage[utf8]{inputenc} \...
0
votes
2answers
150 views

Why does a figure get numbered once with Arabic and once with Roman numerals--when the same command is used?

This seems rather bizarre. I use the same command Fig.~\ref{fig:twoqubitplot} twice in my LaTeX overleaf.com document. In the output, once I get Fig. 2 and once Fig. II. Mico asked for a minimum ...
0
votes
0answers
29 views

appear the word “Lemma ” automatically [duplicate]

If we want to refer to "Lemma 3.4", we can write " Lemma \ref{number9}". Is there a command that the word "Lemma" or "Theorem" or ... appear automatic too? (i.e we write ... and in pdf appear "Lemma ...
1
vote
1answer
80 views

Reference in latex document to part of Matplotlib (pgf) generated figure

I have a Python script which draws a plot similar to this: fig = plt.figure() ax = plt.axes() x = np.linspace(-2,2,10) y = x**2 ax.plot(x, y, label='$x^2$', color="#07529a", linewidth=2.0) # <--...
0
votes
0answers
162 views

Reference 'fig:01_01' on page 1 undefined

I'm writing my thesis and I've founded some problems with refer a figure. For example, in the below code, I have a main.tex and I call other chapters with input or include (e.g. ch1). In the "ch1" I ...