Graphics, Figures & Tableslatex bookmark in pdf, figure problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

latex bookmark in pdf, figure problem

Post by pallav »

I am facing a serious problem. I am using texniccenter.
Using \usepackage{hyperref}, I can able to creat bookmark and auto citation of referrence(means if I click to the cite it automaticaly go to reference page). But the figure that I include in my tex file is not shown in the created pdf file (though it is shown in dvi file). I need them all and it is very urget to me. Please some one help me out by giving a detail tex file with fig. to over come my problem.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

latex bookmark in pdf, figure problem

Post by localghost »

pallav wrote:[...] But the figure that I include in my tex file is not shown in the created pdf file (though it is shown in dvi file). [...] I need them all and it is very urget to me. Please some one help me out by giving a detail tex file with fig. to over come my problem. [...]
Obviously you are using the compiling route LaTeX -> DVI (-> PS) -> PDF. But you have to be more precise concerning your figure. Tell us where the external graphics file for that figure is located and if you give an absolute path to include it. Take a look at the PS output. If not done yet, compile the source to PS with the according build profile in TeXnicCenter (TXC) and check whether the figure appears. The code example should come from your side to make the problem comprehensible to others. This is done best by building a short minimal working example (MWE) that reproduces the effect. It may help you to find out the cause on your own.


Best regards and welcome to the board
Thorsten¹
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: latex bookmark in pdf, figure problem

Post by pallav »

If I omit \usepackage{hyperref}, I got the fig. But using it I got no fig. in compilation with latex---pdf or latex---ps or latex---ps---pdf. Only I am getting fig. in latex---dvi compilation. Also I am getting bookmark in only latex---pdf complition and getting auto click of ref. in both latex---pdf and latex---dvi complition. Please help.


N.B.- If any more information is required, please reply for that also.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

latex bookmark in pdf, figure problem

Post by localghost »

pallav wrote:[...] N.B.- If any more information is required, please reply for that also.
There should be some hints in the log file. Please attach the Log file of the build profile "LaTeX => PS => PDF" to your next post. You didn't answer the question for the location and the path parameters for the concerning file. I guess it is better to build a MWE.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

latex bookmark in pdf, figure problem

Post by pallav »

I am giving here a short tex to show my problem

Code: Select all

\documentclass[12pt]{article}
\usepackage{graphicx,latexsym, amsmath,amsfonts}
%\renewcommand{\baselinestretch}{1.5}
\setlength{\oddsidemargin}{-0.08in}
\setlength{\textheight}{10in}
\setlength{\textwidth}{6.6in}
\setlength{\topmargin}{-0.8in}
\textheight 9.0in
\textwidth 6.6in
\oddsidemargin -0.2in
\topmargin -.1in
\parskip 3pt
\parindent 0.3in
\usepackage{hyperref}
%\usepackage[driver]{hyperref}
%\usepackage[backref]{hyperref}
\begin{document}


\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{definition}{Definition}
\def\h{\hspace{0.25cm}}
\def\sh{\hspace{0.1cm}}


\date{}
\title{ a s d d }
\section{Introduction}
\cite{sto25}
\section{saddff}
\cite{sto50}

\begin{figure}[htbp]
\centering
\includegraphics[width=10cm]{sss.eps}
\caption{\small{d d d d d}}\end{figure}
\begin{thebibliography}{99}
\bibitem{sto25} Anderson 1988. a b c
\bibitem{sto50} Anderson1989. a b c 
\end{thebibliography}
\end{document}
NB. Please use any eps file with file name sss.eps
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

latex bookmark in pdf, figure problem

Post by localghost »

You have to be a little bit more cooperative. There still remains the request for the log file and for the location of your graphics file. It is very important to know these details. Otherwise it is not possible to give further help. Your code works fine for me.

Not related to the original problem, you should take a look at the caption package to customize your captions and at the geometry package for setting page dimensions.
Post Reply