I need to change reference to table to "табл. CHAPTER_NUM.TABLE_NUM", I was tried to do something like:
\documentclass[a4paper, ukrainian, utf8, 14pt]{extreport}
\setcounter{secnumdepth}{5}
\makeatletter
\renewcommand\p@table{табл. \thechapter.\arabic{table}\expandafter\@gobble}
\makeatother
\begin{document}
\chapter{Chapter}
\section{Section}
Lorem ispum \ref{t:table}.
\begin{table}
\label{t:table}
\begin{tabular}{| c | c | c | c | c | c |}
\hline
\multicolumn{1}{|p{2cm}|}{Col} &
\multicolumn{1}{p{2.2cm}|}{Lorem} &
\multicolumn{1}{p{2.2cm}|}{Ispum} &
\multicolumn{1}{p{2.2cm}|}{Dolor} \\ \hline
1 & 50 & 1,44 & 1,85 \\ \hline
2 & 50 & 1,44 & 1,85 \\ \hline
3 & 51 & 1,44 & 1,85 \\ \hline
4 & 45 & 1,44 & 1,85 \\ \hline
5 & 53 & 1,44 & 1,85 \\ \hline
\end{tabular}
\end{table}
\end{document}
it works perfectly with figures, but with tables it doesn't do anything.
Maybe is there any other way to change \ref
format?
P.S I'm using XeTex.
\cref
command, from\cleveref
? This package is done for that.ukranian
orserbian
or another language spoken by humans, but ok :-)