码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-10-18 14:06:22      阅读:407      评论:0      收藏:0      [点我收藏+]

标签:latex

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


                         bubuko.com,布布扣


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


bubuko.com,布布扣

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

标签:latex

原文地址:http://blog.csdn.net/cinmyheart/article/details/40210407

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!