You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a specification documented using Sphinx. To make the PDF output readable, I have increased the latexpdf font size to 12 points, while decreasing the font size on my headers and footers. The specification has some tables that have a lot of data in them. They would be best handled by using a smaller font size.
I was able to reduce the size of my table header by adding \protected\def\sphinxstyletheadfamily{\footnotesize} to the preamble element of latex_elements in conf.py, but it's not obvious to me which style I need to extend / override to change the font used for the rows. I tied poking around in the .tex file that Sphinx generates, but I couldn't identify a sphinx latex element that controls this.
I have a similar problem with some code blocks. For this document, it would make sense to have the code be a smaller font size. I see that Sphinx generates a SphinxVerbatim macro that is used in the .tex file, but it's not clear to me whether I can extend it to decrease the font size.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a specification documented using Sphinx. To make the PDF output readable, I have increased the latexpdf font size to 12 points, while decreasing the font size on my headers and footers. The specification has some tables that have a lot of data in them. They would be best handled by using a smaller font size.
I was able to reduce the size of my table header by adding
\protected\def\sphinxstyletheadfamily{\footnotesize}to thepreambleelement oflatex_elementsinconf.py, but it's not obvious to me which style I need to extend / override to change the font used for the rows. I tied poking around in the.texfile that Sphinx generates, but I couldn't identify a sphinx latex element that controls this.I have a similar problem with some code blocks. For this document, it would make sense to have the code be a smaller font size. I see that Sphinx generates a SphinxVerbatim macro that is used in the .tex file, but it's not clear to me whether I can extend it to decrease the font size.
Any wisdom would be appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions