0

I'm trying to use Sphinx to autogenerate a code report in LaTeX. I have a file named install.py which has the function "function_example". In the rst file I have:

.. automodule:: install
   :members:
   :undoc-members:
   :show-inheritance:

and then what shows up in the pdf is:

pdf screenshot

I've been able to change most of the document's layout, but that's the one thing I couldn't change, the install.function_exemple(par_a, par_b) output on my pdf. I'd like to make it bold and change its color. Also, it would be great to get rid of the install and only have function_exemple(par_a, par_b) on the pdf.

mzjn
  • 48,958
  • 13
  • 128
  • 248
  • To get rid of the `install` module name, see https://stackoverflow.com/q/20864406/407651 – mzjn Feb 16 '22 at 18:07
  • thanks for the link @mzjn ! and for the style, yeah it's latex. I've added a few .sty files and could pretty much customize everything in the document, except for this function call :/ – IsabelaAzevedo Feb 17 '22 at 09:59

0 Answers0