diff --git a/bibtexbrowser-documentation.wiki b/bibtexbrowser-documentation.wiki index 5e2116c..ec9093a 100755 --- a/bibtexbrowser-documentation.wiki +++ b/bibtexbrowser-documentation.wiki @@ -1,4 +1,4 @@ - -'''Stable Version''': [[http://www.monperrus.net/martin/bibtexbrowser.php.txt|bibtexbrowser.php]] +'''Stable Version''': [[http://www.monperrus.net/martin/bibtexbrowser.php.txt|bibtexbrowser.php]] [[https://github.com/monperrus/bibtexbrowser/commits/master|Changelog]] Don't hesitate to contact me to be added in the [[http://www.monperrus.net/martin/bibtexbrowser/users|lists of bibtexbrowser users]]:-) @@ -56,7 +57,7 @@ Don't hesitate to contact me to be added in the [[http://www.monperrus.net/marti The following uses bibtexbrowser under the hood: * [[http://www.monperrus.net/martin/bibtex-prettyprint|A pretty-printer and cleaner for Bibtex]] * [[http://github.com/KaiBi/IEEEStyleForBibtexbrowser|A custom citation style for bibtexbrowser adhering to the IEEE citations guidelines (on github)]] -* Generating publication lists in Latex using [[http://www.monperrus.net/martin/bibtex2latex]] +* Generating publication lists in Latex using [[http://www.monperrus.net/martin/bibtex2latex]] * [[http://www.monperrus.net/martin/feeding-mysql-database-with-bibtexbrowser|Feeding a MySQL database from the content of a bibtex file]] * Publication lists in Wordpress with [[http://www.monperrus.net/martin/wp-publications|wp-publications]] * [[http://www.monperrus.net/martin/publication-lists-with-hal-and-bibtexbrowser|Publication lists with HAL and bibtexbrowser]] @@ -96,10 +97,10 @@ $db->load('biblio.bib'); // can also be $query = array('year'=>'.*'); $query = array('year'=>'2014'); $entries=$db->multisearch($query); -uasort($entries, 'compare_bib_entries'); +uasort($entries, 'compare_bib_entries'); -foreach ($entries as $bibentry) { - echo $bibentry->toHTML()."<br/>"; +foreach ($entries as $bibentry) { + echo $bibentry->toHTML()."<br/>"; } ?> @@ -189,7 +190,7 @@ For contributing with a new style, [[http://www.monperrus.net/martin/|please dro ====How to change the link style?==== -By default each bibliographic entry is followed by +By default each bibliographic entry is followed by [bibtex] [pdf] [doi], etc. This can be tailored by configuring as follows (in the file ''bibtexbrowser.local.php'') @@ -198,15 +199,15 @@ define('BIBTEXBROWSER_LINK_STYLE','MyFancyBib2links'); function MyFancyBib2links(&$bibentry) { // bib is a special type of link. without the url argument or with an invalid image, it prints '[bibtex]' $result = $bibentry->getBibLink(); - + $result .= ' '.$bibentry->getLink('url'); - + // Google Scholar ID. empty string if no gsid field present $result .= ' '.$bibentry->getGSLink(); - + // returns an empty string if no doi field present $result .= ' '.$bibentry->getDoiLink(); - + return $result; } ?> @@ -262,7 +263,7 @@ You may create your own one in ''bibtexbrowser.local.php'' (see also "creating a
define('BIBLIOGRAPHYSECTIONS','my_sectioning'); function my_sectioning() { -return +return array( // Books array( @@ -313,7 +314,7 @@ Add in ''bibtexbrowser.local.php'': global $BIBTEXBROWSER_LANG; $BIBTEXBROWSER_LANG=array(); $BIBTEXBROWSER_LANG['Refereed Conference Papers']="Conférences avec comité de lecture"; -... +... $BIBTEXBROWSER_LANG['Year']="Année"; ?>@@ -345,9 +346,9 @@ $db = new BibDataBase(); $db->load('biblio.bib'); $query = array('year'=>'2014'); $entries=$db->multisearch($query); -uasort($entries, 'compare_bib_entries'); -foreach ($entries as $bibentry) { - echo $bibentry->getYear().'
OUTPUT (no header sent) -<?php +<?php define('BIBTEXBROWSER_URL','elem.php'); include('bibtexbrowser.php'); ?> @@ -489,8 +490,8 @@ include('bibtexbrowser.php'); ''elem.php'':ELEM (no header sent) -<?php -include('bibtexbrowser.php'); +<?php +include('bibtexbrowser.php'); ?>@@ -499,7 +500,7 @@ include('bibtexbrowser.php'); You must add a ''@string'' block in the bibtex file, which contains the links. The key is a concatenation of ''hp_'' and then ''FirstNameLastName'' (no space). For instance:-@String { +@String { hp_ericfoo = {http://www.foo.de/}, hp_joebar = {http://www.joebar.me/}, } @@ -513,6 +514,18 @@ Use ''bibtexbrowser-cli.php''. For instance: php bibtexbrowser-cli.php mybib.bib --id classical --set-title \"a new title\" --id with_abstract --set-title \"a new title\" --set-year 1990+====How to use with composer?==== +Bibtexbrowser can now be downloaded from packagist with composer. + +In your project's `composer.json`, just add this"monperrus/bibtexbrowser": "dev-master". E.G.: ++{ + "require": { + "monperrus/bibtexbrowser": "dev-master" + } +} ++ =====Related tools===== Old-fashioned: diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..84301f5 --- /dev/null +++ b/composer.json @@ -0,0 +1,16 @@ +{ + "name": "monperrus/bibtexbrowser", + "description": "bibtexbrowser is a PHP script that creates publication lists from Bibtex files. bibtexbrowser is stable, mature and easy to install.", + "homepage": "http://www.monperrus.net/martin/bibtexbrowser/", + "license": "GPL-2.0+", + "authors": [ + { + "name": "Martin Monperrus", + "homepage": "http://www.monperrus.net/martin/", + "role": "Original Developer" + } + ], + "require": { + "php": ">=4" + } +}