Skip to main content

Questions tagged [autoref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
109 views

How Does Autoref Print Prefixes for Sublevels of Enumerate in LaTeX?

I am creating a list environment based on the enumerate environment. This environment will have up to two levels. For this, I am calling the enumitem package and calling the following initial settings....
lucenalex's user avatar
  • 331
0 votes
2 answers
90 views

From listing 1. to 1. listing in \autoref of a lstlisting

I'm using listings to display code in my document, and all is okay, or I was able to find a solution, except for one problem. When I autoref a listing, it references as "listing 1." in the ...
meszolym's user avatar
1 vote
1 answer
47 views

reference to a specific part of a subfigure in text

Hi there I was working on a subfigure and since it's part of a pipeline I wanted to have something in my main text saying: ... (Figure 4, top right) ... (Figure 4, middle) ... (Figure 4, bottom). Now, ...
Matteo's user avatar
  • 311
1 vote
3 answers
213 views

How to use \autoref to refer to a subfigure

Let's say I have a figure that actually has two subfigures (but composited into a single file), is there a way that I could get autoref to output "Figure 1A" and "Figure 1B"? What ...
Danny Garside's user avatar
0 votes
0 answers
37 views

Hyperlink the entire reference "Figure 1.2(a)" to the figure (no subfloats!)

I currently have some figures which are single images (no subfloats!) with multiple panels (a) and (b) like so: Now, I'm currently cross-referencing such figures like so Figure~\ref{fig:emotions}(a) ...
J-J's user avatar
  • 193
1 vote
1 answer
117 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 ...
Ashitaka's user avatar
0 votes
0 answers
37 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 ...
Mathias's user avatar
0 votes
1 answer
71 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} \...
wxwuse's user avatar
  • 149
2 votes
0 answers
42 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 ...
SimoPape's user avatar
  • 113
3 votes
1 answer
97 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 ...
Subhajit Paul's user avatar
1 vote
0 answers
220 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} %\...
Αλέξανδρος Ζεγγ's user avatar
0 votes
1 answer
379 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} \...
Curaçao Hajek's user avatar
1 vote
0 answers
221 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} ...
Hao S's user avatar
  • 868
0 votes
0 answers
79 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{...
Mario Carneiro's user avatar
2 votes
1 answer
211 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} \...
GURKE's user avatar
  • 65
2 votes
1 answer
574 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 ...
pelegs's user avatar
  • 267
4 votes
2 answers
165 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....
314159265358979323846264's user avatar
0 votes
1 answer
45 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\...
Bahman Mirzakhani's user avatar
0 votes
1 answer
200 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} ...
Willams Costa's user avatar
0 votes
0 answers
272 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 ...
SP1's user avatar
  • 77
1 vote
1 answer
116 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 = ...
Antonio Santoro's user avatar
0 votes
0 answers
60 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. ...
m000's user avatar
  • 151
1 vote
1 answer
73 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 ...
Thorsten's user avatar
  • 332
2 votes
1 answer
46 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}{...
user248507's user avatar
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 ...
Jones Johnson's user avatar
0 votes
0 answers
173 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 ...
Austin Benn's user avatar
0 votes
1 answer
427 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\...
thisismetrying's user avatar
1 vote
1 answer
422 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 ...
UndisclosedCurtain's user avatar
3 votes
2 answers
393 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, ...
Josse's user avatar
  • 437
2 votes
1 answer
244 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 ...
Hao S's user avatar
  • 868
1 vote
0 answers
136 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 ...
user99432's user avatar
  • 137
1 vote
1 answer
420 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 ...
cadams's user avatar
  • 115
3 votes
2 answers
301 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 ...
avren's user avatar
  • 133
1 vote
1 answer
208 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 ...
user229621's user avatar
2 votes
1 answer
474 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 ...
twsh's user avatar
  • 2,718
0 votes
1 answer
496 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{...
Abdelhak Elfengour's user avatar
2 votes
1 answer
326 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 ...
Timon's user avatar
  • 127
2 votes
1 answer
478 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 ...
SP1's user avatar
  • 77
1 vote
0 answers
143 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 ...
decode's user avatar
  • 11
1 vote
1 answer
347 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?
Friedrich -- Слава Україні's user avatar
2 votes
2 answers
527 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 ...
owmal's user avatar
  • 325
0 votes
1 answer
47 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....
Hamish Gibson's user avatar
1 vote
3 answers
463 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 ...
Hamish Gibson's user avatar
0 votes
1 answer
933 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" ...
David LeNir's user avatar
1 vote
4 answers
765 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.) \...
DeepWater's user avatar
2 votes
1 answer
132 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} %%%%%%%%%%%%%%%%%%%%%%%%%%%...
Ali Ashja''s user avatar
0 votes
1 answer
166 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\{ \...
Johannes's user avatar
1 vote
1 answer
167 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]{...
Denis Marcinkov's user avatar
1 vote
1 answer
167 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 ...
Mike A's user avatar
  • 31
1 vote
1 answer
337 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-...
zhaozhao xiao's user avatar