General ⇒ Forward Search using the "TeXify => PDF" Profile
Forward Search using the "TeXify => PDF" Profile
I am using the TeXify => PDF profile and in the profile definition, the fields pertaining to forward search contain some DDE commands. Still, when I build and View output, it always opens the first page of the pdf.
I have never used the forward search before, so, any info on how to make it work will be great!
Thanks!
--- Par.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
Forward Search using the "TeXify => PDF" Profile
AFAIK this special feature only works with the full version of Adobe Acrobat, you won't get it to work using the Adobe Reader only.
But there actually are some hacks or workarounds to achieve a forward search with the Adobe Reader. The following workaround was posted by Heiko Oberdiek in de.comp.text.tex:
Include the following code in your preamble:
Code: Select all
\usepackage{zref-abspage}\makeatletter\newcommand*{\HERE}{%\zref@label{HERE}%}\AtBeginDocument{%\hypersetup{%pdfstartpage=\zref@extractdefault{HERE}{abspage}{1}%}%}\makeatother\usepackage[pdfstartview=FitH]{hyperref}

Regards
Marcel
a thousand worlds for you to see here, take my hand and follow me...
Re: Forward Search using the "TeXify => PDF" Profile
! Undefined control sequence.
<argument> \sf@counterlist
l.412 \begin{document}
?
Any suggestions?
Re: Forward Search using the "TeXify => PDF" Profile
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
Forward Search using the "TeXify => PDF" Profile
Could you provide a minimal working example reproducing this error? The following MWE works fine for me:par wrote: However, it did not work and gave the error as follows:
! Undefined control sequence.
<argument> \sf@counterlist
l.412 \begin{document}
?
Any suggestions?
Code: Select all
\listfiles\documentclass[english]{article}\usepackage{babel,blindtext,zref-abspage}\makeatletter\newcommand*{\HERE}{%\zref@label{HERE}%}\AtBeginDocument{%\hypersetup{%pdfstartpage=\zref@extractdefault{HERE}{abspage}{1}%}%}\makeatother\usepackage[pdfstartview=FitH]{hyperref}\begin{document}\section{sec1}\blindtext[3]\clearpage\section{sec2}\blindtext[3]\HERE\clearpage\section{sec3}\blindtext[3]\end{document}
Code: Select all
*File List*article.cls 2005/09/16 v1.4f Standard LaTeX document classsize10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)babel.sty 2005/05/21 v3.8g The Babel packagebblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configurationenglish.ldf 2005/03/30 v3.3o English support from the babel systemblindtext.sty 2006/11/21 V1.7 blindtext-Packagexspace.sty 2006/05/08 v1.12 Space after command names (DPC,MH)zref-abspage.sty 2007/05/28 v2.1 Module abspage for zref (HO)zref-base.sty 2007/05/28 v2.1 Module base for zref (HO)etexcmds.sty 2007/05/06 v1.0 Providing prefix for e-TeX command names (HO)infwarerr.sty 2007/06/14 v1.1 Providing info/warning/message (HO)auxhook.sty 2006/04/06 v1.1 Hooks for auxiliary files (HO)atbegshi.sty 2007/06/06 v1.5 At begin shipout hook (HO)ifpdf.sty 2006/02/20 v1.4 Provides the ifpdf switch (HO)hyperref.sty 2007/06/14 v6.76i Hypertext links for LaTeXkeyval.sty 1999/03/16 v1.13 key=value parser (DPC)hycolor.sty 2007/04/11 v1.1 Code for color options of hyperref/bookmark (HO)pd1enc.def 2007/06/14 v6.76i Hyperref: PDFDocEncoding definition (HO)hyperref.cfg 2006/02/14 v1.1 MiKTeX 'hyperref' configurationkvoptions.sty 2007/06/11 v2.7 Connects package keyval with LaTeX options (HO)url.sty 2005/06/27 ver 3.2 Verb mode for urls, etc.hpdftex.def 2007/06/14 v6.76i Hyperref driver for pdfTeXnameref.sty 2007/05/29 v2.31 Cross-referencing by name of sectionrefcount.sty 2006/02/20 v3.0 Data extraction from references (HO)latex2.outlatex2.out***********
Marcel
// EDIT:
your error must have something to do with the subfig package, as this is the only package known to me, which makes use of a \sf@counterlist command. Nevertheless I was as well unable to reproduce the error by including subfig.
a thousand worlds for you to see here, take my hand and follow me...
Re: Forward Search using the "TeXify => PDF" Profile
--- Par.