Compare commits

...

6 Commits

21 changed files with 1247 additions and 126 deletions

View File

@@ -1,3 +1,16 @@
# latex # latex
Latex templates Latex templates
in OpenSuse error ```ERROR: FILE 'FLOATFLT.STY' NOT FOUND```
```
sudo mkdir /usr/share/texmf/tex/latex/floatflt
cd /usr/share/texmf/tex/latex/floatflt
sudo wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.ins
sudo wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.dtx
sudo latex floatflt.ins
sudo texhash /usr/share/texmf
```

279
article/Config.cls Normal file
View File

@@ -0,0 +1,279 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stylish Article
% Class File
% Version 2.2 (2020-10-22)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com)
% With extensive modifications by:
% Vel (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% CLASS CONFIGURATION
%----------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{Config}[25/05/2022, v0.33]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Pass through any options to the base class
\ProcessOptions\relax % Process given options
\LoadClass{article} % Load the base class
%----------------------------------------------------------------------------------------
% REQUIRED PACKAGES AND DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{amsmath, amsfonts, amssymb}
\RequirePackage{graphicx}
\graphicspath{{Figures/}{./}} % Specifies where to look for included images (trailing slash required)
\RequirePackage{xcolor}
\RequirePackage{booktabs}
\RequirePackage{lastpage} % Number of pages in the document
\AtEndOfClass{\RequirePackage{microtype}}
\flushbottom % Makes all text pages the same height
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
%\RequirePackage[utf8]{inputenc}
%\RequirePackage{times} % Loads the Times Roman Fonts
%\RequirePackage{mathptmx} % Loads the Times Roman Math Fonts
\usepackage[sfdefault]{roboto} %% Option 'sfdefault' only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
% FOR Montserrat font
%\usepackage[defaultfam,tabular,lining]{montserrat} %% Option 'defaultfam'
%% only if the base font of the document is to be sans serif
%\usepackage[T1]{fontenc}
%\renewcommand*\oldstylenums[1]{{\fontfamily{Montserrat-TOsF}\selectfont #1}}
%----------------------------------------------------------------------------------------
% MARGINS
%----------------------------------------------------------------------------------------
\RequirePackage[
left=2cm,
right=2cm,
top=2.25cm,
bottom=2.25cm,
headheight=11pt,
letterpaper,
]{geometry}
%----------------------------------------------------------------------------------------
% FIGURE AND TABLE CAPTIONS
%----------------------------------------------------------------------------------------
\RequirePackage[
labelfont={bf,sf,small},
labelsep=period,
justification=raggedright,
]{caption}
\setlength{\abovecaptionskip}{3pt}
\setlength{\belowcaptionskip}{0pt}
%----------------------------------------------------------------------------------------
% PAGE HEADER
%----------------------------------------------------------------------------------------
\RequirePackage{fancyhdr} % Needed to define custom headers/footers
\pagestyle{fancy} % Enables the custom headers/footers
\renewcommand{\headrulewidth}{0pt} % No header rule
\renewcommand{\footrulewidth}{0pt} % No footer rule
% Headers
\lhead{}
\chead{}
\rhead{\small\sffamily\bfseries\@PaperTitle\ --- \thepage/\pageref{LastPage}}
% Footers
\lfoot{}
\cfoot{}
\rfoot{}
%----------------------------------------------------------------------------------------
% SECTION SETUP
%----------------------------------------------------------------------------------------
\RequirePackage[explicit]{titlesec}
\titleformat{\section}
{\color{color1}\large\sffamily\bfseries}
{}
{0em}
{\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering\thesection.\space#1}}}
[]
\titleformat{name=\section,numberless}
{\color{color1}\large\sffamily\bfseries}
{}
{0em}
{\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering#1}}}
[]
\titleformat{\subsection}
{\color{color1}\sffamily\bfseries}
{\thesubsection}
{0.5em}
{#1}
[]
\titleformat{\subsubsection}
{\sffamily\small\bfseries}
{\thesubsubsection}
{0.5em}
{#1}
[]
\titleformat{\paragraph}[runin]
{\sffamily\small\bfseries}
{}
{0em}
{#1}
\titlespacing*{\section}{0pc}{3ex \@plus4pt \@minus3pt}{5pt}
\titlespacing*{\subsection}{0pc}{2.5ex \@plus3pt \@minus2pt}{0pt}
\titlespacing*{\subsubsection}{0pc}{2ex \@plus2.5pt \@minus1.5pt}{0pt}
\titlespacing*{\paragraph}{0pc}{1.5ex \@plus2pt \@minus1pt}{10pt}
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS SETUP
%----------------------------------------------------------------------------------------
\newlength{\tocsep}
\setlength\tocsep{1.5pc} % Sets the indentation of the sections in the table of contents
\setcounter{tocdepth}{3} % Three levels in the table of contents section: sections, subsections and subsubsections
\usepackage{titletoc}
\contentsmargin{0cm}
\titlecontents{section}[\tocsep]
{\addvspace{4pt}\small\bfseries\sffamily}
{\contentslabel[\thecontentslabel]{\tocsep}}
{}
{\hfill\thecontentspage}
[]
\titlecontents{subsection}[\tocsep]
{\addvspace{2pt}\sffamily}
{\contentslabel[\thecontentslabel]{\tocsep}}
{}
{\ \titlerule*[.5pc]{.}\ \thecontentspage}
[]
\titlecontents*{subsubsection}[\tocsep]
{\footnotesize\sffamily}
{}
{}
{}
[\ \textbullet\ ]
%----------------------------------------------------------------------------------------
% MULTIPLE AUTHOR SET
%----------------------------------------------------------------------------------------
\newcount\@authcnt
\newcount\@tmpcnt\@tmpcnt\z@
\def\@affiliation{%
\ifnum\@tmpcnt<\@authcnt
\global\advance\@tmpcnt1
\raggedright \csname @auth\romannumeral\the\@tmpcnt\endcsname\hfill\\%
\let\next\@affiliation \vskip1pt
\else
\let\next\relax
\fi
\next%
}
\newcommand{\affiliation}[1]{%
\global\advance\@authcnt1
\expandafter\gdef\csname @auth\romannumeral\the\@authcnt\endcsname
{#1}
}
%----------------------------------------------------------------------------------------
% LISTS
%----------------------------------------------------------------------------------------
\RequirePackage{enumitem}
%\setlist{nolistsep} % Uncomment to remove spacing before lists (enumerate, itemize)
%----------------------------------------------------------------------------------------
% ABSTRACT AND AUTHOR FRAME
%----------------------------------------------------------------------------------------
\newcommand{\PaperTitle}[1]{\def\@PaperTitle{#1}}
\newcommand{\Archive}[1]{\def\@Archive{#1}}
\newcommand{\Authors}[1]{\def\@Authors{#1}}
\newcommand{\JournalInfo}[1]{\def\@JournalInfo{#1}}
\newcommand{\Abstract}[1]{\def\@Abstract{#1}}
\newcommand{\Keywords}[1]{\def\@Keywords{#1}}
% ---------------------------------------------------------------------
\renewcommand{\@maketitle}{%
\twocolumn[{%
\thispagestyle{empty}%
\vskip-36pt%
{\raggedleft\small\sffamily\bfseries\@JournalInfo\\\@Archive\par}%
\vskip20pt%
{\raggedright\color{color1}\sffamily\bfseries\fontsize{20}{25}\selectfont \@PaperTitle\par}%
\vskip10pt%
{\raggedright\color{color1}\sffamily\fontsize{12}{16}\selectfont \@Authors\par}%
\vskip18pt%
% \fcolorbox{color1}{white}{%
% \parbox{\textwidth-2\fboxsep-2\fboxrule}{\centering%
% \colorbox{color2!10}{%
% \parbox{\textwidth-4\fboxsep-2\fboxrule}{%
% \ifx\@Keywords\@empty%
% \sffamily\textbf{\abstractname}\\\@Abstract%
% \else%
% \sffamily\textbf{\abstractname}\\\@Abstract\\[4pt]%
% \textbf{\keywordname}\\\@Keywords%
% \fi%
% }%
% }%
% \vskip4pt%
% \begingroup%
% \raggedright\sffamily\small%
% \footnotesize\@affiliation\par%
% \endgroup%%
% }%
% }%
\vskip25pt%
}]%
}
%----------------------------------------------------------------------------------------
% REFERENCES
%----------------------------------------------------------------------------------------
\renewcommand{\@biblabel}[1]{\bfseries\color{color1}\textsuperscript{[#1]}} % Styling of the reference numbers in the bibliography
%\setlength{\bibitemsep}{0cm}
\let\oldbibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
\addcontentsline{toc}{section}{\refname}%
\oldbibliography{#1}%
\setlength\itemsep{0pt}%
}

BIN
article/Figures/results.pdf Executable file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
article/Figures/view.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

269
article/SelfArx.cls Executable file
View File

@@ -0,0 +1,269 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stylish Article
% Class File
% Version 2.2 (2020-10-22)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com)
% With extensive modifications by:
% Vel (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% CLASS CONFIGURATION
%----------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{SelfArx}[22/10/2020, v2.2]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Pass through any options to the base class
\ProcessOptions\relax % Process given options
\LoadClass{article} % Load the base class
%----------------------------------------------------------------------------------------
% REQUIRED PACKAGES AND DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{amsmath, amsfonts, amssymb}
\RequirePackage{graphicx}
\graphicspath{{Figures/}{./}} % Specifies where to look for included images (trailing slash required)
\RequirePackage{xcolor}
\RequirePackage{booktabs}
\RequirePackage{lastpage} % Number of pages in the document
\AtEndOfClass{\RequirePackage{microtype}}
\flushbottom % Makes all text pages the same height
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
\RequirePackage[utf8]{inputenc}
\RequirePackage{times} % Loads the Times Roman Fonts
\RequirePackage{mathptmx} % Loads the Times Roman Math Fonts
%----------------------------------------------------------------------------------------
% MARGINS
%----------------------------------------------------------------------------------------
\RequirePackage[
left=2cm,
right=2cm,
top=2.25cm,
bottom=2.25cm,
headheight=11pt,
letterpaper,
]{geometry}
%----------------------------------------------------------------------------------------
% FIGURE AND TABLE CAPTIONS
%----------------------------------------------------------------------------------------
\RequirePackage[
labelfont={bf,sf,small},
labelsep=period,
justification=raggedright,
]{caption}
\setlength{\abovecaptionskip}{3pt}
\setlength{\belowcaptionskip}{0pt}
%----------------------------------------------------------------------------------------
% PAGE HEADER
%----------------------------------------------------------------------------------------
\RequirePackage{fancyhdr} % Needed to define custom headers/footers
\pagestyle{fancy} % Enables the custom headers/footers
\renewcommand{\headrulewidth}{0pt} % No header rule
\renewcommand{\footrulewidth}{0pt} % No footer rule
% Headers
\lhead{}
\chead{}
\rhead{\small\sffamily\bfseries\@PaperTitle\ --- \thepage/\pageref{LastPage}}
% Footers
\lfoot{}
\cfoot{}
\rfoot{}
%----------------------------------------------------------------------------------------
% SECTION SETUP
%----------------------------------------------------------------------------------------
\RequirePackage[explicit]{titlesec}
\titleformat{\section}
{\color{color1}\large\sffamily\bfseries}
{}
{0em}
{\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering\thesection.\space#1}}}
[]
\titleformat{name=\section,numberless}
{\color{color1}\large\sffamily\bfseries}
{}
{0em}
{\colorbox{color2!10}{\parbox{\dimexpr\linewidth-2\fboxsep\relax}{\centering#1}}}
[]
\titleformat{\subsection}
{\color{color1}\sffamily\bfseries}
{\thesubsection}
{0.5em}
{#1}
[]
\titleformat{\subsubsection}
{\sffamily\small\bfseries}
{\thesubsubsection}
{0.5em}
{#1}
[]
\titleformat{\paragraph}[runin]
{\sffamily\small\bfseries}
{}
{0em}
{#1}
\titlespacing*{\section}{0pc}{3ex \@plus4pt \@minus3pt}{5pt}
\titlespacing*{\subsection}{0pc}{2.5ex \@plus3pt \@minus2pt}{0pt}
\titlespacing*{\subsubsection}{0pc}{2ex \@plus2.5pt \@minus1.5pt}{0pt}
\titlespacing*{\paragraph}{0pc}{1.5ex \@plus2pt \@minus1pt}{10pt}
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS SETUP
%----------------------------------------------------------------------------------------
\newlength{\tocsep}
\setlength\tocsep{1.5pc} % Sets the indentation of the sections in the table of contents
\setcounter{tocdepth}{3} % Three levels in the table of contents section: sections, subsections and subsubsections
\usepackage{titletoc}
\contentsmargin{0cm}
\titlecontents{section}[\tocsep]
{\addvspace{4pt}\small\bfseries\sffamily}
{\contentslabel[\thecontentslabel]{\tocsep}}
{}
{\hfill\thecontentspage}
[]
\titlecontents{subsection}[\tocsep]
{\addvspace{2pt}\sffamily}
{\contentslabel[\thecontentslabel]{\tocsep}}
{}
{\ \titlerule*[.5pc]{.}\ \thecontentspage}
[]
\titlecontents*{subsubsection}[\tocsep]
{\footnotesize\sffamily}
{}
{}
{}
[\ \textbullet\ ]
%----------------------------------------------------------------------------------------
% MULTIPLE AUTHOR SET
%----------------------------------------------------------------------------------------
\newcount\@authcnt
\newcount\@tmpcnt\@tmpcnt\z@
\def\@affiliation{%
\ifnum\@tmpcnt<\@authcnt
\global\advance\@tmpcnt1
\raggedright \csname @auth\romannumeral\the\@tmpcnt\endcsname\hfill\\%
\let\next\@affiliation \vskip1pt
\else
\let\next\relax
\fi
\next%
}
\newcommand{\affiliation}[1]{%
\global\advance\@authcnt1
\expandafter\gdef\csname @auth\romannumeral\the\@authcnt\endcsname
{#1}
}
%----------------------------------------------------------------------------------------
% LISTS
%----------------------------------------------------------------------------------------
\RequirePackage{enumitem}
%\setlist{nolistsep} % Uncomment to remove spacing before lists (enumerate, itemize)
%----------------------------------------------------------------------------------------
% ABSTRACT AND AUTHOR FRAME
%----------------------------------------------------------------------------------------
\newcommand{\PaperTitle}[1]{\def\@PaperTitle{#1}}
\newcommand{\Archive}[1]{\def\@Archive{#1}}
\newcommand{\Authors}[1]{\def\@Authors{#1}}
\newcommand{\JournalInfo}[1]{\def\@JournalInfo{#1}}
\newcommand{\Abstract}[1]{\def\@Abstract{#1}}
\newcommand{\Keywords}[1]{\def\@Keywords{#1}}
% ---------------------------------------------------------------------
\renewcommand{\@maketitle}{%
\twocolumn[{%
\thispagestyle{empty}%
\vskip-36pt%
{\raggedleft\small\sffamily\bfseries\@JournalInfo\\\@Archive\par}%
\vskip20pt%
{\raggedright\color{color1}\sffamily\bfseries\fontsize{20}{25}\selectfont \@PaperTitle\par}%
\vskip10pt%
{\raggedright\color{color1}\sffamily\fontsize{12}{16}\selectfont \@Authors\par}%
\vskip18pt%
\fcolorbox{color1}{white}{%
\parbox{\textwidth-2\fboxsep-2\fboxrule}{\centering%
\colorbox{color2!10}{%
\parbox{\textwidth-4\fboxsep-2\fboxrule}{%
\ifx\@Keywords\@empty%
\sffamily\textbf{\abstractname}\\\@Abstract%
\else%
\sffamily\textbf{\abstractname}\\\@Abstract\\[4pt]%
\textbf{\keywordname}\\\@Keywords%
\fi%
}%
}%
\vskip4pt%
\begingroup%
\raggedright\sffamily\small%
\footnotesize\@affiliation\par%
\endgroup%%
}%
}%
\vskip25pt%
}]%
}
%----------------------------------------------------------------------------------------
% REFERENCES
%----------------------------------------------------------------------------------------
\renewcommand{\@biblabel}[1]{\bfseries\color{color1}\textsuperscript{[#1]}} % Styling of the reference numbers in the bibliography
%\setlength{\bibitemsep}{0cm}
\let\oldbibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
\addcontentsline{toc}{section}{\refname}%
\oldbibliography{#1}%
\setlength\itemsep{0pt}%
}

247
article/article_3.tex Executable file
View File

@@ -0,0 +1,247 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stylish Article
% LaTeX Template
% Version 2.2 (2020-10-22)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com)
% With extensive modifications by:
% Vel (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[fleqn,10pt]{SelfArx} % Document font size and equations flushed left
\usepackage[sfdefault]{roboto}
% FOR Montserrat font
%\usepackage[defaultfam,tabular,lining]{montserrat} %% Option 'defaultfam'
%% only if the base font of the document is to be sans serif
%\usepackage[T1]{fontenc}
%\renewcommand*\oldstylenums[1]{{\fontfamily{Montserrat-TOsF}\selectfont #1}}
\usepackage[english]{babel} % Specify a different language here - english by default
\usepackage{lipsum} % Required to insert dummy text. To be removed otherwise
%----------------------------------------------------------------------------------------
% COLUMNS
%----------------------------------------------------------------------------------------
\setlength{\columnsep}{0.55cm} % Distance between the two columns of text
\setlength{\fboxrule}{0.75pt} % Width of the border around the abstract
%----------------------------------------------------------------------------------------
% COLORS
%----------------------------------------------------------------------------------------
\definecolor{color1}{RGB}{0,0,90} % Color of the article title and sections
\definecolor{color2}{RGB}{0,20,20} % Color of the boxes behind the abstract and headings
%----------------------------------------------------------------------------------------
% HYPERLINKS
%----------------------------------------------------------------------------------------
\usepackage{hyperref} % Required for hyperlinks
\hypersetup{
hidelinks,
colorlinks,
breaklinks=true,
urlcolor=color2,
citecolor=color1,
linkcolor=color1,
bookmarksopen=false,
pdftitle={Title},
pdfauthor={Author},
}
%----------------------------------------------------------------------------------------
% ARTICLE INFORMATION
%----------------------------------------------------------------------------------------
\JournalInfo{Journal, Vol. XXI, No. 1, 1-5, 2013} % Journal information
\Archive{Additional note} % Additional notes (e.g. copyright, DOI, review/research article)
\PaperTitle{Article Title} % Article title
\Authors{John Smith\textsuperscript{1}*, James Smith\textsuperscript{2}} % Authors
\affiliation{\textsuperscript{1}\textit{Department of Biology, University of Examples, London, United Kingdom}} % Author affiliation
\affiliation{\textsuperscript{2}\textit{Department of Chemistry, University of Examples, London, United Kingdom}} % Author affiliation
\affiliation{*\textbf{Corresponding author}: john@smith.com} % Corresponding author
\Keywords{Keyword1 --- Keyword2 --- Keyword3} % Keywords - if you don't want any simply remove all the text between the curly brackets
\newcommand{\keywordname}{Keywords} % Defines the keywords heading name
%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------
\Abstract{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}
%----------------------------------------------------------------------------------------
%code to insert background image
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\vspace*{-3cm}
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{Figures/samk-cover-logo.png} %
\vfill
}}}
%----------------------------------------------------------------------------------------
\begin{document}
%to insert image in the front page
\AddToShipoutPicture*{\BackgroundPic}
\maketitle % Output the title and abstract box
\tableofcontents % Output the contents section
\thispagestyle{empty} % Removes page numbering from the first page
%----------------------------------------------------------------------------------------
% ARTICLE CONTENTS
%----------------------------------------------------------------------------------------
\section*{Introduction} % The \section*{} command stops section numbering
\addcontentsline{toc}{section}{Introduction} % Adds this section to the table of contents
\lipsum[1-3] % Dummy text
and some mathematics $\cos\pi=-1$ and $\alpha$ in the text\footnote{And some mathematics $\cos\pi=-1$ and $\alpha$ in the text.}.
%------------------------------------------------
\section{Methods}
\begin{figure*}[ht]\centering % Using \begin{figure*} makes the figure take up the entire width of the page
\includegraphics[width=\linewidth]{view}
\caption{Wide Picture}
\label{fig:view}
\end{figure*}
\lipsum[4] % Dummy text
\begin{equation}
\cos^3 \theta =\frac{1}{4}\cos\theta+\frac{3}{4}\cos 3\theta
\label{eq:refname2}
\end{equation}
\lipsum[5] % Dummy text
\begin{enumerate}[noitemsep] % [noitemsep] removes whitespace between the items for a compact look
\item First item in a list
\item Second item in a list
\item Third item in a list
\end{enumerate}
\subsection{Subsection}
\lipsum[6] % Dummy text
\paragraph{Paragraph} \lipsum[7] % Dummy text
\paragraph{Paragraph} \lipsum[8] % Dummy text
\subsection{Subsection}
\lipsum[9] % Dummy text
\begin{figure}[ht]\centering
\includegraphics[width=\linewidth]{results}
\caption{In-text Picture}
\label{fig:results}
\end{figure}
Reference to Figure \ref{fig:results}.
%------------------------------------------------
\section{Results and Discussion}
\lipsum[10] % Dummy text
\subsection{Subsection}
\lipsum[11] % Dummy text
\begin{table}[hbt]
\caption{Table of Grades}
\centering
\begin{tabular}{llr}
\toprule
\multicolumn{2}{c}{Name} \\
\cmidrule(r){1-2}
First name & Last Name & Grade \\
\midrule
John & Doe & $7.5$ \\
Richard & Miles & $2$ \\
\bottomrule
\end{tabular}
\label{tab:label}
\end{table}
\subsubsection{Subsubsection}
\lipsum[12] % Dummy text
\begin{description}
\item[Word] Definition
\item[Concept] Explanation
\item[Idea] Text
\end{description}
\subsubsection{Subsubsection}
\lipsum[13] % Dummy text
\begin{itemize}[noitemsep] % [noitemsep] removes whitespace between the items for a compact look
\item First item in a list
\item Second item in a list
\item Third item in a list
\end{itemize}
\subsubsection{Subsubsection}
\lipsum[14] % Dummy text
\subsection{Subsection}
\lipsum[15-23] % Dummy text
%------------------------------------------------
\phantomsection
\section*{Acknowledgments} % The \section*{} command stops section numbering
\addcontentsline{toc}{section}{Acknowledgments} % Adds this section to the table of contents
So long and thanks for all the fish \cite{Figueredo:2009dg, Smith:2012qr}.
%----------------------------------------------------------------------------------------
% REFERENCE LIST
%----------------------------------------------------------------------------------------
\phantomsection
\bibliographystyle{unsrt}
\bibliography{sample.bib}
%----------------------------------------------------------------------------------------
\end{document}

16
article/sample.bib Executable file
View File

@@ -0,0 +1,16 @@
@ARTICLE{Figueredo:2009dg,
author = {Figueredo, A.~J. and Wolf, P. S.~A.},
title = {Assortative pairing and life history strategy - a cross-cultural study.},
journal = {Human Nature},
volume = {20},
pages = {317-330},
year = {2009}
}
@BOOK{Smith:2012qr,
title = {{B}ook {T}itle},
publisher = {Publisher},
author = {Smith, J.~M. and Jones, A.~B.},
year = {2012},
edition = {7th},
}

BIN
article/template.pdf Normal file

Binary file not shown.

245
article/template.tex Normal file
View File

@@ -0,0 +1,245 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stylish Article
% LaTeX Template
% Version 2.2 (2020-10-22)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com)
% With extensive modifications by:
% Vel (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[fleqn,10pt]{Config} % Document font size and equations flushed left
\usepackage[english]{babel} % Specify a different language here - english by default
\usepackage{lipsum} % Required to insert dummy text. To be removed otherwise
\usepackage{fontawesome5}
%
%----------------------------------------------------------------------------------------
% COLUMNS
%----------------------------------------------------------------------------------------
\setlength{\columnsep}{0.55cm} % Distance between the two columns of text
\setlength{\fboxrule}{0.75pt} % Width of the border around the abstract
%----------------------------------------------------------------------------------------
% COLORS
%----------------------------------------------------------------------------------------
\definecolor{color1}{RGB}{0,0,90} % Color of the article title and sections
\definecolor{color2}{RGB}{0,20,20} % Color of the boxes behind the abstract and headings
%----------------------------------------------------------------------------------------
% HYPERLINKS
%----------------------------------------------------------------------------------------
\usepackage{hyperref} % Required for hyperlinks
\hypersetup{
hidelinks,
colorlinks,
breaklinks=true,
urlcolor=color2,
citecolor=color1,
linkcolor=color1,
bookmarksopen=false,
pdftitle={Title},
pdfauthor={Author},
}
%----------------------------------------------------------------------------------------
% ARTICLE INFORMATION
%----------------------------------------------------------------------------------------
\JournalInfo{Satakunta University of Applied Sciences} % Journal information
\Archive{Discipline - 2023} % Additional notes (e.g. copyright, DOI, review/research article)
\PaperTitle{Article Title} % Article title
\Authors{Eduardo Luis Hofmann} % Authors
%----------------------------------------------------------------------------------------
% In case abstract is needed, remove comment down here and in the file config.cls
%----------------------------------------------------------------------------------------
%\affiliation{\textsuperscript{2}\textit{Department of Chemistry, University of Examples, London, United Kingdom}} % Author affiliation
%\affiliation{*\textbf{Corresponding author}: john@smith.com} % Corresponding author
%\Keywords{Keyword1 --- Keyword2 --- Keyword3} % Keywords - if you don't want any simply remove all the text between the curly brackets
%\newcommand{\keywordname}{Keywords} % Defines the keywords heading name
%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------
%\Abstract{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}
%----------------------------------------------------------------------------------------
%code to insert background image
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\vspace*{-3cm}
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{Figures/samk-cover-logo-only.png} %
\vfill
}}}
%----------------------------------------------------------------------------------------
\begin{document}
%to insert image in the front page
\AddToShipoutPicture*{\BackgroundPic}
\maketitle % Output the title and abstract box
\tableofcontents % Output the contents section
\thispagestyle{empty} % Removes page numbering from the first page
%----------------------------------------------------------------------------------------
% ARTICLE CONTENTS
%----------------------------------------------------------------------------------------
\section*{Introduction} % The \section*{} command stops section numbering
\addcontentsline{toc}{section}{Introduction} % Adds this section to the table of contents
\lipsum[1-3] % Dummy text
and some mathematics $\cos\pi=-1$ and $\alpha$ in the text\footnote{And some mathematics $\cos\pi=-1$ and $\alpha$ in the text.}.
%------------------------------------------------
\section{Methods}
\begin{figure*}[ht]\centering % Using \begin{figure*} makes the figure take up the entire width of the page
\includegraphics[width=\linewidth]{view}
\caption{Wide Picture}
\label{fig:view}
\end{figure*}
\lipsum[4] % Dummy text
\begin{equation}
\cos^3 \theta =\frac{1}{4}\cos\theta+\frac{3}{4}\cos 3\theta
\label{eq:refname2}
\end{equation}
\lipsum[5] % Dummy text
\begin{enumerate}[noitemsep] % [noitemsep] removes whitespace between the items for a compact look
\item First item in a list
\item Second item in a list
\item Third item in a list
\end{enumerate}
\subsection{Subsection}
\lipsum[6] % Dummy text
\paragraph{Paragraph} \lipsum[7] % Dummy text
\paragraph{Paragraph} \lipsum[8] % Dummy text
\subsection{Subsection}
\lipsum[9] % Dummy text
\begin{figure}[ht]\centering
\includegraphics[width=\linewidth]{results}
\caption{In-text Picture}
\label{fig:results}
\end{figure}
Reference to Figure \ref{fig:results}.
%------------------------------------------------
\section{Results and Discussion}
\lipsum[10] % Dummy text
\subsection{Subsection}
\lipsum[11] % Dummy text
\begin{table}[hbt]
\caption{Table of Grades}
\centering
\begin{tabular}{llr}
\toprule
\multicolumn{2}{c}{Name} \\
\cmidrule(r){1-2}
First name & Last Name & Grade \\
\midrule
John & Doe & $7.5$ \\
Richard & Miles & $2$ \\
\bottomrule
\end{tabular}
\label{tab:label}
\end{table}
\subsubsection{Subsubsection}
\lipsum[12] % Dummy text
\begin{description}
\item[Word] Definition
\item[Concept] Explanation
\item[Idea] Text
\end{description}
\subsubsection{Subsubsection}
\lipsum[13] % Dummy text
\begin{itemize}[noitemsep] % [noitemsep] removes whitespace between the items for a compact look
\item First item in a list
\item Second item in a list
\item Third item in a list
\end{itemize}
\subsubsection{Subsubsection}
\lipsum[14] % Dummy text
\subsection{Subsection}
\lipsum[15-23] % Dummy text
%------------------------------------------------
\phantomsection
\section*{Acknowledgments} % The \section*{} command stops section numbering
\addcontentsline{toc}{section}{Acknowledgments} % Adds this section to the table of contents
\color{lightgray}
\textcopyleft \ by Eduardo Luis Hofmann || Made with \faIcon{linux} and \LaTeX\\
\color{black}
%----------------------------------------------------------------------------------------
% REFERENCE LIST
%----------------------------------------------------------------------------------------
\phantomsection
\bibliographystyle{unsrt}
\bibliography{sample.bib}
%----------------------------------------------------------------------------------------
\end{document}

Binary file not shown.

View File

@@ -1,124 +0,0 @@
%
% This document is a replication of the original Template_for_a_Thesis_042020.dotx
% attempting to replicate the style in LATEX
%
% Created by: Eduardo Luis Hofmann
% Date: 09/09/2020
% License: GPL-3.0-or-later
% version: 2.1
% Using TexStudio and compiling with lualatex
% To use Sublime-Text 4 check this guide: https://abhigupta.io/2021/05/14/clean-sublime-setup.html
%\documentclass[a4paper,11pt]{article}
\documentclass[a4paper,11pt]{memoir}
\usepackage{graphicx} %for graphics image loading
\usepackage[sfdefault,lining]{FiraSans}
\usepackage[fakebold]{firamath-otf}
\usepackage{float} %to allow use of image Here
\usepackage{makecell} % to break cell lines
\usepackage{floatflt} % to make the text around images
\usepackage{enumitem} % to create enumarations using letters A B C --https://tex.stackexchange.com/questions/2291/how-do-i-change-the-enumerate-list-format-to-use-letters-instead-of-the-defaul
\usepackage{multicol} % to generate two column content https://stackoverflow.com/questions/1491717/how-to-display-a-content-in-two-column-layout-in-latex
\usepackage{lipsum} % to add lorem ipsum for testing and formating
\usepackage{hyperref} % to add link in the document
%to minimize use of hyphenation
\spaceskip=1.3\fontdimen2\font plus 1.3\fontdimen3\font minus 1.3\fontdimen4\font
% change paragraph font size
\usepackage{titlesec}
\titleformat*{\paragraph}{\normalfont} %{\thesection}{12pt}{}
% to remove the word Abstract before the abstract text
%\usepackage{abstract}
%\renewcommand{\abstractname}{} % clear the title
%\renewcommand{\absnamepos}{empty} % originally center
\usepackage[bottom]{footmisc} %force footnote to stay at bottom of the page
\usepackage[bottom=2cm,top=0.5in,left=0.9in,right=0.9in]{geometry} %define margin size
\usepackage{url}
\usepackage{fontawesome5}
\usepackage{wrapfig}%to wrap text around picture
%code to insert background image
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\vspace*{-3cm}
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{img/samk-cover-logo.png} %
\vfill
}}}
\begin{document}
%to insert image in the front page
\AddToShipoutPicture*{\BackgroundPic}
\begin{center}
\begin{vplace}[6]
\Large EDUARDO LUIS HOFMANN\\
\bigskip\bigskip\bigskip
\Huge Change the title\\
\bigskip\bigskip
\Large Change the Discipline\\
\bigskip\bigskip\bigskip\bigskip\bigskip\bigskip
\bigskip\bigskip\bigskip\bigskip\bigskip\bigskip
DEGREE PROGRAMME IN INDUSTRIAL MANAGEMENT\\2022
\end{vplace}
\end{center}
\pagestyle{empty}
%page 2
%\clearpage
%\pagestyle{plain} %re enable the page numbering
%to be added table describing the document
%page 3 - CONTENTS
\clearpage
\pagestyle{plain} %re enable the page numbering
\tableofcontents
%page 4
% START OF THE DOCUMENT
\clearpage
\chapter{Quotes for the Future}
\section{Eduardo quotes}
\begin{quote}
Do more with the same\\
Do the same with less
\end{quote}
\footnote{someday on history books\cite{linkreference}}
\clearpage
\bibliographystyle{plain}
\bibliography{bibliography}
\mbox{}
\vfill
\centering
\textcopyleft \ by Eduardo Luis Hofmann || Made with \faIcon{linux} and \LaTeX\\
\end{document}

View File

@@ -0,0 +1,107 @@
% This document is a replication of the original Template_for_a_Thesis_042020.dotx
% attempting to replicate the style in LATEX
%
% Created by: Eduardo Luis Hofmann
% Date: 09/09/2020
% License: GPL-3.0-or-later
% version: 4
% Using TexStudio and compiling with lualatex
% log
% Version 1: Initial template
% Version 2: Improved Latex features
% Version 3: Work to downgrade and somehow match SAMK MS Word thesis template, due to teachers complains
% Version 4: Big distorce from SAMK version. Remake it to match template and added the samk-template.cfg file
% To use Sublime-Text 4 check this guide: https://abhigupta.io/2021/05/14/clean-sublime-setup.html
% at end of 2023 kile is better
\documentclass[a4paper,12pt,oneside]{memoir}
\usepackage[natbibapa]{apacite} % this package is to cite using APA style in citations
\usepackage{graphicx} %for graphics image loading
\usepackage[sfdefault,lining]{FiraSans}
\usepackage{float} %to allow use of image Here
\usepackage{makecell} % to break cell lines
\usepackage{floatflt} % to make the text around images
\usepackage{enumitem} % to create enumarations using letters A B C --https://tex.stackexchange.com/questions/2291/how-do-i-change-the-enumerate-list-format-to-use-letters-instead-of-the-defaul
\usepackage{multicol} % to generate two column content https://stackoverflow.com/questions/1491717/how-to-display-a-content-in-two-column-layout-in-latex
\usepackage{lipsum} % to add lorem ipsum for testing and formating
\usepackage{hyperref} % to add link in the document
\usepackage[bottom]{footmisc} %force footnote to stay at bottom of the page
\usepackage[bottom=0.98in,top=0.39in,left=1.58in,right=0.98in]{geometry} %define margin size
\usepackage{url}
\usepackage{fontawesome5}
\usepackage{wrapfig} %to wrap text around picture
\InputIfFileExists{samk-template.cfg}{}{} %load settings to match samk template
\begin{document}
\pagestyle{empty}
%\OnehalfSpacing
\DoubleSpacing
\AddToShipoutPicture*{\BackgroundPic} %to insert image in the front page
\begin{center}
\begin{vplace}[17]
\Large STUDENT NAME\\
\bigskip
\Huge \textbf{Paper Topic}\\
\bigskip
\LARGE COURSE NAME\\
\bigskip\bigskip\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\large
DEGREE PROGRAMME IN xxxx xxxxxx\\20##
\bigskip
\end{vplace}
\end{center}
\thispagestyle{empty}
%page 2 - CONTENTS
\clearpage
\begin{KeepFromToc}
\tableofcontents
\end{KeepFromToc}
\thispagestyle{empty}
% START OF THE DOCUMENT
\clearpage
\thispagestyle{plain} %re enable the page numbering
\pagestyle{plain} %re enable the page numbering
\chapter{Quotes for the Future}
\section{Eduardo quotes}
\begin{quote}
Do more with the same\\
Do the same with less
\end{quote}
\section{Eduardos Digitalisation Manifesto}
1 Security
Each component of a digitalization venture shall consider be operational in a harsh cyber environment.\\
2 Workflow
Without becoming a mandatory part of the process, by the functionality and not by words. A digitalization effort will turn into a useless junk of pieces and bits.\\
3 Evolution
Plan ahead how a single entity will maintain operational capabilities with the transformation of the entire chain.\\
4 Process
Digitalisation sometimes is not about taking one manual operation and make it in a electronic way. Most of the times is about killing that manual process.\\
source:\cite{manifesto}\\
\clearpage
%\bibliographystyle{plain}
\bibliographystyle{apacite} %to cite using APA style
\setlength{\bibhang}{0pt}
\bibliography{bibliography}
\mbox{}
\vfill
\centering
\definecolor{mygray}{gray}{.94}
\color{mygray}
\textcopyleft \ by Eduardo Luis Hofmann || Made with \faIcon{linux} and \LaTeX\\
\end{document}

Binary file not shown.

View File

@@ -6,7 +6,6 @@
version = "Portuguese" version = "Portuguese"
} }
@misc{linkreference, @misc{linkreference,
title = "Change the Title", title = "Change the Title",
author = "Change the Author", author = "Change the Author",
@@ -14,3 +13,20 @@
year = "updated Dec 2, 2020 (accessed Dec 6, 2020)" year = "updated Dec 2, 2020 (accessed Dec 6, 2020)"
} }
@book{rickards2016road,
title={The Road to Ruin: The Global Elites' Secret Plan for the Next Financial Crisis},
author={Rickards, J.},
isbn={9780241972557},
url={https://books.google.fi/books?id=HJAsDAAAQBAJ},
year={2016},
publisher={Penguin Books Limited}
}
@misc{manifesto,
title={Eduardos Digitalisation Manifesto},
author={Eduardo Luis Hofmann},
howpublished={\url{https://www.33co.de/posts/manifesto/}},
year={2023},
month={Apr},
copyright={TX 9-305-472}
}

Binary file not shown.

View File

@@ -0,0 +1,53 @@
%
% This file contains the modifications to match samk template in 2023
% Created by: ehofmann
% 09/Dec/2023
%
%\ProvidesPackage{samk-template}[2023/12/09]
%to minimize use of hyphenation
\spaceskip=1.3\fontdimen2\font plus 1.3\fontdimen3\font minus 1.3\fontdimen4\font
%code to insert background image
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\vspace*{-3.5cm}
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{img/samk-cover-logo.png} %
\vfill
}}}
%this adjust chapter title to match SAMK template
%source: https://tex.stackexchange.com/a/339606
\usepackage{titlesec}
\titleformat{\chapter}
{\vspace{6em}\normalfont\Large}
{\thechapter}
{.5em}
{\MakeUppercase}
[\vspace{.5ex}]
\titlespacing*{\chapter}
{0pt}
{0pt}
{15pt}
%this adjust chapter section to match SAMK template
\titleformat{\section}
{\normalfont\sffamily\large\color{black}}
{\thesection}{.5em}{}
% to fix table of content title and make chapter upper case
\renewcommand{\printtoctitle}[1]{\Large\MakeUppercase #1}
\makeatletter
\patchcmd{\l@chapter}{#1}{\MakeTextUppercase{#1}}{}{}
\makeatother
%remove indent beginning of paragraph
\setlength{\parindent}{0pt}