Including Sphinx-generated content in a handwritten LaTeX file

15 views
Skip to first unread message

Matthias Geier

unread,
Mar 12, 2023, 1:23:51 PM3/12/23
to sphinx...@googlegroups.com
Dear Sphinx users.

Has anyone of you ever wanted to include a Sphinx-generated LaTeX file
(or multiple) as part/section of another LaTeX file?

I have.

I have experimented with this for quite a long time, and I have now
created an example for a way I came up with to do that:

https://github.com/spatialaudio/nbsphinx/pull/719

I have done this as part of the "nbsphinx" extension, but the method
is independent of that (except for the line "\usepackage{nbsphinx}",
which can easily be left out if not needed).

For now, this is a pull request on the "nbsphinx" project and I would
like to include it there in a separate directory just for documenting
it somewhere.

But before that, I'd like to get feedback from the Sphinx community!
Do you have any ideas on how to improve this?
Have I missed something?
Is there some redundant/obsolete LaTeX code that I can remove?
I have included a few cryptic lines that are generated by Sphinx, but
maybe this can be avoided?

For now I am using lualatex, but if it's not too complicated, it can
probably be extended to other LaTeX flavors?

I'm using "\RequirePackage{luatex85}" (because Sphinx generates that
when selecting lualatex), but I'm not sure if that's necessary. Does
anyone of you know?

Please feel free to answer to this e-mail or leave comments directly
at the PR: https://github.com/spatialaudio/nbsphinx/pull/719

cheers,
Matthias
Reply all
Reply to author
Forward
0 new messages