LaTeX::AuthorsPerl extension to extract authors and laboratories in a LaTeX file | |
Download |
LaTeX::Authors Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Christian Rossi
- Publisher web site:
- http://search.cpan.org/~rossi/
LaTeX::Authors Tags
LaTeX::Authors Description
Perl extension to extract authors and laboratories in a LaTeX file LaTeX::Authors is a Perl module to extract authors and laboratories in a LaTeX file.SYNOPSISExtraction from a string with latex commands: use LaTeX::Authors; use strict; my $tex_string = "documentclass..."; my @article = router($tex_string); my $string_xml = string_byauthors_xml(@article); print $string_xml;Extraction from a latex file: use LaTeX::Authors; use strict; my $file = shift; my $tex_string = load_file_string($file); my @article = router($tex_string); my $string_xml = string_byauthors_xml(@article); print $string_xml;Extraction from a directory with latex files: use LaTeX::Authors; use strict; my $directory = shift; #my $error= un_archive($directory); my $file = find_tex_file($directory); my $tex_string = load_file_string($file); my @article = router($tex_string); my $string_xml = string_byauthors_xml(@article); print $string_xml;LaTeX::Authors try to find the authors and laboratories in a LaTex file. The output is an xml or html string. This is an example of the xml output:< article > < item > < author >author1< /author > < labo >lab1< /labo > < labo >lab2< /labo > < /item > < item > ... < /item > < /article >The module try to found something like the author and affiliation latex command on the file. With articles about physics try to found a collaboration name to work with more exotic way to show authors list. It is especially design for article about physics where there is hundreds of authors.It can work on input with: - an archiv file (tar, zip...), it's useful for arXiv file (function un_archiv) - a directory with latex file (function find_tex_file) - a latex file (function load_file_string) - a string (function router)For the output it can produce: - an xml string - by author: author1 lab1 lab2 (string _byauthors_xml) - by laboratory: lab1 author1 author2 (string_bylabs_xml) - an html string - by author (string_byauthors_html) - by lab (string_bylabs_html) Requirements: · Perl
LaTeX::Authors Related Software