diff --git a/install/usr/share/swarmlab.io/sec/docs/Appendices/.DS_Store b/install/usr/share/swarmlab.io/sec/docs/Appendices/.DS_Store old mode 100644 new mode 100755 diff --git a/install/usr/share/swarmlab.io/sec/docs/Appendices/code.tex b/install/usr/share/swarmlab.io/sec/docs/Appendices/code.tex new file mode 100755 index 0000000..8a03213 --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/docs/Appendices/code.tex @@ -0,0 +1,98 @@ +% Chapter 1 + +\chapter{code Example} % Main chapter title + +\label{codeexample} % For referencing the chapter elsewhere, use \ref{Chapter1} + +%---------------------------------------------------------------------------------------- + + +\label{ActivityPubExample1} +\begin{lstlisting}[language=XML, caption=ActivityPubExample1] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Person", + "id": "https://social.example/alyssa/", + "name": "Alyssa P. Hacker", + "preferredUsername": "alyssa", + "summary": "Lisp enthusiast hailing from MIT", + "inbox": "https://social.example/alyssa/inbox/", + "outbox": "https://social.example/alyssa/outbox/", + "followers": "https://social.example/alyssa/followers/", + "following": "https://social.example/alyssa/following/", + "liked": "https://social.example/alyssa/liked/"} +\end{lstlisting} + +\label{ActivityPubExample-ActivityStreams_object} +\begin{lstlisting}[language=XML, caption=ActivityPub:ActivityStreams object] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Note", + "to": ["https://chatty.example/ben/"], + "attributedTo": "https://social.example/alyssa/", + "content": "Say, did you finish reading that book I lent you?"} +\end{lstlisting} + +\label{ActivityPubExample-Create_and_post} +\begin{lstlisting}[language=XML, caption=ActivityPub:Create and Post] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Create", + "id": "https://social.example/alyssa/posts/a29a6843-9feb-4c74-a7f7-081b9c9201d3", + "to": ["https://chatty.example/ben/"], + "actor": "https://social.example/alyssa/", + "object": {"type": "Note", + "id": "https://social.example/alyssa/posts/49e2d03d-b53a-4c4c-a95c-94a6abf45a19", + "attributedTo": "https://social.example/alyssa/", + "to": ["https://chatty.example/ben/"], + "content": "Say, did you finish reading that book I lent you?"}} +\end{lstlisting} + + +\label{ActivityPubExample-Read_post} +\begin{lstlisting}[language=XML, caption=ActivityPub:Read Post] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Create", + "id": "https://chatty.example/ben/p/51086", + "to": ["https://social.example/alyssa/"], + "actor": "https://chatty.example/ben/", + "object": {"type": "Note", + "id": "https://chatty.example/ben/p/51085", + "attributedTo": "https://chatty.example/ben/", + "to": ["https://social.example/alyssa/"], + "inReplyTo": "https://social.example/alyssa/posts/49e2d03d-b53a-4c4c-a95c-94a6abf45a19", + "content": "

Argh, yeah, sorry, I'll get it back to you tomorrow.

+

I was reviewing the section on register machines, + since it's been a while since I wrote one.

