Questions tagged [autoref]
The autoref tag has no usage guidance.
91
questions
0
votes
0
answers
19
views
autoref figure labels in tufte-book
This seems to be an issue with tufte-book figure labeling but I'm not sure whether it's something I can work around.
\documentclass{tufte-book}
\usepackage{listings}\lstloadlanguages{C}
\usepackage{...
1
vote
1
answer
22
views
Strange Autoref Countering of lstlisting
I made a new listtype called mycodes and want to autoref to them. The problem is, when using autoref to a lstlisting-block the number of the listing is wrong!
The code
\documentclass[]{article}
\...
1
vote
1
answer
35
views
New autoref categories
I have a document in which I define new environment for examples (MWE below). In it, I define the prefix for referencing it, which is simple example:nameofexample.
Now, when working with \autoref I ...
4
votes
2
answers
109
views
AUTOREF error [italian] with \todonotes
The \autoref keeps writing "sezione" (section) instead of "Teorema" (Theorem), I've tried different solutions (even the "%" one) but they simply don't want to work for me....
0
votes
1
answer
20
views
How to match autoref numbering with chapter numbering format?
The chapter number in \autoref doesn't match with chapter number in text.
MWE:
\documentclass{book}
\usepackage{titlesec}
\usepackage{hyperref}
\titleformat{\chapter}[display]%
{\filcenter\...
0
votes
1
answer
58
views
Package hyperref warning on figures
For each \autoref that I use on my code to reference images, I get the following error:
Package hyperref
Warning: No autoref name for `{1}{3}' on input line 3
The name varies for each image: {2}{4} ...
0
votes
0
answers
44
views
Using \autoref with a starred * part, chapter, section in a report
I'm writing my thesis in LaTex and I'm having issues with \autoref. The issues are illustrated in the MWE below. I included the whole preamble in case there are conflicting packages in it (hyperref ...
1
vote
1
answer
31
views
Unable to compile a document containing autoref to figure labels using xelatex
When I try to build my document using xelatex when \autoref tries to reference a figure label
% !TEX program = xelatex
% !TEX options = -shell-escape -interaction=nonstopmode %DOC%
% !BIB program = ...
0
votes
0
answers
30
views
Enumeration in caption messes with labels
I am trying to use an enumeration inside the caption of a table. However, this messes the label of the table, when I later try to reference it using autoref. See figure and sample document following.
...
1
vote
1
answer
28
views
Conflict between thmtools and hyperref/autoref
I want to use \autoref in an entry in the PDF toc (the purpose is a appendix with proofs). But unfortunately the three ingredients \addcontentsline, \autoref, thmtools conflict with a cryptic error ...
2
votes
1
answer
29
views
Referring to figure with different label
I am using the following code from Changing Figure label to Map or some other label to have Map as a label.
\documentclass{article}
\usepackage{float}% http://ctan.org/pkg/float
\newfloat{map}{htbp}{...
0
votes
0
answers
25
views
Autoreferencing bug with subfigure created with \subbottom command
I have a figure with subfigures, and try to \autoreference them as per usual.
However, I noticed a strange bug: The first one (subfigure a)) gets referenced as Fig.() instead of Figure 4.1(a). The one ...
0
votes
0
answers
58
views
Removing trailing white space after \ref and \autoref
I've used \autoref and \ref throughout my whole document and I have a trailing space through on each reference to figures (see photo).
From what I can tell I may need to protect the end of lines, but ...
0
votes
1
answer
89
views
Redefining format for \autoref for equations causes unwanted format for subequations
In order to be able to reference the equations in my thesis in the format like "Equation (2.2.3)" using the \autoref command I added the following lines in my preamble:
\makeatletter
\let\...
1
vote
1
answer
66
views
Why is autoref displaying a blank space in place of the "figure" text when referencing
I am currently writing my masters thesis and ran into a little problem.
I have created a figure consisting of three smaller figures, each with their own subtexts, rendering the figures as 4.1a, 4.1b ...
3
votes
2
answers
180
views
svjour3 with envcountsame breaks autoref and cleveref
When converting my manuscript to Springer's custom svjour3 document class using the option envcountsame (to use only one counter for all theorem-like environments), all references to propositions, ...
2
votes
1
answer
61
views
Why is autoref not working for claims?
So I'm trying to reference a claim with autoref
\documentclass[a4paper,UKenglish]{article}
\usepackage{graphicx}
% Used for displaying a sample figure. If possible, figure files should
% be included ...
1
vote
0
answers
50
views
How to get brackets by using autoref for align equations
I want use autoref to reference equations like this:
Equation (8.19), but my output is: Equation 8.19
I tried to proceed as in (search for "Einstein" )
autoref and braces around equation ...
1
vote
1
answer
75
views
Autoref a single appendix as "Appendix" without \section
I'm trying to autoref a single appendix as the word "Appendix." It seems simple enough to do with more than one section within the appendix (through use of \section), but seems to break when ...
3
votes
2
answers
74
views
if caption package is loaded autoref doesn't work correctly when using htlatex
If I use autoref while the caption package is loaded, the target type does not appear in the reference if I generate html with htlatex. If I use pdflatex, autoref works as expected.
Here's an example ...
1
vote
1
answer
55
views
Autoref numbering different from numbering displayed in theorem itself
I am facing the problem that the numbering for defined tcbtheorem is numbered correctly in the tcbtheorem environment itself, but that autoref typically displayes a different number, or gets stuck in ...
2
votes
1
answer
152
views
autoref without space
I want to reference sections in the form '§1'. I use hyperref.sty, and I have changed the sectionautorefname: \renewcommand{\sectionautorefname}{\S}. This prints '§ 1', with a space. Can I remove the ...
0
votes
1
answer
201
views
Autoref and hyperref colors customization
How to change the colour of cross-reference, I want the label to be in black and the number in blue as in the image
\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{...
1
vote
1
answer
159
views
How to Change Autorefname of Subfigure
I currently started to use the subfigure command instead of minipage to arrange several figures. I am using the subcaption package to do so. Now subfigure (other than minipage) references in the ...
1
vote
1
answer
109
views
Suppress section number, keep label
I'm looking for a simple way to use \label and \section* simultaneously. My goal is to have an unnumbered section with a label to be able to \autoref it.
The problem is: \label does not work when ...
1
vote
0
answers
79
views
Automatically change the formatting of undefined autoref
Is there a way to make the "??" that show up when a reference (autoref in particular) fails to load, red? So that it would be also easy to see which references have failed.
I have tried this ...
1
vote
1
answer
157
views
hyperref - \autoref: small space as separator
A command like \autoref{eq:speed} outputs Equation~1. I.e. there is a blank (a protected space, I guess) between Equation and the number. How can this be changed, e.g. into a small space?
2
votes
2
answers
191
views
Renaming equation name for reference is causing unwanted horizontal spaces
I succeded in renaming my equation names from the german word "Gleichung" into "Formel" through the following page:
https://golatex.de/formelverzeichnis-erstellen-t6688,start,8.html
This equation ...
0
votes
1
answer
22
views
How to force all subsubsections to be referenced as sections? [duplicate]
I am using the hyperref and autoref package to do cross-referencing in my document. When I am referring to subsubsection such as 3.1.1, I want to it to compile as section 3.1.1 and not subsubsection 3....
0
votes
3
answers
95
views
How to replace 'subsubsection' with just 'section' whilst using autoref package?
I am using the autoref package to make labelling of sections, figures and graphs much easier, and it really is much easier. However, when I am referring to a particular subsubsection, I just want it ...
0
votes
1
answer
96
views
Link to only section and subsection number, without the word "Section"
I would like to add links to the individual section and subsection numbers in my paper. I provided a picture with an example of what I want. So far using \autoref{} I get a link that gives "section 3" ...
1
vote
4
answers
384
views
rename autoref subsection false with babel[english]
I try to rename the \autoref from subsection to just section. But it seems that the [english]{babel} is preventing it somehow.
Interestingly it works for subsubsections (but I do not use them.)
\...
2
votes
1
answer
43
views
Cross-referencing problem if counter of theorem-like environments is shared
The problem is when i share numbering the \cref can't show name, even by \crefname and \autoref show all name Equation.
Here is an MWE:
%&latex
\documentclass{amsart}
%%%%%%%%%%%%%%%%%%%%%%%%%%%...
0
votes
1
answer
49
views
Equation cant be referenced - split environment
i'm currently working on using the equation environment in combination with split. I later want to reference this equation with only one number, but it simply doesnt work
\begin{equation}
\left\{ \...
1
vote
1
answer
68
views
Autoref after putting the same counter for all environments
I have a xelatex amsart document in which I defined first a counter
\newcounter{thms}
and then defined environments,
\theoremstyle{definition}
\newtheorem{thms}{Theorem}
\newtheorem{defni}[thms]{...
0
votes
1
answer
69
views
Cross reference to chapter or section name using \autoref
I want a link to a chapter or subsection name...
...
\begin{document}
\chapter{Laravel installation}
\label{laravelinstallation}
Install Laravel by...
\section{PhpStorm}
\label{phpstorm}
After ...
1
vote
1
answer
144
views
Problem with subfig, autoref and renewcommand
I have a problem with using the autoref
I want to change the format form 1a → Fig. 1(a)
What should I do?
Here is my code:
\documentclass[journal]{IEEEtran}
\hyphenation{op-tical net-works semi-...
3
votes
1
answer
370
views
(Solved, New) Parenthesis while using subfig and autoref
MWE first.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[subrefformat=simple,labelformat=simple]{subfig}
%\newcommand{\subfigureautorefname}{\...
0
votes
1
answer
83
views
Fancyhdr and hyperref - unwanted space before header
I'm writing a report in french. I'm using hyperref's autoref for cross-references and I have redefined some of the names used by the function, such as Appendix and Figure, in my preamble.
I just ...
1
vote
1
answer
364
views
What's the "right" way to ensure all of the autoref names are capitalized, in an sty?
Suppose I'm writing an .sty for people to use. This .sty might be loaded before or after hyperref, and possibly before some other packages define \chaptername, \chapterautorefname, \sectionname etc. ...
1
vote
1
answer
100
views
latex \def\chapterautorefname{chapter}, position of chapter
\documentclass[a4paper]{book}
\usepackage{hyperref}
\def\chapterautorefname{chapter}
\begin{document}
\chapter{1}
\label{1}
This is chapter 1.
Ref \autoref{1} here.
\end{document}
This code above ...
4
votes
2
answers
248
views
Add letter and simple quote in french with \autoref to appendix
I have the following rendering by using (french language) :
avec $k = k(k_\text{ref},\mu_\text{ref})$ et $\mu=\mu(\mu_\text{ref})$. Le d\'etail de l'obtention de cette relation peut-\^etre trouv\'e ...
1
vote
3
answers
194
views
How can I reference item (i) in Theorem 1.1 such that it displays "Theorem 1.1-(i)"?
Consider the following example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amsthm, amssymb, mathtools, thmtools}
\usepackage{hyperref, cleveref}
\usepackage[shortlabels]...
5
votes
2
answers
282
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 ...
4
votes
1
answer
95
views
Change equation numbering without changing labels
The crux of the issue is I want to refer to some equations as "Equation 1" in the body of the text. However, the actual numbering of the equations I want to appear as a right justified "eq. 1". Below ...
3
votes
1
answer
127
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
1
answer
87
views
Theorem titles in outer margins (even / odd pages)
I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, ...
0
votes
0
answers
193
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}
\...
2
votes
1
answer
432
views
Font style in ref and autoref
I'd like to use both \autoref and \ref, so when enumerating references in the text I can get something like "Ecuaciones 1 y 2" (with Ecuación 1 being a link inserted by \autoref and 2 a link inserted ...
4
votes
1
answer
535
views
Referencing line numbers in an algorithm using autoref
What is the autoref command to reference a line number of an algorithm? I tried to define stepautorefname, linenoautorefname and alglinenoautorefname commands as shown below but they don't work like ...