I'm using the titlesec package to have runin subsection titles. However, I only want this some of the time, and if I try to break the line with \ it either throws an error to adds some weird indentation. Can anyone help?
% Inline subsection
\usepackage{titlesec}
\titleformat{\subsection}[runin]% runin puts it in the same paragraph
{\bfseries}% formatting commands to apply to the whole heading
{\thesubsection}% the label and number
{0.5em}% space between label/number and subsection title
{\large}% formatting commands applied just to subsection title
[]% punctuation or other commands following subsection title