Package org.ctan.site.services.catalogue
Class BibtexService
java.lang.Object
org.ctan.site.services.catalogue.BibtexService
This service provides special methods for dealing with BibTeX files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The configuration for the BibTeX service. -
Constructor Summary
ConstructorsConstructorDescriptionBibtexService
(@NonNull PkgStore store) This is the constructor forBibtexService
. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a BibTeX file for all packages.toBibtex
(BibtexService.BibtexConfig cfg, String... pkgNames) Generate a BibTeX file for a list of packages.toBibtex
(BibtexService.BibtexConfig cfg, Pkg... packages) Generate a BibTeX file for a list of packages.
-
Constructor Details
-
BibtexService
This is the constructor forBibtexService
.- Parameters:
store
- the package store
-
-
Method Details
-
toBibtex
Generate a BibTeX file for all packages.- Parameters:
cfg
- the configuration- Returns:
- the content of the BibTeX file
-
toBibtex
Generate a BibTeX file for a list of packages.- Parameters:
cfg
- the configurationpackages
- the array of package names to include- Returns:
- the content of the BibTeX file
-
toBibtex
Generate a BibTeX file for a list of packages.- Parameters:
cfg
- the configurationpkgNames
- the array of package names to include- Returns:
- the content of the BibTeX file
-