CTAN
Comprehensive TeX Archive Network

Query­ing the CTAN Database with JSON – List of Pack­ages

The list of pack­ages can be ob­tained un­der the URL

http://www.ctan.org/json/pack­ages

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

[{"key":"a0poster","name":"a0poster","caption":"Support for designing posters on large paper"},
 {"key":"a2ac","name":"a2ac","caption":"AFM to AFM plus Composites"},
 {"key":"a2ping","name":"a2ping","caption":"Advanced PS, PDF, EPS converter"},
 {"key":"a4","name":"a4","caption":"Support for A4 paper sizes"},
 {"key":"a4wide","name":"a4wide","caption":"\"Wide\" a4 layout"},
 {"key":"a5comb","name":"a5comb","caption":"Support for a5 paper sizes"},
 {"key":"aaai","name":"aaai","caption":"AAAI style"},
 {"key":"aaai-named","name":"aaai-named","caption":"BibTeX style for AAAI"},
 {"key":"aastex","name":"aastex","caption":"Macros for Manuscript Preparation for AAS Journals"},
 {"key":"abbr","name":"abbr","caption":"Simple macros supporting abreviations for Plain and LaTeX"},
 {"key":"abbrevs","name":"abbrevs","caption":"Text abbreviations in LaTeX"},
 {"key":"abc","name":"abc","caption":"Support ABC music notation in LaTeX"},
 {"key":"abc2mtex","name":"abc2mtex","caption":"Notate tunes stored in ABC notation"},
 …  

The pack­ages con­tained in this list are or­dered as­cend­ing on the key of the pack­ages.

package

Each pack­age is con­tained as ob­ject. This ob­ject has sev­eral at­tributes:

key
This at­tribute con­tains the key of the pack­age. This at­tribute is manda­tory.
name
This at­tribute con­tains the name of the pack­age. This at­tribute is manda­tory.
details
This at­tribute con­tains a short de­scrip­tive text about the con­tent of the pack­age.

Select­ing

The list can be re­stricted to con­tain part of the pack­ages 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/pack­ages?key=aaai

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

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