Changes between Version 5 and Version 6 of WikiStart


Ignore:
Timestamp:
09/08/10 14:38:00 (15 years ago)
Author:
rligteringen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v5 v6  
    1313== Howto: import BibTeX file ==
    1414
    15 BibTeX files (.bib) can be imported using the parsebib.py script
    16 which is available in django/mysite/papers/. This script makes
    17 heavy use of the parse_file and parse_string from zs.bibtex.parser.
     15BibTeX files (`.bib`) can be imported using the parsebib.py script
     16which is available in `django/mysite/papers/`. This script makes
     17heavy use of the `parse_file` and `parse_string` from `zs.bibtex.parser`.
    1818
    1919The bibfile must be prepared for importing. First make sure only
    20 ASCII characters are used. Every \ must be replaced by \\\ (note:
     20ASCII characters are used. Every `\` must be replaced by `\\\` (note:
    2121three backslashes). Remove all empty lines at the end of the file.
    2222
    23 Copy all pdf files that must be attached to the /var/www/media/papers
     23Copy all pdf files that must be attached to the `/var/www/media/papers/`
    2424directory. Check if all filenames match the citekeys in the bibfile
    25 (be aware of Capitals). Also make sure all files have .pdf as extension
    26 and not .PDF
     25(be aware of Capitals). Also make sure all files have `.pdf` as extension
     26and not `.PDF`.
    2727
    28 After that check the bibfile in python with the parse_file routine:
     28After that check the bibfile in python with the `parse_file` routine:
     29
     30{{{
    2931$ python manage.py shell
    3032>>> from zs.bibtex.parser import parse_file
    3133>>> a = parse_file("bladiebla.bib")
     34}}}
    3235
    33 If no errors are reported you can use the parsebib.py script:
     36
     37If no errors are reported you can use the `parsebib.py` script:
     38
     39{{{
    3440$ python manage.py shell
    3541>>> from papers import parsebib
    3642>>> parsebib.parse("bladiebla.bib")
     43}}}
     44
    3745
    3846In case of duplicate citekeys this will be reported. Also the number