While trying to use the titlesec package to format subsection headings, I have run into some trouble. I need subsection headings formatted so that they are indented using the value that is set with the command \setlength{\parindent}{[some length]}, where [some length] is an arbitrary length.
More specifically, I would like to use something similar to this:
...
\usepackage{titlesec}
\titleformat{\subsection}[runin]{}{}{}{}[.]
\titlespacing{\subsection}{0em}{0ex}{1em}
...
\subsection{[subsection title]} Subsection text ...
in order to produce subsection headings that look like this:
[parindent-length space][subsection title]. Subsection text that is
not indented just like you would expect in a regular paragraph

