我认为我并没有尝试什么不寻常的事情:我只是想使用\includegraphics
包含.png
和.jpg
文件。但由于某种原因,我的所有图形都是灰度的,这不是我想要的。
梅威瑟:
\documentclass[12pt,A4,final]{report}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bmpsize}
\usepackage{grffile}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{float}
\usepackage[nottoc]{tocbibind}
\usepackage[]{mcode}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}
\begin{figure}[H]
\begin{center}
\includegraphics[width=0.7\textwidth,natwidth=931bp,natheight=502bp]{Construction.png}
\end{center}
\caption[Components of setup ]{Components of setup. .... }
\label{fig: Model: RealSetup}
\end{figure}
\end{document}
有什么想法吗?(.m
-代码颜色适当)
*File List*
report.cls 2007/10/19 v1.4h Standard LaTeX document class
size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
inputenc.sty 2008/03/30 v1.1d Input encoding file
latin1.def 2008/03/30 v1.1d Input encoding file
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
amsfonts.sty 2009/06/22 v3.00 Basic AMSFonts support
amssymb.sty 2009/06/22 v3.00
bmpsize.sty 2009/09/04 v1.6 Extract size and resolution data from bitmap fi
les (HO)
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
pdftexcmds.sty 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
ltxcmds.sty 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
bmpsize-base.sty 2009/09/04 v1.6 Basic part of bmpsize (HO)
fp-basic.sty 1996/05/13
fp-snap.sty 1995/04/05
bmpsize-dvips.def 2009/09/04 v1.6 Graphics bitmap driver for dvips (HO)
grffile.sty 2010/12/09 v1.13 Extended file name support for graphics (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
kvoptions.sty 2010/12/23 v3.10 Keyval support for LaTeX options (HO)
kvsetkeys.sty 2011/04/07 v1.13 Key value parser (HO)
etexcmds.sty 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
setspace.sty 2011/12/19 v6.7a set line spacing
float.sty 2001/11/08 v1.3d Float enhancements (AL)
tocbibind.sty 2010/10/13 v1.5k extra ToC listings
答案1
我偶然发现为什么我包含的图形颜色不正确?. 将“Build&View”选项更改为“PDF Chain”(在 MikeTex 中)后,我得到了我非常需要的颜色。