Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to build a database for my references. I don't want to use Mendeley or so to do the job. Therefore I have a pdf file that displays all references that I have, like it is in the MWE. Now I want to add a custom field called file to replace the note field, so that I can open the file by clicking in the link. For now I am using BibLaTeX, but I would like it to work with regular BibTeX (if possible). That field can be added to any entry in the database and when displayed shall appear at very end (if possible).

\documentclass[%
    a4paper,
    english,
    11pt,
]{article}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Padial:2010,
    title={The integrative future of taxonomy},
    author={José M.~Padial and Aurélien Miralles and Ignacio De la Riva and Miguel Vences},
    journal={Frontiers in Zoology},
    year=2010,
    month=may,
    volume=7,
    number=16,
    pages={1--14},
    doi={10.1186/1742-9994-7-16},
    issn={1742-9994},
    note={\href{file:./article/2010_Padial.pdf}{Open file}},
    keywords={biology, taxonomy},
}
\end{filecontents*}

\newif\ifBIBLATEX
\BIBLATEXtrue % or
%\BIBLATEXfalse

\usepackage{fixltx2e}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{type1ec}
%\usepackage{lmodern}
\usepackage{microtype}

\usepackage[%
    colorlinks,
    unicode,
    breaklinks,
]{hyperref}

\usepackage[strict,autostyle]{csquotes}

\ifBIBLATEX % use BibLaTeX

    \usepackage[%
        backend=bibtex,
        style=ieee,
    ]{biblatex}
    \DeclareRangeChars{~,;-+/{}} % add '{}' as page range delimiter
    \addbibresource{\jobname.bib}

\else % use regular BibTeX

    \usepackage[noadjust]{cite} % cite without adjusting
    \bibliographystyle{IEEEtran} % IEEE style for BibTeX

\fi

\usepackage[left=5cm,right=2cm,showframe]{geometry}

\usepackage[color,notref,notcite]{showkeys}


\begin{document}

\nocite{*} % list all entries

\ifBIBLATEX % use BibLaTeX

    \printbibliography
    %\printbibliography[keyword=taxonomy]

\else % use regular BibTeX

    \bibliography{\jobname}

\fi

\end{document}
share|improve this question
    
    
Hm, What exact is your question? Or in other words: with which error message do you fight? Please be a little bit more specific ... –  Kurt May 2 '13 at 1:15
    
@Kurt This question is to be closed. See the link in my comment. –  cacamailg May 2 '13 at 2:41
add comment

closed as too localized by cacamailg, Kurt, Guido, Xavier, cmhughes May 2 '13 at 3:41

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.