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

时间: 2024-08-29 02:06:28

Latex Error cannot determine the size of graphic 报错的解决办法的相关文章

java中的AES 256算法遇到 Illegal key size or default parameters错的解决办法

 报错信息: Caused by: java.security.InvalidKeyException: Illegal key size or default parameters 问题原因: Java几乎各种常用加密算法都能找到对应的实现.因为美国的出口限制,Sun通过权限文件(local_policy.jar.US_export_policy.jar)做了相应限制.因此存在一些问题:●密钥长度上不能满足需求(如:java.security.InvalidKeyException: Ille

LaTeX中添加\usepackage{subfigure}一直报错的解决办法,亲测

LaTeX中添加\usepackage{subfigure}一直报错的原因就是: tocloft包与subfigure包冲突 只需要将原来的 \usepackage{tocloft}修改为 \usepackage[subfigure]{tocloft}即可:另外再加入需要的包 \usepackage{subfigure}大功告成 原文地址:https://www.cnblogs.com/rhp2lmy1314/p/11013177.html

Error: Can't place multiple pins assigned to pin location……解决办法

转载:http://blog.sina.com.cn/s/blog_6f0eeb3301014pi7.html 今天用DE0做VGA实验,在分配管脚后全编译出现下面这样的错误: Error: Can't place multiple pins assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info: Pin B[0] is assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info

linux中ERROR: The partition with /var/lib/mysql is too full!解决办法

今天在ubuntu上遇见这个问题.应该是我的第一分区太小了. 解决办法: [email protected]:/var$ cd /var [email protected]:/var$ rm -rf log 我们删除日志文件 [email protected]:/var$ /etc/init.d/mysql start 在开启mysql就正常了 linux中ERROR: The partition with /var/lib/mysql is too full!解决办法,布布扣,bubuko.c

Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法

Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found.解决办法:        修改/etc/hadoop/hadoop-env.sh中设JAVA_HOME.        应当使用绝对路径.        export JAVA_HOME=$JAVA_HOME                  //错误,不能这么改        export JAVA_HOME=/usr/java/jdk1.6.0_45      

mysql数据库导入sql文件时提示“Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes”解决办法

向mysql数据库中导入sql文件时,如果文件过大(几百M),会提示"Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes" 1.查看目前数据库配置 show VARIABLES like '%max_allowed_packet%'; 显示如下结果 +--------------------+---------+ | Variable_name      | Value   | +--------

MySQL ERROR 1005: Can't create table (errno: 150)的错误解决办法

在mysql 中建立引用约束的时候会出现MySQL ERROR 1005: Can't create table (errno: 150)的错误信息结果是不能建立 引用约束. 出现问题的大致情况 1.外键的引用类型不一样,主键是int外键是char 2.找不到主表中 引用的列 3.主键和外键的字符编码不一致 4.还有要建立外键的话,要先建立索引.没有建立索引也会出错. MySQL ERROR 1005: Can't create table (errno: 150)的错误解决办法

测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法

测试Apache服务器: 重启apache: sudo /usr/local/apache/bin/apachectl restart 若出现错误: httpd: Could not reliably determine the server's fully qualified domain name...... 解决办法: 1)进入apache的安装目录:(视个人安装情况而不同) [[email protected]]# cd /usr/local/apache/conf 2)编辑httpd.

Android之Error: 'L' is not a valid file-based resource name character解决办法

1.问题 [html] view plain copy Error:Execution failed for task ':mergeBYODReleaseResources'.> /home/chenyu/Android_dev/sangfor/yangzhoushizhenghu/20161229_M7.3_R3/EMM/Source/Android/aWork/res/drawable-mdpi/LOGO.png: Error: 'L' is not a valid file-based