Hello together, I'm facing quite a strange problem with the citation inclusion in Latex (->Latex ->Insert ->Citation Based on current word).
I always get the following error:
/tmp/temp_textmate.zgtzns:4: command not found: kpsewhich -show-path=bib
After the error-message, the right citation key is inserted. But i always have to delete the text before (the error message), and this is very uncomfortable.
I am working on a project, and the problem only occurs in the "child"-documents, in my Master-File everything the citation inclusion works very fine.
I set the the shell variable for the master-file as well as for the Bib-file.
I'm quite confused what the problem could be and i hope somebody of you could help me, Thanks a lot!
On Sat, Jun 14, 2008 at 3:50 PM, n00by macvuk@gmail.com wrote:
I always get the following error:
/tmp/temp_textmate.zgtzns:4: command not found: kpsewhich -show-path=bib
I haven't looked at the script itself but this indicates that your TeX setup is not installed correctly. In Terminal.app, you should be able to type `which kpsewhich` and it will return a path. The fact that it does not means there're problems (as far as your TeX distribution is concerned) with your path settings.
How have you installed TeX? I strongly recommend http://www.tug.org/mactex/ if you're not using it already.
Good luck, Will
I think my Tex-distribution is installes correctly, typing "which kpsewhich" results in the following path: /usr/texbin/kpsewhich
As I mentiones above, the citation inclusion works in the main-document, but not in the documents that have to be included. Maybe here is the problem? I set the TM_LATEX_MASTER to the directory where the main-document is in, and also the TM_LATEX_BIB to the relevant bib-file (not the dirctory).
And yes, I installed Tex with the MacTex-package
Will Robertson wrote:
I haven't looked at the script itself but this indicates that your TeX setup is not installed correctly. In Terminal.app, you should be able to type `which kpsewhich` and it will return a path. The fact that it does not means there're problems (as far as your TeX distribution is concerned) with your path settings.
How have you installed TeX? I strongly recommend http://www.tug.org/mactex/ if you're not using it already.
On Sun, Jun 15, 2008 at 6:10 PM, n00by macvuk@gmail.com wrote:
I think my Tex-distribution is installes correctly, typing "which kpsewhich" results in the following path: /usr/texbin/kpsewhich
Okay, that's good :)
As I mentiones above, the citation inclusion works in the main-document, but not in the documents that have to be included. Maybe here is the problem? I set the TM_LATEX_MASTER to the directory where the main-document is in, and also the TM_LATEX_BIB to the relevant bib-file (not the dirctory).
That's weird. I was basing my reply on the "command not found: kpsewhich" error; without looking into the script itself I've got no idea where the problem would be. I suspect you're right that the subdirectories are confusing things somehow, but yeah. Stab in the dark.
Cheers, Will
On Jun 15, 2008, at 4:40 AM, n00by wrote:
I set the TM_LATEX_MASTER to the directory where the main-document is in,
That should be set to the pathname to the main document itself, not its directory. Do you manage to get compilation to work, when the active document is not the main document but one of the children? If things are set up correctly, when you do that the main document will be compiled instead.
Do you use any other mechanism to indicate in a child document, where the main document is, like %!TEX directives?
Haris Skiadas Department of Mathematics and Computer Science Hanover College
That should be set to the pathname to the main document itself, not its directory.
Sorry, of course it is set to the document, not the directory. My fault.
Do you manage to get compilation to work, when the active document is not the main document but one of the children? If things are set up correctly, when you do that the main document will be compiled instead.
Yes, this is working fine. If I'm working on a children-document an I press Apple-R, the main-document is compiled.
Do you use any other mechanism to indicate in a child document, where the main document is, like %!TEX directives?
No, I just set the TM_LATEX_MASTER to the main document, that's all. (Both in the project prefs and the shell-variable in the TM-prefs). Could this be an error? Or are there over ways to set "master" and "children"?
On Jun 15, 2008, at 11:28 AM, n00by wrote:
That should be set to the pathname to the main document itself, not its directory.
Sorry, of course it is set to the document, not the directory. My fault.
Do you manage to get compilation to work, when the active document is not the main document but one of the children? If things are set up correctly, when you do that the main document will be compiled instead.
Yes, this is working fine. If I'm working on a children-document an I press Apple-R, the main-document is compiled.
Do you use any other mechanism to indicate in a child document, where the main document is, like %!TEX directives?
No, I just set the TM_LATEX_MASTER to the main document, that's all. (Both in the project prefs and the shell-variable in the TM-prefs). Could this be an error? Or are there over ways to set "master" and "children"?
You only need to set it in one place, just make sure that you use the "full path" to the file, not relative path. Same goes for TM_LATEX_BIB. Btw, if you bib file is loaded via \bibliography{} into either the master file or a file included in it, then the citation command should be able to find it by itself, you shouldn't set TM_LATEX_BIB at all.
So, this is what I tried and it worked just fine for me:
Structure:
top folder - "main" folder - ab.tex - test.bib - "includes" folder - other.tex
ab.tex is the main file. It contains:
\include{../includes/other.tex} \bibliography{test.bib}
TM_LATEX_MASTER is set to the full filepath to ab.tex, which in my case is something like: /Users/haris/Desktop/testing/9_Appendix/main/ ab.tex In this setting, the citation command seems to work just fine for me. Does a similar setting work for you?
Haris Skiadas Department of Mathematics and Computer Science Hanover College
You only need to set it in one place, just make sure that you use the "full path" to the file, not relative path. Same goes for TM_LATEX_BIB. Btw, if you bib file is loaded via \bibliography{} into either the master file or a file included in it, then the citation command should be able to find it by itself, you shouldn't set TM_LATEX_BIB at all.
So, this is what I tried and it worked just fine for me:
Structure:
top folder
- "main" folder
- ab.tex
- test.bib
- "includes" folder
- other.tex
ab.tex is the main file. It contains:
\include{../includes/other.tex} \bibliography{test.bib}
TM_LATEX_MASTER is set to the full filepath to ab.tex, which in my case is something like: /Users/haris/Desktop/testing/9_Appendix/main/ ab.tex In this setting, the citation command seems to work just fine for me. Does a similar setting work for you?
I set up a similar environment with the same folder structure, but it again only works with citation inclusion in the main document. I deleted the overall TM shell variable (TM_LATEX_MASTER), it is now only set the (absolute, as before: /Users/n00by/Desktop/title/main/untitled.tex) path is now "project specific". I also deleted the TM_LATEX_BIB variable, as the bibliography is loaded via \bibliography{} in the main document. The only difference is that I have to use \input and not \include for including my chapters, but as I read earlier, this shouldn't be the problem.
I don't know where the problem could be. Maybe i can send you my example-files? Just an idea...
On Jun 15, 2008, at 2:57 PM, n00by wrote:
I don't know where the problem could be. Maybe i can send you my example-files? Just an idea...
That might help considerably. If I can reproduce the problem, this will help a lot.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
I might be experiencing the same, or a related, difficulty. I also cannot get cite completion to work when it is in a LaTeX daughter file. I reference the master file by way of the following, familiar, directive at the top of the file:
%!TEX root = /Users/kbj/Papers/*text/manuscript/text_master.tex
That master file is found in the same directory as the daughter files, and it includes a \bibliography{} command that points to a bib file in a different subdirectory. (I have a standard mactex installation.) When I invoke cite completion, I get the following error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `initialize': No such file or directory - /Users/kbj/Papers/*text/manuscript/text_master.tex (Errno::ENOENT) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `open' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `options' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:45:in `master' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:62:in `get_citations' from /tmp/temp_textmate.rx4ZM0:8
I find, in addition, that completion doesn't work for these daughter files inside \ref{} commands either (though it does, just as does cite completion, when I am working in the master file).
I'm using TM 1.5.7 (1464), and this behavior is found on both a intel macbook and a powerpc imac, both running latest versions of 10.5.
Kyle
On Jun 15, 2008, at 2:57 PM, n00by wrote:
You only need to set it in one place, just make sure that you use the "full path" to the file, not relative path. Same goes for TM_LATEX_BIB. Btw, if you bib file is loaded via \bibliography{} into either the master file or a file included in it, then the citation command should be able to find it by itself, you shouldn't set TM_LATEX_BIB at all.
So, this is what I tried and it worked just fine for me:
Structure:
top folder
- "main" folder
- ab.tex
- test.bib
- "includes" folder
- other.tex
ab.tex is the main file. It contains:
\include{../includes/other.tex} \bibliography{test.bib}
TM_LATEX_MASTER is set to the full filepath to ab.tex, which in my case is something like: /Users/haris/Desktop/testing/9_Appendix/main/ ab.tex In this setting, the citation command seems to work just fine for me. Does a similar setting work for you?
I set up a similar environment with the same folder structure, but it again only works with citation inclusion in the main document. I deleted the overall TM shell variable (TM_LATEX_MASTER), it is now only set the (absolute, as before: /Users/n00by/Desktop/title/main/untitled.tex) path is now "project specific". I also deleted the TM_LATEX_BIB variable, as the bibliography is loaded via \bibliography{} in the main document. The only difference is that I have to use \input and not \include for including my chapters, but as I read earlier, this shouldn't be the problem.
I don't know where the problem could be. Maybe i can send you my example-files? Just an idea... -- View this message in context: http://www.nabble.com/Textmate-Latex%3A-Citation-Inclusion-does-not-work-tp1... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hm, I wonder if that asterisk is a problem for some weird reason. Does the problem persist if you take it out, i.e. rename that directory to not have an asterisk, and change the path in the %!TEX specification?
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jun 16, 2008, at 9:29 AM, Kyle Johnson wrote:
I might be experiencing the same, or a related, difficulty. I also cannot get cite completion to work when it is in a LaTeX daughter file. I reference the master file by way of the following, familiar, directive at the top of the file:
%!TEX root = /Users/kbj/Papers/*text/manuscript/text_master.tex
That master file is found in the same directory as the daughter files, and it includes a \bibliography{} command that points to a bib file in a different subdirectory. (I have a standard mactex installation.) When I invoke cite completion, I get the following error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `initialize': No such file or directory - /Users/kbj/Papers/*text/manuscript/text_master.tex (Errno::ENOENT) from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `open' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:19:in `options' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:45:in `master' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:62:in `get_citations' from /tmp/temp_textmate.rx4ZM0:8
I find, in addition, that completion doesn't work for these daughter files inside \ref{} commands either (though it does, just as does cite completion, when I am working in the master file).
I'm using TM 1.5.7 (1464), and this behavior is found on both a intel macbook and a powerpc imac, both running latest versions of 10.5.
Kyle
On Jun 15, 2008, at 2:57 PM, n00by wrote:
You only need to set it in one place, just make sure that you use the "full path" to the file, not relative path. Same goes for TM_LATEX_BIB. Btw, if you bib file is loaded via \bibliography{} into either the master file or a file included in it, then the citation command should be able to find it by itself, you shouldn't set TM_LATEX_BIB at all.
So, this is what I tried and it worked just fine for me:
Structure:
top folder
- "main" folder
- ab.tex
- test.bib
- "includes" folder
- other.tex
ab.tex is the main file. It contains:
\include{../includes/other.tex} \bibliography{test.bib}
TM_LATEX_MASTER is set to the full filepath to ab.tex, which in my case is something like: /Users/haris/Desktop/testing/9_Appendix/ main/ ab.tex In this setting, the citation command seems to work just fine for me. Does a similar setting work for you?
I set up a similar environment with the same folder structure, but it again only works with citation inclusion in the main document. I deleted the overall TM shell variable (TM_LATEX_MASTER), it is now only set the (absolute, as before: /Users/n00by/Desktop/title/main/untitled.tex) path is now "project specific". I also deleted the TM_LATEX_BIB variable, as the bibliography is loaded via \bibliography{} in the main document. The only difference is that I have to use \input and not \include for including my chapters, but as I read earlier, this shouldn't be the problem.
I don't know where the problem could be. Maybe i can send you my example-files? Just an idea... -- View this message in context: http://www.nabble.com/Textmate-Latex% 3A-Citation-Inclusion-does-not-work-tp17832745p17853513.html Sent from the textmate users mailing list archive at Nabble.com.