General ⇒ One solution to problem with Yap inverse search w/ TeXnicCen
One solution to problem with Yap inverse search w/ TeXnicCen
I had the identical problem with inverse search suddenly not working. In my case, I first noticed it when switching to a new machine. After a bit of inspiration yesterday, I've worked around the problem. I consider both Yap and TeXnicCenter to have defects that contribute to the issue.
The root of the problem I was having is that both the filename and the directory of the LaTeX source I was using contained the apostrophe character. This character does not work with the command line option "/ddecmd" because its syntax uses apostrophes in an essential way. I haven't had serious problems with this kind of issue since MS-DOS.
The workaround: Rename everything to get rid of apostrophes. An ugly solution, but it works.
The preferred solution:
1) In Yap, when substituting for the macro %f (the fully qualified file name), quote apostrophes and backslash with a backslash. If this would break existing use, introduce macro %qf (quoted file name).
2) In TeXnicCenter, interpret backlash character-quotation within apostrophe-quoted strings.
Personally, I don't care how you all solve it, but I find it disheartening that there's a recrudescence of channels that aren't 8-bit clean.
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
Re: One solution to problem with Yap inverse search w/ TeXnicCen
Thank you very much
Maria
Re: One solution to problem with Yap inverse search w/ TeXnicCen
Anyway, the message to take home is this: don't use the apostrophe character in file names. In fact don't use spaces, & ( ) # $ and other weird characters as they can cause problems in other applications and command line utilities. Making sure that all the special characters in file names are properly handled in all contexts is hard and sometimes impossible, so save yourself a lot of trouble and stick to proper naming conventions.