Files
ScifiBook/FullBook.tex
Imrayya ff88ebc78f
All checks were successful
Build and Release LaTeX Book / build-and-release (push) Successful in 8m27s
Added some basic stuff with example
2025-06-06 12:46:52 +02:00

48 lines
1.2 KiB
TeX

\documentclass[a4paper, oneside]{book}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{changepage}
\usepackage{titlesec}
\usepackage{epigraph}
% Format chapter titles as "Chapter n: Title" in one line
\titleformat{\chapter}[block] % Use "block" style for better control
{\normalfont\Huge\bfseries} % Format for the entire title
{\chaptername\ \thechapter:\ } % Label (e.g., "Chapter 1: ")
{0pt} % Horizontal separation between label and title
{} % Code before title
% Adjust vertical spacing (match default book class spacing)
\titlespacing*{\chapter}{0pt}{50pt}{40pt} % {left}{above}{below}
\setlength\epigraphwidth{0.7\textwidth}
\setlength\epigraphrule{0pt}
% Center epigraph and its source
\renewcommand{\epigraphflush}{center}
\renewcommand{\epigraphsize}{\normalsize} % You can adjust font size here
\renewcommand{\textflush}{center}
%Changing header and footer
\fancyhf{}
\fancyhead[L,R]{}
\fancyhead[C]{\thepage}
\fancyfoot[R]{\footnotesize\textit{\leftmark}}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\include{Chapter/Extra/acknowledgement}
\tableofcontents
\include{Chapter/Chapter 1/Chapter1}
\include{Chapter/Chapter 2/Chapter2}
\end{document}