Monday, 21 September 2015

LyX and minted

Guide for using minted on lyx. minted is TeX package that provides syntax highlighting. It is useful for displaying code.

Tools -> Preferences

File Handling -> Converters
Select Latex -> PDF
Add "-shell-escape" to converted
Click Modify
Hit Save

Document -> Settings

Select LaTeX Preamble
Add "\usepackage{minted}"
Hit Ok

Insert -> TeX code

Add the code and done!

No comments:

Post a Comment