CTAN
Comprehensive TeX Archive Network

Query­ing the CTAN Database with JSON – List of Topics

The list of top­ics can be ob­tained un­der the URL

http://www.ctan.org/json/top­ics

The re­sult is an XML file as in the fol­low­ing list­ing:

[{"key":"abbrev","details":"macros for defining abbreviations in documents"},
 {"key":"abstract","details":"typeset abstracts of documents"},
 {"key":"accessible","details":"accessibility support"},
 {"key":"acrobat","details":"relies on availability of Adobe Acrobat, etc."},
 {"key":"acronym","details":"define and use acronyms"},
 {"key":"addr-list","details":"lists of addresses, for a personal directory (or the like)"},
 {"key":"advert","details":"small advertisements, fly sheets, etc."},
 {"key":"albanian","details":"support for typesetting Albanian"},
 {"key":"alignment","details":"tables, tab structures, etc"},
 {"key":"alignment-supp","details":"ancillary code for tables, tab structures, etc"},
 {"key":"amharic","details":"support for typesetting Amharic"},
 {"key":"apa","details":"typesetting according to the rules of the American Psychological Association"},
 {"key":"appendix","details":"Typsetting and using appendices"},
 {"key":"arabic","details":"documentation in and support for typesetting Arabic"},   
  … }]  

The top­ics con­tained in this list are or­dered as­cend­ing on the key of the topic.

topic

Each topic is rep­re­sented as JSON ob­ject. This ob­ject has sev­eral at­tributes:

key
This at­tribute con­tains the key of the topic. This at­tribute is manda­tory.
details
This at­tribute con­tains a short de­scrip­tive text about the mean­ing of the topic.

Select­ing

The list can be re­stricted to con­tain part of the top­ics only. The con­di­tion is that the key starts with a given string. This string is spec­i­fied with the pa­ram­e­ter key.

http://www.ctan.org/json/top­ics?key=ab­brev

The fol­low­ing ex­am­ple ex­tracts all top­ics for which the key starts with the let­ter n:

http://www.ctan.org/json/top­ics?key=n
Guest Book Sitemap Contact Contact Author