Questions tagged [autoref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
33 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
1answer
24 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
1answer
34 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
1answer
18 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
2answers
123 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
3answers
42 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]...
3
votes
2answers
152 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
1answer
38 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 ...
2
votes
1answer
37 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
37 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
0answers
35 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
1answer
76 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
1answer
175 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 ...
3
votes
1answer
401 views

How to autoref an appendix in IEEE template

I need to autoref an appendix but I need the autoref to appear as Appendix A not section A. I use an IEEE conference template. It has a specific command for appendices and to add appendices under it, ...
1
vote
0answers
21 views

How to cross reference between tex files [duplicate]

I have looked at all the previously posted answers. None have answered my questions. This is my example: I have a main document called paper.tex: \documentclass[11pt,twoside,a4paper]{article} \...
0
votes
1answer
247 views

How to redefine Section and Subsection in autoref names

I want do redefine Section and Subsection in autoref names the same way \renewcommand\chaptername{NewChapterName} \renewcommand\chapterautorefname{NewChapterName} do with Chapter names. How i do ...
1
vote
0answers
52 views

Automatically refer to first and last item of enumerate list [duplicate]

I want to refer to item list in text automatically (without using \label command). Following is the code I am using. It could be any number of item and it should list starting and end list number ...
0
votes
1answer
273 views

autoref for subsection

When I use autoref for subsection, I want the in-text to be section 1.1 instead of subsection 1.1. How to do that. I tried to write it with ref as: section \ref{sec:subsection} But the problem is ...
4
votes
2answers
565 views

Removing prefix from autoref output

I have started using \autoref to perform some referencing between sections inside LaTeX. Consider the following MWE and its screenshot: \documentclass{article} \usepackage{hyperref} \begin{document}...
1
vote
0answers
36 views

Cleveref refuses to find references [duplicate]

Ok, so I have a document where I made use of \autoref. I've been told now, that we want all chapters, sections, subsections, etc. capitalised. Since there is no \Autoref and I couldn't get its ...
0
votes
1answer
76 views

Autoref with optional argument text *in generated link*

Related to Autoref with optional argument, I would like to define an (optional) argument to \autoref that appears after the regular autoref printout, but within the actual link that is generated by \...
2
votes
1answer
126 views

Autoref with optional argument

