[IPython-dev] \citep and \citet for markdown latex citations
John Griffiths
j.davidgriffiths at gmail.com
Mon Mar 17 10:56:39 EDT 2014
Following up on an discussion re: latex citations here
http://stackoverflow.com/questions/22425847/can-other-latex-citation-commands-like-citep-and-citet-be-used-in-notebook-markd?noredirect=1#comment34138366_22425847
I was asking how one might implement \citep and \citet versions of the
<cite data-cite="granger2013">(Granger, 2013)</cite>
syntax for markdown citations in the notebook.
Seems the natural thing to do would be to be able to write "<cite
data-citep="
and "<cite data-citet=" , with syntax otherwise the same as above.
Ultimately one might want to have more of the natbib citation functionality
(see e.g. http://merkel.zoneo.net/Latex/natbib.php). To start with though I
think these two would go a long way to making notebook markdown article
writing feasible for non-numbered citation formats.
@takluyver suggests making a modified the citation filter to do this.
Looking at the nbconvert code this looks like it should be quite simple.
But what I'm not sure about is what the the data-cite attribute is doing
here. Would someone mind explaining this a little?
In particular, would e.g. a data-citet attribute need to be explicitly
defined somewhere, and would that be a non-trivial exercise?
I'm afraid I know next to nothing about HTML so sorry if this is a naive
question.
Cheers,
john
--
Mr. John Griffiths, MSc
PhD Candidate
Centre for Speech, Language, and the Brain
Department of Experimental Psychology
University of Cambridge, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140317/46b27d75/attachment.html>
More information about the IPython-dev
mailing list