I am using the titlesec package to format my chapters in the following way:

\titleformat{\chapter}{\rmfamily\bfseries}{\resizebox{!}{2cm}{\Roman{chapter}}}{0pt}{\vskip 0.25\baselineskip \raggedright\sffamily\Huge}

This produces the chapter number in roman numerals, then the chapter name underneath it. It works well when I use the \chapter command.

But when I use \chapter*{}, I get a 2cm blank space and then the title of the chapter underneath that space. For \chapter*{}, I want the chapter name to start at the same position as the chapter number does for \chapter{}. How can I do this?

  • 2
    use numberless variant – touhami May 16 '16 at 12:45
  • @touhami: Answering or closing? – user31729 Aug 30 '16 at 21:20
  • @ChristianHupfer i can't find a duplicate. If you have an answer please post it. – touhami Aug 30 '16 at 21:46
  • @touhami: Well, you suggested numberless -- isn't that the answer? I don't use titlesec, I can't answer this! – user31729 Aug 30 '16 at 22:11
  • @ChristianHupfer your wish is my command ;-) – touhami Aug 30 '16 at 22:26

The titlesec package provides numberless option for \titleformat to be used in case of no label (starred sections)

\titleformat{\chapter}{\rmfamily\bfseries}{\resizebox{!}{2cm}{\Roman{chapter}}}{0pt}{\vskip 0.25\baselineskip \raggedright\sffamily\Huge}
  • A quick answer (+1) – user31729 Aug 30 '16 at 22:33

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.