먼저 간단히 용어들을 이해 한 후 실제로 어떻게 그림이 삽입되는지를 알아보자.
t :top
b : bottom
h : here
p : next page
includegraphics[width=2\columnwidth}{파일명} % tex file과 동일 디렉토리에 그림이 저장되어야 한다.
가령,
\pagebreak
\begin{figure}[here]
\includegraphics[width=0.9\textwidth]{JobInformationDialog.jpg}
\caption{A prototype of the Job Information dialog}
\label{fig:jobInformationDialog}
\end{figure}
%이미지 파일 JobInformationDialog.jpg 파일은 tex file과 같은 folder에 먼저 저장이 되어야 한다.
실제 사용례
*필요한 파일들
image1.jpg![첨부이미지 미리보기](https://t1.daumcdn.net/cafe_image/cf_img2/bbs2/btn_imageview.gif)
image2.jpg![첨부이미지 미리보기](https://t1.daumcdn.net/cafe_image/cf_img2/bbs2/btn_imageview.gif)
image3.jpg![첨부이미지 미리보기](https://t1.daumcdn.net/cafe_image/cf_img2/bbs2/btn_imageview.gif)
image4.jpg![첨부이미지 미리보기](https://t1.daumcdn.net/cafe_image/cf_img2/bbs2/btn_imageview.gif)
sample_picture.tex
먼저 위의 파일들을 동일한 동일 디렉토리에 저장한다. 그리고 WinEdt 나 TexWorks에서 sample_picture.tex를 열어서 실행하면 된다. 확장자는 절대로 jpeg를 써선 않된다. 가능하면 jpg나 eps가 효율적이다. 다 되는지 알고 jpeg로 했다 고생함...
코드
완성된 pdf파일과 코드다.
sample_picture.pdf
\documentclass[[a4paper,12pt]{article}
\usepackage{amssymb,amsmath,latexsym}
\usepackage{amsmath, amscd, verbatim, amsfonts,enumerate}
\usepackage{graphics, graphicx, xcolor}
\usepackage{harvard}
\usepackage{rotating}
\usepackage{fancybox}
\begin{document}
\begin{figure}[h!]
\caption{A picture of a gull.}
\centering
\includegraphics[width=0.5\textwidth]{image1}
\end{figure}
\begin{figure}[h!]
\centering
\reflectbox{%
\includegraphics[width=0.5\textwidth]{image1}}
\caption{A picture of the same gull
looking the other way!}
\end{figure}
\begin{figure}
\begin{center}$
\begin{array}{ccc}
\includegraphics[width=0.33\textwidth]{image1} &
\includegraphics[width=0.33\textwidth]{image2} &
\includegraphics[width=0.33\textwidth]{image3}
\end{array}$
\end{center}
\end{figure}
\begin{figure}
\begin{center}$
\begin{array}{cc}
\includegraphics[width=0.5\textwidth]{image1} &
\includegraphics[width=0.5\textwidth]{image2} \\
\includegraphics[width=0.5\textwidth]{image3} &
\includegraphics[width=0.5\textwidth]{image4}
\end{array}$
\end{center}
\end{figure}
\begin{figure}[ht]
\centering
\shadowbox{\includegraphics[width=1.0\textwidth]{image4}}
\caption {Close up of a Eagle to guide you how shadow function works.}
\end{figure}
\end{document}
유용한 링크들
http://www.iit.edu/graduate_college/academic_affairs/pdfs/FigureHelp1.pdf
http://woogyun.tistory.com/348
http://blog.naver.com/PostView.nhn?blogId=jonghong0316&logNo=140157985089
http://blog.naver.com/PostView.nhn?blogId=winispirit&logNo=30135871236
위 링크들은 비상업적 목적으로 Latex를 공부하고자 하는
후학들에게 유용한 정보를 제공하고자 하는 목적으로 자저들의 동의가 없이 제가 무단으로 복제한 것임을 알립니다. Links
listed on this page were copied without permission from the authors but
it willl be used only non-commercial purpose and provided to academic
researchers.