Added some basic stuff with example
All checks were successful
Build and Release LaTeX Book / build-and-release (push) Successful in 8m27s

This commit is contained in:
2025-06-06 12:46:52 +02:00
parent 7b7d8962e0
commit ff88ebc78f
5 changed files with 54 additions and 4 deletions

3
.gitignore vendored
View File

@@ -320,3 +320,6 @@ TSWLatexianTemp*
# Built Visual Studio Code Extensions
*.vsix
# Custom Ignore
*.pdf
.vscode/settings.json

View File

@@ -1 +1,2 @@
Hello world
\chapter{Awaking}
\lipsum[1-20]

View File

@@ -0,0 +1,5 @@
\chapter{Upward}
\epigraph{
\lipsum[5][1-3]
}{\small\textit{Potato}}
\lipsum[20-30]

View File

@@ -0,0 +1,2 @@
\chapter*{Acknowledgement}
Thanks you Dad. Love you

View File

@@ -1,9 +1,48 @@
\documentclass{book}
\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}
FullDocTest
\include{Chapter/Extra/acknowledgement}
\include{Chapter/Chapter1/Chapter1}
\tableofcontents
\include{Chapter/Chapter 1/Chapter1}
\include{Chapter/Chapter 2/Chapter2}
\end{document}