Latex Error cannot determine the size of graphic 报错的解决的方法

时间:2023-03-09 09:27:05
Latex Error cannot determine the size of graphic 报错的解决的方法

Latex Error cannot determine the size of graphic 报错的解决的方法

Latex Error cannot determine the size of graphic 报错的解决的方法

插入jpg文件老是会报错...

追究了半天,原来是编译的命令又问题,不应该使用

latex ./hello.tex

而应该使用

pdflatex ./hello.tex

以下是我用的測试代码。当中包括了中文字体的測试.

\documentclass{article}
\usepackage{CJKutf8}
\usepackage{graphicx} \begin{document} \begin{CJK}{UTF8}{gkai}
这是一个楷体中文测试。处理简体字。
\end{CJK} \begin{figure}[ht!]
\centering
\includegraphics[width=1.77in,height=1.75in]{/home/jasonleaster/a.jpg}
\end{figure} \begin{CJK}{UTF8}{gbsn}
这是一个宋体中文测试,处理简体字。
\end{CJK} \begin{CJK}{UTF8}{bkai}
這是一個big5編碼的楷體中文测試。處理繁體文字。 \end{CJK} \begin{CJK}{UTF8}{bsmi}
這是一個个big5編碼的明體中文测試,處理繁體文字。
\end{CJK} Just say hello world! : ) \end{document}

2014年 10月摄于 南山一阶 前

Latex Error cannot determine the size of graphic 报错的解决的方法