I'd like to change chapter format, including lines up and down and text right aligned, like in the next figure, without using titlesec
package:
Here it's my code:
\documentclass[a4paper,openright,12pt]{report}
\usepackage[utf8]{inputenc}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{0\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\huge\bfseries
% \@chapapp\space % removed
\thechapter
\nobreakspace{}% \par\nobreak\vskip 20\p@ % replaced
\fi
\interlinepenalty\@M
\huge % \Huge % replaced
\bfseries #1\par\nobreak
\vskip 25\p@
}}
\makeatother
\begin{document}
\chapter{Chapter}
\end{document}
In the preamble, the code it's in order to change chapter format from "Chapter 1 \\ Chapter title" to "1. Chapter title".
Someone has any idea to include lines and align text to the right as shown in the above image? Thank you.
titlesec
?titlesec
package, compilation fails. It seems like there are problems among packages.