I switched from a proof environment to a custom one, if I begin the custom environment with an enumerate, there is a linebreak that I'd like to prevent. The MWE shows the difference between the proof environment and ex. I tried playing with spacings, and /nobreak, to no avail.
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts}
%% Packages
\usepackage{amsmath,amsfonts}
\usepackage{amsthm}
\usepackage[matha,mathb]{mathabx}
\usepackage[shortlabels]{enumitem}
\usepackage[french]{babel} % load last
%% Custom environments/macros
\newcounter{exnum}[section]
\newenvironment{ex}
{\stepcounter{exnum}\paragraph{Exercice \thesection.\theexnum.}}
{\hfill\(\Box\)}
\begin{document}
\section{Section 1}
\begin{ex}
\begin{enumerate}[(a),wide=0pt]
\item foo
\end{enumerate}
\end{ex}
\begin{proof}
\begin{enumerate}[(a),wide=0pt]
\item foo
\end{enumerate}
\end{proof}
\end{document}

proofenvironment. There seems to be quite a bit to do with trivlists, especially when defining custom theorem-like environments. Thanks! – zuggg Nov 21 '14 at 19:25