Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Query­ing the CTAN Database – Author

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

http://www.ctan.org/xml/au­thor/knuth

The last el­e­ment in the URl is the key of the au­thor as used by CTAN. Those keys are also listed in the list of au­thors.

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'>
<author key="knuth" givenname="Donald E." familyname="Knuth" />  

The en­try has the outer tag <author>. 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.
givenname
This at­tribute con­tains the given name. It is op­tional and can be empty.
familyname
This at­tribute is the fam­ily name. It is op­tional and can be empty.

Note that the au­thors in­for­ma­tion does not con­tain the email ad­dress of the au­thor to pro­tect the pri­vacy.

Ref­er­ences

You can re­quest that more in­for­ma­tion about the au­thors is pro­vided. This in­for­ma­tion is the list of pack­ages in which the au­thor 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/au­thor/knuth?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'>
<author key="knuth" givenname="Donald E." familyname="Knuth">
  <package key="ada" />
  <package key="cmtest" />
  <package key="gkpmac" />
  <package key="graphbase" />
  …
</author  

In this case the <author> 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 Dec­la­ra­tion

The au­thor file 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/au­thor/knuth?no-dtd=true

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

The au­thor 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/au­thor/knuth?no-xml=true
Guest Book Sitemap Contact