Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to place an Image in top of book document. But thats image still placed in center document. This is my code:

\documentclass[oneside,a4paper  , 12 pt]{book}

\usepackage{graphicx}
\usepackage{caption}
%\usepackage{package}
\usepackage[space]{grffile}

\begin{document}
\begin{figure}[t!]
\centering
\includegraphics[width=0.7\linewidth]{E:/gambar tesis/variasi/9-2-10-cheek-kiss}
\caption{}
\label{fig:9-2-10-cheek-kiss}
\end{figure}

\end{document}
share|improve this question

marked as duplicate by Gonzalo Medina, ChrisS, egreg, Stefan Kottwitz Mar 1 at 23:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Use \begin{figure}[htb] –  Harish Kumar Feb 28 at 1:25
    
And I think you don’t even need the figure environment here. Do you need to refer to this image and nence set the empty \caption before the label? –  Speravir Feb 28 at 1:28
    
@Speravir , this code auto-generated by TexStudio –  Mohammad Fajar Feb 28 at 1:38
    
@MohammadFajar: So, you do not need a reference to your image, do you? Clean up your example code. Also the needless %\usepackage{package}. –  Speravir Feb 28 at 1:39
    
No, I using reference to that image. This is just example how my code looks like. –  Mohammad Fajar Feb 28 at 1:41

Browse other questions tagged or ask your own question.