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.

Minimal code:

\documentclass[12pt, a4paper]{article}
\usepackage[american]{babel}
\usepackage{csquotes}  
\usepackage[backend=biber,style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa} 
\addbibresource{dyslexia.bib}
\addbibresource[datatype=ris]{dyslexia3.ris}
\begin{document}
{
\cite{causesdyslexia} \\ % from file dyslexia.bib
\cite{test1}             % from file dyslexia3.ris, downloaded .ris file and appended ID  - test1 
\printbibliography
}
\end{document}

Error:

Can't use an undefined value as an ARRAY reference at Biber/Input/file/ris.pm line 123, <GEN9> line 26.
INFO - This is Biber 0.9.9
INFO - Logfile is 'dyslexia.blg'
INFO - Reading 'dyslexia.bcf'
INFO - Found 2 citekeys in bib section 0
INFO - Processing bib section 0
INFO - Looking for bibtex format file 'dyslexia.bib' for section 0
INFO - Found BibTeX data source 'dyslexia.bib'
INFO - Looking for ris format file 'dyslexia3.ris' for section 0
INFO - Found RIS data source 'dyslexia3.ris'

Please add the 'ris' tag!

Contents of the .ris file; first line blank

TY  - JOUR
ID  - test1
AU  - Macfarlan, Todd S.
AU  - Gifford, Wesley D.
AU  - Driscoll, Shawn
AU  - Lettieri, Karen
AU  - Rowe, Helen M.
AU  - Bonanomi, Dario
AU  - Firth, Amy
AU  - Singer, Oded
AU  - Trono, Didier
AU  - Pfaff, Samuel L.
TI  - Embryonic stem cell potency fluctuates with endogenous retrovirus activity
JA  - Nature
PY  - 2012/06/13/online
VL  - advance online publication
SP  - 
EP  - 
PB  - Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.
SN  - 1476-4687
UR  - http://dx.doi.org/10.1038/nature11244
M3  - 10.1038/nature11244
N1  - 10.1038/nature11244
L3  - http://www.nature.com/nature/journal/vaop/ncurrent/abs/nature11244.html#supplementary-information
ER  -  
share|improve this question
    
Welcome to TeX.SE. What is your question or point? That biblatex somehow "ought to" support entries in RIS format? –  Mico Jun 27 '12 at 2:35
1  
Well, biber does indeed support .ris files. Judging from the output of the program it does also find the file. The reported error seems unrelated. But to be sure we need to content of dyslexia3.ris to reproduce the example. –  Simifilm Jun 27 '12 at 4:37
1  
Please can you show (if not too large) the .ris file or otherwise I'll need to get it from you for testing. –  PLK Jun 27 '12 at 9:06
1  
You might also try the biber 1.0 pre-release (for which you'll need the biblatex 2.0 pre-release). I think I know what this particular error is and it should be fixed there. –  PLK Jun 27 '12 at 9:53
    
@Mico Gets above error when trying to use a .ris file. Tried two different .bib files, worked fine. –  mp1508 Jun 27 '12 at 11:38

1 Answer 1

up vote 2 down vote accepted

Please try the latest biblatex 2.0 and biber 1.0 pre-releases available from SourceForge. I believe that this specific error with RIS sources is fixed there.

share|improve this answer
    
Tried this, but to no avail. No error this time, but '.bbl' is generated only when I don't use the '.ris' file. Console output virtually the same, save for last line: INFO - This is Biber 1.0 ... INFO - Found RIS data source 'dyslexia3.ris' INFO - Sorting 'entry' list 'apa' keys INFO - No sort tailoring available for locale 'English_United States.1252' –  mp1508 Jun 28 '12 at 0:54
1  
There were two issues. Firstly, your .ris file doesn't have a newline at the end of the "ER" field which makes it slightly illegal and tricky to parse. Secondly, there was a parsing error in the RIS driver. I have fixed this and uploaded a new 1.0 binary to SF. It works for me now. Note though that the output isn't perfect as your RIS source isn't great - the YEAR field is a bit of a mess, for example. –  PLK Jun 28 '12 at 7:40
    
This works! Also tried .ris from different publishers, not all worked, maybe due to inconsistency in the fields or the way biblatex interprets them; but that's another issue. Prob solved, thanks! –  mp1508 Jun 28 '12 at 15:19
    
Good. The problem with Ris is that everyone uses it slightly differntly and so it's often inconsistent in terms of the tag contents. The new biblatex 2.0 \DeclareSourcemap funtionality can help to regularise the data on the fly. –  PLK Jun 28 '12 at 16:38
    
maybe you should add a ris tag. –  mp1508 Jun 30 '12 at 13:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.