You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section titles can be made uppercase by adding \MakeUppercase to the 6th argument of \@startsection (noted in source2e, pg. 901). The following does this, but if tagging is active, a warning results.
\DocumentMetadata
{
testphase = {phase-III,firstaid},
pdfstandard = ua-2,
pdfversion = 2.0,
lang = en-US,
}
\documentclass{article}
\usepackage{etoolbox}
\patchcmd{\section}{\bfseries}{\bfseries\MakeUppercase}{}{}
%% same result this way, as expected
%\makeatletter
%\renewcommand\section{\@startsection {section}{1}{\z@}%
% {-3.5ex \@plus -1ex \@minus -.2ex}%
% {2.3ex \@plus.2ex}%
% {\normalfont\Large\bfseries\MakeUppercase}}
%\makeatother
\usepackage{hyperref}
\begin{document}
\section{A short section}\label{sec:1}
Text in Sect.~\ref{sec:1}.
\end{document}
With tagging, the following appears
Package hyperref Warning: Counter 'SECTION' or the representation '\theHSECTION`
(hyperref) don't exist. No target created. on input line 23.
The text was updated successfully, but these errors were encountered:
Section titles can be made uppercase by adding
\MakeUppercase
to the 6th argument of\@startsection
(noted in source2e, pg. 901). The following does this, but if tagging is active, a warning results.With tagging, the following appears
The text was updated successfully, but these errors were encountered: