function bibTex()
    {
        $bibtex = '';
        foreach ($this->data as $entry) {
            //Intro
            $bibtex .= '@' . strtolower($entry['entryType']) . ' { ' . $entry['cite'] . ",\n";
            //Other fields except author
            foreach ($entry as $key => $val) {
                if ($this->_options['wordWrapWidth'] > 0) {
                    $val = $this->_wordWrap($val);
                }
                if (!in_array($key, array('cite', 'entryType', 'author'))) {
                    $bibtex .= "\t" . $key . ' = {' . $this->_escape_tex($val) . "},\n";
                }
            }
            //Author
            $author = null;

            if (array_key_exists('author', $entry)) {
                if ($this->_options['extractAuthors']) {
                    $tmparray = array(); //In this array the authors are saved and the joind with an and
                    foreach ($entry['author'] as $authorentry) {
                        $tmparray[] = $this->_formatAuthor($authorentry);
                    }
                    $author = join(' and ', $tmparray);
                } else {
                    $author = $entry['author'];
                }

            } else {
                $author = '';
            }
            $bibtex .= "\tauthor = {" . $this->_escape_tex($author) . "}\n";
            $bibtex .= "}\n\n";
        }
        return $bibtex;
    }