Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When using pdflatex I generate synctex file for inverse search (point and click in SumatraPDF brings me to a correct line in TeXnicCenter). This works perfectly

However, if I use the crop package the line numbers that the inverse search gives are wrong (offset by some number). So clicking in PDF brings me too far in tex source. This is quite annoying and definitely not how it should be.

Example:

\documentclass{article}
\usepackage[paperwidth=16cm,paperheight=24cm,showframe]{geometry}
%\usepackage[a4,frame,center]{crop}
\usepackage{lipsum}

\begin{document}
\lipsum
\lipsum
\lipsum
\end{document}

For a good example, put the text generated by \lipsum back in the source and uncomment the \usepackage{crop} line. Otherwise there is not enough text to see the effect.

Any ideas how to solve it? BTW: where is synctex maintained?

FYI: the \filelist of this compilation is:

*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)
geometry.sty    2010/09/12 v5.6 Page Geometry
keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
ifpdf.sty    2010/01/28 v2.1 Provides the ifpdf switch (HO)
ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
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/01/28 v0.05d Graphics/color for pdfTeX
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
crop.cfg
lipsum.sty    2011/02/08 v1.1 150 paragraphs of Lorem Ipsum dummy text
atbegshi.sty    2010/03/25 v1.12 At begin shipout hook (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
ltxcmds.sty    2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
supp-pdf.mkii
pdftexcmds.sty    2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
grfext.sty    2007/09/30 v1.0 Managing graphics extensions (HO)
kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
***********
share|improve this question
    
On Mac OS X, with Aquamacs and Skim, it works perfectly. –  egreg Apr 19 '11 at 17:52
    
This seems to be a follow-up question to Draw true page border where the crop package was mentioned as solution. –  Martin Scharrer Apr 19 '11 at 17:58
add comment

1 Answer

(More of a comment)

This seems to be 'works for me' with the \listfiles output

*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)
geometry.sty    2010/09/12 v5.6 Page Geometry
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
    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/message (HO)
 ltxcmds.sty    2011/04/18 v1.20 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
    crop.cfg
  lipsum.sty    2011/04/14 v1.2 150 paragraphs of Lorem Ipsum dummy text
atbegshi.sty    2011/01/30 v1.15 At begin shipout hook (HO)
supp-pdf.mkii
pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Managing graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)
kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
 ***********

and tested using TeX Live 2010 and 2011. Can you provide more version information, otherwise this looks 'too localized' to me.

share|improve this answer
    
With pleasure. Both tools are brilliant so would be great to get it working together :D –  ronszon Jul 16 '11 at 6:55
    
@ronszon Could you post which TeX biarny you are using (the line that says TeX 3.141...)? –  Joseph Wright Jul 16 '11 at 21:42
    
Do you mean if I use pdflatex? (I removed copyright info, sorry) pdfTeX 3.1415926-1.40.11-2.2 (Web2C 2010) kpathsea version 6.0.0 Compiled with libpng 1.4.3; using libpng 1.4.3 Compiled with zlib 1.2.5; using zlib 1.2.5 Compiled with xpdf version 3.02pl4 –  ronszon Jul 17 '11 at 6:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.