# 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 that?

I am not sure, if I understand what you want to do (there is no MWE in the question).

Assuming you are loading package hyperref:

\documentclass{report}
\usepackage[english]{babel}
\usepackage{hyperref}
\def\chaptername{NewChapterName}%
\def\sectionname{NewSectionName}%
\def\subsectionname{NewSubsectionName}%
}
\def\chapterautorefname{Auto-NewChapterName}%
\def\sectionautorefname{Auto-NewSectionName}%
\def\subsectionautorefname{Auto-NewSubsectionName}%
}
\begin{document}
\chapter{Chapter Title}\label{chap}
\section{Section Title}\label{sec}
\subsection{Names}\label{subsec}
\chaptername, \sectionname, \subsectionname
\subsection{Autorefnames}
\autoref{chap}, \autoref{sec}, \autoref{subsec}
\end{document}


Result:

• Yes, you got the point. But I tried this, and it did not work. – Marco Aug 24 '18 at 2:09
• @Marco My example as above? Or my code in your document? Note, there is no MWE in your question. So nobody knows what you really doing. Additionally nobody knows what »did not work« means. – esdd Aug 24 '18 at 18:26
• Your example. But I solved it, I posted an answer. Thanks! – Marco Aug 26 '18 at 18:15
• My example works for english. In your question brazil is not mentioned :( So nobody knows that this language should be used. And if you replace option english by option brazil, \captionsenglish by \captionsbrazil and \extrasenglish by \extrasbrazil, it still works ... – esdd Aug 26 '18 at 19:19