
問題如下:我已經包含了一個圖形(png)並且沒有收到錯誤訊息,但是該圖片沒有出現在pdf中? .png 檔案是正確的,我不知道可能有什麼問題?
這是我的程式碼:
\documentclass{book}
\usepackage[ngerman]{babel}
\usepackage{mathptmx}
\usepackage{color}
\usepackage[final]{pdfpages}
\usepackage{xcolor,bookmark}
\usepackage{scrextend}
\usepackage{titlepic}
\usepackage{shorttoc}
\usepackage{courier}
\usepackage{type1cm}
\usepackage{zref-abspage}
\usepackage{makeidx}
\usepackage{graphicx} % standard LaTeX graphics tool
% when including figure files
\usepackage{multicol} % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{shadethm}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{marginnote}
\usepackage{mdframed}
\makeindex % used for the subject index
% please use the style svind.ist with
% your makeindex program
\definecolor{shadethmcolor}{rgb}{.9,.9,.95}%
\definecolor{shadethmcolor2}{rgb}{1,.925,.545}%
\newtheoremstyle{mystyle}
{\topsep}{\topsep}{}{}%
{\bfseries}{:}{.5em}{}%
\theoremstyle{mystyle}
\newmdtheoremenv[hidealllines=true,backgroundcolor=shadethmcolor,skipabove=\topsep,
skipbelow=\topsep]{beispiel}{Beispiel}
\newmdtheoremenv[hidealllines=true,
backgroundcolor=shadethmcolor2,skipabove=\topsep,
skipbelow=\topsep]{formel}{Formel}
\begin{document}
\begin{figure}[H]
\includegraphics[scale=1]{Zinsrechnung.png}
\caption{geometrisches Mittel}\label{fig:zins}
\end{figure}
\end{document}
答案1
圖形不出現
圖形不顯示的原因可能是什麼?
對於這個問題的廣泛標題的所有讀者來說,收集隱形圖形的所有常見原因可能會很有用。因此,請繼續添加您的經驗。
- 圖形可能不在頁面上;可能的檢查:將圖形縮小再看一下(
\includegraphics[scaled=0.1]{picture}
),將圖形放在紙張中間(\vfill\includegraphics{picture}\vfill
),然後將紙張放大(例如紙張a2)。 graphicx
包處於draft
或demo
模式。或主要\documentclass
使用draft
選項(這被傳遞給所有\usepackage
s)- 找不到圖形文件,但沒有看到錯誤,因為用戶正在使用某種使用
batchmode
.可能的檢查:尋找.log
文件中的錯誤。