Skip to content

Conversation

@vstehle
Copy link
Collaborator

@vstehle vstehle commented Sep 29, 2025

This is an attempt at fixing #128 (almost).

For the PDF format, the main drawback is that we need to give up on citations labels longer than 8 characters.
Let us please know if this is deemed acceptable; if nobody complains we can merge it.

The Sphinx LaTeX writer has its maximum citation label length
MAX_CITATION_LABEL_LENGTH set to 8 characters. [1]
Larger citations labels cause misalignment in the resulting bibliography
for target latexpdf (which we track as issue ARM-software#128).

As there is no easy way to change this limit, shorten all our citations
labels instead to a maximum of 8 characters and add a word about this
limitation in the README.

[1] https://github.com/sphinx-doc/sphinx/blob/master/sphinx/writers/latex.py

Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
The citations labels of the bibliography are badly aligned for the html and
singlehtml output formats (see issue ARM-software#128).

Add a custom CSS and use it to adjust the margin.

We visually tailor the setting for citations labels of 8 characters
maximum, which corresponds to the LaTeX formatter's setting.

Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
@vstehle
Copy link
Collaborator Author

vstehle commented Sep 29, 2025

Hi @xypron and @atishp04, could you please have a look and see how you like the shorter citations labels?

Copy link
Contributor

@xypron xypron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, update the links as indicated.

.. [RVPRIVSPEC] `The RISC-V Instruction Set Manual Volume II: Privileged Architecture
.. [RVPRVSPC] `The RISC-V Instruction Set Manual Volume II: Privileged Architecture
<https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf>`_,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current version is 20250508 Date: May 2025, available at https://docs.riscv.org/reference/isa/_attachments/riscv-privileged.pdf
Please, update the link.

.. [RVSBISPEC] `RISC-V Supervisor Binary Interface specification
.. [RVSBISPC] `RISC-V Supervisor Binary Interface specification
<https://github.com/riscv-non-isa/riscv-sbi-doc>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use https://docs.riscv.org/reference/platform-software/sbi/_attachments/riscv-sbi.pdf which has the latest ratified version (v3.0, 2025-07-16).

@vstehle
Copy link
Collaborator Author

vstehle commented Nov 5, 2025

Accepted during the EBBR call of Nov 5.

@vstehle vstehle merged commit 01c11b0 into ARM-software:main Nov 5, 2025
1 check passed
@vstehle vstehle deleted the bib branch November 19, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants