diff options
author | albert-github <albert.tests@gmail.com> | 2021-04-29 11:59:33 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-04-29 11:59:33 (GMT) |
commit | 7fc02d88c173a275001a2551285be8f7f979181a (patch) | |
tree | 17c267f201b165b36d68db03bc52e5ace1a68ad9 /templates | |
parent | a9f40a48c99af952836a3871e60ff6ca17ecdecf (diff) | |
download | Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.zip Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.tar.gz Doxygen-7fc02d88c173a275001a2551285be8f7f979181a.tar.bz2 |
issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)
The problem was a bit deeper, it was also valid for other output formats.
Implemented the `type` and `start` attribute for all relevant output types.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/latex/doxygen.sty | 12 | ||||
-rw-r--r-- | templates/xml/compound.xsd | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty index 8f59bcc..8d9535a 100644 --- a/templates/latex/doxygen.sty +++ b/templates/latex/doxygen.sty @@ -20,6 +20,8 @@ \RequirePackage{adjustbox} \RequirePackage{amssymb} \RequirePackage{stackengine} +\RequirePackage{enumitem} +\RequirePackage{alphalph} \RequirePackage[normalem]{ulem} % for strikeout, but don't modify emphasis %---------- Internal commands used in this style file ---------------- @@ -574,3 +576,13 @@ \H@refstepcounter{figure}% \@dblarg{\@caption{figure}}} \makeatother + +% Define alpha enumarative names for counters > 26 +\makeatletter +\def\enumalphalphcnt#1{\expandafter\@enumalphalphcnt\csname c@#1\endcsname} +\def\@enumalphalphcnt#1{\alphalph{#1}} +\def\enumAlphAlphcnt#1{\expandafter\@enumAlphAlphcnt\csname c@#1\endcsname} +\def\@enumAlphAlphcnt#1{\AlphAlph{#1}} +\makeatother +\AddEnumerateCounter{\enumalphalphcnt}{\@enumalphalphcnt}{aa} +\AddEnumerateCounter{\enumAlphAlphcnt}{\@enumAlphAlphcnt}{AA} diff --git a/templates/xml/compound.xsd b/templates/xml/compound.xsd index c128140..f540c8a 100644 --- a/templates/xml/compound.xsd +++ b/templates/xml/compound.xsd @@ -512,6 +512,8 @@ <xsd:sequence> <xsd:element name="listitem" type="docListItemType" maxOccurs="unbounded" /> </xsd:sequence> + <xsd:attribute name="type" type="DoxOlType" /> + <xsd:attribute name="start" type="xsd:integer" /> </xsd:complexType> <xsd:complexType name="docListItemType"> @@ -967,5 +969,15 @@ </xsd:restriction> </xsd:simpleType> + <xsd:simpleType name="DoxOlType"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="1" /> + <xsd:enumeration value="a" /> + <xsd:enumeration value="A" /> + <xsd:enumeration value="i" /> + <xsd:enumeration value="I" /> + </xsd:restriction> + </xsd:simpleType> + </xsd:schema> |