sympy-paper icon indicating copy to clipboard operation
sympy-paper copied to clipboard

Source code inlines

Open Upabjojr opened this issue 9 years ago • 8 comments

Shall we use some proper libraries instead of \begin{verbatim} ... \end{verbatim} for source code inlining?

https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings

Upabjojr avatar Apr 18 '16 08:04 Upabjojr

I used minted for my gsoc proposal. It worked well for me.

leosartaj avatar Apr 18 '16 11:04 leosartaj

I've included minted in PR #38. If we merge it, it is available and runs on travis.

moorepants avatar Apr 18 '16 15:04 moorepants

We also need to make sure that all use the same format (python prompt, ipython prompt, no prompt?), as per discussion in #50 .

moorepants avatar Apr 18 '16 20:04 moorepants

So what's the stand on this (python prompt, ipython prompt, no prompt?) ?

We can make all the code as of now uniform.

sumith1896 avatar Apr 23 '16 08:04 sumith1896

If you want to show input and output we should use a prompt. I don't care if it is the python or ipython prompt.

If you are going to go through and change things, can you change them all to use minted so that we get nice syntax highlighting?

moorepants avatar Apr 23 '16 14:04 moorepants

@moorepants We need to figure this out too https://github.com/sympy/sympy-paper/issues/9 , the point about computational reproducibility as even this is pertaining to the examples. Once, we have both sorted out we can fix all the examples in one go.

sumith1896 avatar Apr 23 '16 16:04 sumith1896

I think using the Python prompt >>> might be easier to get (later) working with a doctest style testing. So let's use >>> for now?

certik avatar Apr 23 '16 16:04 certik

My vote is for the python prompt, and the default (str) printing. We should also state at the beginning of the paper that all examples are run with from sympy import *.

asmeurer avatar Apr 23 '16 18:04 asmeurer