2008/10/6 Christiaan Hofman <[EMAIL PROTECTED]>: > > On 6 Oct 2008, at 12:53 PM, Mahn-Soo Choi wrote: > >>> Hi, >>> >>> On Mon, 29 Sep 2008, Alex Hamann wrote: >>> >>>> Also note >>>> that pdfsync is deprecated. Use all new SyncTeX instead - maybe this >>>> will work even with spaces. >>> >>> Does SyncTeX work with Emacs, in aprticular Carbon Emacs? If yes, >>> what >>> should be done to get it working? >>> >>> Roussanka >> >> It works in Carbon Emacs (2008 Summer Edition) + MacTeX 2008 >> (MacTeX 2007 was missing the SyncTeX support). > > I wouldn't say "missing", synctex simply didn't exist yet in 2007. > >> >> But it doesn't work with file names with spaces (unless >> you do some extra things such as Christiaan did); at least, it >> doesn't for me. >> >> mahn-soo >> > > The question is whether this is the fault of Emacs, SyncTeX, or Skim. > I have no idea whether SyncTeX adds quotes, as PDFSync does (and which > I think is just wrong). I don't have MacTeX 2008, so I can't test > SyncTeX ATM. Perhaps someone can test this fact? Also I don't know > whether Carbon Emacs properly handles spaces. > > Christiaan
I tested it on Terminal (not Emacs), and it seems that SyncTeX produces quotes (intended or not). For example, pdflatex -synctex=1 filename\ with\ spaces.tex produces "filename with spaces".synctex.gz (NOT filename with spaces.synctex.gz) (Note that inside this .synctex.gz file there's no quotes around the file names. I mean, it behaves a bit differently from PDFSync.) If you manually rename the .synctex.gz file to remove the quotes, Emacs <-> Skim works correctly. Carbon Emacs handles spaces in file names properly (maybe some very old codes still exist who don't work in very rare cases). mahn-soo > >> >>> >>>> Alex >>>> >>>> >>>> On 29.09.2008, at 08:02, Mahn-Soo Choi wrote: >>>> >>>>> I realized that neither forward or backward search works >>>>> in PDFSync when the file name contains spaces. >>>>> (Personally I don't like file names with spaces, but my colleagues >>>>> do.) >>>>> >>>>> For forward search, I use >>>>> >>>>> (custom-set-default >>>>> 'TeX-output-view-style >>>>> (quote >>>>> (("." "." >>>>> "/Applications/Skim.app/Contents/SharedSupport/displayline %n % >>>>> o %b") >>>>> ("^html?$" "." "open %o")))) >>>>> >>>>> Putting explicit quotation marks as in "... \"%o\" \"%b\"" causes >>>>> another problem. >>>>> >>>>> >>>>> For backward search, I'm using Skim's default PDF-TeX Sync support >>>>> for Emacs. >>>>> My Skim version is 1.13 (1.12 had the same problem). >>>>> >>>>> Is it just like that or am I missing something in my configuration? >>>>> >>>>> Thanks in advance for help. >>>>> >>>>> mahn-soo >>>>> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Skim-app-users mailing list Skim-app-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-users