Graphics, Figures & TablesConsecutive fullpages figures give forward search error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
LaurensM
Posts: 5
Joined: Wed Oct 10, 2012 12:35 pm

Consecutive fullpages figures give forward search error

Post by LaurensM »

I use sumatra for forward search. But I get a "Cannot execute command" error of forward search [ForwardSearch("%bm.pdf","%Wc",%l,0)]

Strange thing is that it only appeared after I inserted 2 consecutive fullpages figures. If I just insert 1 of 2 consecutive figures, I have no problems, but when I insert figure 2 I keep getting the "cannot execute command error".

Might it be some sort of floating problem? I had to force localization of some figures withing the text using [!h] because they were being put at the end of the chapter.

Code: Select all

\begin{figure}[h]
  \centering
  \medskip
  \includegraphics[width=1\textwidth]{figure1}
  \caption{xxxxxx}
  \label{figure 1}
\end{figure}

\begin{figure}[h]
  \centering
  \medskip
  \includegraphics[width=1\textwidth]{figure2}
  \caption{xxxxxxx}
  \label{figure 2}
\end{figure}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

LaurensM
Posts: 5
Joined: Wed Oct 10, 2012 12:35 pm

Re: Consecutive fullpages figures give forward search error

Post by LaurensM »

I changed all the floats to [htpb]. Same error keeps occuring with the second figure.

Even if I adjust the scale and change [width=1\textwidth] into [scale=0.5] I keep getting the error unless I remove the second figure. There are no errors, warnings or bad boxes that I can relate to importing the second figure, nothing changes.

I have changed the forward search command to
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
It gives the same error but with this argument. So the build profile yields an error when executing the command of "view project's output" or "forward search" whenever I insert the second fullpage figure...
LaurensM
Posts: 5
Joined: Wed Oct 10, 2012 12:35 pm

Re: Consecutive fullpages figures give forward search error

Post by LaurensM »

I switched to acrobat reader 9.4. Figures appear where they should be (for now) and I don't get the error anymore. But now when the file opens in acrobat i get the following popup: "There was an error opening this document. This file cannot be found".

However, it only appears after the pdf has been generated (and changes that I have made in tex document are visible in the pdf). It is quite annoying as it keeps popping up.
Post Reply