Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Query­ing the CTAN Database – Topic

The in­for­ma­tion about a sin­gle topic can be ob­tained un­der the URL like

http://www.ctan.org/xml/topic/cv

The last el­e­ment in the URl is the key of the topic as used by CTAN. Those keys are also listed in the list of 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'>
<topic key="cv" details="curriculum vitae/Resumé" />  

The en­try has the outer tag <topic>. This tag has sev­eral at­tributes:

key
This at­tribute con­tains the key of the au­thor. This at­tribute is manda­tory.
details
This at­tribute con­tains a short de­scrip­tion of the topic.

Ref­er­ences

You can re­quest that more in­for­ma­tion about the top­ics is pro­vided. This in­for­ma­tion is the list of pack­ages in which the topic is men­tioned. This is ac­com­plished with the pa­ram­e­ter ref. It can be set to true as in the fol­low­ing ex­am­ple:

http://www.ctan.org/xml/topic/cv?ref=true

This re­sults in an XML file like in the fol­low­ing list­ing;

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE authors SYSTEM 'http://www.ctan.org/xml/catalogue.dtd'>
<topic key="cv" details="curriculum vitae/Resumé">
  <package key="currvita" />
  <package key="cvsty" />
  <package key="cv" />
  <package key="curve" />
  …
</topic  

In this case the <topic> tag con­tains a list of in­ner tags for the pack­ages. Each pack­age is con­tained in the tag <package> which has the fol­low­ing at­tributes:

key
This at­tribute con­tains the key of the pack­age. This at­tribute is manda­tory.

Omit­ting the Doc­type

The topic 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/topic/cv?no-dtd=true

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

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