LyX is a GUI document processor with a focus on writing and it allows you to create virtually any type of document based on structure. In short, it is more of a WYSIWYM app than WYSIWYG app. Meaning that what you see in the editor is an approximation of what the finished document will look like.