[Tex/LaTex] Removing dot after section letter

punctuationsectioning

Right now this I'm getting this for my first subsubsection:

G.1.1.

I would like for this to be

G1.1.

Does anybody know if it is possible to remove the first dot and put G and 1 together without a space between? Code below:

\documentclass{article}

\begin{document}

\renewcommand{\thesection}{\Alph{section}}
\setcounter{section}{7}
\setcounter{subsection}{1}
\subsubsection{Hello World} % G.1.1 I want it to be G1.1

\end{document}

Best Answer

You have to redefine \thesubsection, i.e.,

\renewcommand{\thesubsection}{\thesection\arabic{subsection}}