Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Query­ing the CTAN Database – List of Topics

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

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

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'>
<topics>
  <topic key="abbrev" details="macros for defining abbreviations in documents"/>
  <topic key="abstract" details="typeset abstracts of documents"/>
  <topic key="accessible" details="accessibility support"/>
  <topic key="acrobat" details="relies on availability of Adobe Acrobat, etc."/>
  <topic key="acronym" details="define and use acronyms"/>
  …
</topics>  

The list has the outer tag <topics>. The au­thors con­tained in this list are or­dered as­cend­ing on the key of the top­ics.

<topic>

Each topic is con­tained within the tag <topic>. This tag 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 au­thors 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/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/xml/top­ics?key=n

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

The list of top­ics 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/top­ics?no-dtd=true

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

The list of top­ics 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/top­ics?no-xml=true
Guest Book Sitemap Contact