wiki:TracBibPlugin

Version 15 (modified by anonymous, 5 years ago) (diff)

--

A BibTex Cite Plugin

Description

The aim of this plugin is to provide the ability to cite from common bibtex (*.bib) files.
The plugin can use bibtex files out of a svn repository, a git repository or directly from an Wiki-Attachment.

The command structure is inspired by the reference and bibtex system in latex. This should make it easy to make this plugin compatible with existing trac - latex plugins.

Bugs/Feature Requests

Existing bugs and feature requests for TracBibPlugin are here.

If you have any issues, create a new ticket.

Download and Source

Download the zipped source, check out from using Subversion, or browse the source with Trac.

Install

easy_install http://trac-hacks.org/svn/tracbibplugin/0.11/

Requirements latest

bibtexparser which is included in the plugin.

Requirements <= v0.1

This plugin needs the python-bibtex package:

Gentoo

emerge python-bibtex

Debian/Ubuntu

apt-get install python-bibtex

Source

The source code is available on Sourceforge.

API

Trunk

The way how to invoke a bibtex file has substantially changed:

[[BibAdd(source:file[@rev])]] 
[[BibAdd(attachment:[wikipage/]file)]]

Examples

[[BibAdd(source:bib.bib@2)]]
[[BibAdd(source:bib.bib@latest)]]
[[BibAdd(source:bib.bib)]]
[[BibAdd(attachment:fiol.bib)]]
[[BibAdd(attachment:test/lala.bib)]]

Version <= 0.1

Load a BibTex File

Loading from a repository:

[[BibAdd(path/to/bib.bib,<revision>)]]

To always use the newest version of the file bib.bib at the root of a svn repository:

[[BibAdd(bib.bib,head)]]

And for a git repository:

[[BibAdd(bib.bib,master)]]

Loading from an attachment:

[[BibAdd(bib.bib)]]

Cite an article

[[BibCite(key)]]

Add an article without citation

[[BibNoCite(key)]]

Inserting the bibliography

[[BibRef]]

Recent Changes

[12605] by Amfortas on 2013-02-09 23:11:48
changing revision 'latest' to 'None' for trac 0.11
[12604] by Amfortas on 2013-02-09 22:03:02
support for 'new-style' repository manager
[12014] by Amfortas on 2012-09-18 10:43:09
Introduced a 'bibtex' section in the config file which can be used to change the heading of the references section, and to autoload more than the wiki:BibTex? entries.

Author/Contributors

Author: Amfortas
Contributors:

Attachments (1)

Download all attachments as: .zip