在这个例子中,我如何定制\autoref
。即,而不是打印table 1
,它提出了Tab.1
同样的问题Figure = Fig.
和equation = Eq.
\documentclass{article}
\usepackage[T1]{fontenc}
%\usepackage[francais]{babel}
\usepackage{graphicx}
\usepackage[font=footnotesize,labelfont={bf,sc,small},figurename=Fig.,tablename=Tab.]{caption}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}
\begin{document}
change the writing of \autoref{tab} to Tab.1
\begin{table}[htbp]
\begin{center}
\begin{tabular}{|l|l|}
\hline
table & Tab. \\
\hline
figure & Fig. \\
\hline
equation & Eq. \\
\hline
\end{tabular}
\end{center}
\caption{Exemple d'environnement table}
\label{tab}
\end{table}
\end{document}
答案1
瞧:
\documentclass{article}
\usepackage[T1]{fontenc}
%\usepackage[francais]{babel}
\usepackage{graphicx}
\usepackage[font=footnotesize,labelfont={bf,sc,small},figurename=Fig.,tablename=Tab.]{caption}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}
\begin{document}
\renewcommand{\tableautorefname}{Tab.} % PS
change the writing of \autoref{tab} to Tab.1
\begin{table}[htbp]
\begin{center}
\begin{tabular}{|l|l|}
\hline
table & Tab. \\
\hline
figure & Fig. \\
\hline
equation & Eq. \\
\hline
\end{tabular}
\end{center}
\caption{Exemple d'environnement table}
\label{tab}
\end{table}
\end{document}
应该改变“不是\somethingname
但是”的意思\somethingautorefname
。在本例中是“但是” \tableautorefname
。