Questions tagged [autoref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
52 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
1answer
31 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?
1
vote
2answers
23 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
1answer
16 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
2answers
22 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
1answer
36 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
4answers
37 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
1answer
26 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
1answer
23 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
1answer
35 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
1answer
44 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
1answer
41 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
1answer
65 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
35 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
105 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
39 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
140 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
54 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
2answers
191 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
47 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
71 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
51 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
50 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
131 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
266 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
617 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
438 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
53 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
480 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
811 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
121 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
183 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
614 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 ...
3
votes
1answer
2k 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
117 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
200 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
233 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
309 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
2k 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
455 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
785 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 ...
4
votes
1answer
370 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
479 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
833 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
410 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
144 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 ...
4
votes
1answer
608 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 ...