Skip to content

Eliminate Warnings on Build#253

Merged
bnmnetp merged 2 commits intoRunestoneInteractive:masterfrom
jdeisenberg:cs20
Dec 29, 2022
Merged

Eliminate Warnings on Build#253
bnmnetp merged 2 commits intoRunestoneInteractive:masterfrom
jdeisenberg:cs20

Conversation

@jdeisenberg
Copy link
Copy Markdown
Contributor

  • Change label= to marker= on <ol>
  • Add <introduction> to sections with subsections.

Unfortunately, the latter change puts an <exercise> inside an <introduction>, which causes the following sort of error:

PTX:INFO    :     * PTX:ERROR:   An object (exercise) lacks a structure number, search output for "[STRUCT]"
PTX:INFO    :     *              located within: "functions_unit-testing" (xml:id), "Unit Testing" (title)

(There is no [STRUCT] in the output file, by the way.)

So, I can either have that error or the warning:

A section containing subsections needs to have other content inside an <introduction> and/or  <conclusion>

@bnmnetp bnmnetp merged commit 80c972e into RunestoneInteractive:master Dec 29, 2022
@cigas
Copy link
Copy Markdown

cigas commented Jun 20, 2023

Adding the <introduction> divisions caused errors in generating PDFs because of nested <exercise> divisions.

From https://pretextbook.org/doc/guide/html/overview-structure.html

The <introduction> and <conclusion> divisions are meant to be short, and may not contain any other numbered tag. No exercises, theorems, listings, etc. If you want to have an introductory division with any of the numbered elements you are free to omit the <introduction> and use the next finer subdivision with a <title> of “Introduction”.

Not sure if you want to undo these or just make a new PR to fix the ones with problems.

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.

3 participants