I'm trying to understand if LaTeX is a good choice for my use case(s). I don't know LaTeX and am having a hard time finding if these things are all possible, or maybe it is more a compiler question?
- I'm trying to create a document for a software product that gets rebranded depending on the customer we sell it to.
- Need a text based documentation so multiple developers can update it and it can get merged together without issue in version control.
- The document needs to support themes - different colors and styles (look and feel)
- The document needs to be able to use variables that can be replaced when converted. e.g. {customer name} -> compile to PDF -> Walmart
- The document should support either conditionals, or someway to have a "customer style" that can be attached at compile time. Like:
compile latex --customer:walmart.style - Needs to output PDF, optionally also output HTML.
In searching the internet, I keep coming back to LaTeX, but I'm having a hard time differentiating what is the documentation language providing vs the compiler.
So, can this be done with LaTeX? If so, do I need a particular compiler? If not, any suggestion on a product that might provide something like this?
EDIT 1
Wow, this is a very active and helpful community, thanks for all the responses!
Here is an example today of what is used, but it is not meeting the needs:
Developers/Humans write the document using markdown
<snip> that help your institution function more effectively. { width=90% } # Hardware Requirements 1. Single Tier system (windows + CIE + SQL) - recommended for low-medium volume sites: **BASE** (supports up to 4 Channels high volume): <snip>This is then run through pandoc with MiKTeX and a
.cssstyle to produce a.doc, HTML, and PDF. However, it can't handle variables or conditionals very well, and the look and feel needs to be done all in CSS which can add alot of overhead, especially trying to go across the output file types.This will produce an output like:
Would like to have some type of system that works similar to this (which does not work today, it's just photoshopped):
# Hardware Requirements for {customer}would output something like:
EDIT 2:
Trying to address the hold question:
- Does LaTeX support branding? For example, look & feel, replaceable variables and conditional text.
- Can LaTeX be outputted to PDF, HTML and
.docxusing a single base document + a branding style sheet?




\section{This bit}rather than5. This bitor whatever. But I fear I have misunderstood? – cfr Mar 19 '18 at 23:20compiler weaver-street.texorcompiler woolworths.texrather than compiling the same.texfile with different arguments. Butweaver-street.texandwoolworths.texwould include only the Weaver Street- and Woolworths-specific stuff - the rest would all be in another file(s). – cfr Mar 19 '18 at 23:29&$%\~appear in content, it would be cleaner to have the export-to-TeX code handle “escaping” them, than to type\textasciitilde(etc.) into the original data. • Conditionals are easier for developers to handle in their preferred languages. • I may want to reorder or vary data with different “themes”, etc. This can get messy inside TeX; is cleaner in templating systems designed for this. – ShreevatsaR Mar 20 '18 at 01:26