[Tex/LaTex] Avoid line break in section

line-breakingspacing

I do have a section name with a pretty long name but which could "nicely" fit on one line. I was wondering, therefore, how I could avoid the line to break, perhaps using some space compression and/or line overflow.


\documentclass[12pt,article,oneside]{memoir}
\usepackage[margin=1in]{geometry}
\begin{document}
\mainmatter
\section{Convolutional artificial neural networks --- ConvNets}
\end{document}

enter image description here

Basically, I'd like to have a one-line title (I don't like how it looks like, and gaining an extra line would be also quite helpful).

Best Answer

If you really want this you could just stick the title in an \mbox:

\documentclass[12pt,article,oneside]{memoir}
\usepackage[margin=1in]{geometry}
\begin{document}
\mainmatter
\section{\mbox{Convolutional artificial neural networks --- ConvNets}}
\end{document}
Related Question