Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Modify Pages files by changing package contents - Bibliography Example' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Modify Pages files by changing package contents - Bibliography Example
Authored by: jgh23 on Mar 11, '05 05:14:49AM

Dear tamc,

I *love* this. I've been trying to work towards a BibTeX solution, cos then my PhD students could move to macs and be able to write research papers...Word-free. But I don't have the ruby (perl, python) expertise you clearly have.

Here's my problem. It's often the case that journals/conferences want the [1] citation style...that that you would get from using unsrt.bst, for instance...or they want the [KRT99] style. I don't see how to easily extend your scheme to do this for two reasons:
* the citations could be ordered incorrectly, given that the bibtex sort of the bibliography could be slightly different to the ruby sort;
* the citation keys (the [1], [KRT99]) are more difficult(?) to generate.

My idea, although I have no idea how this could be done in ruby, is to run bibtex , i.e., to create a .aux file (your citations variable contains the right sort of information, although a \bibliography style would need to appear in the document and the \cite{foo} would need some transformation), use bibtex to generate a .bbl file from it that contains the bibtex generated keys and the order for the citations, and from which your bibliography variable can be sorted

Is this feasible?

Perhaps in time, I can adapt a .bst file to pump out Pages XML instead of latex...roll on the schema definition.

Best wishes, and many thanks, Jon



[ Reply to This | # ]