\message{ !name(main.tex)}%; whizzy  -gpdf  gpdf

% Note that the above line is not active if you have a file whizzy.sh
% Unless you set whizzy-configuration-path to nil or a string

\documentclass{article}

%% \PassOptionsToPackage{pdftex}{hyperref}
\RequirePackage{hyperref}
\providecommand {\WhizzyTeX}{\textsc{WhizzyTeX}}

\begin{document}

\message{ !name(main.tex) !offset(11) }
\subsection{Okular Configuration}


In \verb"Settings", choose \verb"Configure Okular..."  and \verb"Editor".
Then select \verb"Custom Text Editor" and fill in the following line:
\begin{verbatim}
        echo '#position %l, %c %f'
\end{verbatim}
Use \texttt{shift left click} to move to the source file.
\begin{quote}\small
This will echo a command in the \verb"*whizzytex*" emacs buffer of the form
\begin{verbatim}
        #position 26, 0 main.tex
\end{verbatim}
that is interpreted by emacs to move the edited file to the right position.
(Here 26 and 0 are the line and character offset positions in the source
file, while \verb"main.tex" is the name of the source file.
\end{quote}
You can click on the source file anywhere, which should move to the 
correct line in the source file.

You should also choose the "Fit Page" option and turn off "Continuous" 
option to avoid \texttt{Okular} blinking at each reaload.

\message{ !name(main.tex) !offset(87) }

\end{document}   

