%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --------------------------------------------------------
% Tau
% LaTeX Template
% Version 2.3.1 (10/04/2024)
%
% Author:
% Guillermo Jimenez (memo.notess1@gmail.com)
%
% License:
% Creative Commons CC BY 4.0
% --------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --------------------------------------------------------
% BIBLIOGRAPHY WITH BIBLATEX IN EXTERNAL EDITORS
% --------------------------------------------------------
% If the bibliography does not show up, try running the
% 'tau.cls' and 'tau.bib' file with biber from the
% MikTeX console or your preferred LaTeX distribution to
% generate the auxiliar files and (re)run the main.tex.
% --------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --------------------------------------------------------
% FOR SPANISH BABEL
% --------------------------------------------------------
% \usepackage[spanish,es-nodecimaldot,es-noindentfirst]{babel}
% --------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[9pt,a4paper,twoside]{tau}
\usepackage[english]{babel}
\usepackage{tauenvs}
%----------------------------------------------------------
% TITLE
%----------------------------------------------------------
\title{Writing an academic article or lab report with tau \LaTeX\ class}
%----------------------------------------------------------
% AUTHORS, AFFILIATIONS AND PROFESSOR
%----------------------------------------------------------
\author[a,1]{Author 1}
\author[b,2]{Author 2}
\author[b,c,3]{Author 3}
%----------------------------------------------------------
\affil[a]{Affiliation of author one}
\affil[b]{Affiliation of author two}
\affil[c]{Affiliation of author three}
\professor{Professor/Authority or other information}
%----------------------------------------------------------
% FOOTER INFORMATION
%----------------------------------------------------------
\institution{College name}
\ftitle{\LaTeX\ Template}
\date{April 10, 2024}
\etal{Author last name et al.}
\course{Creative Commons CC BY 4.0}
%----------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------
\begin{abstract}
Welcome to tau ($\tau$) \LaTeX\ class for making academic articles and lab reports. In this example template, we will guide you through the process of using and customizing this class to your needs. For more information of this class check out the appendix section. There, you will find snippets codes that define key aspects of the template, allowing you to explore and modify them.
\end{abstract}
%----------------------------------------------------------
\keywords{\LaTeX\ class, lab report, academic article, tau class}
%----------------------------------------------------------
\begin{document}
\maketitle
\thispagestyle{firststyle}
\tauabstract
\tableofcontents
%----------------------------------------------------------
\section{Introduction}
\taustart{W}elcome to \textit{tau class} template for preparing your academic article or lab report. In this guide, we will take a look at its main features and how you can customize some aspects to this class. Due to its clean and structured code, users can easily customize this class to their specific needs and preferences. In addition, this template uses an easy-to-read and high quality font in equations with \textit{stix2}. Notable features include custom colors, environments and settings for including code from Matlab, C, C++ and \LaTeX, and .
\section{Document styling}
\subsection{Title}
The \verb*|\maketitle| command generates the title and author information section, including the professor name or other information, and affiliations. The title can be modified in \textit{tau class} code in the \textit{title style} section.
By default, \textit{tau class} centers the title. However, you can change \verb*|\centering| to \verb*|\raggedright| in \verb*|\renewcommand{maketitle}| to move the title to the left or, modify it to your own preferences.
\subsection{Abstract}
The abstract and keywords are defined using the \verb*|\keywords| and \verb*|\begin{abstract} \end{abstract}| commands respectively. For the abstract to appear, make sure the \verb|\taucontent| command is always included after the beginning of the document.
\subsection{Table of contents}
The \textit{tau class} provides a table of contents. Each level of the ToC provides a preview of the content and its location in the document.
\subsection{Tau start}
We included the \verb*|\taustart{}| command, which provides a personalized lettrine for the beginning of a paragraph.
\subsection{Caption}
\subsubsection{Figures}
The provided \verb*|\captionsetup[figure]| command customizes the appearance of captions for figures in \LaTeX\ documents. For example, in Fig. \ref{fig:figure}, shows an example figure.
\begin{figure}[H]
\centering
\includegraphics[width=0.8\columnwidth]{Figures/Example.pdf}
\caption{Example figure (obtained from \textit{PGFPlots - A LaTeX package to create plots}. [Online]. Available: \url{https://pgfplots.sourceforge.net/}).}
\label{fig:figure}
\end{figure}
\subsubsection{Tables}
The \verb*|\captionsetup[table]| command customizes the appearance of the captions for tables in the document. The \verb*|\tabletext{}| is used to add notes to tables easily. Table \ref{tab:table}, shows an example table.
\begin{table}[H]
\centering
\caption{Small table example.}
\label{tab:table}
\begin{tabular}{cc}
\toprule
\textbf{Column 1} & \textbf{Column 2} \\
\midrule
Data 1 & Data 2 \\
Data 3 & Data 4 \\
\bottomrule
\end{tabular}
\tabletext{Note: I'm a table text for additional information.}
\end{table}
\subsection{Equation}
Equation \ref{ec:equation} shows an example equation.
\begin{equation} \label{ec:equation}
\frac{\hbar^2}{2m}\nabla^2\Psi + V(\mathbf{r})\Psi = -i\hbar \frac{\partial\Psi}{\partial t}
\end{equation}
The \textbf{amssymb} package was not necessary to include, because the stix2 font incorporates mathematical symbols for writing quality equations. In case you choose another font, uncomment the package in \textit{tau class} code.
If you want to change the values that adjust the spacing above and below in the equations, go to \textit{tau class-math packages} section and play with \verb|\setlength{\eqskip}{6.5pt}| value until the preferred spacing is set. See appendix for more information.
\section{Environment}
The \textit{tau class} includes custom environments designed to enhance the presentation of information within documents. Among these custom environments are \textbf{tauenv}, \textbf{info} and \textbf{note}.
\begin{tauenv}[frametitle=Custom title]
This is an example of the custom title environment. To add a title type \verb|[frametitle=Custom title]| next to the beginning of the environment (as shown in this example).
\end{tauenv}
One of the main features of the info and note environment is that they automatically change the language of their titles (currently English and Spanish).
\section{Coding}
\textit{Tau class} includes the \textit{listings} package, which offers versatile and customizable features for typesetting code snippets in \LaTeX\ documents. Specifically for C, C++, \LaTeX\ and Matlab codes.
For C and C++ codes, the \textit{listings} package recognizes the syntax of these programming languages and highlights keywords, comments, and string literals accordingly.
\lstinputlisting[caption=Example of C code., language=C]{example.c}
Similarly, for Matlab codes, the \textit{listings} package offers syntax highlighting and line numbering, to the MATLAB language syntax.
\lstinputlisting[caption=Example of matlab code., language=Matlab]{example.m}
\section{References}
The default formatting for references follows the IEEE style. This style is commonly used for technical documents, research papers, and scholarly articles in engineering fields \cite{einstein}.
At the end of the document, you will find an example of the default reference formatting \cite{dirac}.
\section{Appendix}
\subsection{Environments preview}
The following environments are defined in \textit{tauenvs} package.
\subsubsection{Tau environment}
The following code defines the tauenv environment. A custom title can be added to this environment.
\begin{tauenv}[frametitle=Tauenv]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum justo quis massa aliquet, ut ultrices quam bibendum.
\end{tauenv}
\begin{lstlisting}[language=TeX, caption=Tauenv environment code.]
\newmdenv[
backgroundcolor=taublue!22,
linecolor=taublue,
linewidth=0.7pt,
frametitle=\vskip0pt\bfseries,
frametitlerule=false,
frametitlefont=\color{taublue}\bfseries\sffamily,
frametitlealignment=\raggedright,
innertopmargin=3pt,
innerbottommargin=6pt,
innerleftmargin=6pt,
innerrightmargin=6pt,
font=\selectfont,
fontcolor=taublue,
frametitleaboveskip=8pt,
skipabove=10pt
]{tauenv} \end{lstlisting}
\subsubsection{Note}
This code defines the note environment.
\begin{note}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum justo quis massa aliquet, ut ultrices quam bibendum.
\end{note}
\begin{lstlisting}[language=TeX, caption=Note environment code.]
\newmdenv[
backgroundcolor=taublue!22,
linecolor=taublue,
linewidth=0.7pt,
frametitle=\vskip0pt\bfseries\notelanguage,
frametitlerule=false,
frametitlefont=\color{taublue}\bfseries\sffamily,
frametitlealignment=\raggedright,
innertopmargin=3pt,
innerbottommargin=6pt,
innerleftmargin=6pt,
innerrightmargin=6pt,
font=\normalfont,
fontcolor=taublue,
frametitleaboveskip=3pt,
skipabove=10pt
]{note} \end{lstlisting}
\subsubsection{Info}
This code defines the info environment.
\begin{info}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum justo quis massa aliquet, ut ultrices quam bibendum.
\end{info}
\begin{lstlisting}[language=TeX, caption=Info environment code.]
\newmdenv[
backgroundcolor=taublue!22,
linecolor=taublue,
linewidth=0.7pt,
frametitle=\vskip0pt\bfseries\infolanguage,
frametitlerule=false,
frametitlefont=\color{taublue}\bfseries\sffamily,
frametitlealignment=\raggedright,
innertopmargin=3pt,
innerbottommargin=6pt,
innerleftmargin=6pt,
innerrightmargin=6pt,
font=\normalfont,
fontcolor=taublue,
frametitleaboveskip=3pt,
skipabove=10pt
]{info} \end{lstlisting}
\subsection{Alternative title}
You can make the following modification to \textit{tau class} in the \textit{title preferences} section to change the position of the title. This will move the title to the left.
\begin{lstlisting}[language=TeX, caption=Alternative title.]
\renewcommand{\@maketitle}{%
\vskip-18pt
{\RaggedRight\bfseries\color{taublue}\fontsize{18}{22}\sffamily\selectfont\@title\par}
\vskip8pt
{\RaggedRight\normalsize\sffamily\@author\par}
\vskip8pt
{\RaggedRight\fontsize{7pt}{8pt}\selectfont\@professor\par}
\vskip24pt
}%
\end{lstlisting}
\subsection{Equation skip value}
Play with the value of \verb|\eqskip| until the preferred spacing is set for equations.
\begin{lstlisting}[language=TeX, caption=Equation skip code.]
\newlength{\eqskip}\setlength{\eqskip}{6.5pt}
\expandafter\def\expandafter\normalsize\expandafter{%
\normalsize%
\setlength\abovedisplayskip{\eqskip}%
\setlength\belowdisplayskip{\eqskip}%
\setlength\abovedisplayshortskip{\eqskip-\baselineskip}%
\setlength\belowdisplayshortskip{\eqskip}%
}
\end{lstlisting}
%----------------------------------------------------------
\addcontentsline{toc}{section}{References}
\printbibliography
%----------------------------------------------------------
\begin{center}
\vskip10pt
Enjoy writing with tau \LaTeX\ class $\blacksmiley$ \\
\vskip10pt
\textit{Contact:} \\
\faLink\ \href{https://sites.google.com/view/memo-notess/p%C3%A1gina-principal}{https://sites.google.com/memo-notess} \\
\faEnvelope[regular]\ memo.notess1@gmail.com \\
\faInstagram\ memo.notess\\
\end{center}
%----------------------------------------------------------
\end{document}