我在LaTeX的文檔類中。如何加載保存爲.png文件的圖像?在LaTeX中加載圖像
6
A
回答
9
15
如果您使用pdflatex
(直接編譯爲pdf),則可以使用graphicx
包使用\includegraphics
命令。如果您的圖像被稱爲foo.png
,則可以在文檔中添加以下命令。
\includegraphics{foo}
但是,如果您有latex
工作(彙編成DVI第一),你不能使用「PNG」文件作爲圖像(任何包)。您必須先將圖像轉換爲「eps」。如果您的圖像名爲foo.png
,那麼您可以使用任何圖形軟件將其轉換爲foo.eps
,然後使用以下命令來包含圖像。
\includegraphics{foo}
這裏是寬度規範一個完整的例子:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
Here is my image.
\includegraphics[width=\textwidth]{foo}
\end{document}
2
我不使用pdflatex
。在Ubuntu上,我使用imagemagick附帶的convert
命令將.png轉換爲.eps,然後使用includegraphics
。
相關問題
- 1. 如何在Latex中添加jpg圖像
- 2. 在flex中加載圖像時添加加載器圖像
- 3. 在加載中加載多個圖像
- 4. 在JPanel中加載圖像?
- 5. 在JavaFX中加載圖像
- 6. 在bPopup中加載圖像
- 7. 在openGL中加載圖像
- 8. 在html中加載圖像
- 9. 在JPanel中加載圖像
- 10. 在J2ME中加載圖像?
- 11. 在LaTeX中使用subfloats導入圖像
- 12. Jquery加載圖像,而圖像加載
- 13. 在LaTeX Beamer中增加LaTeX Beamer
- 14. 在gtk中加速圖像加載.IconView
- 15. Lazy在ListView中加載位圖圖像
- 16. 在圖庫中查看加載圖像
- 17. Android在Web視圖中加載圖像
- 18. 在列表視圖中加載圖像
- 19. 在列表視圖中加載圖像
- 20. 圖像沒有在視圖中加載
- 21. 防止在圖庫中加載圖像
- 22. 在jQuery圖庫中預加載圖像
- 23. jQuery - 在圖庫中加載圖像?
- 24. 試圖在django中加載css /圖像
- 25. 將LaTeX渲染爲圖像
- 26. 加載CSS圖像加載
- 27. 僅在加載時才加載圖像
- 28. 加載圖像在頁面加載
- 29. 加載圖像
- 30. 加載圖像