Getting started =============== For general users, all that is needed is place the main `bibulous.py `_ file into the Python path and to tell LaTeX to use Bibulous rather than BibTeX as their bibliography engine. For users interested in using the auxiliary command `bibulous_authorextract.py `_, this file must also be in the Python path, and must be in the same directory as the main file. It is also possible to tell any LaTeX front-end to use Bibulous in place of BibTeX. For Kile, Texmaker, TeXStudio, TeXworks, and Lyx (on Linux) and WinEdt (on Windows), instructions for doing this are given below. Once you bibliography engine is set to Bibulous, remember that the filename within the ``\bibliography{...}`` command in your ``*.tex`` files must point to a Bibulous-format bibliography style template (``.bst`` file) and not a BibTeX one. Kile: replacing BibTeX with Bibulous ------------------------------------ 1. In Kile, go to the menu bar and select ``Settings`` > ``Configure Kile``. Select ``Tools`` > ``Build`` and choose ``BibTeX`` from the ``Select a tool`` menu (see the figure). To the right of the menu, after you select ``BibTeX`` you should see "Choose a configuration for the tool BibTeX". Below the drop-down menu, select the button "New" and type in the name ``Bibulous`` (or whatever you prefer to call your new tool). Below, in the ``General`` tab, type in the location of the `bibulous.py `_ file. And in the ``Options`` field, type ``%dir_base/%S.aux``. .. image:: _static/screenshot_for_kile_instructions.png :width: 49% .. image:: _static/screenshot_for_kile_instructions2.png :width: 49% That should be it. In case your default setup is different, you can also check the ``Advanced`` tab settings and verify that they are as shown in the second figure. (That is, ``Source extension`` is set to ``aux``, and ``Target extension`` is set to ``bbl``.) 2. Note that the following variables are accessible in Kile's ``Options`` field:: %source = filename (i.e. filename with suffix but not path) %S = filename without suffix (and without path) %dir_base = source file directory (source file's path without the filename) %dir_target = target file directory (source file's path without the filename) Modifying WinEdt5 to replace BibTeX with Bibulous ------------------------------------------------- 1. Go to the menu ``Options`` > ``Execution Modes``. In the ``Console Applications`` menu on the left hand side, select ``BibTeX``. Then replace the three ``Command Line`` fields with the ones shown in the figure, replacing the example file paths with the ones correct for your installation of Python and `bibulous.py `_. .. image:: _static/original_Winedt5_setup.png :width: 49% .. image:: _static/modified_Winedt5_setup.png :width: 49% 2. Note that the following are definitions of WinEdt registers:: %f = full path of active file (= %p/%n.%t) %n = name of the active file %p = the path of the active file %t = the extension of the active file %q = the path relative to the main file (i.e. for subdirectories) %b = WinEdt's local working directory (not the tex file directory) %B = path to the WinEdt executable file Modifying Texmaker to replace BibTeX with Bibulous -------------------------------------------------- On the main menu bar, select ``Options`` then ``Configure Texmaker``. In the ``Bib(la)tex`` field, replace ``bibtex %.aux`` with the location of your `bibulous.py `_ file, followed by ``%.aux``. The following figures show the configuration window before and after the change: .. image:: _static/original_texmaker_setup.png :width: 49% .. image:: _static/modified_texmaker_setup.png :width: 49% (The example shows the location of the `bibulous.py `_ file as ``/home/repos/bibulous/bibulous.py``, but you need to replace it with the appropriate location on your own system.) Also note that the `bibulous.py `_ must be executable by the user. Modifying TeXStudio to replace BibTeX with Bibulous --------------------------------------------------- On the main menu bar, select ``Options`` then ``Configure TeXStudio``, and then the ``Commands`` tab. In the ``BibTeX`` field, replace ``bibtex %.aux`` with the location of your `bibulous.py `_ file, followed by ``%.aux``. The following figures show the configuration window before and after the change: .. image:: _static/original_texstudio_setup.png :width: 49% .. image:: _static/modified_texstudio_setup.png :width: 49% (The example shows the location of the `bibulous.py `_ file as ``/home/repos/bibulous/bibulous.py``, but you need to replace it with the appropriate location on your own system.) Modifying TeXworks to replace BibTeX with Bibulous -------------------------------------------------- On the main menu bar, select ``Edit`` then ``Preferences...``, and then the ``Typesetting`` tab. In the ``Paths for TeX and related programs`` list, insert a new entry to give the path to your `bibulous.py `_ program. (This is the highlighted entry in the figure shown below.) In the ``Processing tools`` list, double-click on ``BibTeX``. This brings up a new dialog window. In that window, remove ``bibtex`` from the ``Program`` field and replace it with `bibulous.py `_. The following figures show the configuration windows before and after the change: .. image:: _static/original_texworks_setup.png :width: 49% .. image:: _static/modified_texworks_setup.png :width: 49% (The example shows the location of the `bibulous.py `_ file as ``/home/repos/bibulous/bibulous.py``, but you need to replace it with the appropriate location on your own system.) Modifying LyX to replace BibTeX with Bibulous --------------------------------------------- On the main menu bar, select ``Tools`` then ``Preferences``, and then expand the ``Output`` dropdown list and click on the ``LaTeX`` field. In the ``Bibliography generation`` section of the resulting dialog, change ``Processor`` to ``Custom`` and in the ``Command`` field insert the full path to your `bibulous.py `_ program. The following figures show the configuration windows before and after the change: .. image:: _static/original_lyx_setup.png :width: 49% .. image:: _static/modified_lyx_setup.png :width: 49% (The example shows the location of the `bibulous.py `_ file as ``/home/repos/bibulous/bibulous.py``, but you need to replace it with the appropriate location on your own system.)