Learning Basic Programming Using Scala is a book written in Lyx, published under a Creative Commons Attribution-ShareAlike licence. It's not yet done. Contributors welcome.