I want to print estimation output with outreg2 as a tex file. I combine several results for which only some of the options change. I want to use macros for the non-changing options in order to make the script more sparse.

Here is a simple example:

Code:
loc outputFile "myOutputFile"
loc outputOpt "tex(frag) nocons label e(r2 ll) keep(`vars') adds(AIC, `AIC', BIC, `BIC') "

glm y `vars', fa(bin) link(probit)

outreg2 using `outputFile', `outputOpt' addt(model, Probit)
Only the addtext() part changes by regression, and I want to avoid repeating other options for each output. Any idea how to make this work? Or do I just have write out all the options for each outreg2 line?