2009-07-28 122 views
0

我需要为数字添加标签。但是,我不知道哪里是错误的,因为下图-command应该是正确的:要在LaTeX中使用数字名称

\begin{figure}\label{ERD figure} 
     \includegraphics[width=13.0cm]{/Users/cs/pictures/user-cases.png} 
\end{figure} 

我已经删除了一些命令,从我的主要文件。 它解决了与目录的代的错误。 但是,我还没有设法找到这样一个事实的原因,即任何数字都没有标签,尽管我在转换为PDF时使用它们。

这是主文件。

\documentclass[12pt, a4paper, titlepage, onecolumn]{article} 
\usepackage[finnish]{babel} 
\usepackage[utf8]{inputenc} 

\usepackage{graphicx} 
\usepackage{subfig}     
\usepackage{lastpage} 

\usepackage{url} %urls formatting 
\usepackage{float} 

\usepackage{hyperref} 
\hypersetup{backref, 
pdfpagemode=FullScreen, 
colorlinks=false, 
pdfborder=0 0 0} 


\floatstyle{ruled} 
\newfloat{program}{thp}{lop} 

\floatname{program}{Program} %never use \newpage! Use \clearpage 

\title{PC} 
\author{Masi} 

\begin{document} 

\maketitle 
\pagenumbering{arabic} 
\pagestyle{myheadings} 

\pagestyle{plain} 

----------- picture here----------------- 

\end{document} 

你知道什么是错误的,我.tex -document?

回答

2

我不认为乳胶支持PNG文件。你使用不同的乳胶状处理器吗?

\标签的应该在\的字幕

这是 “书” 上的主题: ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf

+0

谢谢你的回答! - 它解决了这个问题。 – 2009-07-28 15:37:04

+3

pdflatex赞成.png的 – dmckee 2009-07-28 17:41:26

0

pdflatex不支持巴纽,但不是矢量图形{.PS,.EPS}。如果你有所有的光栅图形{jpg,png等},只需使用pdflatex。