If the published output is a LaTeX or PDF report, you can insert LaTeX markup, that is only visible in this kind of output.
## # <latex> # Some output only visible in LaTeX or PDF reports. # \begin{equation} # e^x = \lim\limits_{n\rightarrow\infty}\left(1+\dfrac{x}{n}\right)^{n} # \end{equation} # </latex>
© 1996–2018 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/interpreter/LaTeX-Markup.html