When using pdflatex I generate a synctex file for inverse search. So far, pointing and clicking in the PDF viewer (SumatraPDF) brings me to the correct line in the TeX editor (TeXnicCenter).
However, if I use the crop package, almost all line numbers that the inverse search gives are wrong (by offsets of some lines). Clicking in the PDF brings me too far in tex source. This is quite annoying and definitely not how it should be.
Example (updated):
\documentclass[a4paper]{article}
\usepackage[a3,frame,center]{crop} %without this package inverse search works fine!
% (We let "crop" print on a3 paper to be able to see the produced frame.)
\usepackage{lipsum}
\begin{document}
\section{The first lipsum}
\lipsum
% the cursor should be placed around this line by the inverse search of
% the ***last lines*** of above lipsum text in the PDF
\section{The second lipsum}
\lipsum
% but the cursor appears at the next line!
\section{The third lipsum}
\lipsum
\end{document}
Any ideas how to solve it? BTW, where is synctex maintained?
FYI, for this example, \listfiles outputs (updated)
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
crop.sty 2003/05/20 v1.9 crop marks (mf)
color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
lipsum.sty 2011/04/14 v1.2 150 paragraphs of Lorem Ipsum dummy text
supp-pdf.mkii
pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
epstopdf-base.sty 2010/02/09 v2.5 Base part for package epstopdf
grfext.sty 2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
Just to note, the following files are not used by the updated example:
geometry.sty, ifvtex.sty, ifxetex.sty, crop.cfg, atbegshi.sty.
And the versions of some files changed. The old versions were:
ifpdf.sty(v2.1), pdftex.def(v0.05d), lipsum(v1.1), ltxcmds(v1.7),
pdftexcmds.sty(v0.9), grfext.sty(v1.0), kvoptions.sty(v3.7),
kvsetkeys.sty(v1.9), etexcmds.sty(v1.3).
croppackage was mentioned as solution. – Martin Scharrer Apr 19 '11 at 17:58geometrypackage was removed since the problem occurs without it, too. – e-birk May 12 '14 at 14:18