Skip to content

Commit

Permalink
Experimental \sphinxbreakablebox via sphinxbreakablebox.sty
Browse files Browse the repository at this point in the history
See discussion at sphinx-doc#11224

This is about a variant of Sphinx 6.2.0 \sphinxbox, which will break
across lines.  The way this is done is to split the input into
characters, handling encountered macros in various more or less apt
ways in passing and box them separately adapting the shape as first
and last must be handled especially.

Works with one-character input, even empty input.  See the file for
more explanations.

Decision has been made not to merge into Sphinx.

This commit puts the experimental code in a separate package in order
to make using it as easy as possible.  Simply grab the file, put
it at some place where TeX can find it or in your project with
latex_additional_files, and add \usepackage{sphinxbreakablebox} to
preamble.

Use at own risk.  It is not excluded that renamings of Sphinx
internals could at some future point break the file, but I will try to
sync with upstream as long as I contribute maintenance to Sphinx
LaTeX.
  • Loading branch information
jfbu committed Mar 16, 2023
1 parent b7345ad commit 9fcc408
Showing 1 changed file with 429 additions and 0 deletions.

0 comments on commit 9fcc408

Please sign in to comment.