"} +\end{lstlisting} + + +\label{ActivityPubExample-Like_post} +\begin{lstlisting}[language=XML, caption=ActivityPub:Like Post] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Like", + "id": "https://social.example/alyssa/posts/5312e10e-5110-42e5-a09b-934882b3ecec", + "to": ["https://chatty.example/ben/"], + "actor": "https://social.example/alyssa/", + "object": "https://chatty.example/ben/p/51086"} +\end{lstlisting} + + + +\label{ActivityPubExample-readable_by_anyone} +\begin{lstlisting}[language=XML, caption=ActivityPub:readable by anyone] +{"@context": "https://www.w3.org/ns/activitystreams", + "type": "Create", + "id": "https://social.example/alyssa/posts/9282e9cc-14d0-42b3-a758-d6aeca6c876b", + "to": ["https://social.example/alyssa/followers/", + "https://www.w3.org/ns/activitystreams#Public"], + "actor": "https://social.example/alyssa/", + "object": {"type": "Note", + "id": "https://social.example/alyssa/posts/d18c55d4-8a63-4181-9745-4e6cf7938fa1", + "attributedTo": "https://social.example/alyssa/", + "to": ["https://social.example/alyssa/followers/", + "https://www.w3.org/ns/activitystreams#Public"], + "content": "Lending books to friends is nice. Getting them back is even nicer! :)"} +\end{lstlisting} + + + + + diff --git a/install/usr/share/swarmlab.io/sec/docs/Appendices/glossary.tex b/install/usr/share/swarmlab.io/sec/docs/Appendices/glossary.tex new file mode 100644 index 0000000..26b8474 --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/docs/Appendices/glossary.tex @@ -0,0 +1,25 @@ +\makeglossaries +%\glsenableentrycount + +\newglossaryentry{duck}{ + name=duck,% + description={a waterbird with webbed feet} +} + +\newglossaryentry{parrot}{ + name=parrot,% + description={mainly tropical bird with bright plumage} +} + +\newglossaryentry{devoniani1}{ + name=Devonian, + description={ The geologic period spanning from the end of the Silurian Period to the beginning of the Carboniferous Period. This age was known for its remarkable variety of fish species.} +} + + +\longnewglossaryentry{darkPattern} + {name={Dark pattern}}% + { + pla pla pla + } + diff --git a/install/usr/share/swarmlab.io/sec/docs/Chapters/.DS_Store b/install/usr/share/swarmlab.io/sec/docs/Chapters/.DS_Store old mode 100644 new mode 100755 diff --git a/install/usr/share/swarmlab.io/sec/docs/Chapters/Chapter1.tex b/install/usr/share/swarmlab.io/sec/docs/Chapters/Chapter1.tex index 09568e7..5bfd70b 100755 --- a/install/usr/share/swarmlab.io/sec/docs/Chapters/Chapter1.tex +++ b/install/usr/share/swarmlab.io/sec/docs/Chapters/Chapter1.tex @@ -22,11 +22,11 @@ α^2 + β^2 = γ^2 \end{equation} -Κείμενο κείμενο +Κείμενο κείμενο\ref{AppendixA} Κείμενο κείμενο Greek -Κείμενο κείμενο +Κείμενο κείμενο\gls{duck} Κείμενο κείμενο Greek -Κείμενο κείμενο +Κείμενο κείμενο\citep{DigitalServicesAct} Κείμενο κείμενο Greek Κείμενο κείμενο Κείμενο κείμενο Greek diff --git a/install/usr/share/swarmlab.io/sec/docs/main.tex b/install/usr/share/swarmlab.io/sec/docs/main.tex old mode 100644 new mode 100755 index 6088129..481f7ce --- a/install/usr/share/swarmlab.io/sec/docs/main.tex +++ b/install/usr/share/swarmlab.io/sec/docs/main.tex @@ -45,7 +45,6 @@ headsepline, % Uncomment to get a line under the header %\usepackage{mathpazo} % Use the Palatino font by default - \usepackage{fontspec} \usepackage{xgreek} \usepackage{xunicode} @@ -72,11 +71,95 @@ headsepline, % Uncomment to get a line under the header %\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA) \usepackage[backend=biber,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA) +% run biber kai 2 fores compile + +\addbibresource{metaptyxiako.bib} % The filename of the bibliography +\usepackage{listings} +\definecolor{codegreen}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} + +\lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=none, + %numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2 +} -\addbibresource{example.bib} % The filename of the bibliography +\lstset{style=mystyle} + +%\lstset{ +% basicstyle=\ttfamily\small, +% inputencoding=utf8, +% extendedchars=false, +% columns=fullflexible,keepspaces, +% breaklines=true, +% tabsize=2, +% numbers=none, +% numberstyle=\tiny\color{gray}, +% keywordstyle=\color{blue}, +% commentstyle=\color{green}, +% stringstyle=\color{mauve}, +% breakatwhitespace=true, +% %morecomment=[l]{;}, %<--- added +% texcl=true %<--- added +%} \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography +%gloassary +%\usepackage[colorlinks]{hyperref} +\usepackage{hyperref} +\hypersetup{ + colorlinks, + %hypertexnames=false, + %plainpages=false, % no link change if use plainpages=false + %pdfpagelabels, +% bookmarksnumbered, + linktocpage=true, + linktoc=all, + hyperfootnotes, + %breaklinks, + %pdfstartpage=10, + hyperindex, + %pdftitle={myThesis}, +} +%\usepackage[toc,automake,counter=section,nohypertypes={acronym,notation}]{glossaries} +%\usepackage[toc,automake,counter=section,style=indexgroup,acronym]{glossaries} +%\usepackage[toc,automake,counter=section,numberedsection=autolabel,style=indexgroup,acronym]{glossaries} + +\usepackage[toc,automake,counter=section,style=indexgroup,acronym]{glossaries} +%\usepackage[toc,automake,style=indexgroup,acronym]{glossaries} +%\usepackage[section,numberedsection=autolabel]{glossaries} +\newglossary[nlg]{notation}{not}{ntn}{Notation} +\loadglsentries{Appendices/glossary} + + +%\makeglossaries +%\newglossaryentry{duck}{ +% name=duck,% +% description={a waterbird with webbed feet} +%} +%\newglossaryentry{parrot}{ +% name=parrot,% +% description={mainly tropical bird with bright plumage} +%} + + %---------------------------------------------------------------------------------------- % MARGIN SETTINGS %---------------------------------------------------------------------------------------- @@ -91,11 +174,12 @@ headsepline, % Uncomment to get a line under the header %showframe, % Uncomment to show how the type block is set on the page } + + %---------------------------------------------------------------------------------------- % THESIS INFORMATION %---------------------------------------------------------------------------------------- - -\thesistitle{Thesis Title} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle +\thesistitle{Swarmlab.io} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle \supervisor{Dr. James \textsc{Smith}} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname \examiner{} % Your examiner's name, this is not currently used anywhere in the template, print it elsewhere with \examname \degree{Δίπλωμα Μεταπτυχιακών Σπουδών (Δ.Μ.Σ.)} % Your degree name, this is used in the title page and abstract, print it elsewhere with \degreename @@ -106,7 +190,7 @@ headsepline, % Uncomment to get a line under the header \keywords{} % Keywords for your thesis, this is not currently used anywhere in the template, print it elsewhere with \keywordnames \university{\href{http://www.swarmlab.io}{Πανεπιστήμιο ... }} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname \department{\href{http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html/}{Πρόγραμμα Μεταπτυχιακών Σπουδών}} % Your department's name and URL, this is used in the title page and abstract, print it elsewhere with \deptname -\group{\href{http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html}{Δίκτυα Επικοινωνιών}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname +\group{\href{http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html}{Δίκτυα Επικοινωνιών κλπ}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname \faculty{\href{http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html}{Τμήμα ...}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname \AtBeginDocument{ @@ -120,6 +204,7 @@ headsepline, % Uncomment to get a line under the header {\setlength\itemindent{15pt} \item[-] #1} } + % Translate list % \def\abbrevname{Λίστα συντομογραφιών}% @@ -237,45 +322,55 @@ The acknowledgments and the people to thank go here, don't forget to include you \listoftables % Prints the list of tables + + %---------------------------------------------------------------------------------------- % ABBREVIATIONS %---------------------------------------------------------------------------------------- % See Translate list -\begin{abbreviations}{ll} % Include a list of abbreviations (a table of two columns) - -\textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere\\ -\textbf{WSF} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or\\ - -\end{abbreviations} +%\begin{abbreviations}{ll} % Include a list of abbreviations (a table of two columns) +% +%\textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere\\ +%\textbf{WSF} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or\\ +% +%\end{abbreviations} %---------------------------------------------------------------------------------------- % PHYSICAL CONSTANTS/OTHER DEFINITIONS %---------------------------------------------------------------------------------------- -\begin{constants}{lr@{${}={}$}l} % The list of physical constants is a three column table - -% The \SI{}{} command is provided by the siunitx package, see its documentation for instructions on how to use it - -Speed of Light & $c_{0}$ & \SI{2.99792458e8}{\meter\per\second} (exact)\\ -%Constant Name & $Symbol$ & $Constant Value$ with units\\ - -\end{constants} +%\begin{constants}{lr@{${}={}$}l} % The list of physical constants is a three column table +% +%% The \SI{}{} command is provided by the siunitx package, see its documentation for instructions on how to use it +% +%Speed of Light & $c_{0}$ & \SI{2.99792458e8}{\meter\per\second} (exact)\\ +%%Constant Name & $Symbol$ & $Constant Value$ with units\\ +% +%\end{constants} %---------------------------------------------------------------------------------------- % SYMBOLS %---------------------------------------------------------------------------------------- -\begin{symbols}{lll} % Include a list of Symbols (a three column table) +%\begin{symbols}{lll} % Include a list of Symbols (a three column table) +% +%$a$ & distance & \si{\meter} \\ +%$P$ & power & \si{\watt} (\si{\joule\per\second}) \\ +%%Symbol & Name & Unit \\ +% +%\addlinespace % Gap to separate the Roman symbols from the Greek +% +%$\omega$ & angular frequency & \si{\radian} \\ +% +%\end{symbols} -$a$ & distance & \si{\meter} \\ -$P$ & power & \si{\watt} (\si{\joule\per\second}) \\ -%Symbol & Name & Unit \\ +\addcontentsline{toc}{chapter}{List Of Source Code Listings} +\lstlistoflistings -\addlinespace % Gap to separate the Roman symbols from the Greek -$\omega$ & angular frequency & \si{\radian} \\ +%\printglossary +%\addcontentsline{toc}{chapter}{Glossary} -\end{symbols} %---------------------------------------------------------------------------------------- % DEDICATION @@ -287,23 +382,22 @@ $\omega$ & angular frequency & \si{\radian} \\ % THESIS CONTENT - CHAPTERS %---------------------------------------------------------------------------------------- + \mainmatter % Begin numeric (1,2,3...) page numbering + \pagestyle{thesis} % Return the page headers back to the "thesis" style % Include the chapters of the thesis as separate files from the Chapters folder % Uncomment the lines as you write the chapters + % include text -\include{Chapters/Chapter1} -\include{Chapters/Chapter2} -%\include{Chapters/Chapter3} -%\include{Chapters/Chapter4} -%\include{Chapters/Chapter5} +\include{Chapters/Diplomatiki-intro.tex} -%---------------------------------------------------------------------------------------- -% THESIS CONTENT - APPENDICES -%---------------------------------------------------------------------------------------- +% %---------------------------------------------------------------------------------------- +% % THESIS CONTENT - APPENDICES +% %---------------------------------------------------------------------------------------- \appendix % Cue to tell LaTeX that the following "chapters" are Appendices @@ -311,9 +405,11 @@ $\omega$ & angular frequency & \si{\radian} \\ % Uncomment the lines as you write the Appendices \include{Appendices/AppendixA} -%\include{Appendices/AppendixB} -%\include{Appendices/AppendixC} +\include{Appendices/code} + + +\printglossaries %---------------------------------------------------------------------------------------- % BIBLIOGRAPHY %----------------------------------------------------------------------------------------