Something I have always wanted to do is use \autoref with an optional argument, similarly to the use that is often made of \cite: I would like to be able to write \autoref[comment]{label}, to obtain [...
4
votes
2answers
504 views

Hyperref's Autoref When Using the Same Counter for Theorems, Lemmas, Etc

First, apologies if this is a duplicate: I have genuinely searched for the question, but haven't been able to find it! I am using the same counter for my theorems, lemmas, propositions, etc. I want ...
2
votes
1answer
1k views

Chapter cross reference not capitalized with \autoref [duplicate]

When I use \autoref{}, from the hyperref package, to cross reference a \chapter{}, the cross-reference in the text is not capitalized. How can I change this? \documentclass{report} \usepackage{...
0
votes
0answers
20 views

Automatic labeling of multiple figures in figure environment [duplicate]

I'm doing a project which generates 10 to 20 similar images, which I should implement in a report. Since they are all "generic" I would like to have an algorithm which autogenerates the image, caption ...
1
vote
1answer
94 views

Customizing the numbering scheme

I'm rather new to TeX and got it working, but letting it look nice is a different can of worms :-) I'm using llncs and hyperref. My numbering scheme at the moment is the default, like part: ...
0
votes
1answer
161 views

customize appearance of cross-references to 'subfigure' objects [duplicate]

In regard to these questions customize of autoref and \autoref does not expand abbreviation automatically at beginning of line I would like to know, how I can customize the pasting of ...
3
votes
2answers
202 views

Autoref: show counter befor label

This might look weird but it is culture specific. Is it possible to somehow change autoref to render "1 Figure" instead of "Figure 1"?
2
votes
2answers
228 views

Hyperlinks, theorems, enumerate, and autoref

Hyperlinks to theorem-like environments that begin with a nested itemize or enumerate are often broken (see for example http://tex.stackexchange.com/a/187647). Here is a MWE: \documentclass{amsart} \...
5
votes
2answers
1k views

Change “chapter” to “Chapter” - How to do this using autoref?

I am trying to change "chapter" to "Chapter" when autoreferencing the label I have looked for a solution and some comment in this closed question Change text in LaTeX chapter titles from "...
2
votes
0answers
411 views

How to change \chapterautorefname with cleanthesis template?

I tried to change the \chapterautorefname as used by \autoref{} command but without success. The hint that normally did this job was \addto\extrasenglish{% \renewcommand{\chapterautorefname}{...
1
vote
2answers
712 views

how to call subsection in autoref?

I wonder if there any option to call subsection or subsubsection in a way of using \autoref{}? For example: \subsection{Basic Structure} ..... ..... ..... According to \autoref{\subsection{Basic ...
2
votes
1answer
305 views

Wrong autoref names when using polyglossia and 'english' env

Related: Wrong autoref names when using babel's `main=` feature Hyperref ignores \setdefaultlanguage from polyglossia MWE: \documentclass{memoir} \usepackage{hyperref} \usepackage{polyglossia} ...
1
vote
1answer
390 views

Full Part/Chapter/Section etc. Hierarchy shown in Autoref (Koma Script 3.2, scrbook)

I am writing a long piece of text that is structured into several parts, numerous chapters, etc. In the later part of the document, I need to reference sections etc. that belong to a previous Part, ...
7
votes
2answers
643 views

Create a smart cross-reference to a line in an 'algorithmic' environment using \autoref

To set the name of the \autoref command for an algorithm I use: \newcommand{\algorithmautorefname}{Algorithm} like commented here. I would also like to be able to refer to lines within an ...
1
vote
2answers
338 views

changing autorefnames inserts space in header

I use hyperref and autoref, but redefine the autorefnames. I'm putting chapter and section names into my page-headers using scrlayer-scrpage. There's some unwanted space, always on the left side in ...
1
vote
1answer
112 views

autoref, titleclass and titlesec — display parent and child counter

I want to implement a new titleclass for workpackages (WP) and a nested title subclass for subworkpackages. Both should work similar to \section and \subsection, i.e., the subworkpackage counter is ...
3
votes
1answer
456 views

change name in hyperref

I am trying to change the name of equation in hyperref. For this I use the command: \addto\extrasngerman{\def\equationeautorefname{\itshape Gleichung}} If I use \autoref, for section, subsection and ...
3
votes
3answers
891 views

Change autoref and caption name for only one figure

I saw in Change figure caption name only in one figure, not all how to change the caption name for only one figure but I need to change de autoref name too. Using \begin{figure} \renewcommand\...
1
vote
1answer
298 views

Using \autoref with bibliography references

I use \autoref with all of my figures, tables, etc. since I like the look and feel of the output, and also the ease of customisability (for instance, if I change my mind about how to reference figures)...
1
vote
2answers
150 views

redefine \autoref with section number as paramenter

In chinese, the word order generated by \autoref is different from english, e.g., Section 2.1 in chinese reads Di 2.1 jie So is there any possible to redefine \sectionautorefname to generate the ...
9
votes
1answer
3k views

autoref for algorithms

\usepackage{algorithm,algpseudocode} \usepackage{hyperref} So when I \begin{algorithm} \caption{Baseline}\label{ALG_baseline} \begin{algorithmic}[1] ... \end{algorithmic} \end{algorithm} the ...
2
votes
1answer
907 views

\autoref from hyperref not showing correct theorem label

I am writing some lecture notes for a course on overleaf. \documentclass[a4paper,11pt,openany]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} \usepackage[colorlinks=true]{...
3
votes
1answer
150 views

footnotebackref package changes behaviors of \autoref for floats containing footnote

For tables or figures with footnote in their caption, through footnote package for example, the use footnotebackref would remove the text in \autoref{...}. Is there a way to fix that? (Note: footnote ...
0
votes
1answer
606 views

Specify Color for autoref Without Affecting Other Document Links

I am creating a document to be used by people not familiar with TeX. I am using the autoref command throughout the document to refer to tables, figures, etc. I would like to clearly signal to my ...
4
votes
1answer
440 views

Difference between \autoref and \autoref* (autoref star)

I know the difference between \ref and \autoref, yet I don't know the exact meaning of \autoref*. I think that I've read about it some time ago and that it has something to do with the link type in ...
2
votes
1answer
563 views

autoref inside a section name, using amsthm and thmtools

The following example works well: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[parent=section]{theorem} \usepackage{hyperref} \begin{document} \section{Section} \...
1
vote
1answer
734 views

No autorefname for appendices when using babel with ngerman and appendix package

When using the appendix package together with [ngerman]{babel} changing appendixautorefname or Appendixautorefname has no effect. The error message No autoref name for 'Anhang' [...] persists. How ...
3
votes
2answers
419 views

Refcheck and \autopageref not getting along

Consider the following MWE: \documentclass[12pt]{article} \usepackage[colorlinks]{hyperref} \usepackage[norefs]{refcheck} \begin{document} Why? \label{stuff} Because \autopageref{stuff} \end{document}...
3
votes
1answer
712 views

how to print the \sectionautorefname with autoref, but without hyper-linking the \sectionautorefname?

EDIT: @Faekynn and @Mico you are right that the starred version disable the hyperlinkification, but is it possible to disable it only for the \sectionautorefname, but still keep it for the section ...