Meu objetivo é o indicado no título da pergunta. Existem outras questões abordando isso, mas as respostas selecionadas, pelo que posso dizer, não combinam com meu outro código existente, que está resumido abaixo.
\documentclass[11pt]{article}
\usepackage{amsmath,amsthm,titlesec}
\numberwithin{equation}{section}
\newcommand{\periodafter}[1]{#1.}
\newcommand{\presectionskip}{-1\baselineskip}
\newcommand{\postsectionskip}{0.3\baselineskip}
\makeatletter
\renewcommand{\section}{\@startsection
{section}{1}{0mm}%% name, level, indent
{\presectionskip}% % beforeskip
{\postsectionskip}% % afterskip
{\normalfont\LARGE\bfseries}}% % style
\renewcommand{\subsection}{\@startsection
{subsection}{2}{0mm}
{\presectionskip}
{\postsectionskip}
{\normalfont\Large\bfseries}}
\renewcommand{\subsubsection}{\@startsection
{subsubsection}{3}{0mm}
{\presectionskip}
{\postsectionskip}
{\normalfont\normalsize\bfseries}}
\makeatother
%\usepackage[font=bf]{caption}
%\titleformat{\section}{}{\thesection.}{1ex}{\periodafter}
%\titleformat{\subsection}{}{\thesubsection.}{1ex}{\periodafter}
%\titlelabel{\thetitle.\quad}
\begin{document}
\section{Good section}\label{sec:refl}
\subsection{Superior subsection}\label{tableworks}
\subsubsection{This, the best of all subsections}
\end{document}
Obrigado por qualquer idéia sobre como fazer isso funcionar.
Responder1
A solução fornecidaaquifunciona perfeitamente. Você também se preocupa em obter um ponto nas referências?
% arara: pdflatex
\documentclass[11pt]{article}
\usepackage{titlesec}
\newcommand{\presectionskip}{-1\baselineskip}
\newcommand{\postsectionskip}{0.3\baselineskip}
\makeatletter
\renewcommand{\section}{\@startsection
{section}{1}{0mm}%% name, level, indent
{\presectionskip}% % beforeskip
{\postsectionskip}% % afterskip
{\normalfont\LARGE\bfseries}}% % style
\renewcommand{\subsection}{\@startsection
{subsection}{2}{0mm}
{\presectionskip}
{\postsectionskip}
{\normalfont\Large\bfseries}}
\renewcommand{\subsubsection}{\@startsection
{subsubsection}{3}{0mm}
{\presectionskip}
{\postsectionskip}
{\normalfont\normalsize\bfseries}}
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname.\quad}
\makeatother
\usepackage{blindtext}
\begin{document}
\section{Good section}\label{sec:refl}
\subsection{Superior subsection}\label{tableworks}
\subsubsection{This, the best of all subsections}
\blindtext
\end{document}