-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/04/12 11:13, Bastien wrote: > Hi Rainer, > > Rainer M Krug <r.m.k...@gmail.com> writes: > >> On 10/04/12 10:57, suvayu ali wrote: >>> On Tue, Apr 10, 2012 at 09:55, Rainer M Krug <r.m.k...@gmail.com> wrote: >>>> Why not put that into org? e.g. R has a function citation(), which returns >>>> the bibtex >>>> for citing R or packages. >>> >>> Nice idea, why not submit a patch? ;) >> >> Because I unfortunately have effectively no idea about elisp, only that it >> uses *many* >> brackets... >> >> and I have at the moment =no time to learn it. > > it's okay. Still, could you describe a bit more precisely the function: how > does it work? In > what contexts? What does it insert?
It just returns the citation. - From the help: Execute function ‘citation()’ for information on how to cite the base R system in publications. If the name of a non-base package is given, the function either returns the information contained in the ‘CITATION’ file of the package or auto-generates citation information. In the latter case the package ‘DESCRIPTION’ file is parsed, the resulting citation object may be arbitrarily bad, but is quite useful (at least as a starting point) in most cases. Some examples: This prints the citation for R: #+begin_src R :results output citation() #+end_src #+RESULTS: #+begin_example To cite R in publications use: R Development Core Team (2012). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/. A BibTeX entry for LaTeX users is @Manual{, title = {R: A Language and Environment for Statistical Computing}, author = {{R Development Core Team}}, organization = {R Foundation for Statistical Computing}, address = {Vienna, Austria}, year = {2012}, note = {{ISBN} 3-900051-07-0}, url = {http://www.R-project.org/}, } We have invested a lot of time and effort in creating R, please cite it when using it for data analysis. See also ‘citation("pkgname")’ for citing R packages. #+end_example And if a package name is given, it prints the citation info of this package: #+begin_src R :results output citation("graphics") #+end_src #+RESULTS: #+begin_example The ‘graphics’ package is part of R. To cite R in publications use: R Development Core Team (2012). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/. A BibTeX entry for LaTeX users is @Manual{, title = {R: A Language and Environment for Statistical Computing}, author = {{R Development Core Team}}, organization = {R Foundation for Statistical Computing}, address = {Vienna, Austria}, year = {2012}, note = {{ISBN} 3-900051-07-0}, url = {http://www.R-project.org/}, } We have invested a lot of time and effort in creating R, please cite it when using it for data analysis. See also ‘citation("pkgname")’ for citing R packages. #+end_example Hope this helps, Rainer > > Thanks, > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+D/BkACgkQoYgNqgF2ego6TACdHeOC7GJcMf4BZFoXFFuho6ao ABQAn1I2yOfUyM3FOpUjVfIXr7lvyX27 =T6rr -----END PGP SIGNATURE-----