LaTeX - Insert Label Based On Current Word
I didn't get this feature to work on my project. I experimented a bit and it seemed like the script was having troubles dealing with
\include{"filename.tex"}
but not with
\include{filename.tex}
I use this since I have filenames with spaces. So I skimmed through the code and added a small fix in LaTeXUtils.rb:
def find_file(filename, extension, relative) filename.gsub!(/.#{extension}$/,"") [...] end
became
def find_file(filename, extension, relative) filename.gsub!(/"/,"") # Added this to strip ":s filename.gsub!(/.#{extension}$/,"") [...] end
And now it works!
Now, I'm not a ruby programmer so there's is probably some better way to solve this. But I think that this fix should benifit others; perhaps implemented in a more proper way though.
Thanks for another great LaTeX-bundle-feature.
Regards, Daniel Sönnerstedt