Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{book}
- usepackage[utf8]{inputenc}
- usepackage[T1]{fontenc}
- usepackage[svgnames]{xcolor}
- usepackage{lipsum}
- usepackage[explicit]{titlesec}
- newcommand{crulefill}{leavevmodeleadershrule height 0.7ex depthdimexpr 0.5pt-0.7exhfillkern 0pt}
- titleformat{section}{bfseriesLarge} {fboxrule=0.5ptfcolorbox{black}{white!0}{{color{black}thesection.}}rule[.7ex]{10pt}{.5pt} } {0pt} {upshapebfseriesLarge#1 crulefill}%
- titleformat{subsection}{bfserieslarge} {thesubsection.enspacecolor{LightSteelBlue}vrulecolor{black}}{0.6em} {#1}
- begin{document}
- setcounter{chapter}{1}
- section{Sección}
- subsection{Subsection}
- lipsum[11]
- section{Sección}
- lipsum[12]
- subsection{Subsection}
- lipsum[13]
- end{document}
Add Comment
Please, Sign In to add comment