Selasa, 08 Oktober 2024

Add Image In Latex Beamer

  1. Open the Latex editor.
  2. type this following Latex code in the Latex editor:
    % !TEX TS-program = pdflatex
    %Typeset/Build program
    \documentclass{beamer}
    \usepackage{graphics}
    \usepackage{graphicx}
    \usepackage{grffile}
    \graphicspath{{assets/image/}}
    \usepackage[export]{adjustbox}


    \title{Add Images In Latex Beamer}
    \author{Private Course and Tutor Course}
    \date{}


    \beamertemplatenavigationsymbolsempty
    \setbeamertemplate{navigation symbols}{}

    \begin{document}

    \maketitle

    \begin{frame}
    \centering
    \begin{center}
    \begin{figure}[h]
    \centerline{
    \includegraphics[scale=0.25,center]{images.jpeg}
    }
    \end{figure}
    \end{center}
    \end{frame}

    \begin{frame}
    \begin{figure}[h]
    \includegraphics[height=\textheight,width=\textwidth,keepaspectratio]{images.jpeg}
    \caption{\textit{images.jpeg}}
    \end{figure}
    \end{frame}

    \begin{frame}
    \begin{figure}[h]
    \includegraphics[height=\textheight,width=\textwidth,keepaspectratio]{images.jpeg}
    \end{figure}
    \end{frame}
    \end{document}
  3. Save file as addPictureBeamer.pdf.
  4. run the Typeset command or similar other command with pdfLatex.
  5. to see the output, you can see the output is similar like the below picture:
    Add Images In Latex Beamer

    Private Course and Tutor Course
  6. Figure: images.jpeg
Notes: some graphics format is unsupported by Latex. Then convert to supported graphics format, like: jpg or png to Latex document.

< to learn about Latex Beamer, click Latex Beamer Short Reference 

Bibliography

https://ctan.org/
https://latex-beamer.com/
http://web.mit.edu/ ( university )
https://www.overleaf.com/
https://www.tug.org/
https://www.utep.edu/ ( university )
https://www.youtube.com/c/drtreforbazett ( Dr. Trefor Bazett )
https://www.youtube.com/channel/UCGThW6VTPuEBUNctWmitWng ( letslearncalculus5385 )

Tidak ada komentar:

Posting Komentar

Various Other Posts