# LaTeX Citations Tab

This tool allows you to search for citations in LaTeX files.

In the user interface, a tab was added to the entry editor, the aesthetics have been improved, and the tool was renamed to **Search for Citations in LaTeX files**.

![LaTeX Citations tab](https://1203621998-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-4248753286%2Fuploads%2Fgit-blob-2dfc0064d2d616acb9bec258e1c6d84d499017ba%2Flatex-citations-window.png?alt=media)

## Overview

A new tab was added to the entry editor. It allows to search for citations to the active entry in the LaTeX file directory. It can be configured in the *Library properties* dialog.

See the image below to see how it works:

![LaTeX Citations tab animation](https://1203621998-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-4248753286%2Fuploads%2Fgit-blob-713c600262de772e36331e8bb0fc1cf6ac78bad8%2Flatex-citations.gif?alt=media)

## Key Features

### The new tab

* A *LaTeX Citations* tab has been added to the entry editor.
* This tab can be disabled in the *Entry editor* preferences.
* A progress indicator appears while parsing.
* Current search is cancelled if another entry is selected.
* Parsed files are stored when the tool is run for the first time (to achieve better performance).
* The current search path is shown at the bottom, next to a button to set the LaTeX file directory.
* A user-friendly error logging and handling has also been implemented.

### A custom user interface controller for listing citations

* The citations list view is the same for dialog tool and tab.
* The context of citations is shown instead of the whole line of text (which is shown as a tooltip).
* Absolute file path has been changed into a relative one, from the search path.
* New icons and styles for context, file path, and position (line and column) of a citation.
