Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

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

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

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

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

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE authors SYSTEM 'http://www.ctan.org/xml/catalogue.dtd'>
<packages>
  <package key="a0poster" name="a0poster" caption="Support for designing posters on large paper" />
  <package key="a2ac" name="a2ac" caption="AFM to AFM plus Composites" />
  <package key="a2ping" name="a2ping" caption="Advanced PS, PDF, EPS converter" />
  <package key="a4" name="a4" caption="Support for A4 paper sizes" />
  <package key="a4wide" name="a4wide" caption=""Wide" a4 layout" />
  <package key="a5comb" name="a5comb" caption="Support for a5 paper sizes" />
  <package key="aaai" name="aaai" caption="AAAI style" />
  <package key="aaai-named" name="aaai-named" caption="BibTeX style for AAAI" />
  <package key="aastex" name="aastex" caption="Macros for Manuscript Preparation for AAS Journals" />
  …
</packages>  

The list has the outer tag <packages>. 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 within the tag <package>. This tag 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/xml/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/xml/pack­ages?key=n

Omit­ting the Doc­type Dec­la­ra­tion

The list of pack­ages in­cludes a doc­type dec­la­ra­tion. This dec­la­ra­tion can be sup­pressed with the pa­ram­e­ter no-dtd which should be set to true as in

http://www.ctan.org/xml/pack­ages?no-dtd=true

Omit­ting the XML Dec­la­ra­tion

The list of pack­ages starts with an XML dec­la­ra­tion. This dec­la­ra­tion can be sup­pressed with the pa­ram­e­ter no-xml which should be set to true as in

http://www.ctan.org/xml/pack­ages?no-xml=true
Guest Book Sitemap Contact