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

Charilaos Skiadas cskiadas at gmail.com
Sun Jun 15 17:34:31 UTC 2008


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







More information about the textmate mailing list