From 9ea8443f1336c67e7daa6eb2a6903312115a9082 Mon Sep 17 00:00:00 2001 From: kiryph Date: Thu, 24 Oct 2024 15:20:56 +0200 Subject: [PATCH] Add Admonition Boxes see issue #74 --- doc/refdtd.xml | 42 ++++++++ example/example.xml | 226 +++++++++++++++++++++++++++++++++++++++++++- gapdoc.dtd | 9 +- lib/GAPDoc.gi | 1 + lib/GAPDoc2HTML.gi | 33 ++++++- lib/GAPDoc2LaTeX.gi | 59 +++++++++++- lib/GAPDoc2Text.gi | 59 +++++++++++- lib/gapdocdtdinfo.g | 2 +- lib/getdtd.g | 2 +- lib/latexhead.tex | 8 ++ styles/manual.css | 72 +++++++++++++- 11 files changed, 499 insertions(+), 14 deletions(-) diff --git a/doc/refdtd.xml b/doc/refdtd.xml index 3bc9298..954481f 100644 --- a/doc/refdtd.xml +++ b/doc/refdtd.xml @@ -1338,6 +1338,48 @@ It may appear in the output. +<Admonition> +Admonition + ++ +]]> + + +Five types of admonition boxes + + Useful information that users should know, even when skimming content. + + + + Helpful advice for doing things better or more easily. + + + + Key information users need to know to achieve their goal. + + + + Urgent info that needs immediate user attention to avoid problems. + + + + Advises about risks or negative outcomes of certain actions. + +]]> + +It is possible to customize the caption: + + + Important: Custom Caption + This is important. + +]]> + + <Log> and <Example> diff --git a/example/example.xml b/example/example.xml index efbe103..0388626 100644 --- a/example/example.xml +++ b/example/example.xml @@ -512,15 +512,120 @@ And some more for mathematical symbols: +
Admonition Boxes +
+ An Appendix -