[Tex/LaTex] How to add section characters in LyX

lyxsectioning

I want my work to have those curly section marks (\S) at the beginning of every section. I came across this question: Section Symbol and Number, which does answer the question in LaTeX but I was wondering if there's an even simpler answers for those who use LyX?

Best Answer

Well, @SeanAllred answered the question in the comments section. Since it bugs me to leave a question unanswered I thought I'd just add it as an answer. (I'm not sure if that agrees with stack exchange etiquette, guess I'm about to find out)

The simple answer would be to copy these lines

\usepackage{titlesec}
\titleformat{\section}{\normalfont\Large\bfseries}{\S\thesection}{1em}{}

to the LaTeX preamble box under Document -> Settings -> LaTeX Preamble. I have tried it and it works well!

A different approach suggested by @scottkosty is to create a LyX module for this. I haven't tried it, so I wouldn't know.

Thanks for the help!