Giter VIP home page Giter VIP logo

papers-bin's Introduction

Copyright 2011 Steve Lianoglou, all rights reserved.
License: GPL

The papers.py script drives functionality against Papers2

Currently this script was written to auto-generate a bibtex file for the
citations used in 1+ latex files. To generate one bibtex file to stdout
for all of the *.tex files in the current directory, put papers.py in
your PATH and:

    $ papers.py bibtex *.tex > refs.bib

Requires Python >= 2.5 and Papers >= 2.0.8

Create a `~/.papersrc` to override default settings. This file should be
formatted such that Python's ConfigParser can read it.

For instance, I store my Papers2 folder in my Dropbox, so my `~/.papersrc`
file looks like so:

    [appinfo]
    dbpath = /Users/stavros/Dropbox/Papers2/Library.papers2/Database.papersdb

Feel free to submit bugs/feature request through the tickets for this project. If you fork and extend this project, I'll gladly accept pull requests.

DISCLAIMER
----------

This script is not supported or endorsed by the Papers2 team. I'm making queries directly against the Papers database, the structure of which may change whenever they seem it fit to do so.

The functionality in the scripts provided will perform READ-ONLY queries
against your Papers.app sqlite database. I cannot guarantee that it will not 
corrupt your database, so use it at your own risk.

That having been said, I use this script too, so it really shouldn't corrupt
your database.  Murphy's law being what it is and all, I feel compelled
to write this blurb in case it wasn't obvious.


papers-bin's People

Contributors

lianos avatar ryanpavlick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

papers-bin's Issues

utf8

papers.py does not convert the utf8 symbols which are not recognized by ASCII-only BibTex to Latex format.

For instance, dìaz should become d`{i}az.

There is a pre-existing python tool for detailing with this issue: http://code.activestate.com/recipes/252124-latex-codec/
It is licensed under PSF which is compatible with the GPL license of papers.py

papers.py fails to open database.

Running under Mac OS X 10.8.2, I found that papers.py was unable to open the database. I tracked down the problem to the tilde character not being expanded in the definition of dbpath. The following patch solves the problem:

--- papers.py.old   2013-03-04 14:43:05.000000000 +0100
+++ papers.py   2013-03-04 14:42:02.000000000 +0100
@@ -16,7 +16,7 @@

 ## You can overide these values in ~/.papersc
 DEFAULTS = {
-  'dbpath' : "~/Documents/Papers2/Library.papers2/Database.papersdb",
+  'dbpath' : os.path.expanduser("~/Documents/Papers2/Library.papers2/Database.papersdb"),
 }

 def filter_files(filelist):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.