Skip to content

Commit

Permalink
Add program/code no newline test to sample-article
Browse files Browse the repository at this point in the history
  • Loading branch information
ascholerChemeketa committed Dec 9, 2024
1 parent b912872 commit d2891d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/sample-article/sample-article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10405,6 +10405,10 @@ along with MathBook XML. If not, see <http://www.gnu.org/licenses/>.
</program>
</listing>

<p>Although a program should have a <tag>code</tag> element surrounding its code, we attempt to provide one when it is missing. This next sample tests that and intentionally has no leading or trailing newline inside the program.</p>

<program languge="python">print("Hello world")</program>

<p>If you are discussing algorithms in the abstract (or even concretely), you can set them off like a theorem, with a number, a title and a target for cross-references. Sometimes you claim an algorithm produces something in particular, or has certain properties, such as a theoretical run time, so a proof may be included. See the discussion just preceding about (limited) options for pseudo-code.</p>

<algorithm xml:id="algorithm-sieve-eratosthenes">
Expand Down

0 comments on commit d2891d5

Please sign in to comment.