Questions tagged [autoref]
The autoref tag has no usage guidance.
99
questions
1
vote
1
answer
38
views
change appendix name when using autoref
Whenever I use \autoref{sec:anexo1}, it displays 'Apêndice'. However, I want it to display 'Anexo', because the document uses Portuguese as main language and the word Anexo suits better than Apêndice ...
0
votes
0
answers
32
views
Compiled label points towards the wrong label
I am struggling with an issue where I defined several labels that are wrongly compiled by latex.
I have several chapters with numerous paragraphs, sections, tables, and equations, for instance, that ...
0
votes
1
answer
28
views
Format of \autoref for subfigures
I am using \autoref to cite figures in my document.
Here is an example with codes.
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{caption}
\usepackage{float}
\...
2
votes
0
answers
30
views
Conflict between hyperref and showkeys with autoref
maybe this is a stupid question but I would like to know why the \autoref{} of hyperref package conflicts with the showkeys package (to allow in draft mode to see the labels) even when passing the ...
3
votes
1
answer
90
views
Automated labelling and references in enumerate list
I am preparing a syllabus book containing a number of courses. For each course, I have an enumerated list of course objectives. Then I have units/modules under the course that addresses those ...
1
vote
0
answers
203
views
`\autoref` seems broken in latest revtex4-2
\autoref can no longer generate hyperlinked cross-reference in the latest revtex4-2 document class.
% !TeX spellcheck = en_US
% !TeX program = pdflatex
\documentclass[superscriptaddress]{revtex4-2}
%\...
0
votes
1
answer
164
views
How to capitalize Algorithm when referencing an algorithm using \autoref?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[]{algorithm2e}
\usepackage[hidelinks]{hyperref}
\begin{document}
\section{Introduction}
\begin{algorithm}[H]
\KwData{this text}
\...
1
vote
0
answers
106
views
Why doesn't autoref capitalize?
Why does \autoref not capitalize my sections? I think it capitalizes everything else and I have the line \newcommand{\sectionautoref}{Section}.
\documentclass{article}
\usepackage{graphicx}
...
0
votes
0
answers
65
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{...
2
votes
1
answer
141
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}
\...
2
votes
1
answer
377
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
147
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
34
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
177
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
183
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
82
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
56
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
57
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
41
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
27
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
143
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
252
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
258
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
312
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
178
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
105
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
287
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
215
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
165
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
350
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
393
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{...
2
votes
1
answer
279
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 ...
2
votes
1
answer
310
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
132
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
294
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
385
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
38
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....
1
vote
3
answers
276
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
600
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
628
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
98
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
136
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
120
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]{...
1
vote
1
answer
154
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
266
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-...
5
votes
1
answer
723
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
134
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
568
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
175
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
320
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 ...