You can use XLingPaper to produce linguistic documents with at least five outputs, all from the same source document: Web pages, PDF, Microsoft Word, Open Office Writer, and ePUB. It automatically numbers sections and examples and keeps track of section references, citation references, and glosses/abbreviations. See Simons and Black (2009) and Black (2009) for the key notions used.