Answers for "includegraphics latex"

9

include image latex

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\begin{figure}
  \includegraphics[width=\linewidth]{boat.jpg}
  \caption{A boat.}
  \label{fig:boat1}
\end{figure}

Figure \ref{fig:boat1} shows a boat.

\end{document}
Posted by: Guest on February-20-2020
6

include picture in latex

\usepackage{graphicx}
\graphicspath{ {./images/} }
\includegraphics{image}
Posted by: Guest on November-11-2020
0

includegraphics latex size

\includegraphics[width=50mm,scale=0.5]{picture.png}.
Posted by: Guest on September-24-2021
0

include code in latex

\usepackage{listings}
\usepackage{color}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\lstset{frame=tb,
  language=Java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}
Posted by: Guest on October-18-2020
-2

insert figure latex

%Path relative to the main .tex file 
\graphicspath{ {./images/} }
Posted by: Guest on November-21-2020

Browse Popular Code Answers by Language