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: tamc on Mar 09, '05 11:08:11AM

As an example of this, I've hacked together a quick script at http://www2.eng.cam.ac.uk/~tamc2/Pages-Bibtex-0-0-1.zip that allows you to use bibtex citations (e.g. \citep{counsell03}) in Pages, and then have them turned into a proper bibliography at the end.

It works, but only just. If anyone gets anywhere at figuring out the Pages xml format I would appreciate a pointer.



[ Reply to This | # ]
Modify Pages files by changing package contents - Bibliography Example
Authored by: adrianm on Mar 09, '05 12:55:57PM

Doesn't the pages xml format reference a DTD or schema at the top?



[ Reply to This | # ]
Modify Pages files by changing package contents - Bibliography Example
Authored by: wombat on Mar 09, '05 02:25:29PM
Yes, but the schema hasn't been published yet. The referenced URLs
http://developer.apple.com/namespaces/sfa

http://developer.apple.com/namespaces/sf

http://developer.apple.com/namespaces/sl
are currently invalid.

[ Reply to This | # ]
Modify Pages files by changing package contents - Bibliography Example
Authored by: adrianm on Mar 10, '05 01:43:41PM

That's a shame.

I didn't really expect them to be real reachable URLs, they rarely are, but I did expect them to be in the Pages.app bundle.

Sadly not. But they are mentioned in the SFArchiving framework, maybe the parser is hardcoded, or has the dtd/schema compressed in the app code somewhere.



[ Reply to This | # ]
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 | # ]