Skip to content

Fix overfull hboxes in print version#977

Draft
siwelwerd wants to merge 6 commits intomainfrom
overfull-hboxes
Draft

Fix overfull hboxes in print version#977
siwelwerd wants to merge 6 commits intomainfrom
overfull-hboxes

Conversation

@siwelwerd
Copy link
Copy Markdown
Contributor

Closes #962

@siwelwerd siwelwerd added linear-algebra style Typesetting, formatting, or styling labels Apr 24, 2026
Comment on lines +505 to 520
<image xml:id="LE1-image-intersection-planes-one" width="50%" component="print">
<sageplot variant="3d" aspect="1.0">
<xi:include href="./sage/LE1-image-intersection-planes-one.sage" parse="text"/>
</sageplot>
<description>
<p>Three planes are shown to intersect at a single point. An arrow points to the point of intersection at coordinates <m>(1,2,3)</m>.</p>
</description>
</image>
<image xml:id="LE1-image-intersection-planes-one" component="html">
<sageplot variant="3d" aspect="1.0">
<xi:include href="./sage/LE1-image-intersection-planes-one.sage" parse="text"/>
</sageplot>
<description>
<p>Three planes are shown to intersect at a single point. An arrow points to the point of intersection at coordinates <m>(1,2,3)</m>.</p>
</description>
</image>
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.

@StevenClontz This is compiling fine by hand, but throwing an error in the preview build. It complains that there are two images with the same xml:id, but our publication files are all set up to include either the html component (default), or the print component.

Should these images get distinct xml:ids? Or is there a better way to do this.

Comment on lines +33 to +34
parser=etree.XMLParser(recover=True)
root = etree.parse(f,parser=parser).getroot()
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.

@StevenClontz This fixes the error being thrown by duplicate xmlids. The error was because the xml was being parsed strictly here before pretext was involved. Please review for any unintended consequences of this change

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.

Fix overfull hboxes

1 participant