2 votes
Accepted

Modifying a known titlesec macro for chapters for variable length rule

The last argument to \titleformat can be a command, to which the chapter title is passed as the last argument. So we can distinguish between numbered and unnumbered chapters. The “Chapter N” bit is ...
egreg's user avatar
  • 1.1m
1 vote

Modifying a known titlesec macro for chapters for variable length rule

Try this (simplified) code. (1) The length of the longest line of the chapter title is returned in \titlewidth. You must use the calcwidth package option. (2) The explicit package option allows using #...
Simon Dispa's user avatar
  • 38.9k
1 vote

Create particular chapter titleformat style with tikz

My attempt with tikz and titlesec packages. \documentclass[a4paper]{report} \usepackage{tikz} \usepackage[explicit]{titlesec} \usepackage{lipsum} \titleformat{\chapter}[hang] {\sffamily} ...
Mane32's user avatar
  • 802

Only top scored, non community-wiki answers of a minimum length are eligible