sphinx-book-theme icon indicating copy to clipboard operation
sphinx-book-theme copied to clipboard

ERROR: Unknown directive type "margin"

Open ka2in opened this issue 3 years ago • 1 comments

Describe the bug

context When I do sphinx-build -b latex source build\latex\, followed by .\make latexpdf.

expectation I expect to build my PDF without any warnings.

bug But instead, Sphinx throws the following error:

ERROR: Unknown directive type "margin"

Sphinx generates the output anyway. But the warning seems to indicate a buggy behavior.

Reproduce the bug

  1. Run: sphinx-build -b latex source build\latex\
  2. Next, type the command: .\make latexpdf

List your environment

Python v3.10.5
Sphinx v4.5.0
sphinx-book-theme v0.3.2
Windows 11 OS

ka2in avatar Jul 21 '22 13:07 ka2in

Maybe unrelated, but how can we use the margin directive with rst files?

.. margin:: Some title here
   Some margin note here.

This doesn't work either with the same error:

ERROR: Content block expected for the "margin" directive; none found.

iyanmv avatar May 03 '23 07:05 iyanmv