Extracts a subset of BibTeX entries from a BibDatabase that are included in an AUX file. Also supports nested AUX files (latex \include).
There exists no specification of the AUX file. Every package, class or document can write to the AUX file. The AUX file consists of LaTeX macros and is read at the \begin{document} and again at the \end{document}.
BibTeX citation: \citation{x,y,z} Biblatex citation: \abx@aux@cite{x,y,z} Nested AUX files: @input{x}
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private static final Logger | |
| private final BibDatabase |
| Access | Constructor and Description |
|---|---|
| public | DefaultAuxParser(BibDatabase
BibTeX database database)Generates a database based on the given AUX file and BibTeX database |
| Modifier and Type | Method and Description |
|---|---|
| private void | insertEntries(List<BibEntry>
Entries to be cloned entries, AuxParserResult the parser result (representing the AUX file) result)Insert a clone of each given entry. |
| private void | |
| private void | |
| public AuxParserResult | parse(Path auxFile)
Implements org. Executes the parsing logic and returns a result containing all information and the generated BibDatabase. |
| private void | resolveCrossReferences(List<BibEntry>
Entries to check for CrossRefs entries, AuxParserResult AUX file result)Resolves and adds CrossRef entries to insert them in addition to the original entries |
| private void | resolveTags(AuxParserResult
AUX file result)Try to find an equivalent BibTeX entry inside the reference database for all keys inside the AUX file. |
| CITE_PATTERN | back to summary |
|---|---|
| private static final Pattern CITE_PATTERN | |
| INPUT_PATTERN | back to summary |
|---|---|
| private static final Pattern INPUT_PATTERN | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| masterDatabase | back to summary |
|---|---|
| private final BibDatabase masterDatabase | |
| DefaultAuxParser | back to summary |
|---|---|
| public DefaultAuxParser(BibDatabase database) Generates a database based on the given AUX file and BibTeX database
| |
| insertEntries | back to summary |
|---|---|
| private void insertEntries(List<BibEntry> entries, AuxParserResult result) Insert a clone of each given entry. The clones are each given a new unique ID.
| |
| matchCitation | back to summary |
|---|---|
| private void matchCitation(AuxParserResult result, String line) | |
| matchNestedAux | back to summary |
|---|---|
| private void matchNestedAux(Path baseAuxFile, AuxParserResult result, List<Path> fileList, String line) | |
| parse | back to summary |
|---|---|
| public AuxParserResult parse(Path auxFile) Implements org. Doc from org. Executes the parsing logic and returns a result containing all information and the generated BibDatabase.
| |
| resolveCrossReferences | back to summary |
|---|---|
| private void resolveCrossReferences(List<BibEntry> entries, AuxParserResult result) Resolves and adds CrossRef entries to insert them in addition to the original entries
| |
| resolveTags | back to summary |
|---|---|
| private void resolveTags(AuxParserResult result) Try to find an equivalent BibTeX entry inside the reference database for all keys inside the AUX file.
| |