Changes between Version 6 and Version 7 of WikiStart


Ignore:
Timestamp:
09/27/10 17:17:09 (15 years ago)
Author:
rligteringen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v6 v7  
    1717heavy use of the `parse_file` and `parse_string` from `zs.bibtex.parser`.
    1818
    19 The bibfile must be prepared for importing. First make sure only
    20 ASCII characters are used. Every `\` must be replaced by `\\\` (note:
    21 three backslashes). Remove all empty lines at the end of the file.
    22 
    23 Copy all pdf files that must be attached to the `/var/www/media/papers/`
    24 directory. 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`.
     19 * prepare the bibfile for importing
     20  * make sure only ASCII characters are used: {{{recode -d u8..latex < in.bib > out.bib}}}
     21    * Note: make sure the in.bib file only contains utf-8 without BOM (header?). This can be done in Notepad++
     22  * every `\` must be replaced by `\\\` (note: three back slashes)
     23  * remove all empty lines at the end of the file.
     24 * check if all filenames match the citekeys in the bibfile (be aware of Capitals): {{{> LANG=C; ls}}}
     25 * also make sure all files have `.pdf` as extension and not `.PDF`: {{{> ls | grep -v pdf}}}
     26 * copy all pdf files that must be attached to the `/var/www/media/papers/` directory.
    2727
    2828After that check the bibfile in python with the `parse_file` routine:
    2929
    3030{{{
    31 $ python manage.py shell
     31$ python
    3232>>> from zs.bibtex.parser import parse_file
    3333>>> a = parse_file("bladiebla.bib")
     34>>> a.__len__()
    3435}}}
    3536