<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Interesting, I had not considered using the PythonTex >
DePythonTeX > Syntax highlighting approach for arxiv upload. I
think that the maintainer of PythonTeX took over minted a while
ago, so maybe it will start using minted in the future?!</p>
<p>One the topic of PythonTeX, if you use it, you might find this
library I wrote, while not writing my Thesis useful:
<a class="moz-txt-link-freetext" href="http://texfigure.readthedocs.io/en/latest/">http://texfigure.readthedocs.io/en/latest/</a> (There is not a lot of
documentation yet).</p>
<p><br>
</p>
<p>Stuart<br>
</p>
<br>
<div class="moz-cite-prefix">On 28/04/16 17:01, Thøger Emil
Rivera-Thorsen wrote:<br>
</div>
<blockquote cite="mid:572233D9.6010201@astro.su.se" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
PythonTeX uses the Fancyvrb package for syntax highlighting. The
output is not as nice as minted, but nicer than listings.<br>
<br>
Og course, PythonTeX requires one more step in the production, as
it is a filter that runs on your document and either evaluates,
typesets or both to your inline code, then outputs it as a .tex
file to be typeset the normal way. But it might be a good solution
in a case like this, as I believe it doesn't require the special
settings that minted does.<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 04/28/2016 05:42 PM, Stuart
Mumford wrote:<br>
</div>
<blockquote
cite="mid:7c851dd5-c510-a918-0735-e412ab88fcea@cadair.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>Hi Jo,</p>
<p>FWIW, I had this minted + Arxiv issue when I submitted the
SunPy paper, what I did in the end was swap to the much more
boring looking `listings` package for ArXiV and use minted for
everything else.</p>
<p><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/sunpy/sunpy-0.4-paper/commit/d91dd8809f469e7a4295c317feeded41aeca17c8">https://github.com/sunpy/sunpy-0.4-paper/commit/d91dd8809f469e7a4295c317feeded41aeca17c8</a></p>
<p>Stuart<br>
</p>
<div class="moz-cite-prefix">On 28/04/16 15:12, Jo Bovy wrote:<br>
</div>
<blockquote
cite="mid:CALeWRE5+CwwX+0zRfCdiy3SUF5sr09n6=K3iiJYaemR1SXv9qg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Leo,
<div><br>
</div>
<div>I'm not sure this is exactly what you're looking for,
but in my <a moz-do-not-send="true"
href="http://adsabs.harvard.edu/abs/2015ApJS..216...29B">paper</a>
on galpy, I used <a moz-do-not-send="true"
href="https://github.com/gpoore/minted">minted</a> to
typeset Python code as figures (and some inline). The only
downside is that arXiv doesn't allow this, because you
need to run latex with <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">-shell-escape </span>(I
got my paper on arXiv in a very hacky way). ApJS didn't
have any problems with getting this in print.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Jo</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Apr 28, 2016 at 10:00 AM,
Singer, Leo P. (GSFC-661.0)[UNIVERSITIES SPACE RESEARCH
ASSOCIATION] <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:leo.p.singer@nasa.gov" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:leo.p.singer@nasa.gov">leo.p.singer@nasa.gov</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am working on an ApJ submission that I would like to
pair with a supplement paper that contains (among other
things) some Astropy-based sample/tutorial Python code
to acquaint the reader with an accompanying data
release. Are there any established best practices for
including Python in journal articles? Should code and
output be presented docstring-style or should it look
like an IPython session? Does anyone have nice examples
of astronomy papers that include supplemental IPython
notebooks?<br>
<br>
If anyone is interested, this is the article and data
release:<br>
<a moz-do-not-send="true"
href="https://arxiv.org/abs/1603.07333"
rel="noreferrer" target="_blank">https://arxiv.org/abs/1603.07333</a><br>
<a moz-do-not-send="true"
href="http://asd.gsfc.nasa.gov/Leo.Singer/going-the-distance/"
rel="noreferrer" target="_blank">http://asd.gsfc.nasa.gov/Leo.Singer/going-the-distance/</a><br>
<br>
Cheers,<br>
Leo<br>
<br>
<br>
Dr. Leo P. Singer<br>
NASA Postdoctoral Program Fellow<br>
Goddard Space Flight Center<br>
8800 Greenbelt Rd., B34, Room S239<br>
Greenbelt, MD 20771<br>
_______________________________________________<br>
AstroPy mailing list<br>
<a moz-do-not-send="true"
href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a moz-do-not-send="true"
href="https://mail.scipy.org/mailman/listinfo/astropy"
rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/astropy</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
AstroPy mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.scipy.org/mailman/listinfo/astropy">https://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
AstroPy mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.scipy.org/mailman/listinfo/astropy">https://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
----
Thøger Emil Rivera-Thorsen
Astrophysicist, Ph.D. candidate
Stockholm University, dept. of Astronomy
Sweden</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
AstroPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>
<a class="moz-txt-link-freetext" href="https://mail.scipy.org/mailman/listinfo/astropy">https://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
</blockquote>
<br>
</body>
</html>