0

I am using th titlesec package to redefine paragraphs (as well as a few minor changes). Essentially, I just want to change the format from bold to italic font. Here's my code:

    \usepackage[compact,
        explicit]{titlesec}
        \titleformat{\paragraph}[runin]{\normalfont\normalsize\bfseries}{}{2pt}{}

While LaTeX compiles just fine, the paragraph title disappears when the \titleformat{... command is used. Instead, there is just a blank space.

I tried the example command from Standard Classes in the titlesec manual (p. 23):

\titleformat{\paragraph}[runin]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} 

which gives the same error, i.e. the title disappears.

  • It seems the error is due to specifying global options for the package – altabq Apr 7 '14 at 9:03
1

From page 4 of the manual: Titles disappear due to the global explicit option. When explicit is called globally, the title must be given explicitly with #1. That is:

\usepackage[compact,
    explicit]{titlesec}
    \titleformat{\paragraph}[runin]{\normalfont\normalsize\bfseries}{}{2pt}{#1}{}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.