Título de capítulo moderno
Aug 23 2020
Eu gostaria de replicar o design do cabeçalho deste capítulo que você vê na imagem abaixo. Acho que titleec é o caminho a percorrer, mas tenho problemas para alinhar o nome do capítulo e o número do capítulo. Além disso, como você lida com títulos de capítulos muito longos, de modo que eles não colidam com o número?
Respostas
3 Bernard Aug 23 2020 at 19:03
Aqui está um exemplo de como isso pode ser feito:
\documentclass[12pt, a4paper,oneside]{book}
\usepackage{geometry}
\usepackage{newtxtext}
\usepackage[svgnames]{xcolor}
\usepackage{graphicx}
\usepackage[newlinetospace]{titlesec}
\titlespacing*{\chapter}{0pt}{*-4}{*8}
\titleformat{\chapter}[block]{\sffamily\bfseries\Huge\rlap{\hspace*{\textwidth} \scalebox{0.06}{\includegraphics{twd}}\vspace{-2ex}} \color{CornflowerBlue}\rlap{\rule{\paperwidth}{3pt}}}%
{\rlap{\makebox[\dimexpr\textwidth+\marginparsep+0.6 \marginparwidth][r]{\raisebox{-0.6\height}{\scalebox{2}{\thechapter}}}}}%
{0pt}{}%
\begin{document}
\setcounter{chapter}{3}
\chapter{Tweedledum\\[-1ex] and Tweedledee}
They were standing under a tree, each with an arm round the other’s neck, and Alice knew which was which in a moment, because one of them had ‘DUM’ embroidered on his collar, and the other ‘DEE.’ ‘I suppose they’ve each got “TWEEDLE” round at the back of the collar,’ she said to herself.
They stood so still that she quite forgot they were alive, and she was just looking round to see if the word “TWEEDLE” was written at the back of each collar, when she was startled by a voice coming from the one marked ‘DUM.’
‘If you think we’re wax-works,’ he said, ‘you ought to pay, you know. Wax-works weren’t made to be looked at for nothing, nohow!’
‘Contrariwise,’ added the one marked ‘DEE,’ ‘if you think we’re alive, you ought to speak.’
\end{document}
O que significa um erro “Não é possível encontrar o símbolo” ou “Não é possível resolver o símbolo”?
George Harrison ficou chateado por suas letras de 'Hurdy Gurdy Man' de Donovan não terem sido usadas