Saturday, August 3, 2013

Create block in Latex

\documentclass{beamer}
\begin{document}
    \begin{frame}
        \begin{block}{This is your first block Title}
            This is your first block text
        \end{block}
       
        \begin{block}{This is your second block Title}
            This is your second block text
        \end{block}
    \end{frame}
\end{document}

Create columns in Latex

\documentclass[11pt]{beamer}
\begin{document}
    \begin{frame}
        \begin{columns}
            \column{.5\textwidth}
            Your first column
            \column{.5\textwidth}
            Your second column
        \end{columns}
    \end{frame}
\end{document}

Divide Table by Line

\documentclass[11pt]{beamer}
\begin{document}
    \begin{frame}
        \begin{tabular}{c|c}
            row1 column1 & row1 column2 \\ 
            \hline
            row2 column1 & row2 column2 \\
        \end{tabular}
    \end{frame}
\end{document}

Create simple table in Latex

\documentclass[11pt]{beamer}
\begin{document}
    \begin{frame}
        \begin{tabular}{cc}
            row1 column1 & row1 column2 \\ 
            row2 column1 & row2 column2 \\
        \end{tabular}
    \end{frame}
\end{document}

Pause in Latex

\documentclass[11pt]{beamer}
\begin{document}
    \begin{frame}
        Which Programming Language do you like most?
        \begin{enumerate}[(a)]
            \item C
            \pause       
            \item C++
            \pause
            \item JAVA
        \end{enumerate}
    \end{frame}
\end{document}

Font size in Latex

\documentclass[11pt]{beamer}
\begin{document}
    \begin{frame}
        \frametitle{Your frame title}
        Your first slide
    \end{frame}
\end{document}

Write code in Latex

\documentclass{beamer}
\begin{document}
    \begin{frame}[fragile]
        \begin{verbatim}
            //Simple C++ program
            #include <iostream>
            using namespace std;
            int main()
            {
                cout<<"Hello Rakib"<<endl;
                return 0;
            }
        \end{verbatim}
    \end{frame}
\end{document}