PDF subido + código de latex

This commit is contained in:
2024-10-18 01:06:27 +02:00
parent 780bc81fa0
commit ed70c68bf9
14 changed files with 1358 additions and 0 deletions

View File

@ -0,0 +1,28 @@
\section{Color Palette}
\automateframe{Main Colors}{
\begin{table}[]
\small
\centering
\def \arraystretch{1.1}
\begin{tabular}{|>{\columncolor[gray]{0.2}}c|>{\columncolor[gray]{0.2}}p{70mm}|}
\hline
\textbf{Color} & \textbf{Usage} \\\hline
\testcolor{maincolor} & $\blacktriangleright$ Table of Contents Frame Background Color \newline $\blacktriangleright$ Frame Text Font Color \newline $\blacktriangleright$ Block Title Font Color\\ \hline
\testcolor{toctxt} & $\blacktriangleright$ Table of Contents Font Color \newline $\blacktriangleright$ Frame Background Color \newline $\blacktriangleright$ Block Body Font Color\\ \hline
\testcolor{frmtxt} & Frame Environment Color \\ \hline
\testcolor{blkc} & Block Title Background Color \\ \hline
\testcolor{statalegrey} & Block Body Background Color \\ \hline
\end{tabular}
\caption{Colors}
\label{tab:colors}
\end{table}
}
\automateframe{Customization}{
\begin{itemize}
\item To change the color of any element, replace the existing color in \texttt{beamertheme\_statale.sty}.
\item New colors can be defined in \texttt{statale\_colors.sty} using RGB and CMYK values.
\item \hrefcol{https://colorhunt.co/}{This} is a good resource for finding a color palette.
\end{itemize}
}

View File

@ -0,0 +1,93 @@
\section{Getting Started}
\begin{frame}[fragile,allowframebreaks]{Subsections}
\begin{block}{Create PDF Bookmarks for Subsections}
Use the \texttt{automateframe} environment to automatically create subsections with pdf bookmarks.
\begin{verbatim}
\automateframe{"Subsection"}{
"Insert Text"
}
\end{verbatim}
The inputs are the subsection title and the main text. This macro also allows the continuation of information in the next slide by using \texttt{allowframebreaks}.
\end{block}
\begin{block}{Subsections and Blocks}
While using blocks, define your frame as shown below.
\begin{verbatim}
\begin{frame}[fragile,allowframebreaks]{Subsection Title}
\subsection{Subsection Title}
\begin{block}
Text
\end{block}\end{frame}
\end{verbatim}
I am unable to automate the subsection bookmarks for a fragile frame. I will update the template if I find a solution.
\end{block}
\end{frame}
\automateframe{Table of Contents}{
\begin{itemize}
\item To remove the Table of Contents before every section, comment the following code in \texttt{beamertheme\_statale.sty}.
\end{itemize}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{colorblock}[toctxt]{frmtxt}{Table of Contents}
$\backslash$AtBeginSection[]\{\\
$\backslash$begingroup\\
$\backslash$themecolor\{main\}\\
$\backslash$begin\{frame\}[allowframebreaks]\{Table of Contents\}\\
$\backslash$tableofcontents[currentsection]\\
$\backslash$end\{frame\}\\
$\backslash$endgroup\}\\
\end{colorblock}
\end{column}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item To hide subsections in Table of Contents,
\begin{block}{Subsections}
$\backslash$setbeamertemplate\{subsection in toc\}\{\}
\end{block}
\item To change the style, change
\begin{block}{Style of Contents}
$\backslash$setbeamertemplate\{section in toc\}\\\{\$$\backslash$blacktriangleright\$~$\backslash$inserttocsection\}
\end{block}
\end{itemize}
\end{column}
\end{columns}
}
\automateframe{Hyperlinks}{
\begin{itemize}
\item Beamer buttons are a unique way to represent clickable links. To create one,\\[6pt]
$\backslash$hyperref\{"Link"\}\{$\backslash$beamerbutton\{"Insert Text"\}\} \beamerbutton{Test}\\[3pt]
\item To create a link to a particular point in the presentation,\\[3pt]
\begin{itemize}
\item Create a hypertarget \\[3pt]
$\backslash$hypertarget\{target\}\{\}\\[3pt]
\item To create a hyperlink, use the target\\[3pt]
$\backslash$hyperlink\{target\}\{Text\}
\end{itemize}
\end{itemize}
}
\automateframe{Title Page}{
\begin{itemize}
\item To add multiple authors,
\begin{itemize}
\item Define the following for each author\\[3pt]
$\backslash$newcommand\{$\backslash$secondauthor\}[2]\{$\backslash$def\@secondauthor\{\#1\}$\backslash$def\@secondauthorid\{\#2\}\}\\[3pt]
\item Modify the title page style to include\\[3pt]
$\backslash$ifdefempty\{\@secondauthor\}\{\}\{\%\\
\{$\backslash$usebeamerfont\{author\}$\backslash$usebeamercolor[fg]\{author\}\\$\backslash$textbf\{\@secondauthor\} $\backslash$ifdefempty\{\@secondauthorid\}\{\}\{(\@secondauthorid)\}\}\}\\[3pt]
\item In \texttt{Main.tex}, include the details of the second author as\\[3pt]
$\backslash$secondauthor\{"Name"\}\{"ID"\}\\[3pt]
Repeat the same for any additional authors.
\end{itemize}
\item To reposition the text, change the spacing in \texttt{beamertheme\_statale.sty} at line 155.\\[3pt]
$\backslash$hspace\{-12mm\}\\
$\backslash$vspace\{20mm\}\\[6pt]
\item To modify the picture style, modify the \texttt{sidepic} environment at line 254 in \texttt{beamertheme\_statale.sty}.\\[3pt]
\item To replace the picture, replace the path in line 20 of \texttt{Main.tex}.
\end{itemize}
}

View File

@ -0,0 +1,29 @@
\section{References}
\setbeamertemplate{bibliography item}{\insertbiblabel}
\setbeamercolor{bibliography entry author}{fg=maincolor}
\setbeamercolor{bibliography item}{fg=maincolor}
\begin{frame}[fragile,allowframebreaks,plain]{References}
\begin{beamercolorbox}[leftskip = 0cm]{frametitle}
\usebeamerfont{frametitle}\insertframetitle\\[12pt]
\end{beamercolorbox}
If you wish to hide this section from Table of Contents, use \texttt{section*\{References\}}.
\begin{block}{References}
$\backslash$begin\{beamercolorbox\}[leftskip = $0$cm]\{frametitle\} \\
$\backslash$usebeamerfont\{frametitle\}$\backslash$insertframetitle $\backslash$$\backslash$[12pt] \\
$\backslash$end\{beamercolorbox\} \\
$\backslash$setbeamertemplate\{bibliography item\}\{$\backslash$insertbiblabel\}\\
$\backslash$setbeamercolor\{bibliography entry author\}\{fg=maincolor\}\\
$\backslash$setbeamercolor\{bibliography item\}\{fg=maincolor\}
$\backslash$begin\{frame\}[allowframebreaks,plain]\{References\}\\
$\backslash$begin\{thebibliography\}\{9\}\\
$\backslash$bibitem\{1\} \\
$\backslash$end\{thebibliography\} \\
$\backslash$end\{frame\}
\end{block}
\end{frame}