Skip to content

Make page references parenthetical#983

Open
siwelwerd wants to merge 1 commit intomainfrom
reference-formatting
Open

Make page references parenthetical#983
siwelwerd wants to merge 1 commit intomainfrom
reference-formatting

Conversation

@siwelwerd
Copy link
Copy Markdown
Contributor

The default way of displaying references in PDF is

image

This changes the behavior to have a parenthetical instead

image

HTML output is unaffected since it does not use this xsl file.

@github-actions
Copy link
Copy Markdown

🚀 Preview available 🚀

https://50ccdd79.tbil.pages.dev

Comment thread xsl/print.xsl
Comment on lines +57 to +67
<!-- looks bad when bibliographic number gets wrapped in [] -->
<!-- and the number should suffice on its own -->
<xsl:when test="$target/self::biblio"/>
<!-- and trailing a () for an equation number is overkill -->
<xsl:when test="$target/self::mrow|$target/self::md"/>
<!-- and it is really bad for an xref inside a title -->
<xsl:when test="ancestor::title"/>
<!-- off by default electronic PDF, -->
<!-- or on by default for print PDF -->
<xsl:when test="not($b-pageref)"/>
<!-- OK, requested and helps, let's add it -->
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure this is strictly needed, it is copied from the PreTeXt xsl. I think it is more future-proof to include it though so we are not inadvertently overriding this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-algebra style Typesetting, formatting, or styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant