\documentclass{memoir}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage[all]{xy}
\setcounter{chapter}{0}
\setcounter{secnumdepth}{3}
\renewcommand*\thesection{\arabic{section}}
\renewcommand*\thesubsection{\arabic{section}.\arabic{subsection}}
This gives me a "line" break after section, subsection, subsubsection. I want to keep the "line" break after section, but for subsections and subsubsections I want the text to continue on the same line right after the heading.
