Printing Python code in LaTeX

LaTeX does not support printing Python code with useful markup and format out of box.

This page links to the minted package, which provides a ready-for-use package for CTAN and LaTeX.

This page gives a minimal implementation (only some customization in .tex file, no packages) for marking Python code.

This is a black-and-white version. I don’t use it.

 

– END –

Advertisements
  1. 留下评论

Log in or fill out contact info to leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: