Added some basic stuff with example
All checks were successful
Build and Release LaTeX Book / build-and-release (push) Successful in 8m27s
All checks were successful
Build and Release LaTeX Book / build-and-release (push) Successful in 8m27s
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -320,3 +320,6 @@ TSWLatexianTemp*
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
|
||||
# Custom Ignore
|
||||
*.pdf
|
||||
.vscode/settings.json
|
||||
@@ -1 +1,2 @@
|
||||
Hello world
|
||||
\chapter{Awaking}
|
||||
\lipsum[1-20]
|
||||
5
Chapter/Chapter 2/Chapter2.tex
Normal file
5
Chapter/Chapter 2/Chapter2.tex
Normal file
@@ -0,0 +1,5 @@
|
||||
\chapter{Upward}
|
||||
\epigraph{
|
||||
\lipsum[5][1-3]
|
||||
}{\small\textit{Potato}}
|
||||
\lipsum[20-30]
|
||||
2
Chapter/Extra/Acknowledgement.tex
Normal file
2
Chapter/Extra/Acknowledgement.tex
Normal file
@@ -0,0 +1,2 @@
|
||||
\chapter*{Acknowledgement}
|
||||
Thanks you Dad. Love you
|
||||
45
FullBook.tex
45
FullBook.tex
@@ -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}
|
||||
Reference in New Issue
Block a user