我已将表格标签和部分编号格式化为小写字母。但是,在使用\autoref
和在 LOT 中时,表格编号都是小写字母。我不确定我需要更改什么。
笔记:这与标签无关桌子本身,而是关于编号A.1。
很多和\autoref
:
表格标题标签:
梅威瑟:
\documentclass[numbers=noenddot]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage[osf]{newpxtext}
\makeatletter
\patchcmd\appendix{\@Alph\c@chapter}{\@alph\c@chapter}{}{}
\renewcommand{\chapterlinesformat}[3]{%
\Ifstr{#1}{chapter}
{\makebox[\textwidth][l]{%
\parbox[b]{\textwidth}{\linespread{0.7}\selectfont\raggedchapter#3}\hspace{\marginparsep}\formatchapternumber{#2}}\\*[-.5\baselineskip]
\rule{\textwidth}{.4pt}\par}
{\@hangfrom\formatchapternumber{{#2}}{#3}}}
\newcommand*{\formatchapternumber}[1]{\fontsize{40pt}{40pt}\usefont{U}{eur}{m}{n}\MakeUppercase{#1}}
\renewcommand{\sectionlinesformat}[4]{\MakeLowercase{#4}\makebox[0pt][l]{\hspace{\marginparsep}\formatsectionnumber{#3}}}
\newcommand*{\formatsectionnumber}[1]{\scshape#1}
\makeatother
\setkomafont{chapter}{\huge\normalfont\lsstyle\scshape}
\setkomafont{section}{\large\normalfont\lsstyle\scshape}
\DeclareTOCStyleEntry[entrynumberformat={\textsc{tab.~}}, numwidth=5em]{tocline}{table}
\usepackage[labelfont={sc}]{caption}
\usepackage[hidelinks]{hyperref}
\begin{document}
\listoftables
\autoref{tab:test}
\appendix
\chapter{test}
\section{test}
\begin{table}
\caption{Test}\label{tab:test}
\end{table}
\end{document}
答案1
解决问题\renewcommand{\thechapter}{\scshape\alph{chapter}}
后再放行。\appendix