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

来源:互联网 发布:淘宝爱互动 编辑:程序博客网 时间:2024/06/06 13:03

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月摄于 南山一阶 前



0 0
原创粉丝点击