ckulla / xDoc

Xtext documentation Language
1 stars 0 forks source link

Add possibility to add an image to the title page of printable documentation. #3

Open kbirken opened 12 years ago

kbirken commented 12 years ago

The title page of documentation generated from xDoc via Latex looks very "puristic". A nice option would be to be able to add some image, e.g. a logo, a screenshot or some other picture (maybe a photo of the author :-) ). This is very flexible and allows some individualization.

In latex, this could be converted to:

\usepackage{titlepic} <== as part of the usepackage list

...

\titlepic{\includegraphics{images/niceTitleImage.png}} <== after the \author... line

ckulla commented 12 years ago

I already made this possible. Just subclass the latex generator and override the makeTitle() method. Please see https://github.com/ckulla/xDoc/commit/84fb24f06194bacad2c55971024e46607632227b

But nevertheless this should be more modular and not require subclassing. I'm thinking of a TitlePageProvider which can be replaced via Guice. What do you think? Same pattern for head and footer.