hanquansanren / slide-templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Original author

https://github.com/yaoshanliang/

Usage

  • Clone to your desktop: git clone git://github.com/hanquansanren/slide-templates.git
  • Notice: you must use the PDFlatex to compile this beamer, otherwise it may occur error.

Tips

Some tips for using this template

Blocks

  • Default Block
    \begin{block}{Default Block}
        Body of default block.
    \end{block}
  • Alert Block
    \begin{alertblock}{Alert Block}
        Body of alert block.
    \end{alertblock}
  • Example Block
    \begin{exampleblock}{Example Block}
        Body of example block.
    \end{exampleblock}

Texts

  • Example text
 \example{Text Example}
  • Emphasis text
 \emph{Text emphasis}

Boxes

  • Simple Box
\simplebox{testando o simple box}
  • Alert Box
\alertbox{testando o alert box}
  • Success Box
\successbox{testando o success box}

Codes

It is possible to insert codes in this presentation. This template uses two packages for algorithms: algorithm2e and listings.

The following example shows how to create a pseudocode:

\begin{algorithm}[H]
    \SetAlgoLined #includes indentation
    \LinesNumbered #includes lines number
    \SetKwInOut{Input}{input}
    \SetKwInOut{Output}{output}
    \Input{write the input}
    \Output{write the output}
    \KwData{write the data}
    \KwResult{Write the result}
    initialization\;
    \While{While condition}
    {
        instructions\;
        \eIf{condition}{
           instructions1\;
           instructions2\;
           }{
           instructions3\;
        }
    } 
    \caption{How to write algorithms}
\end{algorithm}

The following example shows how to insert a code that is in the project files:

\begin{frame}{Including Codes}
    \lstset{language=Python}
    \lstinputlisting[language=Python]{path_of_python_code.py}
\end{frame}

The following example shows how to insert a figure:

\begin{figure}
    \centering
    \caption{Caption of the Figure}
    \includegraphics[scale=1]{path_of_the_figure}
    \source{Source of the Figure}
    \label{fig:figlabel}
\end{figure}

The following example shows how to insert a multi-columns:

\begin{columns}{}
    \begin{column}{0.5\textwidth}
        \justify
        Text of the left side!
    \end{column}
    \begin{column}{0.5\textwidth}
        \justify
        Text of the right side!
    \end{column}
\end{columns}    

Custom Commands

This template has some custom commands that are described below:

To put the department name

\department{Department Name}

To put the email

\email{user@domain}

About

License:MIT License


Languages

Language:TeX 99.5%Language:Python 0.5%