summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/sfee/SFEE.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/sfee/SFEE.dtx')
-rw-r--r--macros/latex/contrib/sfee/SFEE.dtx205
1 files changed, 205 insertions, 0 deletions
diff --git a/macros/latex/contrib/sfee/SFEE.dtx b/macros/latex/contrib/sfee/SFEE.dtx
new file mode 100644
index 0000000000..a2225fb1ff
--- /dev/null
+++ b/macros/latex/contrib/sfee/SFEE.dtx
@@ -0,0 +1,205 @@
+% \iffalse meta-comment
+%<*driver>
+\ProvidesFile{SFEE.dtx}
+%</driver>
+%<class>\NeedsTeXFormat{LaTeX2e}
+%<class>\ProvidesClass{SFEE}[2023/11/23 version1.0]
+%<*driver>
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\begin{document}
+\DocInput{SFEE.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{0}
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+% \GetFileInfo{SFEE.dtx}
+%
+% \title{The \textsf{SFEE} class}
+%
+% \author{Juan de Anda Suárez\\
+% Tecnológico Nacional de México/ITS Purísima del Rincón\\
+% \texttt{juan.ds@purisima.tecnm.mx}}
+%
+% \date{\filedate}
+%
+% \changes{v1.0}{2023/11/23}{First public release}
+%
+% \makeatletter
+% \def\headlinecolor{\@normalcolor}
+% \makeatother
+%
+% \maketitle
+%
+% \StopEventually{\PrintChanges}
+%
+% \section{Introduction}
+%
+% The \textsf{SFEE} class is designed for the "Smart Factory and Efficiency Energy" journal.
+%
+% \section{Installation}
+%
+% To install the \textsf{SFEE} class, simply place the file \texttt{SFEE.cls} in a directory where \LaTeX{} can find it.
+%
+% \section{Usage}
+%
+% To use the \textsf{SFEE} class, simply use the command \verb|\documentclass{SFEE}| in your \LaTeX{} document preamble.
+%
+% \section{Documentation}
+%
+% Documentation for the \textsf{SFEE} class is provided within this \texttt{.dtx} file. Run \LaTeX{} on this file to produce the documentation.
+%
+% \section{Bug Reports and Feedback}
+%
+% Please report any bugs or issues to the author at \texttt{juan.ds@purisima.tecnm.mx}.
+%
+% \section{License}
+%
+% This work is released under the LaTeX Project Public License, version 1.3c or later.
+%
+% \begin{filecontents*}{SFEE.cls}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{SFEE}[2023/11/23 version1.0]
+
+\LoadClass[journal,noindent,headline]{paper}
+%\LoadClass[10pt,letterpaper,twocolumn]{article}
+
+\usepackage{xcolor}
+\usepackage{mdframed}
+\usepackage{graphicx}
+\usepackage{academicons}
+\usepackage{svg}
+\usepackage{yfonts,color}
+\usepackage{datetime}
+\usepackage{etoolbox}
+\usepackage{ccicons}
+
+\newcommand{\headlinecolor}{\normalcolor}
+
+\RequirePackage{xcolor}
+\definecolor{slcolor}{HTML}{882B21}
+
+\let\Abstract\abstract %color al abstract
+\long\def\abstract{\mdframed[backgroundcolor=black!12,hidealllines=true]
+ \vspace*{-0.5\baselineskip}\Abstract}
+\let\endAbstract\endabstract
+\def\endabstract{\endAbstract\endmdframed\par\bigskip}
+
+\newcommand\doi[1]{\renewcommand\@doi{doi:10.61794/#1}}
+\newcommand\@doi{}
+
+\newcommand\received[1]{\renewcommand\@received{Received #1}}
+\newcommand\@received{}
+
+\newcommand\accepted[1]{\renewcommand\@accepted{Accepted #1}}
+\newcommand\@accepted{}
+
+\newcommand\Vol[1]{\renewcommand\@Vol{#1}}
+\newcommand\@Vol{}
+
+\newcommand\ppInit[1]{\renewcommand\@ppInit{#1}}
+\newcommand\@ppInit{}
+
+\newcommand\ppEnd[1]{\renewcommand\@ppEnd{#1}}
+\newcommand\@ppEnd{}
+
+\newcommand\ISSN[1]{\renewcommand\@ISSN{#1}}
+\newcommand\@ISSN{}
+
+\oddrunhead{SFEE, Vol. \textsc{\@Vol}, ISSN ???-???, pp. \@ppInit-\@ppEnd}
+
+\DeclareOption{onecolumn}{\OptionNotUsed}
+\DeclareOption{green}{\renewcommand{\headlinecolor}{\color{green}}}
+\DeclareOption{red}{\renewcommand{\headlinecolor}{\color{slcolor}}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+
+\newcounter{fnote}
+\def\fnmark[#1]{\let\comma\@empty
+ \def\@fnmark{\@for\@@fnmark:=#1\do{%
+ \edef\fnotenum{\@ifundefined{X@\@@fnmark}{1}{\Ref{\@@fnmark}}}%
+ \unskip\comma\fnotenum\let\comma,}}%
+}
+
+%\fancyfoot[C]{\tiny Copyright \textcopyright\ 2009 All rights reserved. Duplication for purposes of any kind is strictly forbidden.}
+
+\RequirePackage{authblk}
+\renewcommand{\maketitle}{%
+ \twocolumn[%
+ \raisebox{10pt}{\href{https://sfee.space/}{\includegraphics[width=7.61pc]{logo_sfee.png}}} \raisebox{25pt}{\href{https://purisima.tecnm.mx/}{\centering \color{blue} \textcopyright \textbf{\the\year\ Tecnológico Nacional de México/ITS Purísima del Rincón}}} \raisebox{21pt}{\href{https://creativecommons.org/licenses/by-nc/4.0/}{\color{black} \ccbync}} \par
+ \fontsize{15}{15}\fontfamily{phv}\fontseries{b}%
+ \fontshape{sl}\selectfont\headlinecolor
+ \textbf{\@title} \vskip 4pt
+ \fontsize{12}{12}\fontfamily{phv}\fontseries{b}%
+ \setcounter{footnote}{0}%
+ \fontshape{sl}\selectfont\headlinecolor
+ \@author \vskip 4pt
+ \@doi \vskip 3pt
+ \@received ; \@accepted
+ ]%
+ \vskip 4pt
+ \renewcommand{\AB@affillist}{}
+ \renewcommand{\AB@authlist}{}
+ \setcounter{authors}{0}
+ \typeout{Article: \@shortauthor}
+ %\setcounter{affil}{0}%
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \setcounter{subsubsection}{0}%
+ \setcounter{paragraph}{0}%
+ \setcounter{subparagraph}{0}%
+ \setcounter{figure}{0}%
+ \setcounter{table}{0}%
+ \setcounter{equation}{0}%
+}
+%biography
+%Biography with a photograph
+\newcommand{\authorcontribution}[1]{%
+ \begin{wrapfigure}{l}{25mm}
+ \includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{#1}
+ \end{wrapfigure}
+}
+
+\newenvironment{AuthorContribution}{%
+ \section*{Author contribution}
+}{}
+
+\newcommand{\dataavailability}[2]{%
+ \section*{Data availability}
+ \small
+ #1 \\
+ \setlength{\Urlmuskip}{0mu plus 1mu}
+ \textbf{GitHub repository:} \url{#2}
+}
+\newcommand{\codeavailability}[2]{%
+ \section*{Code availability}
+ \small
+ #1 \\
+ \setlength{\Urlmuskip}{0mu plus 1mu}
+ \textbf{GitHub repository:} \url{#2}
+}
+\endinput
+%</class>
+\end{filecontents*}
+
+\end{document}
+