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} \documentclass[12pt]{report}
\usepackage[bf,center]{titlesec} \usepackage{titlesec}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[latvian]{babel}
\usepackage{enumitem} \usepackage{enumitem}
\usepackage{fancyhdr} \usepackage{fancyhdr}
\usepackage{gensymb} % grādu simbols \usepackage{gensymb} % grādu simbols
@ -13,9 +14,11 @@
\usepackage{secdot} \usepackage{secdot}
\usepackage{tabularx} \usepackage{tabularx}
\usepackage{tcolorbox} \usepackage{tcolorbox}
\usepackage{tocloft}
\usepackage{tikz} \usepackage{tikz}
\usepackage{listings} \usepackage{listings}
\usepackage{tocloft}
\usepackage{caption}
\usepackage{lipsum} % TODO: Remove
\usetikzlibrary{positioning} \usetikzlibrary{positioning}
\hypersetup{ \hypersetup{
@ -26,36 +29,50 @@
\urlstyle{rm} \urlstyle{rm}
\titlespacing*{\section}{0pt}{0pt}{1.5pt} \titlespacing*{\section}{0pt}{2em}{2em}
\titlespacing*{\subsection}{0pt}{0.5\baselineskip}{1.5pt} \titlespacing*{\subsection}{0pt}{2em}{2em}
\titlespacing*{\subsubsection}{0pt}{0.5\baselineskip}{1.5pt} \titlespacing*{\subsubsection}{0pt}{2em}{2em}
\titleformat{\section}{\large \bfseries \centering \vfill\eject}{\thesection.}{1em}{} % section formatting \titleformat{\section}{\large\bfseries\centering\vfill\eject\MakeUppercase}{\thesection}{1em}{} % section formatting
\titleformat{\subsection}{\normalsize \bfseries \centering}{\thesubsection.}{1em}{} % subsection formatting \titleformat{\subsection}{\large\bfseries\centering}{\thesubsection}{1em}{} % subsection formatting
\titleformat{\subsubsection}{\normalsize \bfseries \centering}{\thesubsubsection.}{1em}{} % subsubsection formatting \titleformat{\subsubsection}{\large\bfseries\centering}{\thesubsubsection}{1em}{} % subsubsection formatting
\geometry{a4paper, left=3cm, right=2cm, top=2cm, bottom=2cm}
\geometry{a4paper, left=30mm, right=20mm, top=20mm, bottom=20mm}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhead{} \fancyhead{}
\fancyfoot{} \fancyfoot{}
\fancyfoot[C]{\thepage} \fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
\linespread{1.3} \linespread{1.5}
\setlength{\parindent}{1cm} \setlength{\parindent}{1cm}
\setlength{\parskip}{0pt} \setlength{\parskip}{0pt}
\renewcommand{\contentsname}{\hspace*{\fill}\bfseries\large Saturs\hspace*{\fill}}
\renewcommand{\cfttoctitlefont}{\centering\bfseries\large} % Remove \bfseries from ToC title \setcounter{secnumdepth}{3} % Numering for subsubsections
\renewcommand{\cftsecfont}{} % Remove \bfseries from section titles in ToC \setcounter{tocdepth}{3} % Add subsubsections in ToC
\renewcommand{\cftsecpagefont}{} % Remove \bfseries from section titles' page in ToC
\renewcommand{\cftsecleader}{\cftdotfill{\cftsecdotsep}}
\renewcommand\cftsecdotsep{\cftdot} % ToC config
\renewcommand\cftsubsecdotsep{\cftdot} \renewcommand{\cftsecfont}{\MakeUppercase}
\renewcommand{\cftsecaftersnum}{.} % dot after section number \renewcommand{\cfttoctitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftsubsecaftersnum}{.} \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} \begin{document}
\input{./src/title-page.tex} \input{./src/title-page.tex}
\tableofcontents
\thispagestyle{empty}
\setcounter{page}{2}
\input{./src/abstract.tex} \input{./src/abstract.tex}
\tableofcontents
\input{./src/introduction.tex}
\input{./src/example.tex}
\end{document} \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} \chapter*{Anotācija}
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. \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,30 +1,37 @@
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
\begin{center} \begin{center}
\vspace*{2cm} \MakeUppercase{\large Latvijas Universitāte}
\begin{large}\textbf{LATVIJAS UNIVERSITĀTE}
\textbf{DATORIKAS FAKULTĀTE} \MakeUppercase{\large Datorikas Fakultāte}
\vfill \vfill
\textbf{Mafia} \textbf{\Large Galda spēle}
\end{large}
\textbf{\MakeUppercase{\Large Mafija}}
\vspace{1cm}
\MakeUppercase{Praktiskais darbs programminženierijā}
\vfill \vfill
\textbf{Programminženierija}
\end{center} \end{center}
\vspace{4cm} \begin{flushright}
\begin{flushleft} \textbf{Darba autori:}
\textbf{Alens Aleksandrs Čerņa}, ac22065
\textbf{Ernests Gustavs Dane}, eg22086 Alens Aleksandrs Čerņa, ac22065
\textbf{Jorens Štekeļs} js21283 Ernests Gustavs Dane, eg22086
\textbf{Kristiāns Francis Cagulis}, kc22015 Jorens Štekeļs, js21283
\textbf{Miķelis Kukainis}, mk22092 Kristiāns Francis Cagulis, kc22015
\end{flushleft}
Miķelis Kukainis, mk22092
\vspace{1cm}
\textbf{Darba vadītājs:}
prof. Dr. sc. comp. Laila Niedrīte
\end{flushright}
\vspace{1cm} \vspace{1cm}
\begin{center} \begin{center}
RĪGA 2023 RĪGA 2023