[TxMt] latex cite completion problem

Charilaos Skiadas cskiadas at gmail.com
Tue Mar 25 00:57:25 UTC 2008


On Mar 24, 2008, at 8:27 PM, Agus N wrote:

> Hi all,
>
> It seems the "Citation based on current selection" (Esc or Alt+Esc)  
> command doesn't show the entries of a .bib file that contain commas  
> in any field.
>
> Example. LaTeX file with
>
> 	\bibliographystyle{plain}
> 	\bibliography{sample}  	% to get sample.bib
>
> The entry (in sample.bib):
>
> @book{knuth79,
> 	author = "Donald E. Knuth",
> 	title = "Tex and Metafont, New Directions in Typesetting",
> 	year = "1979",
> 	publisher = "American Mathematical Society and Digital Press",
> 	address = "Stanford"
> }
>
> doesn't show up unless the comma in "title" is removed or replace  
> by another symbol such as _ (underscore).
>
> TextMate 1.5.7 (1436)
> Mac OS X 10.4.11 (PPC G4)

The parser we use, for good or for bad, expects the files to be in  
the format output by BibDesk, so if you open the bib file in BibDesk  
and save it, it should work. The above entry in that case would look  
as follows:

@book{knuth79,
	Address = {Stanford},
	Author = {Donald E. Knuth},
	Publisher = {American Mathematical Society and Digital Press},
	Title = {Tex and Metafont, New Directions in Typesetting},
	Year = {1979}}

I would not expect the parser to work in general in other cases.

> Cheers,
>
> AgusN

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list