I'm not familiar with LaTeX beyond seeing it mentioned occasionally, but based on the discussion it sounds like XML would be the best way to hold the document, then use XSLT and XSL-FO technologies to convert this data/content to LaTeX and/or HTML* documents as required.
Comments
I'm not familiar with LaTeX beyond seeing it mentioned occasionally, but based on the discussion it sounds like XML would be the best way to hold the document, then use XSLT and XSL-FO technologies to convert this data/content to LaTeX and/or HTML* documents as required.
*and related technologies such as CSS