I am using Lyx on Windows. How do I get the formatting of the whole document to look like:

\subsubsection{\textmd{Blah blah blah}}

without manually setting it for each line?

2 Answers 2


If you want to only change the text:


As per Stefan's suggestion if you also want to also adjust the numbering:

  • No, it does not seem to change it for me. I am new to lyx/tex, I just put it in to the preamble, is this correct?
    – Casey
    Commented Aug 14, 2011 at 5:21
  • 1
    If you add it in your preamble, it should change the formatting of the sub-subsection to \mdseries (via \textmd{...}), but the numbering will still remain and be typeset using \bfseries. That is, in bold. Is this what you want?
    – Werner
    Commented Aug 14, 2011 at 5:36
  • CORRECTION- This does work, I was not seeing the change inside Lyx, but when I viewed as PDF it displayed correctly. Thank you.
    – Casey
    Commented Aug 14, 2011 at 5:57
  • @Peter: Perhaps add \let\OriginalTheSubsubsection\thesubsubsection \renewcommand{\thesubsubsection}{\textmd{\OriginalTheSubsubsection}}, this would also adjust the number. Of course for the complete text, but this might be desirable.
    – Stefan Kottwitz
    Commented Aug 14, 2011 at 11:25

You can use the titlesec package to format any sectional command. For example, obtaining a medium formatting for \subsubsection use

\usepackage{titlesec}% http://ctan.org/pkg/titlesec

In a more general setting, the respective arguments of \titleformat is


Note that optional arguments are specified using [...], while mandatory arguments use {...}. Consequently, in the above redefinition of \subsubsection, <format>=\mdseries for medium font, <label>=\thesubsubsection to print the number of the sub-subsection, <sep>=1em to provide a space of 1embetween thesub-subsection title, and` is also empty. Play around with these settings to see what fits you, or leave a comment.

Finally, read the package documentation for more information on the details of each component.

  • Thanks you for the help, however your first example removed the subsubsection numbers from the document, which is not what I am looking for. Thanks for the reply.
    – Casey
    Commented Aug 14, 2011 at 5:59
  • Good explanation! In contrast to the subsubsection patch, the number matches the title, i.e. is not bold. And using titlesec further customizations would be easy.
    – Stefan Kottwitz
    Commented Aug 14, 2011 at 11:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .