## Forward search dvi (included files) document.SUBSCRIPTION_OPTIONS = { "thing": "thread", "subscribed": false, "url": "subscribe", "icon": { "css": "fa fa-envelope-o" } };

TXS - Help
2011-05-20
2012-10-17
• Pat Schweitzer - 2011-05-20

Hello,
I know it's the old story... Forward and Inverse serach. I just started to
work with \include{}.
I've noticed that forward search does not work to dvi, when inside an included
file.
It does, however, work when I use pdflatex and the internal pdf viewer.
(-synctex=1)

Plus, I want to reask my question from the other topic. Are you planning to do
inline preview, when external files have to be loaded? I just discovered that
it does work inside an included file.

Thanks for all the support.
Cheers.

• It does, however, work when I use pdflatex and the internal pdf viewer.
(-synctex=1)
Did you enable synctex for the plain latex command?

Are you planning to do inline preview, when external files have to be
Actually I though that it works now with included files.
Doesn't it?

• Pat Schweitzer - 2011-05-20

Ok, maybe I was too imprecise... sorry.

This is the command I use.
latex -interaction=nonstopmode -src-specials -synctex=1 %.tex also tried
latex -interaction=nonstopmode -src-specials -synctex=-1 %.tex

The command to view the dvi is
xdvi -s 6 -offset 1cm -geometry 850x1200+1200+0 -editor "/usr/bin/texmakerx
%%f --line %%l" %.dvi -sourceposition @:%.tex

Forward works nicely when I press "view in the main document such as:

\documentclass{article}
\begin{document}
Text
\include{chapter}
\end{document}

When I am, however in the file chapter.tex and hit view, it jumps to the
beginning of the .dvi file.

So much for the first issue.
The second issue - it doesn't work for me.
I am using the package{import} in my preamble, using the command

and it produces the error message in /tmp/ temp file:

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.

^^M
*** (cannot \read from terminal in nonstop modes)

Hope that's a bit more clear.

• The command to view the dvi is
You are using % instead of ?c:m

xdvi -s 6 -offset 1cm -geometry 850x1200+1200+0 -editor "/usr/bin/texmakerx
%%f --line %%l" %.dvi -sourceposition @:?c:m.tex

• The second issue - it doesn't work for me.
I am using the package{import} in my preamble, using the command
It's a little bit the fault of the package: it ignores the search path.
But it should work now

• Pat Schweitzer - 2011-05-23

Ah, thanks for the forward command, works like a charm. :-)
And the inline preview also works now!

Thanks for the help!

Am I right assuming that, if my  - Formula crosses the end of a line (I use
Hard - eol breaks)
doesn't work work, for the same reason that the section titles (inside
\section{}, etc.) are not
bold if they span across lines?

• if my  - Formula crosses the end of a line doesn't work work, for the
same reason that the section titles (inside \section{},
etc.) are not bold if they span across lines?
No, the highlighting overlays can only be on one line, but the preview
could span several lines.
It was just easier to limit it to one line (and avoids to handle nested
previews)