[Tex/LaTex] How to get correct autoref for theorems

hyperreftheorems

I have some own theorem environments. And my theorems are numbered like the chapter. Now I would like to use autoref with that. But it does not work like it is described here (http://www.tug.org/applications/hyperref/manual.html) with aliascnt. So how can I get that?

\documentclass[ngerman,halfparskip,12pt,pointednumbers]{scrreprt}
\usepackage{babel}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage{amsmath,amsfonts,amssymb,amsthm,bbm}
\usepackage{hyperref}
\newtheoremstyle{absatz}
    {17pt}{10pt}{}{-1pt}{\scshape\bfseries}{.}{\newline}{}

\theoremstyle{absatz}

\newtheorem{satz}{Satz}[chapter]
\newtheorem*{satz*}{Satz}
\newtheorem{lemma}[satz]{Lemma}
\newtheorem{corollar}[satz]{Korollar} 

%\renewcommand*{\theoremautorefname}{Satz}
\begin{document}
\begin{satz}
\label{Satz}
text text theorem
\end{satz} 

In \autoref{Satz} we have shown...
\end{document}    

Best Answer

\autoref requires the name of the environment in the form \<name>autorefname to work. So, in order to properly "auto reference" your satz theorem, you should use

\newcommand{\satzautorefname}{Satz}

enter image description here

\documentclass[ngerman,halfparskip,12pt,pointednumbers]{scrreprt}
%\usepackage{babel}
%\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage{amsmath,amsfonts,amssymb,amsthm,bbm}
\usepackage{hyperref}
\newtheoremstyle{absatz}
    {17pt}{10pt}{}{-1pt}{\scshape\bfseries}{.}{\newline}{}

\theoremstyle{absatz}

\newtheorem{satz}{Satz}[chapter]
\newtheorem*{satz*}{Satz}
\newtheorem{lemma}[satz]{Lemma}
\newtheorem{corollar}[satz]{Korollar} 
\newcommand{\satzautorefname}{Satz}

\begin{document}
\begin{satz}
\label{Satz}
text text theorem
\end{satz} 

In \autoref{Satz} we have shown...
\end{document}  ​