[TxMt] Re: Textmate/Latex: Citation Inclusion does not work

Charilaos Skiadas cskiadas at gmail.com
Tue Jun 17 01:31:41 UTC 2008


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.
>>






More information about the textmate mailing list