You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sphinx-dev
Hello,
I use the sphinxcontrib-bibtex extension to generate the bibliography. In the LaTeX output the bibliography is placed at a fixed location (near the end of the document) with a fixed chapter name and without a chapter numbering. I would like to place the bibliography in a specific numbered chapter with a custom name. I can get this with a post-processing of the *.tex output of sphinx.
1. Move the \begin{sphinxthebibliography}...\end{sphinxthebibliography} content to the desired location in the file.
2. Add \renewcommand\bibname{Custom Name} to the file.
3. Add \usepackage[nottoc,numbib]{tocbibind} to the file.
4. Remove the \addcontentsline{toc}{chapter}{\bibname} in sphinxmanual.cls.
I don't know the sphinx internals, but would it be possible to change the LaTeX output generator to achieve this via the normal user interface, e.g. via bibliography directive options?
jfbu
unread,
Jan 3, 2019, 7:11:55 AM1/3/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
but although yes it reflects Sphinx default BibliographyTransform behaviour,
I would say that the sphinxcontrib-bibtex extension could be the place
to modify that behaviour, so it looks like a Feature Request to be made
to sphinxcontrib-bibtex project :)
If this feature is to be implemented in sphinxcontrib-bibtex, we need
some "official" way to disable BibliographyTransform.
Or does someone know another work-around?
cheers,
Matthias
> --
> You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Komiya Takeshi
unread,
Jan 4, 2019, 3:47:04 AM1/4/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sphin...@googlegroups.com
Hi Matthias,
Unfortunately, there is no proper way to disable it.
It is strongly coupled with LaTeX writer. So you need to replace it
with another transform.
Anyway, I can provide the option for the transform like "as is", "per
chapter" and "per document".
If you like it, please post a feature request. I'll work for it (in future).