<div dir="ltr"><br><div>So I opened an issue, and in the end did a little hack myself and submitted PR. </div><div><br></div><div>See links here for the PR and for an example notebook</div><div><br></div><div><a href="https://github.com/ipython/ipython/issues/5370#issuecomment-37897451">https://github.com/ipython/ipython/issues/5370#issuecomment-37897451</a><br>
</div><div><br></div><div>I agree that the html tag is a bit long-winded. Shorter solution would be better if poss. </div><div><br></div><div>But in terms of rendering they look fine; </div><div><br></div><div><span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;line-height:17.804800033569336px;white-space:pre-wrap;background-color:rgb(238,238,238)"><cite data-cite="granger2013">(</span><span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;line-height:17.804800033569336px;white-space:pre-wrap;background-color:rgb(238,238,238)">Granger, 2013)</cite></span><br>
</div><div><br></div><div>just gets rendered as 'Granger, 2013'. </div><div><br></div><div>I've raised a few latex issues over the last year or so on stackoverflow that various ipython peeps have helped with. You might find some of those useful. </div>
<div><br></div><div><a href="http://stackoverflow.com/users/1224169/j-grif">http://stackoverflow.com/users/1224169/j-grif</a><br></div><div><br></div><div>In the end I've actually opted to use my institution's latex thesis template, with various post-nbconvert few hacks on the .tex files. If I had more time I would have preferred to make an nbconvert template that does the same job; but I don't have that luxury and also am not a latex expert. </div>
<div><br></div><div>Repo is here</div><div><br></div><div><a href="https://github.com/JohnGriffiths/phd-thesis-template">https://github.com/JohnGriffiths/phd-thesis-template</a><br></div><div><br></div><div>...though I wasn't planning on publicising this yet as it isn't particularly clean and lots of uncommitted changes. You might want to take a look at this notebook though</div>
<div><br></div><div><a href="http://nbviewer.ipython.org/github/JohnGriffiths/phd-thesis-template/blob/master/JG_hacks/DoMe.ipynb">http://nbviewer.ipython.org/github/JohnGriffiths/phd-thesis-template/blob/master/JG_hacks/DoMe.ipynb</a><br>
</div><div><br></div><div><div>...which basically does everything and has a reasonable amount of documentation. </div><div><br></div><div><br></div><div>Let me know your thoughts. I could easily see an 'nbconvert thesis template' being very popular. Happy to help move a mini-project like that forward.</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 March 2014 08:06, Aaron O'Leary <span dir="ltr"><<a href="mailto:aaron.oleary@gmail.com" target="_blank">aaron.oleary@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">> Seems the natural thing to do would be to be able to write "<cite<br>
> data-citep="<br>
> and "<cite data-citet=" , with syntax otherwise the same as above.<br>
> Ultimately one might want to have more of the natbib citation functionality<br>
> (see e.g. <a href="http://merkel.zoneo.net/Latex/natbib.php" target="_blank">http://merkel.zoneo.net/Latex/natbib.php</a>). To start with though I<br>
> think these two would go a long way to making notebook markdown article<br>
> writing feasible for non-numbered citation formats.<br>
<br>
</div>Or you could have `<cite date-cite="granger2013" type="citet"...`.<br>
Might be more flexible.<br>
<br>
I feel that writing the explicit html tag is a bit cumbersome and that<br>
we could do with a shorthand. We could use latex \citet, \citep<br>
directly, or we could go with the pandoc @granger2013, [@granger2013].<br>
The problem with shorthand is that it won't be rendered nicely in the<br>
interactive notebook.<br>
<br>
I've been thinking about this recently as I'm developing my thesis in<br>
the notebook. I've also got some ideas about referencing figures. I'd<br>
be happy to work on a PR with you John.<br>
<span class="HOEnZb"><font color="#888888"><br>
aaron<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><p><span style="font-size:10pt;color:rgb(127,127,127)">Mr. John Griffiths, MSc</span></p><p><span style="color:rgb(127,127,127);font-size:10pt">PhD Candidate</span></p>
<p><span style="font-size:10pt;color:rgb(127,127,127)">Centre for Speech, Language, and the Brain<u></u><u></u></span></p><p><span style="font-size:10pt;color:rgb(127,127,127)">Department of Experimental Psychology</span></p>
<p><span style="font-size:10pt;color:rgb(127,127,127)">University of Cambridge, UK</span></p>
</div>