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
Is your feature request related to a problem? Please describe.
I want to override latex specific settings when invoking sphinx-build to embed the generated latex in an external document. I do not want to edit the original conf.py. First I tried a dedidcated conf.py but ran into problems with relative paths so I decided to try the command line settings override.
The --define documentation nicely explains how to override dict and list type values. However, latex_documents is a list of tuples which are not handled correctly.
Describe the solution you'd like
I do not have a favourite solution.
My original problem of patching "conf.py" without file modification can also be solved by additional "appendable" python code.
Describe alternatives you've considered
Make list entries addressable by <name>.<index> notation
Intoduce dedicated syntax for latex_document entry that does not use ,
Add a dedicated --json-settings argument which accepts a JSON object. This can be tricky to use because shells treat quotes differently.
Additional context
Parsing of list type values (btw: There is no way to escape the ","):
Is your feature request related to a problem? Please describe.
I want to override latex specific settings when invoking
sphinx-build
to embed the generated latex in an external document. I do not want to edit the originalconf.py
. First I tried a dedidcatedconf.py
but ran into problems with relative paths so I decided to try the command line settings override.The
--define
documentation nicely explains how to overridedict
andlist
type values. However,latex_documents
is alist
oftuple
s which are not handled correctly.Describe the solution you'd like
I do not have a favourite solution.
My original problem of patching "conf.py" without file modification can also be solved by additional "appendable" python code.
Describe alternatives you've considered
<name>.<index>
notationlatex_document
entry that does not use,
--json-settings
argument which accepts a JSON object. This can be tricky to use because shells treat quotes differently.Additional context
Parsing of list type values (btw: There is no way to escape the ","):
sphinx/sphinx/config.py
Line 342 in 6471027
Interpretation of list elements as sequence in the latex builder:
sphinx/sphinx/builders/latex/__init__.py
Line 150 in 6471027
The text was updated successfully, but these errors were encountered: