Skip to content

Commit

Permalink
sphinx: prevent from splitting table and its header among pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed May 17, 2024
1 parent 1df8044 commit f0547ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def defineLatexVar(varName : str, var : str) -> str:
\DeclareCaptionLabelFormat{custom}{#1~\thechapter.#2}
\captionsetup{labelformat=custom}
\let\oldsphinxattablestart\sphinxattablestart
\renewcommand{\sphinxattablestart}{\begin{minipage}{\textwidth}\oldsphinxattablestart}
\let\oldsphinxattableend\sphinxattableend
\renewcommand{\sphinxattableend}{\oldsphinxattableend\end{minipage}}
\newcommand{\sphinxDocumentTitle}{'''+titlepage['title']+r'''}
\newcommand{\sphinxDocumentAuthor}{'''+titlepage['author']+r'''}
\newcommand{\sphinxDocumentGroupID}{'''+titlepage['groupID']+r'''}
Expand Down

0 comments on commit f0547ba

Please sign in to comment.