Commit 03f699e3 authored by Roberts Ivanovs's avatar Roberts Ivanovs
Browse files

init

parents
Pipeline #1480 canceled with stages
*.aux
*.fdb_latexmk
*.fls
*.log
*.pdf
*.gz
*.out
*.toc
*.blg
*.bbl
_minted*
.vscode
*.bak*
# XeTex sagtave OOM kursa praktiskajam darbam
## Nepieciešanās bibliotēkas (tested on ubuntu 20.04)
Varbūt kāda no tām nemaz nav nepieciešama, neesmu ekspers.
- texlive-bibtex-extra/focal,focal,now 2019.202000218-1
- texlive-extra-utils/focal,focal,now 2019.202000218-1
- texlive-lang-all/focal,focal,now 2019.20200218-1
- texlive-latex-extra/focal,focal,now 2019.202000218-1
- texlive-xetex/focal,focal,now 2019.20200218-1
- Pyhon2 `minted` package
- Times New Roman fonts
## Kompilācija
```sh
xelatex -synctex=1 -interaction=nonstopmode -file-line-error --shell-escape main.tex
```
\documentclass[12pt,a4paper,oneside]{article}
\usepackage{polyglossia}
\usepackage{subfiles}
\usepackage{titlesec}
\usepackage{minted}
\usepackage{graphics}
\usepackage{adjustbox}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{flafter}
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
left=22mm,
right=20mm,
}
% Set line spacing
\renewcommand{\baselinestretch}{1.5}
% Disable spacing around list items
\usepackage{enumitem}
\setlist{nosep}
% Set font
\usepackage{fontspec}
\setmainfont{Times New Roman}
\setdefaultlanguage{latvian}
\SetLanguageKeys{latvian}{indentfirst=true}
\sloppy
\usepackage{fixlatvian}
\begin{document}
\begin{titlepage}
\begin{center}
\begin{figure}[ht]
\centering
\includegraphics[width=60mm]{pics/vea_logo.png}
\end{figure}
\large
\textbf{Ventspils Augstskola \\Informācijas tehnoloģiju fakultāte}
\vspace*{4cm}
\\
\textbf{Praktiskais darbs} \\
\LARGE
\textbf{Nosaukums}
\vspace{0.5cm}
\large
\\
mācību kursā \\ "Objektorientētā modelēšana"
\end{center}
\vspace{2cm}
\begin{flushright}
\normalsize
\textbf{Izstrādāja:}\\
Bakalaura studiju programmas “Datorzinātnes”\\
3. kursa studenta\\
Vārds Uzvārds \\
\textbf{Pārbaudīja:} dr.sc.ing., asoc. prof. R. Rollande
\end{flushright}
\vfill
\begin{center}
\Large
Ventspils, 2020
\end{center}
\end{titlepage}
\clearpage
\tableofcontents
\clearpage
\newpage% Sections
\section{Izmantojamo rīku apraksts}
\input{sections/tools.tex}
\newpage
\section{Problēmvides analīze}
\input{sections/analysis.tex}
\newpage
\section{Klašu diagramma}
\input{sections/diagrams/class.tex}
\newpage
\section{Lietošanas gadījumu diagramma}
\input{sections/diagrams/use_case.tex}
\newpage
\section{Secības diagrammas}
\input{sections/diagrams/sequence.tex}
\newpage
\section{Aktivitāšu diagrammas}
\input{sections/diagrams/activity.tex}
\newpage
\section{Mijiedarbības pārskata diagramma}
\input{sections/diagrams/interaction.tex}
\newpage
\section{Laika diagramma}
\input{sections/diagrams/timing.tex}
\newpage
\section{Koda ģenerēšana}
\input{sections/generation.tex}
\newpage
\section{Secinājumi}
\input{sections/conclusion.tex}
% TODO "Izmantotā literatūra", izpētīt bibliogrāfijas veidošanu iekš latex
\end{document}
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="80" viewBox="0 0 300 80">
<defs>
<style>.a{fill:#a8a8a8;}.b{fill:#007b4d;}</style>
</defs>
<title>raksti-sponsor-logos</title>
<path class="a" d="M149.89,26.63v0l.11,0h.21A25.43,25.43,0,0,1,174.63,45l123.23-.07-2.73-9.08H176.45s-7.57-8-18.4-11.07a191.26,191.26,0,0,1,36.9-3.5c19.09,0,48.19,9.88,63.21,9.88,21,0,33.53-5.89,33.53-5.89l-4-12.94s-10.74,9.88-29.51,9.88c-32.23,0-39.47-5.44-63.21-5.39C168,16.83,149.89,22,149.89,22l0-.05s-18.15-5.27-45.06-5.27c-23.16,0-31,5.39-63.21,5.39-18.78,0-29.34-9.44-29.34-9.44l-4,12.5s12.39,5.89,33.35,5.89c15,0,44.12-9.88,63.21-9.88a191.22,191.22,0,0,1,37,3.52,42.2,42.2,0,0,0-17.92,11.1H4.88L2.07,44.89,125.7,45A25.19,25.19,0,0,1,149.89,26.63Z"/>
<path class="b" d="M6.58,55.5c0,3.6.11,6.48,1.37,8.77,1.26-2.32,1.37-5.18,1.37-8.77V50.67h5.55v5.08c0,4.78-.7,8.55-4,11.75H5c-3.25-3.2-4-7-4-11.75V50.67H6.58Z"/>
<polygon class="b" points="17.52 50.66 28.9 50.66 28.9 53.87 23.1 53.87 23.1 56.73 28.68 56.73 28.68 59.9 23.1 59.9 23.1 64.29 29.16 64.29 29.16 67.5 17.52 67.5 17.52 50.66"/>
<path class="b" d="M37,50.67a24.8,24.8,0,0,1,3.14,4.44V50.67h5.54V67.49H40.14v-3.3a12.69,12.69,0,0,0-2.73-7.86V67.49H31.82V50.67Z"/>
<polygon class="b" points="48.01 50.66 60.1 50.66 60.1 53.75 56.84 53.75 56.84 67.5 51.27 67.5 51.27 53.75 48.01 53.75 48.01 50.66"/>
<path class="b" d="M70.74,55.17c0-1-.52-1.53-1.7-1.53-.85,0-1.44.34-1.44.91,0,.91,2,1.85,5.17,3.52C75.21,59.36,76,60.77,76,62.84c0,3.25-2.33,4.88-7,4.88-4.92,0-7.06-1.55-7.06-4.88v-2H67.6v1.87c0,1.23.37,1.87,1.48,1.87a1.19,1.19,0,0,0,1.33-1.26c0-1.38-1-2.1-2.77-3.1-3.14-1.8-5.65-3-5.65-5.52s2.44-4.24,7-4.24c5.1,0,6.87,1.38,6.87,4.63v1.08h-5.1Z"/>
<path class="b" d="M84.42,57V53.62h1.11c1.44,0,2,.49,2,1.65S87.11,57,85.41,57ZM79,50.67V67.49H84.6V59.9h1.81c4.69,0,6.58-1,6.58-4.16,0-3.72-1.59-5.08-6.51-5.08Z"/>
<rect class="b" x="94.84" y="50.67" width="5.58" height="16.83"/>
<polygon class="b" points="109.58 50.66 109.58 64.29 115.35 64.29 115.35 67.5 104 67.5 104 50.66 109.58 50.66"/>
<path class="b" d="M125.44,55.17c0-1-.52-1.53-1.7-1.53-.85,0-1.44.34-1.44.91,0,.91,2,1.85,5.17,3.52,2.44,1.28,3.25,2.69,3.25,4.75,0,3.25-2.33,4.88-7,4.88-4.92,0-7.06-1.55-7.06-4.88v-2h5.66v1.87c0,1.23.37,1.87,1.48,1.87a1.19,1.19,0,0,0,1.33-1.26c0-1.38-1-2.1-2.77-3.1-3.14-1.8-5.66-3-5.66-5.52s2.44-4.24,7-4.24c5.1,0,6.87,1.38,6.87,4.63v1.08h-5.1Z"/>
<path class="b" d="M146.88,61.56a18.61,18.61,0,0,1,1.37-7.42,18.53,18.53,0,0,1,1.37,7.42Zm-5.54,5.94h5.54V64.71h2.74v2.79h5.58v-3.3c0-5.74-1.11-10.15-4.44-13.53h-5c-3.33,3.35-4.44,7.76-4.44,13.53Z"/>
<path class="b" d="M163.55,63.06c0,1,.07,1.48,1.37,1.48s1.4-.54,1.4-1.77V50.67h5.58V62.07c0,3.84-1.59,5.64-7,5.64S158,65.92,158,62.07V50.67h5.58V63.06Z"/>
<path class="b" d="M182,50.44c5.1,0,7,1.63,7,5.3v.69h-5.65v-1.2c0-1.09-.07-1.58-1.37-1.58s-1.37.44-1.37,1.45v7.42c0,1.33.07,2,1.59,2s1.63-.71,1.63-2.14V60.13h-1.48V57.37H189v10.1h-2.37l-.7-.69a8.58,8.58,0,0,1-4.33.93c-5.06,0-6.65-1.9-6.65-5.64v-6C174.93,52.22,176.52,50.44,182,50.44Z"/>
<path class="b" d="M200.62,55.17c0-1-.52-1.53-1.7-1.53-.85,0-1.44.34-1.44.91,0,.91,2,1.85,5.18,3.52,2.44,1.28,3.25,2.69,3.25,4.75,0,3.25-2.33,4.88-7,4.88-4.92,0-7.06-1.55-7.06-4.88v-2h5.65v1.87c0,1.23.37,1.87,1.48,1.87a1.19,1.19,0,0,0,1.33-1.26c0-1.38-1-2.1-2.77-3.1-3.14-1.8-5.65-3-5.65-5.52s2.44-4.24,7-4.24c5.1,0,6.87,1.38,6.87,4.63v1.08h-5.1Z"/>
<polygon class="b" points="207.79 50.66 219.87 50.66 219.87 53.75 216.62 53.75 216.62 67.5 211.04 67.5 211.04 53.75 207.79 53.75 207.79 50.66"/>
<path class="b" d="M230.52,55.17c0-1-.52-1.53-1.7-1.53-.85,0-1.44.34-1.44.91,0,.91,2,1.85,5.18,3.52,2.44,1.28,3.25,2.69,3.25,4.75,0,3.25-2.33,4.88-7,4.88-4.92,0-7.06-1.55-7.06-4.88v-2h5.65v1.87c0,1.23.37,1.87,1.48,1.87a1.19,1.19,0,0,0,1.33-1.26c0-1.38-1-2.1-2.77-3.1-3.14-1.8-5.66-3-5.66-5.52s2.44-4.24,7-4.24c5.1,0,6.87,1.38,6.87,4.63v1.08h-5.1Z"/>
<path class="b" d="M245.67,59.61c-.44.29-.92.54-1.4.81v7.07h-5.47V50.67h5.47v6.58c1.44-1,2.66-3.35,2.81-6.58h5.58a4.66,4.66,0,0,0,0,.47,8.44,8.44,0,0,1-2.51,6.14c1.19,1,2.48,4.34,2.48,9.09v1.13h-5.58C247,63.28,246.78,60.67,245.67,59.61Z"/>
<path class="b" d="M261,55.59V55.1c0-1,.08-1.45,1.37-1.45s1.37.49,1.37,1.58v7.71c0,1.11-.07,1.6-1.37,1.6S261,64.07,261,63.06V55.59Zm-5.65.49v6c0,3.87,1.59,5.64,7,5.64s7-1.77,7-5.64v-6c0-3.87-1.59-5.64-7-5.64S255.39,52.22,255.39,56.09Z"/>
<polygon class="b" points="278.16 50.66 278.16 64.29 283.92 64.29 283.92 67.5 272.58 67.5 272.58 50.66 278.16 50.66"/>
<path class="b" d="M290.69,61.56a18.53,18.53,0,0,1,1.37-7.42,18.53,18.53,0,0,1,1.37,7.42Zm-5.55,5.94h5.55V64.71h2.73v2.79H299v-3.3c0-5.74-1.11-10.15-4.43-13.53h-5c-3.32,3.35-4.44,7.76-4.44,13.53Z"/>
</svg>
\subsection{Problēmvides apraksts}
Skat~\ref{orig:problemvide}~attēlā.
\begin{figure}[H]
\centering
\includegraphics[scale=0.5]{pics/problemvide.jpeg}
\caption{Problēmvide: ,,Nosaukums"}
\label{orig:problemvide}
\end{figure}
\subsection{Lietvārdu izdalīšana}
Skat \ref{tbl:nouns-1}.
\begin{table}[H]
\centering
\begin{tabular}{ |p{13cm}|p{3cm}| }
\hline
Klašu kandidāts & Kritērijs \\
\hline
Ieraksts & apraksts \\
\hline
\end{tabular}
\caption{Klašu lietvārdu analīze}
\label{tbl:nouns-1}
\end{table}
\subsection{Datu vārdnīca}
\ref{tbl:word-glaossary} tabula.
\begin{table}[H]
\centering
\begin{tabular}{ |p{2cm}|p{5cm}|p{8cm}| }
\hline
Klase & Apraksts & Atribūti \\
\hline
Ieraksts & apraksts & atribūts \\
\hline
\end{tabular}
\caption{Klašu datu vārdnīca}
\label{tbl:word-glaossary}
\end{table}
\subsection{Sākotnējais klašu diagrammas variants}
\subsection{Uzlabotais klašu diagrammas variants}
\subsection{Vienam lietošanas gadījumam}
\subsection{Otram lietošanas gadījumam}
\subsection{Koda analīze klašu diagrammai}
Koda piemērs
\begin{minted}{Python}
a = 5
b = 10
print(a + b)
\end{minted}
\subsection{Koda analīze secību diagrammai}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment