I'm writing a document (article class). I'm using the clever reference package to crossreference sections, and I have modified the references so the \cref{label} produces, for example if it's section 2, the symbol §2. I have also modified the (sub)section and part title formats via titlesec, all with the following code:
\crefname{section}{§}{§§}
\Crefname{section}{§}{§§}
\crefname{part}{§}{§§}
\titleformat*{\section}{\Large §\scshape\centering}
\titleformat*{\subsection}{\large §\scshape}
\titleformat{\part}[display]
{\LARGE §\scshape\centering}
{\thepart}
{0em}
{}
The last thing I would like to do is to make it print the symbol § before the number of the section in each section. I have tried doing like above, just putting it in the second {} of the titleformat command for each of them, but that obviously writes it before the title of the section, leaving something like this:
3.1 §This is a section.
Plus Auctex returns an error when compiling with Latex (Error ocurred after las TeX file closed) although it produces the correct dvi file.
How could I correctly achieve that?
Thanks in advance.
\titleformat. – Mico Apr 28 '15 at 08:08