Open jezcope opened 4 years ago
Sounds good
Things that could be search for:
10.5281/zenodo.1185316
or as a full URL http://doi.org/10.5281/zenodo.1185316
sp\cite{"Alonso2018-1"}
within the docstrig. Potentially, there could be more than one reference, eg. \cite{"Alonso2018-1", "Cope2015"}
\cite Alonso2018-1
. I'm not sure if multiple references can be combined in this case. Hi @dalonsoa how would this fit into the whole process, i.e. how would it be used via the command line? (maybe it would be good to add example files to the project).
Say we have the file examples/docstring_references.py
:
def some_function():
"""
Using algorithm introduced by 10.1234/zenodo.1234567
"""
python -m r2t2 --static --format=markdown examples/docstring_references.py
Should the output be something like:
Referenced in: some_function
Source: [examples/docstring_references.py](examples/docstring_references.py:1)
Line: 1
[1] 10.1234/zenodo.1234567
Would you expect to be activated via --static
or a dedicated switch?
The Spinx-bibtex documentation lists the \cite
syntax as LaTex (but has no quotes). But :cite:
for Sphinx.
e.g.: Sphinx
See :cite:`1987:nelson` for an introduction to non-standard analysis.
LaTex:
See \cite{1987:nelson} for an introduction to non-standard analysis.
Not sure whether an introduction to non-standard analysis
should be considered the short purpose in this case (if it's being written that way).
The latex syntax causes a linting error on files using it:
W605 invalid escape sequence '\c'
An example of someone using embedded bibtex:
For reference:
--
@article{devlin2018bert,
title={BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding},
author={Devlin, Jacob and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina},
journal={arXiv preprint arXiv:1810.04805},
year={2018}
}
Perhaps this issue should be closed in favour of more specific issues to further improve it? (e.g. extract short purpose)
Searching for cite
on GitHub Python code seem to just bring back the same test citation using HTML:
<cite data-cite="granger">Granger</cite>
Some Markdown examples:
{cite}`Spi18`
\cite{chacaltana:2010ks, MR3046557, fubar,Chacaltana:2014ica}
\cite{Tannor}
\cite{Vosshall_1999}\cite{Clyne_1999}\cite{Gao_1999}
[[CiteRef::Meyers Numbered Panda]]
[[CiteRef::Citizen Lab Stealth Falcon May 2016]]
{% cite mansinghka2014venture --style apa-text --file 2017-08-07 %}
{% cite goldberg1992using %}
{% cite hpbn -l 207 %}
@cite taylor1999predictive @cite wan2002one @cite formaggia2003one
<dt-cite cite="dwork2012fairness"></dt-cite>
<dt-cite cite="susskind2018future"></dt-cite>
https://github.com/andsor/notebooks/blob/7c4c6695cd48655b4cf6f158cbafd27649c78df8/src/nelder-mead.md
<cite data-cite="Nelder1965Simplex">([Nelder & Mead, 1965])</cite>
<cite>arXiv.org, arXiv:0907.4863v1 [physics.comp-ph]</cite>, 2009\. ([link](http://arxiv.org/abs/0907.4863v1))
<cite class="citation journal">Vary, JC; O'Connor, KM (May 2014). </cite>
Rather plain text with link https://github.com/OpenNFT/opennft.github.io/blob/c4675b9249bded263d7fd3f576f461a47974af6d/About.md
For open-source OpenNFT code and applied real-time data processing and software features, cite [Koush et al., 2017, Neuroimage 157:489-503](http://www.sciencedirect.com/science/article/pii/S1053811917305050)
The HTML <cite>
seems to be often used for non-scientific links, e.g. https://github.com/jackwillis/militanthistory/blob/d942757eacefb720e6eb855b12486affa22e2435/collections/_encyclopedia/lm/newspaper.md:
<cite>Labor Militant</cite>
<cite>Mr Turner</cite>
For R:
#' in \insertCite{Hwang2014;textual}{cSEM}, p. 75, the authors set '.iter_max'
# The first is discussed by \insertCite{tsong2017development;textual}{equivalenceTest} and the second by \insertCite{weng2018improved;textual}{equivalenceTest}.
\cite{huang:2007}
or https://github.com/cran/JADE/blob/f279950fad445efbbdf3317413ce55454c329904/man/FOBI.Rd
\references{
\cite{Cardoso, J.-F. (1989), Source separation using higher order moments, in Proceedings of {IEEE} International Conference
on Accoustics, Speech and Signal Processing, 2109--2112.}
\cite{Miettinen, J., Taskinen S., Nordhausen, K. and Oja, H. (2015), Fourth Moments and Independent
or https://github.com/cran/metap/blob/0aad6738aa16c9950f779a080c88588413f6bb8e/man/sumlog.Rd
of studies \insertCite{fisher25}{metap}.
\insertNoCite{becker94}{metap}
\insertNoCite{rosenthal78}{metap}
\insertNoCite{sutton00}{metap}
Fun, challenging and very valuable, but probably more effort than it's worth.