GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BIBTEX::PARSER::ENTRY (3)

.ds Aq ’

NAME

BibTeX::Parser::Entry - Contains a single entry of a BibTeX document.

CONTENTS

SYNOPSIS

This class ist a wrapper for a single BibTeX entry. It is usually created by a BibTeX::Parser.



    use BibTeX::Parser::Entry;

    my $entry = BibTeX::Parser::Entry->new($type, $key, $parse_ok, \%fields);
   
    if ($entry->parse_ok) {
            my $type    = $entry->type;
            my $key     = $enty->key;
            print $entry->field("title");
            my @authors = $entry->author;
            my @editors = $entry->editor;

            ...

            print $entry->to_string;
    }



FUNCTIONS

    new

Create new entry.

    parse_ok

If the entry was correctly parsed, this method returns a true value, false otherwise.

    error

Return the error message, if the entry could not be parsed or undef otherwise.

    type

Get or set the type of the entry, eg. ’ARTICLE’ or ’BOOK’. Return value is always uppercase.

    key

Get or set the reference key of the entry.

field($name [, CW$value])

Get or set the contents of a field. The first parameter is the name of the field, the second (optional) value is the new value.

    cleaned_field($name)

Retrieve the contents of a field in a format that is cleaned of TeX markup.

    cleaned_author

Get an array of BibTeX::Parser::Author objects for the authors of this entry. Each name has been cleaned of accents and braces.

    cleaned_editor

Get an array of BibTeX::Parser::Author objects for the editors of this entry. Each name has been cleaned of accents and braces.

    author([@authors])

Get or set the authors. Returns an array of BibTeX::Author objects. The parameters can either be BibTeX::Author objects or strings.

Note: You can also change the authors with $entry->field(’author’, $authors_string)

    editor([@editors])

Get or set the editors. Returns an array of BibTeX::Author objects. The parameters can either be BibTeX::Author objects or strings.

Note: You can also change the authors with $entry->field(’editor’, $editors_string)

    fieldlist ()

Returns a list of all the fields used in this entry.

    has($fieldname)

Returns a true value if this entry has a value for $fieldname.

    raw_bibtex ()

Return raw BibTeX entry (if available).

    to_string ([options])

Returns a text of the BibTeX entry in BibTeX format. Options is a hash. Currently only the option canonize_names is supported. If true (the default), authors’ and editors’ names are translated into canonical bibtex form. The command $entry->to_string(canonize_names=>0) overrides this behavior.

VERSION

version 0.69

AUTHOR

Gerhard Gossen <gerhard.gossen@googlemail.com> and Boris Veytsman <boris@varphi.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013-2016 by Gerhard Gossen and Boris Veytsman

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BIBTEX::PARSER::ENTRY (3) 2016-03-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.