Finished formatting

This commit is contained in:
Kristofers Solo 2023-09-20 21:05:50 +03:00
parent 62bc2b678f
commit 2214d04487
6 changed files with 124 additions and 50 deletions

View File

@ -1,6 +1,7 @@
\documentclass[12pt]{article}
\usepackage[bf,center]{titlesec}
\documentclass[12pt]{report}
\usepackage{titlesec}
\usepackage[utf8]{inputenc}
\usepackage[latvian]{babel}
\usepackage{enumitem}
\usepackage{fancyhdr}
\usepackage{gensymb} % grādu simbols
@ -13,9 +14,11 @@
\usepackage{secdot}
\usepackage{tabularx}
\usepackage{tcolorbox}
\usepackage{tocloft}
\usepackage{tikz}
\usepackage{listings}
\usepackage{tocloft}
\usepackage{caption}
\usepackage{lipsum} % TODO: Remove
\usetikzlibrary{positioning}
\hypersetup{
@ -26,36 +29,50 @@
\urlstyle{rm}
\titlespacing*{\section}{0pt}{0pt}{1.5pt}
\titlespacing*{\subsection}{0pt}{0.5\baselineskip}{1.5pt}
\titlespacing*{\subsubsection}{0pt}{0.5\baselineskip}{1.5pt}
\titleformat{\section}{\large \bfseries \centering \vfill\eject}{\thesection.}{1em}{} % section formatting
\titleformat{\subsection}{\normalsize \bfseries \centering}{\thesubsection.}{1em}{} % subsection formatting
\titleformat{\subsubsection}{\normalsize \bfseries \centering}{\thesubsubsection.}{1em}{} % subsubsection formatting
\geometry{a4paper, left=3cm, right=2cm, top=2cm, bottom=2cm}
\titlespacing*{\section}{0pt}{2em}{2em}
\titlespacing*{\subsection}{0pt}{2em}{2em}
\titlespacing*{\subsubsection}{0pt}{2em}{2em}
\titleformat{\section}{\large\bfseries\centering\vfill\eject\MakeUppercase}{\thesection}{1em}{} % section formatting
\titleformat{\subsection}{\large\bfseries\centering}{\thesubsection}{1em}{} % subsection formatting
\titleformat{\subsubsection}{\large\bfseries\centering}{\thesubsubsection}{1em}{} % subsubsection formatting
\geometry{a4paper, left=30mm, right=20mm, top=20mm, bottom=20mm}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\linespread{1.3}
\linespread{1.5}
\setlength{\parindent}{1cm}
\setlength{\parskip}{0pt}
\renewcommand{\contentsname}{\hspace*{\fill}\bfseries\large Saturs\hspace*{\fill}}
\renewcommand{\cfttoctitlefont}{\centering\bfseries\large} % Remove \bfseries from ToC title
\renewcommand{\cftsecfont}{} % Remove \bfseries from section titles in ToC
\renewcommand{\cftsecpagefont}{} % Remove \bfseries from section titles' page in ToC
\renewcommand{\cftsecleader}{\cftdotfill{\cftsecdotsep}}
\renewcommand\cftsecdotsep{\cftdot}
\renewcommand\cftsubsecdotsep{\cftdot}
\renewcommand{\cftsecaftersnum}{.} % dot after section number
\renewcommand{\cftsubsecaftersnum}{.}
\setcounter{secnumdepth}{3} % Numering for subsubsections
\setcounter{tocdepth}{3} % Add subsubsections in ToC
% ToC config
\renewcommand{\cftsecfont}{\MakeUppercase}
\renewcommand{\cfttoctitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftaftertoctitle}{\hfill}
\cftsetindents{section}{0.5cm}{0.5cm}
\cftsetindents{subsection}{1cm}{1cm}
\cftsetindents{subsubsection}{1.5cm}{1.5cm}
% \addto\captionslatvian{
% \renewcommand{\contentsname}{Satura rādītājs}
% }
% TODO: configure table
% TODO: configure image
% Table config
\begin{document}
\input{./src/title-page.tex}
\tableofcontents
\thispagestyle{empty}
\setcounter{page}{2}
\input{./src/abstract.tex}
\tableofcontents
\input{./src/introduction.tex}
\input{./src/example.tex}
\end{document}

24
indent.log Normal file
View File

@ -0,0 +1,24 @@
INFO: latexindent version 3.20.1, 2023-01-07, a script to indent .tex files
latexindent lives here: /home/kristofers/.local/share/nvim/mason/packages/latexindent/
Wed Sep 20 21:04:54 2023
Reading input from STDIN
INFO: Processing switches:
INFO: Directory for backup files and indent.log:
.
INFO: YAML settings read: defaultSettings.yaml
Reading defaultSettings.yaml from /home/kristofers/.local/share/nvim/mason/packages/latexindent/defaultSettings.yaml
Reading defaultSettings.yaml (2nd attempt) from /home/kristofers/.local/share/nvim/mason/packages/latexindent/../../texmf-dist/scripts/latexindent/defaultSettings.yaml
and then, if necessary, /home/kristofers/.local/share/nvim/mason/packages/latexindent/LatexIndent/defaultSettings.yaml
INFO: YAML reading settings
Home directory is /home/kristofers
latexindent.pl didn't find indentconfig.yaml or .indentconfig.yaml
see all possible locations: https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#indentconfig-options)
INFO: Phase 1: searching for objects
INFO: Phase 2: finding surrounding indentation
INFO: Phase 3: indenting objects
INFO: Phase 4: final indentation check
INFO: Output routine:
Not outputting to file; see -w and -o switches for more options.
--------------
INFO: Please direct all communication/issues to:
https://github.com/cmhughes/latexindent.pl

View File

@ -1,4 +1,6 @@
\section{Abstract}
Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
\chapter*{Anotācija}
\setcounter{page}{2}
\lipsum[1-3]
Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
\chapter*{Abstract}
\lipsum[1-3]

18
src/example.tex Normal file
View File

@ -0,0 +1,18 @@
\section{Example 1}
\lipsum[1]
\subsection{Subsection 1}
\lipsum[2-3]
\subsubsection{Subsubsection 1}
\lipsum[4-5]
\subsubsection{Subsubsection 2}
\lipsum[6]
\subsection{Subsection 2}
\lipsum[7]
\subsubsection{Subsubsection 3}
\lipsum[8-9]
\section{Example 2}
\lipsum[10-11]
\section{Table Example}
\section{Image Example}

6
src/introduction.tex Normal file
View File

@ -0,0 +1,6 @@
\section*{Ievads}
\addcontentsline{toc}{section}{Ievads}
\lipsum[1-2]
\subsection*{Subsection}
\lipsum[1]

View File

@ -1,32 +1,39 @@
\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\vspace*{2cm}
\begin{large}\textbf{LATVIJAS UNIVERSITĀTE}
\thispagestyle{empty}
\begin{center}
\MakeUppercase{\large Latvijas Universitāte}
\textbf{DATORIKAS FAKULTĀTE}
\MakeUppercase{\large Datorikas Fakultāte}
\vfill
\textbf{Mafia}
\end{large}
\vfill
\textbf{\Large Galda spēle}
\vfill
\textbf{Programminženierija}
\end{center}
\vspace{4cm}
\begin{flushleft}
\textbf{Alens Aleksandrs Čerņa}, ac22065
\textbf{\MakeUppercase{\Large Mafija}}
\textbf{Ernests Gustavs Dane}, eg22086
\vspace{1cm}
\MakeUppercase{Praktiskais darbs programminženierijā}
\vfill
\end{center}
\begin{flushright}
\textbf{Darba autori:}
\textbf{Jorens Štekeļs} js21283
Alens Aleksandrs Čerņa, ac22065
\textbf{Kristiāns Francis Cagulis}, kc22015
Ernests Gustavs Dane, eg22086
\textbf{Miķelis Kukainis}, mk22092
\end{flushleft}
\vspace{1cm}
\begin{center}
RĪGA 2023
\end{center}
Jorens Štekeļs, js21283
Kristiāns Francis Cagulis, kc22015
Miķelis Kukainis, mk22092
\vspace{1cm}
\textbf{Darba vadītājs:}
prof. Dr. sc. comp. Laila Niedrīte
\end{flushright}
\vspace{1cm}
\begin{center}
RĪGA 2023
\end{center}
\end{titlepage}