Hello! While I was writing my thesis with lyx, I found myself to insert(to see to insert a box code, visit:
http://stackoverflow.com/questions/2116944/insert-programming-code-in-a-lyx-document) a box contains a program code ( Java). Without options, the box code is very good, like:
It is nice, but if I want more style? In this document there are a lots of tricks to get our code box nicest http://ftp.uniroma2.it/TeX/macros/latex/contrib/listings/listings.pdf. To insert option configuration into box code, click with right click mouse into box code, and going to Settings->Advanced insert your options.
For example, to get this result :
I have inserted these option:
caption={Classe java Tripla}
emph={subject,predicate,object}
emphstyle={\color{blue}}
frame=shadowbox
keywordstyle={\color{violet}}
rulesepcolor={\color{gray}}
Try to believe!!
P.S. To enable all color into lyn, do this: go in Document->Settings->Latext Preamble and insert
\usepackage{xcolor}
Thanks that was very helpful
ReplyDelete